:root {
  --blue-950: #04358f;
  --blue-900: #0648bf;
  --blue-700: #075ee8;
  --blue-600: #0b6ff3;
  --blue-100: #eaf3ff;
  --sky-50: #f5faff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dce6f3;
  --panel: #ffffff;
  --green: #22c55e;
  --red: #ef4444;
  --orange: #f59e0b;
  --purple: #5952ff;
  --shadow: 0 16px 42px rgba(15, 54, 110, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", Tahoma, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(38, 132, 255, 0.14), transparent 28rem),
    linear-gradient(135deg, #edf6ff 0%, #f9fcff 55%, #edf6ff 100%);
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 18px 12px;
  color: #fff;
  background: linear-gradient(180deg, #0874f2 0%, #0552c9 52%, #043b9b 100%);
  box-shadow: 12px 0 30px rgba(6, 72, 191, 0.22);
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  margin-bottom: 18px;
}

.brand-logo,
.brand-mark,
.receipt-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--blue-700);
  background: #fff;
  font-weight: 800;
}

.brand-logo {
  display: block;
  object-fit: contain;
  background: transparent;
}

.brand strong {
  display: block;
  font-size: 19px;
  line-height: 1;
}

.brand small,
.profile small {
  display: block;
  opacity: 0.78;
  font-size: 11px;
}

.nav {
  display: grid;
  gap: 6px;
  overflow-y: auto;
  min-height: 0;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.nav::-webkit-scrollbar {
  width: 6px;
}

.nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.nav-section-label {
  margin: 12px 10px 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.nav-section-label:first-child {
  margin-top: 0;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 43px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 700;
}

.nav a.active,
.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.17);
}

.nav svg {
  width: 18px;
  height: 18px;
}

.nav-group {
  display: grid;
  gap: 4px;
}

.nav-parent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 4px;
}

.nav-parent-row > a {
  min-width: 0;
}

.nav-dropdown-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  cursor: pointer;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.nav-dropdown-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.nav-group.is-open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.subnav {
  display: grid;
  gap: 3px;
  margin: -1px 0 4px 29px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-group:not(.is-open) .subnav {
  display: none;
}

.subnav a {
  min-height: 31px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.72);
}

.subnav a.active,
.subnav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.shift-chip {
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.shift-chip span {
  display: block;
  font-size: 12px;
  opacity: 0.78;
}

.shift-chip strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.shift-chip a {
  display: inline-flex;
  margin-top: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(220, 230, 243, 0.75);
  background: rgba(248, 252, 255, 0.88);
  backdrop-filter: blur(18px);
}

.topbar h1 {
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
}

.content {
  padding: 22px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 54, 110, 0.04);
}

.search.big {
  min-height: 54px;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.search svg {
  color: var(--muted);
}

.icon-button,
.secondary-button,
.ghost-button,
.primary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.icon-button {
  width: 40px;
  padding: 0;
}

.sidebar-toggle {
  display: none;
  flex-direction: column;
}

.sidebar-toggle span {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.secondary-button,
.ghost-button {
  padding: 0 14px;
}

.ghost-button {
  min-height: 34px;
  color: var(--blue-700);
}

.primary-button {
  padding: 0 16px;
  border-color: var(--blue-700);
  color: #fff;
  background: linear-gradient(180deg, var(--blue-600), var(--blue-900));
  box-shadow: 0 10px 18px rgba(7, 94, 232, 0.18);
}

.danger-button {
  padding: 0 16px;
  border-color: var(--red);
  color: #fff;
  background: var(--red);
}

button:disabled,
.primary-button:disabled,
.danger-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.full {
  width: 100%;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.branch-switcher label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 54, 110, 0.05);
}

.branch-switcher span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.branch-switcher select {
  min-width: 170px;
  min-height: 32px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 900;
}

.profile-menu {
  position: relative;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 10px 6px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 54, 110, 0.05);
}

.profile-trigger span:not(.avatar) {
  display: grid;
  min-width: 112px;
  text-align: left;
}

.profile-trigger small {
  color: var(--muted);
  font-size: 11px;
}

.profile-trigger svg {
  width: 16px;
  height: 16px;
  color: var(--blue-700);
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  display: none;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.profile-menu.is-open .profile-dropdown {
  display: grid;
}

.profile-dropdown a {
  min-height: 38px;
  padding: 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.profile-dropdown a:hover {
  color: var(--blue-700);
  background: var(--blue-100);
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ffb25f, #0b6ff3);
  font-weight: 800;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar.large {
  width: 112px;
  height: 112px;
  font-size: 38px;
}

.profile-summary {
  display: grid;
  grid-template-columns: 126px 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding: 18px;
  border-radius: 8px;
  background: #f8fbff;
}

.profile-summary strong,
.profile-summary small {
  display: block;
}

.profile-summary small {
  margin-top: 3px;
  color: var(--muted);
}

.avatar-new-preview {
  display: grid;
  grid-template-columns: 126px 1fr;
  align-items: center;
  gap: 18px;
  margin: -2px 0 18px;
  padding: 16px 18px;
  border: 1px dashed #b7c7dc;
  border-radius: 8px;
  background: #f8fbff;
}

.avatar-new-preview[hidden] {
  display: none;
}

.avatar-new-preview span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.avatar-new-preview img {
  grid-column: 1;
  grid-row: 1;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-new-preview span {
  grid-column: 2;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.metric-grid.small {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric,
.panel,
.cart-panel,
.pos-categories {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.metric {
  padding: 18px;
}

.metric span,
.metric small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin: 9px 0 6px;
  color: var(--blue-700);
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: 0;
}

.metric.alert strong,
.danger-text {
  color: var(--red);
}

.positive {
  color: #0f9f59 !important;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 16px;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid #cfe4ff;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff 0%, #edf6ff 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.dashboard-hero span,
.dashboard-hero p {
  color: var(--muted);
}

.dashboard-hero span {
  display: block;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-hero h2 {
  margin: 3px 0;
  color: var(--blue-700);
  font-size: 26px;
  letter-spacing: 0;
}

.dashboard-hero p {
  margin: 0;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr) minmax(280px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.dashboard-chart-panel {
  grid-column: span 2;
}

.dashboard-branch-chart-panel {
  grid-column: span 2;
}

.dashboard-branch-chart-panel.featured {
  margin-bottom: 16px;
  border-color: #d8e2ef;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)),
    #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.dashboard-branch-chart-panel.featured .panel-head {
  align-items: flex-start;
}

.dashboard-branch-chart-panel.featured .panel-head h2 {
  color: #172033;
  font-size: 21px;
}

.dashboard-branch-chart-panel.featured .filter-caption {
  font-size: 13px;
}

.branch-bar-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 252px;
  padding: 16px;
  border-radius: 8px;
  background:
    linear-gradient(to bottom, rgba(220, 230, 243, 0.62) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(180deg, rgba(14, 165, 233, 0.08), rgba(34, 197, 94, 0.035));
}

.dashboard-branch-chart-panel.featured .branch-bar-chart {
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 20px;
  min-height: 326px;
  padding: 34px 28px 22px;
  border: 1px solid #dde6f0;
  overflow: hidden;
  background:
    linear-gradient(to bottom, rgba(148, 163, 184, 0.22) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(180deg, #fff, #f8fafc);
}

.branch-bar-chart div {
  --bar-front: #1f5fbf;
  --bar-top: #4f8df0;
  --bar-base: rgba(15, 23, 42, 0.11);
  display: grid;
  grid-template-rows: minmax(160px, 1fr) auto;
  align-items: end;
  min-width: 0;
  gap: 12px;
  position: relative;
}

.branch-bar-chart div:nth-child(2n) {
  --bar-front: #2d6cdf;
  --bar-top: #9bbfff;
  --bar-side: #2457b8;
  --bar-base: rgba(15, 23, 42, 0.11);
}

.branch-bar-chart div:nth-child(3n) {
  --bar-front: #315fca;
  --bar-top: #a3bcf8;
  --bar-side: #264ba1;
  --bar-base: rgba(15, 23, 42, 0.11);
}

.branch-bar-chart div:nth-child(4n) {
  --bar-front: #1e5aa8;
  --bar-top: #8fb4e5;
  --bar-side: #17457f;
  --bar-base: rgba(15, 23, 42, 0.11);
}

.branch-bar-chart div:nth-child(5n) {
  --bar-front: #3b76d3;
  --bar-top: #adc9f7;
  --bar-side: #285aa3;
  --bar-base: rgba(15, 23, 42, 0.11);
}

.branch-bar-chart div::after {
  display: none;
}

.branch-bar-chart span {
  position: relative;
  z-index: 1;
  display: block;
  align-self: end;
  width: min(58%, 64px);
  height: var(--h);
  min-height: 20px;
  margin: 0 auto;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 7px 7px 3px 3px;
  background:
    linear-gradient(180deg, var(--bar-top), var(--bar-front));
  box-shadow:
    0 12px 22px var(--bar-base),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.branch-bar-chart span::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  border-radius: 7px 7px 0 0;
  background: rgba(255, 255, 255, 0.26);
  content: "";
  pointer-events: none;
}

.branch-bar-chart span::after {
  display: none;
}

.dashboard-branch-chart-panel.featured .branch-bar-chart div {
  grid-template-rows: minmax(220px, 1fr) auto;
}

.dashboard-branch-chart-panel.featured .branch-bar-chart span {
  border-radius: 7px 7px 3px 3px;
  box-shadow:
    0 12px 22px var(--bar-base),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.branch-bar-chart span em {
  position: absolute;
  inset: -24px 50% auto auto;
  transform: translateX(50%);
  color: #334155;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.dashboard-branch-chart-panel.featured .branch-bar-chart span em {
  inset: -31px 50% auto auto;
  padding: 3px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #172033;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  font-size: 12px;
}

.branch-bar-chart strong {
  position: relative;
  z-index: 2;
  overflow: hidden;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-branch-chart-panel.featured .branch-bar-chart strong {
  color: #243047;
  font-size: 12px;
  letter-spacing: 0;
}

.branch-bar-empty {
  grid-column: 1 / -1;
  align-self: center;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.dashboard-shift-card {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.dashboard-shift-card.is-open {
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.dashboard-shift-card span,
.dashboard-shift-card small,
.dashboard-mini-grid span,
.dashboard-payment-list span,
.dashboard-activity-list small,
.dashboard-doc-list small,
.ranking small,
.simple-table td small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-shift-card strong {
  color: var(--blue-700);
  font-size: 18px;
}

.dashboard-shift-card.is-open strong {
  color: #047857;
}

.dashboard-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-mini-grid div,
.dashboard-payment-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.dashboard-mini-grid strong,
.dashboard-payment-list strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

.dashboard-payment-list {
  display: grid;
  gap: 10px;
}

.dashboard-payment-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-payment-list strong {
  color: var(--blue-700);
}

.dashboard-activity-list,
.dashboard-doc-list,
.dashboard-branch-list {
  display: grid;
  gap: 10px;
}

.dashboard-activity-list a,
.dashboard-doc-list div,
.dashboard-branch-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.dashboard-activity-list a:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.dashboard-activity-list strong,
.dashboard-doc-list strong {
  color: var(--ink);
}

.dashboard-activity-list em,
.dashboard-doc-list em,
.dashboard-branch-list em {
  flex: 0 0 auto;
  color: var(--blue-700);
  font-style: normal;
  font-weight: 900;
}

.dashboard-branch-list div {
  position: relative;
  overflow: hidden;
  padding-bottom: 16px;
}

.dashboard-branch-list span,
.dashboard-branch-list em {
  position: relative;
  z-index: 1;
}

.dashboard-branch-list strong {
  color: var(--ink);
}

.dashboard-branch-list small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-branch-list i {
  position: absolute;
  inset: auto 10px 7px 10px;
  height: 5px;
  border-radius: 999px;
  background: #e2e8f0;
}

.dashboard-branch-list i::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b6ff3, #22c55e);
}

.dashboard-activity-list.compact a {
  min-height: 48px;
}

.panel {
  padding: 18px;
  overflow: hidden;
}

.span-2 {
  grid-column: span 2;
}

.page-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(8px);
}

.modal-card {
  width: min(820px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
}

.modal-head h2 {
  margin: 0;
  font-size: 19px;
}

.modal-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 24px;
  line-height: 1;
}

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

.product-modal .product-form {
  padding: 20px;
}

.product-form--modal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}

.product-form-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.product-form-section h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--blue-700);
  font-size: 14px;
  font-weight: 900;
}

.product-form-section .field {
  min-width: 0;
  margin-bottom: 0;
}

.product-form-section .field input,
.product-form-section .field select {
  width: 100%;
  min-width: 0;
}

.product-form-section--main,
.product-form-section--price,
.product-form-section--image,
.product-form-section--status {
  grid-column: 1 / -1;
}

.product-name-field,
.product-image-input-field,
.product-form-section--image .product-image-manager {
  grid-column: 1 / -1;
}

.product-form-section--price {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-form-section--status {
  align-content: start;
}

.product-form-section--price h3,
.product-form-section--status h3 {
  grid-column: 1 / -1;
}

.product-form-section--status .barcode-preview {
  min-height: 54px;
}

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

.user-form {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.user-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.user-form-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.user-form-section--wide {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-form-section h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--blue-700);
  font-size: 14px;
  font-weight: 900;
}

.user-form-section .field {
  margin-bottom: 0;
  min-width: 0;
}

.user-form-section .field span {
  line-height: 1.25;
}

.user-form-section .field input,
.user-form-section .field select {
  width: 100%;
  min-width: 0;
}

.user-form-section .checkbox-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  align-self: end;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.user-form-section .checkbox-field span {
  color: #334155;
}

.user-form-section .checkbox-field:hover {
  border-color: #9fc4ff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.user-form-section .checkbox-field input[type="checkbox"] {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  min-height: 26px;
  height: 26px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  appearance: none;
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.user-form-section .checkbox-field input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.24);
  transition: transform 160ms ease;
}

.user-form-section .checkbox-field input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #1f8bff, #0757d8);
  box-shadow: 0 0 0 3px rgba(31, 139, 255, 0.14);
}

.user-form-section .checkbox-field input[type="checkbox"]:checked::before {
  transform: translateX(22px);
}

.user-form-section .checkbox-field input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(31, 139, 255, 0.24);
  outline-offset: 3px;
}

.modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}

.payment-card {
  width: min(520px, 100%);
}

.payment-form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.payment-total,
.payment-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.payment-total span,
.payment-result span {
  color: var(--muted);
  font-weight: 900;
}

.payment-total strong {
  color: var(--blue-700);
  font-size: 28px;
}

.payment-result strong {
  color: #047857;
  font-size: 22px;
}

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

.payment-methods button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #334155;
  background: #fff;
  font-weight: 900;
}

.payment-methods button.active {
  border-color: var(--blue-700);
  color: #fff;
  background: var(--blue-700);
}

.payment-methods button.cash.active {
  border-color: #16a34a;
  background: #16a34a;
}

.payment-methods button.credit.active {
  border-color: #334155;
  background: #334155;
}

.payment-panel {
  display: grid;
  gap: 12px;
}

.receipt-print-body {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.receipt-print-body p {
  margin: 0;
  color: #334155;
  font-weight: 800;
}

.receipt-print-body strong {
  color: var(--blue-700);
}

.receipt-print-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.panel-head,
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.panel-head h2 {
  margin: 0;
  font-size: 17px;
}

.filter-caption {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
  font-weight: 700;
}

.panel-head a {
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 800;
}

.line-chart,
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  min-height: 212px;
  padding: 16px;
  border-radius: 8px;
  background:
    linear-gradient(to bottom, rgba(220, 230, 243, 0.55) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(180deg, rgba(11, 111, 243, 0.08), rgba(11, 111, 243, 0.01));
}

.line-chart {
  gap: 18px;
  padding: 18px 18px 16px;
  border: 1px solid #dde6f0;
  background:
    linear-gradient(to bottom, rgba(148, 163, 184, 0.22) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(180deg, #fff, #f8fafc);
}

.line-chart span,
.bar-chart span {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex: 1;
  height: var(--h);
  min-height: 10px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #2d9cff, #075ee8);
  box-shadow: 0 9px 16px rgba(7, 94, 232, 0.18);
}

.bar-chart span.is-zero {
  height: 2px;
  min-height: 2px;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: none;
}

.line-chart span.is-zero {
  height: 2px;
  min-height: 2px;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: none;
}

.bar-chart span em {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  color: #334155;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.bar-chart span.is-zero em {
  color: #94a3b8;
}

.line-chart span em {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  color: #334155;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.line-chart span.is-zero em {
  color: #94a3b8;
}

.line-chart span {
  max-width: 64px;
  margin-inline: auto;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #4f8df0, #1f5fbf);
  box-shadow:
    0 12px 22px rgba(15, 23, 42, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.line-chart span::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  border-radius: 7px 7px 0 0;
  background: rgba(255, 255, 255, 0.26);
  content: "";
  pointer-events: none;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.ranking,
.legend {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking {
  display: grid;
  gap: 13px;
  counter-reset: rank;
}

.ranking li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.ranking li::before {
  counter-increment: rank;
  content: counter(rank);
  color: var(--muted);
  font-weight: 800;
}

.ranking strong {
  color: var(--ink);
}

.simple-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.simple-table th,
.simple-table td,
.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
  vertical-align: middle;
}

.simple-table th,
.data-table th {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  background: #f8fbff;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.badge.success {
  color: #047857;
  background: #dcfce7;
}

.badge.warning {
  color: #a15c00;
  background: #fff2cc;
}

.badge.primary {
  color: #075ee8;
  background: #dbeafe;
}

.badge.danger {
  color: #c1121f;
  background: #ffe4e6;
}

.sale-row--voided {
  background: #fff7f7;
}

.sale-row--voided .sale-voided-text {
  opacity: 0.56;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(193, 18, 31, 0.72);
}

.sale-row--voided .sale-voided-text a {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(193, 18, 31, 0.72);
}

.sale-receipt-link {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.sale-receipt-link:hover {
  color: var(--blue-700);
  text-decoration: underline;
}

.payment-review-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

button.payment-review-pill {
  cursor: pointer;
}

.payment-review-pill--pending {
  border-color: #fed7aa;
  color: #b45309;
  background: #fff7ed;
}

.payment-review-pill--verified {
  border-color: #bbf7d0;
  color: #047857;
  background: #ecfdf5;
}

.payment-review-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-review-card {
  max-width: 560px;
}

.payment-review-form {
  display: grid;
  gap: 16px;
  padding: 22px 24px 24px;
}

.payment-review-summary {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(255, 255, 255, 0.98)),
    #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.payment-review-summary-head {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(120px, 0.75fr);
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dbeafe;
}

.payment-review-summary-head > div {
  display: grid;
  gap: 4px;
}

.payment-review-summary-head > div:last-child {
  text-align: right;
}

.payment-review-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
}

.payment-review-detail-grid div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.payment-review-detail-wide {
  grid-column: 1 / -1;
}

.payment-review-section-title {
  align-items: center;
  display: flex;
  gap: 8px;
  letter-spacing: 0;
}

.payment-review-section-title::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.payment-review-summary span,
.payment-review-summary dt,
.payment-review-section-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.payment-review-summary-head strong {
  color: var(--blue-700);
  font-size: 18px;
  line-height: 1.2;
}

.payment-review-summary dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.payment-review-options label {
  display: block;
  cursor: pointer;
}

.payment-review-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-review-options span {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.payment-review-options label:hover span {
  transform: translateY(-1px);
}

.payment-review-options input:checked + span {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(9, 89, 220, 0.14);
}

@media (max-width: 620px) {
  .payment-review-form {
    padding: 18px 16px 20px;
  }

  .payment-review-summary {
    padding: 16px;
  }

  .payment-review-summary-head,
  .payment-review-detail-grid {
    grid-template-columns: 1fr;
  }

  .payment-review-summary-head > div:last-child {
    text-align: left;
  }

  .shift-confirm-summary {
    grid-template-columns: 1fr;
  }

  .shift-confirm-summary div:first-child {
    grid-column: auto;
  }

  .shift-count-head,
  .shift-count-head-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .shift-count-print-button {
    width: 100%;
  }
}

.danger-link {
  color: var(--red) !important;
}

.badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
}

.donut-wrap.vertical {
  flex-direction: column;
}

.donut {
  display: grid;
  place-items: center;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--blue-600) 0 45%, #35d399 45% 75%, #ffb84d 75% 90%, #5952ff 90% 100%);
}

.donut span {
  display: grid;
  place-items: center;
  width: 88px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  font-weight: 900;
  text-align: center;
}

.legend {
  display: grid;
  gap: 11px;
  font-size: 13px;
}

.legend b {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
}

.legend .blue { background: var(--blue-600); }
.legend .green { background: #35d399; }
.legend .orange { background: #ffb84d; }
.legend .purple { background: #5952ff; }

.pos-layout {
  display: grid;
  grid-template-columns: 174px minmax(420px, 1fr) 380px;
  gap: 14px;
  min-height: calc(100vh - 118px);
}

.pos-categories,
.cart-panel {
  padding: 16px;
}

.pos-categories h2 {
  margin: 0 0 13px;
  font-size: 15px;
}

.pos-categories button {
  width: 100%;
  min-height: 44px;
  margin-bottom: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.pos-categories a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  margin-bottom: 7px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
}

.pos-categories button.active,
.pos-categories button:hover,
.pos-categories a.active,
.pos-categories a:hover {
  color: #fff;
  background: var(--blue-700);
}

.product-zone {
  min-width: 0;
}

.pos-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.pos-stock-toggle {
  display: inline-grid;
  grid-template-columns: 42px auto;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 54, 110, 0.06);
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.pos-stock-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pos-stock-toggle span {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #dbe4f0;
  transition: background 160ms ease;
}

.pos-stock-toggle span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.18);
  content: "";
  transition: transform 160ms ease;
}

.pos-stock-toggle strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.pos-stock-toggle input:checked + span {
  background: #16a34a;
}

.pos-stock-toggle input:checked + span::after {
  transform: translateX(18px);
}

.price-lock-text {
  color: #047857;
  font-size: 12px;
  font-style: italic;
  font-weight: 800;
  white-space: nowrap;
}

.barcode-form {
  min-width: 0;
}

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

.cart-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 106px;
  gap: 9px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-tools .search,
.cart-tools .secondary-button {
  min-height: 44px;
}

.cart-tools .search input {
  min-height: 42px;
}

.cart-tools .secondary-button {
  padding: 0 10px;
  white-space: nowrap;
}

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

.pos-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 190px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 900;
}

.product-card {
  position: relative;
  min-height: 178px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 54, 110, 0.07);
}

.page-pos .product-card,
.page-stock-import .product-card,
.page-stock-export .product-card,
.page-transfers .product-card {
  min-height: 248px;
}

.page-pos .product-card .product-visual,
.page-stock-import .product-card .product-visual,
.page-stock-export .product-card .product-visual,
.page-transfers .product-card .product-visual {
  width: clamp(150px, 52%, 190px);
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto 12px;
  background: #f8fafc;
}

.page-pos .product-card .product-visual--photo img,
.page-stock-import .product-card .product-visual--photo img,
.page-stock-export .product-card .product-visual--photo img,
.page-transfers .product-card .product-visual--photo img {
  position: absolute;
  inset: 6px;
  display: block;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  padding: 0;
  object-fit: contain;
}

.product-card.is-out-of-stock {
  border-color: #fecaca;
  background:
    linear-gradient(135deg, rgba(255, 247, 247, 0.94), rgba(255, 255, 255, 0.9)),
    #fff;
  box-shadow: 0 10px 22px rgba(193, 18, 31, 0.08);
}

.product-card-form {
  display: block;
}

.product-card-form button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.product-card-form button:disabled {
  cursor: not-allowed;
}

.product-card.is-out-of-stock .product-visual,
.product-card.is-out-of-stock h3,
.product-card.is-out-of-stock p,
.product-card.is-out-of-stock .product-card-meta strong {
  opacity: 0.52;
}

.stock-soldout-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  color: #b91c1c;
  background: #fff1f2;
  box-shadow: 0 8px 16px rgba(185, 28, 28, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.stock-empty-text {
  color: #c1121f !important;
}

.product-card h3 {
  margin: 11px 0 3px;
  font-size: 14px;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.product-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
}

.product-card-meta strong {
  color: var(--blue-700);
}

.product-card-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 82px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
}

.product-visual span,
.product-visual::before,
.product-visual::after {
  content: "";
  display: block;
}

.product-visual span {
  width: 74px;
  height: 46px;
  transform: skewY(-8deg) rotate(-4deg);
  border: 1px solid rgba(121, 81, 42, 0.18);
  border-radius: 3px;
  background: linear-gradient(135deg, #d58a37, #f5bd72 50%, #be772b);
  box-shadow: inset 0 8px 0 rgba(255, 255, 255, 0.18), 0 13px 20px rgba(135, 82, 24, 0.16);
}

.product-visual::before {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, #fff 0 36%, #c99b5e 37% 61%, #a66f32 62%);
}

.product-visual--tape-clear span,
.product-visual--tape-brown span {
  width: 0;
  height: 0;
  opacity: 0;
}

.product-visual--tape-clear::before,
.product-visual--tape-brown::before {
  opacity: 1;
}

.product-visual--tape-clear::before {
  background: radial-gradient(circle, #fff 0 36%, #d7c5a9 37% 61%, #b99a6c 62%);
}

.product-visual--mailer span,
.product-visual--poly span,
.product-visual--bubble span {
  width: 82px;
  height: 52px;
  transform: rotate(-6deg);
  background: linear-gradient(135deg, #f9fbff, #dce7f6);
  border: 1px solid #d4dfef;
}

.product-visual--bubble span {
  background:
    radial-gradient(circle, rgba(255,255,255,.9) 0 3px, transparent 4px) 0 0 / 14px 14px,
    linear-gradient(135deg, #f8fbff, #d7e3ef);
}

.product-visual--photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.cart-section,
.checkout-section {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.cart-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5edf7;
}

.cart-section-title span {
  color: #172033;
  font-size: 13px;
  font-weight: 900;
}

.cart-section-title small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cart-list {
  display: grid;
  gap: 7px;
  max-height: 352px;
  overflow: auto;
}

.cart-row {
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.cart-row:last-child {
  padding-bottom: 7px;
}

.cart-row small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
  font-size: 11px;
}

.cart-row > div > strong {
  font-size: 13px;
}

.cart-row > strong {
  font-size: 13px;
}

.row-number {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.qty-control form {
  display: contents;
}

.qty-control input {
  width: 40px;
  height: 26px;
  padding: 0;
  border: 0;
  border-inline: 1px solid var(--line);
  color: #172033;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.qty-control button {
  width: 26px;
  height: 26px;
  border: 0;
  background: #f8fbff;
  font-weight: 900;
}

.qty-control span {
  min-width: 30px;
  text-align: center;
  font-weight: 900;
}

.checkout-box {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.checkout-box label,
.promotion-picker label,
.special-discount-form label,
.checkout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-section--discount {
  background: #fffaf0;
  border-color: #fed7aa;
}

.checkout-section--discount summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.checkout-section--discount summary::-webkit-details-marker {
  display: none;
}

.checkout-section--discount summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--blue-700);
  background: #eff6ff;
  font-weight: 900;
}

.checkout-section--discount[open] summary::after {
  content: "-";
}

.checkout-section--discount summary span {
  color: #172033;
  font-size: 13px;
  font-weight: 900;
}

.checkout-section--discount summary strong {
  margin-left: auto;
  font-size: 13px;
}

.checkout-section--discount .cart-section-title {
  border-color: #fed7aa;
}

.discount-panel {
  display: grid;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid #fed7aa;
}

.checkout-section--summary {
  background: #f7fbff;
  border-color: #bfdbfe;
}

.checkout-section--summary .cart-section-title {
  border-color: #bfdbfe;
}

.checkout-row span {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.checkout-row strong {
  font-size: 13px;
}

.checkout-box input,
.special-discount-form input,
.promotion-picker select,
.toolbar input,
.toolbar select,
.field input,
.field select,
.field textarea {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checkout-box input {
  width: 110px;
  text-align: right;
}

.import-checkout-box {
  gap: 10px;
}

.import-bill-extra {
  background: #fff;
}

.import-bill-extra .mini-link {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.import-meta-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue-700) !important;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.import-bill-extra .stock-form.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.import-bill-extra .field {
  display: grid;
  gap: 6px;
}

.import-bill-extra .field span,
.import-checkout-form .field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.import-bill-extra input,
.import-checkout-form input {
  width: 100%;
}

.import-bill-extra input {
  text-align: right;
  font-weight: 900;
}

.import-meta-preview {
  display: grid;
  gap: 7px;
}

.import-meta-preview div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: #f8fbff;
}

.import-meta-preview span,
.import-note-preview {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.import-meta-preview strong {
  font-size: 13px;
  text-align: right;
  word-break: break-word;
}

.import-note-preview {
  min-height: 34px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f8fbff;
  line-height: 1.35;
}

.import-meta-form input {
  width: 100%;
}

.import-meta-form select {
  width: 100%;
}

.import-meta-form .field {
  margin-bottom: 0;
}

.import-supplier-link {
  justify-self: start;
}

.import-supplier-empty {
  margin: 0;
}

.import-checkout-form .field {
  margin-bottom: 10px;
}

.special-discount-form input {
  width: 110px;
  text-align: right;
  font-weight: 900;
}

.promotion-picker select {
  width: min(230px, 100%);
  font-size: 13px;
  font-weight: 800;
}

.promotion-picker select:disabled {
  color: var(--muted);
  background: #f8fbff;
}

.total {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.total strong {
  color: var(--blue-700);
  font-size: 24px;
}

.pay-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pay-actions form {
  min-width: 0;
}

.pay-actions button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue-700);
  font-size: 13px;
  font-weight: 900;
}

.pay-actions .cash { background: #22c55e; }
.pay-actions .credit { background: #334155; }

.toolbar {
  justify-content: flex-start;
}

.product-list-head {
  align-items: center;
  flex-wrap: wrap;
}

.product-filter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  margin: 0 0 0 auto;
  gap: 8px;
}

.product-filter .search {
  width: min(360px, 38vw);
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 54, 110, 0.04);
}

.product-filter select {
  min-height: 40px;
  min-width: 168px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 54, 110, 0.04);
}

.product-filter .secondary-button {
  min-height: 40px;
  border-color: var(--blue-700);
  color: var(--blue-700);
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 54, 110, 0.04);
}

.clear-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.clear-button:hover {
  color: var(--blue-700);
  background: var(--blue-100);
}

.toolbar .search {
  width: min(420px, 100%);
}

.sales-filter {
  display: grid;
  grid-template-columns: minmax(160px, 200px) minmax(190px, 240px) minmax(220px, 280px) auto;
  align-items: end;
  justify-content: start;
  column-gap: 10px;
  row-gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.sales-filter .field {
  min-width: 0;
  margin-bottom: 0;
  gap: 6px;
}

.sales-filter .field select,
.sales-filter .field input {
  width: 100%;
  min-width: 0;
  background: #fff;
}

.sales-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.sales-filter-actions .primary-button,
.sales-filter-actions .clear-button {
  min-height: 40px;
  white-space: nowrap;
}

.import-history-filter {
  grid-template-columns: minmax(130px, 170px) minmax(280px, 1fr) minmax(110px, 130px) auto;
  align-items: end;
  padding: 10px;
  margin-bottom: 12px;
}

.import-history-filter .field {
  gap: 4px;
}

.import-history-filter .field span {
  font-size: 11px;
}

.import-history-filter .field select,
.import-history-filter .field input {
  min-height: 36px;
}

.import-history-filter .sales-filter-actions {
  min-height: 36px;
}

.import-history-filter .sales-filter-actions .primary-button,
.import-history-filter .sales-filter-actions .clear-button {
  min-height: 36px;
  padding-inline: 14px;
}

.reports-filter {
  grid-template-columns: minmax(150px, 180px) minmax(150px, 180px) minmax(220px, 280px) auto;
  margin-bottom: 0;
}

.report-filter-panel {
  margin-bottom: 16px;
  padding: 14px;
}

.report-filter-panel .sales-filter {
  padding: 0;
  border: 0;
  background: transparent;
}

.report-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
}

.report-heading span,
.report-heading p {
  color: var(--muted);
}

.report-heading span {
  display: block;
  font-size: 12px;
  font-weight: 900;
}

.report-heading h2 {
  margin: 3px 0;
  color: var(--blue-700);
  font-size: 24px;
  letter-spacing: 0;
}

.report-heading p {
  margin: 0;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.report-chart-panel,
.report-wide {
  grid-column: span 2;
}

.report-payment-list {
  display: grid;
  gap: 10px;
}

.report-payment-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.report-payment-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.report-payment-list strong {
  color: var(--blue-700);
}

.data-table tfoot td {
  border-top: 2px solid #d8e6f7;
  color: #172033;
  background: #f8fbff;
  font-weight: 900;
}

.product-list-head .product-filter .search {
  width: min(360px, 38vw);
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.per-page-form label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.per-page-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.per-page-form select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.pagination a {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.pagination a.active {
  border-color: var(--blue-700);
  color: #fff;
  background: var(--blue-700);
}

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

.product-name .product-visual {
  flex: 0 0 44px;
  height: 34px;
}

.page-products .product-name .product-visual {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  background: #f8fafc;
}

.page-products .product-name .product-visual--photo img {
  position: absolute;
  inset: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  padding: 0;
  object-fit: contain;
}

.product-name .product-visual span {
  width: 30px;
  height: 20px;
}

.product-name .product-visual::before {
  width: 28px;
  height: 28px;
}

.icon-more {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #edf6ff;
  color: var(--blue-700);
  font-weight: 900;
}

.split-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field span {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.field small.is-error {
  color: #b91c1c;
}

.form-help {
  margin: -4px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.form-help.is-error {
  color: #b91c1c;
}

.barcode-preview {
  display: grid;
  gap: 6px;
  align-self: stretch;
  min-height: 76px;
  padding: 12px 14px;
  border: 1px dashed #b7c7dc;
  border-radius: 8px;
  background: #f8fbff;
}

.barcode-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.barcode-preview strong {
  color: var(--blue-700);
  font-size: 24px;
  letter-spacing: 0;
  line-height: 1;
}

.barcode-preview small {
  color: var(--muted);
}

.barcode-preview--simple {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
}

.barcode-preview--simple strong {
  font-size: 28px;
}

.product-image-manager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-self: stretch;
}

.product-image-manager > div {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.product-form--modal .product-image-manager > div {
  min-height: 150px;
}

.product-image-manager span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.product-image-manager .product-visual,
.product-image-preview img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}

.product-form--modal .product-image-manager .product-visual,
.product-form--modal .product-image-preview img {
  height: auto;
}

.product-image-preview img {
  display: block;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.product-image-manager .product-visual {
  max-width: 180px;
  margin: 0 auto;
  background: #f8fafc;
}

.product-form--modal .product-image-manager .product-visual--photo img {
  position: absolute;
  inset: 6px;
  display: block;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  padding: 0;
  object-fit: contain;
}

.product-form--modal .product-image-preview img {
  max-width: 180px;
  margin: 0 auto;
}

.product-image-preview[hidden] {
  display: none;
}

.product-remove-image {
  justify-content: space-between;
}

.product-form-section .checkbox-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.product-form-section .checkbox-field:hover {
  border-color: #9fc4ff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.product-form-section .checkbox-field input[type="checkbox"] {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  min-height: 26px;
  height: 26px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  appearance: none;
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.product-form-section .checkbox-field input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.24);
  transition: transform 160ms ease;
}

.product-form-section .checkbox-field input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #1f8bff, #0757d8);
  box-shadow: 0 0 0 3px rgba(31, 139, 255, 0.14);
}

.product-form-section .checkbox-field input[type="checkbox"]:checked::before {
  transform: translateX(22px);
}

.product-form-section .checkbox-field input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(31, 139, 255, 0.24);
  outline-offset: 3px;
}

.field textarea {
  min-height: 106px;
  padding-top: 10px;
}

@media (max-width: 1080px) {
  .product-form--modal {
    grid-template-columns: 1fr;
  }
}

.stock-form {
  display: grid;
  gap: 12px;
}

.stock-form.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stock-form.compact .field {
  margin-bottom: 0;
}

.import-items-grid {
  display: grid;
  gap: 10px;
}

.import-cost-inline {
  display: grid;
  grid-template-columns: minmax(100px, 1fr);
  gap: 6px;
}

.import-cost-inline label,
.import-cart-controls > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.import-cost-inline span,
.import-cart-controls > div > span,
.import-cart-total span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.import-cost-inline input {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.import-cart-row {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.import-cart-head {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 32px;
  align-items: start;
  gap: 8px;
}

.import-cart-head strong {
  display: block;
  color: #172033;
  font-size: 13px;
  line-height: 1.3;
}

.import-cart-head small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.import-cart-controls {
  display: grid;
  grid-template-columns: 98px minmax(88px, 1fr) minmax(82px, auto);
  gap: 8px;
  align-items: start;
}

.import-cart-controls .qty-control {
  width: max-content;
}

.import-cart-total {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 32px;
  align-content: start;
  padding: 0 0 2px;
  border-top: 0;
  text-align: right;
}

.import-cart-total strong {
  color: var(--blue-700);
  font-size: 14px;
  line-height: 32px;
}

.import-item-row {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(90px, 0.6fr) minmax(180px, 1.4fr);
  gap: 10px;
  align-items: end;
}

.import-item-row .field {
  margin-bottom: 0;
}

.page-stock-import .content {
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.92), rgba(246, 236, 224, 0.76)),
    var(--bg);
}

.page-stock-import .stock-import-layout {
  --import-brown: #8a5a32;
  --import-brown-dark: #6f431f;
  --import-brown-soft: #f7eadc;
  --import-brown-pale: #fff8f0;
  --import-brown-line: #ead4bd;
}

.page-stock-import .pos-categories,
.page-stock-import .cart-panel,
.page-stock-import .panel,
.page-stock-import .checkout-section,
.page-stock-import .modal-card {
  border-color: var(--import-brown-line, #ead4bd);
  background: rgba(255, 250, 244, 0.94);
  box-shadow: 0 12px 28px rgba(124, 84, 45, 0.09);
}

.page-stock-import .pos-categories h2,
.page-stock-import .panel-head h2,
.page-stock-import .cart-section-title span,
.page-stock-import .checkout-row strong,
.page-stock-import .import-cart-total strong {
  color: var(--import-brown-dark, #6f431f);
}

.page-stock-import .pos-categories a {
  color: #5f4734;
}

.page-stock-import .pos-categories a.active,
.page-stock-import .pos-categories a:hover {
  color: #fff;
  background: linear-gradient(180deg, #a96f3f, #75451f);
}

.page-stock-import .search {
  border-color: var(--import-brown-line, #ead4bd);
  background: #fffaf4;
  box-shadow: 0 8px 18px rgba(124, 84, 45, 0.06);
}

.page-stock-import .search svg {
  color: #9a6a43;
}

.page-stock-import .product-card {
  border-color: var(--import-brown-line, #ead4bd);
  background: #fffaf4;
  box-shadow: 0 12px 24px rgba(124, 84, 45, 0.09);
}

.page-stock-import .product-card:hover {
  border-color: #cfaa82;
  box-shadow: 0 16px 32px rgba(124, 84, 45, 0.14);
}

.page-stock-import .product-visual {
  background: linear-gradient(135deg, #fff3e3, #fffaf4);
}

.page-stock-import .product-card-meta strong,
.page-stock-import .price-lock-text {
  color: #8a5a32;
}

.page-stock-import .cart-tools {
  border-color: var(--import-brown-line, #ead4bd);
}

.page-stock-import .import-cart-row,
.page-stock-import .import-meta-preview div,
.page-stock-import .import-note-preview,
.page-stock-import .checkout-section--summary,
.page-stock-import .pos-empty,
.page-stock-import .receipt-mini {
  border-color: var(--import-brown-line, #ead4bd);
  background: var(--import-brown-pale, #fff8f0);
}

.page-stock-import .row-number,
.page-stock-import .icon-more {
  color: #8a5a32;
  background: #f4e2cf;
}

.page-stock-import .qty-control {
  border-color: #e4c7aa;
  background: #fffaf4;
}

.page-stock-import .qty-control button {
  color: #7a4b27;
  background: #f6e6d5;
}

.page-stock-import .import-cost-inline input,
.page-stock-import .field input,
.page-stock-import .field select,
.page-stock-import .field textarea,
.page-stock-import .toolbar input,
.page-stock-import .toolbar select {
  border-color: #e4c7aa;
  background: #fffdf9;
}

.page-stock-import .import-meta-add,
.page-stock-import .primary-button,
.page-stock-import .pagination a.active {
  border-color: #7b4a24;
  background: linear-gradient(180deg, #a96f3f, #75451f);
  box-shadow: 0 10px 18px rgba(124, 84, 45, 0.16);
}

.page-stock-import .secondary-button,
.page-stock-import .clear-button,
.page-stock-import .mini-link {
  border-color: #e4c7aa;
  color: #75451f;
  background: #fff5ea;
}

.page-stock-import .data-table th {
  background: #f5e6d6;
  color: #5f3b20;
}

.page-stock-import .data-table td,
.page-stock-import .data-table tfoot td {
  border-color: #ead4bd;
}

.page-stock-import .data-table tfoot td {
  background: #fff4e8;
  color: #6f431f;
}

.page-stock-export .content,
.page-transfers .content {
  background:
    linear-gradient(180deg, rgba(246, 253, 249, 0.94), rgba(225, 243, 232, 0.78)),
    var(--bg);
}

.page-stock-export .stock-export-layout,
.page-transfers .stock-transfer-layout {
  --export-green: #138a55;
  --export-green-dark: #0f6b43;
  --export-green-soft: #dff5e9;
  --export-green-pale: #f4fbf7;
  --export-green-line: #bfe6ce;
}

.page-stock-export .pos-categories,
.page-stock-export .cart-panel,
.page-stock-export .panel,
.page-stock-export .checkout-section,
.page-stock-export .modal-card,
.page-transfers .pos-categories,
.page-transfers .cart-panel,
.page-transfers .panel,
.page-transfers .checkout-section,
.page-transfers .modal-card {
  border-color: var(--export-green-line, #bfe6ce);
  background: rgba(247, 253, 249, 0.95);
  box-shadow: 0 12px 28px rgba(22, 101, 52, 0.08);
}

.page-stock-export .pos-categories h2,
.page-stock-export .panel-head h2,
.page-stock-export .cart-section-title span,
.page-stock-export .checkout-row strong,
.page-stock-export .import-cart-total strong,
.page-transfers .pos-categories h2,
.page-transfers .panel-head h2,
.page-transfers .cart-section-title span,
.page-transfers .checkout-row strong,
.page-transfers .import-cart-total strong {
  color: var(--export-green-dark, #0f6b43);
}

.page-stock-export .pos-categories a,
.page-transfers .pos-categories a {
  color: #305743;
}

.page-stock-export .pos-categories a.active,
.page-stock-export .pos-categories a:hover,
.page-transfers .pos-categories a.active,
.page-transfers .pos-categories a:hover {
  color: #fff;
  background: linear-gradient(180deg, #22a66a, #0f6b43);
}

.page-stock-export .search,
.page-transfers .search {
  border-color: var(--export-green-line, #bfe6ce);
  background: #f7fdf9;
  box-shadow: 0 8px 18px rgba(22, 101, 52, 0.05);
}

.page-stock-export .search svg,
.page-transfers .search svg {
  color: #198754;
}

.page-stock-export .product-card,
.page-transfers .product-card {
  border-color: var(--export-green-line, #bfe6ce);
  background: #f7fdf9;
  box-shadow: 0 12px 24px rgba(22, 101, 52, 0.08);
}

.page-stock-export .product-card:hover,
.page-transfers .product-card:hover {
  border-color: #84d4a4;
  box-shadow: 0 16px 32px rgba(22, 101, 52, 0.12);
}

.page-stock-export .product-card-form button:disabled,
.page-transfers .product-card-form button:disabled {
  opacity: 0.48;
}

.page-stock-export .product-visual,
.page-transfers .product-visual {
  background: linear-gradient(135deg, #e8f8ee, #ffffff);
}

.page-stock-export .product-card-meta strong,
.page-stock-export .price-lock-text,
.page-transfers .product-card-meta strong,
.page-transfers .price-lock-text {
  color: #138a55;
}

.page-stock-export .cart-tools,
.page-transfers .cart-tools {
  border-color: var(--export-green-line, #bfe6ce);
}

.page-stock-export .import-cart-row,
.page-stock-export .import-meta-preview div,
.page-stock-export .import-note-preview,
.page-stock-export .checkout-section--summary,
.page-stock-export .pos-empty,
.page-stock-export .receipt-mini,
.page-transfers .import-cart-row,
.page-transfers .import-meta-preview div,
.page-transfers .import-note-preview,
.page-transfers .checkout-section--summary,
.page-transfers .pos-empty,
.page-transfers .receipt-mini {
  border-color: var(--export-green-line, #bfe6ce);
  background: var(--export-green-pale, #f4fbf7);
}

.page-stock-export .row-number,
.page-stock-export .icon-more,
.page-transfers .row-number,
.page-transfers .icon-more {
  color: #138a55;
  background: #dff5e9;
}

.page-stock-export .qty-control,
.page-transfers .qty-control {
  border-color: #a9ddb9;
  background: #f7fdf9;
}

.page-stock-export .qty-control button,
.page-transfers .qty-control button {
  color: #0f6b43;
  background: #dff5e9;
}

.page-stock-export .import-cost-inline input,
.page-stock-export .field input,
.page-stock-export .field select,
.page-stock-export .field textarea,
.page-stock-export .toolbar input,
.page-stock-export .toolbar select,
.page-transfers .import-cost-inline input,
.page-transfers .field input,
.page-transfers .field select,
.page-transfers .field textarea,
.page-transfers .toolbar input,
.page-transfers .toolbar select {
  border-color: #a9ddb9;
  background: #fcfffd;
}

.page-stock-export .import-meta-add,
.page-stock-export .primary-button,
.page-stock-export .pagination a.active,
.page-transfers .import-meta-add,
.page-transfers .primary-button,
.page-transfers .pagination a.active {
  border-color: #0f6b43;
  background: linear-gradient(180deg, #22a66a, #0f6b43);
  box-shadow: 0 10px 18px rgba(22, 101, 52, 0.14);
}

.page-stock-export .secondary-button,
.page-stock-export .clear-button,
.page-stock-export .mini-link,
.page-transfers .secondary-button,
.page-transfers .clear-button,
.page-transfers .mini-link {
  border-color: #a9ddb9;
  color: #0f6b43;
  background: #effaf3;
}

.page-stock-export .data-table th,
.page-transfers .data-table th {
  background: #dcf5e7;
  color: #0f5132;
}

.page-stock-export .data-table td,
.page-stock-export .data-table tfoot td,
.page-transfers .data-table td,
.page-transfers .data-table tfoot td {
  border-color: #c7ead3;
}

.page-stock-export .data-table tfoot td,
.page-transfers .data-table tfoot td {
  background: #eefaf3;
  color: #0f6b43;
}

.transfer-meta-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.transfer-meta-card .field {
  margin-bottom: 0;
}

.transfer-meta-card .field-wide {
  grid-column: 1 / -1;
}

.transfer-source-lock {
  display: grid;
  gap: 3px;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid #a9ddb9;
  border-radius: 8px;
  background: #effaf3;
}

.transfer-source-lock span,
.transfer-source-lock small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.transfer-source-lock strong {
  color: #0f6b43;
  font-size: 14px;
}

.page-stock-import,
.page-stock-export,
.page-transfers,
.page-stock-import .stock-import-layout,
.page-stock-export .stock-export-layout,
.page-transfers .stock-transfer-layout {
  --document-pos-line: var(--line);
  --document-pos-panel: #fff;
  --document-pos-soft: #f8fbff;
  --document-pos-blue: var(--blue-700);
}

.page-stock-import .content,
.page-stock-export .content,
.page-transfers .content {
  background: var(--bg);
}

.page-stock-import .pos-categories,
.page-stock-import .cart-panel,
.page-stock-import .panel,
.page-stock-import .checkout-section,
.page-stock-import .modal-card,
.page-stock-export .pos-categories,
.page-stock-export .cart-panel,
.page-stock-export .panel,
.page-stock-export .checkout-section,
.page-stock-export .modal-card,
.page-transfers .pos-categories,
.page-transfers .cart-panel,
.page-transfers .panel,
.page-transfers .checkout-section,
.page-transfers .modal-card {
  border-color: var(--document-pos-line);
  background: var(--document-pos-panel);
  box-shadow: 0 10px 22px rgba(15, 54, 110, 0.07);
}

.page-stock-import .pos-categories h2,
.page-stock-import .panel-head h2,
.page-stock-import .cart-section-title span,
.page-stock-import .checkout-row strong,
.page-stock-import .import-cart-total strong,
.page-stock-export .pos-categories h2,
.page-stock-export .panel-head h2,
.page-stock-export .cart-section-title span,
.page-stock-export .checkout-row strong,
.page-stock-export .import-cart-total strong,
.page-transfers .pos-categories h2,
.page-transfers .panel-head h2,
.page-transfers .cart-section-title span,
.page-transfers .checkout-row strong,
.page-transfers .import-cart-total strong {
  color: var(--ink);
}

.page-stock-import .pos-categories a,
.page-stock-export .pos-categories a,
.page-transfers .pos-categories a {
  color: var(--ink);
}

.page-stock-import .pos-categories a.active,
.page-stock-import .pos-categories a:hover,
.page-stock-export .pos-categories a.active,
.page-stock-export .pos-categories a:hover,
.page-transfers .pos-categories a.active,
.page-transfers .pos-categories a:hover {
  color: #fff;
  background: var(--document-pos-blue);
}

.page-stock-import .search,
.page-stock-export .search,
.page-transfers .search {
  border-color: var(--document-pos-line);
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 54, 110, 0.06);
}

.page-stock-import .search svg,
.page-stock-export .search svg,
.page-transfers .search svg {
  color: var(--blue-700);
}

.page-stock-import .product-card,
.page-stock-export .product-card,
.page-transfers .product-card {
  border-color: var(--document-pos-line);
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 54, 110, 0.07);
}

.page-stock-import .product-card:hover,
.page-stock-export .product-card:hover,
.page-transfers .product-card:hover {
  border-color: #bcd4f3;
  box-shadow: 0 14px 28px rgba(15, 54, 110, 0.11);
}

.page-stock-import .product-visual,
.page-stock-export .product-visual,
.page-transfers .product-visual {
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
}

.page-stock-import .product-card-meta strong,
.page-stock-import .price-lock-text,
.page-stock-export .product-card-meta strong,
.page-stock-export .price-lock-text,
.page-transfers .product-card-meta strong,
.page-transfers .price-lock-text {
  color: var(--blue-700);
}

.page-stock-import .cart-tools,
.page-stock-export .cart-tools,
.page-transfers .cart-tools {
  border-color: var(--document-pos-line);
}

.page-stock-import .import-cart-row,
.page-stock-import .import-meta-preview div,
.page-stock-import .import-note-preview,
.page-stock-import .checkout-section--summary,
.page-stock-import .pos-empty,
.page-stock-import .receipt-mini,
.page-stock-export .import-cart-row,
.page-stock-export .import-meta-preview div,
.page-stock-export .import-note-preview,
.page-stock-export .checkout-section--summary,
.page-stock-export .pos-empty,
.page-stock-export .receipt-mini,
.page-transfers .import-cart-row,
.page-transfers .import-meta-preview div,
.page-transfers .import-note-preview,
.page-transfers .checkout-section--summary,
.page-transfers .pos-empty,
.page-transfers .receipt-mini {
  border-color: var(--document-pos-line);
  background: var(--document-pos-soft);
}

.page-stock-import .row-number,
.page-stock-import .icon-more,
.page-stock-export .row-number,
.page-stock-export .icon-more,
.page-transfers .row-number,
.page-transfers .icon-more {
  color: var(--blue-700);
  background: #e7f0ff;
}

.page-stock-import .qty-control,
.page-stock-export .qty-control,
.page-transfers .qty-control {
  border-color: var(--document-pos-line);
  background: #fff;
}

.page-stock-import .qty-control button,
.page-stock-export .qty-control button,
.page-transfers .qty-control button {
  color: var(--blue-700);
  background: #eef5ff;
}

.page-stock-import .import-cost-inline input,
.page-stock-import .field input,
.page-stock-import .field select,
.page-stock-import .field textarea,
.page-stock-import .toolbar input,
.page-stock-import .toolbar select,
.page-stock-export .import-cost-inline input,
.page-stock-export .field input,
.page-stock-export .field select,
.page-stock-export .field textarea,
.page-stock-export .toolbar input,
.page-stock-export .toolbar select,
.page-transfers .import-cost-inline input,
.page-transfers .field input,
.page-transfers .field select,
.page-transfers .field textarea,
.page-transfers .toolbar input,
.page-transfers .toolbar select {
  border-color: var(--document-pos-line);
  background: #fff;
}

.page-stock-import .import-meta-add,
.page-stock-import .primary-button,
.page-stock-import .pagination a.active,
.page-stock-export .import-meta-add,
.page-stock-export .primary-button,
.page-stock-export .pagination a.active,
.page-transfers .import-meta-add,
.page-transfers .primary-button,
.page-transfers .pagination a.active {
  border-color: var(--blue-700);
  background: var(--blue-700);
  box-shadow: 0 10px 18px rgba(9, 89, 220, 0.18);
}

.page-stock-import .secondary-button,
.page-stock-import .clear-button,
.page-stock-import .mini-link,
.page-stock-export .secondary-button,
.page-stock-export .clear-button,
.page-stock-export .mini-link,
.page-transfers .secondary-button,
.page-transfers .clear-button,
.page-transfers .mini-link {
  border-color: var(--document-pos-line);
  color: var(--blue-700);
  background: #fff;
}

.page-stock-import .data-table th,
.page-stock-export .data-table th,
.page-transfers .data-table th {
  color: var(--muted);
  background: #f8fbff;
}

.page-stock-import .data-table td,
.page-stock-import .data-table tfoot td,
.page-stock-export .data-table td,
.page-stock-export .data-table tfoot td,
.page-transfers .data-table td,
.page-transfers .data-table tfoot td {
  border-color: var(--document-pos-line);
}

.page-stock-import .data-table tfoot td,
.page-stock-export .data-table tfoot td,
.page-transfers .data-table tfoot td {
  color: var(--ink);
  background: #f8fbff;
}

.page-transfers .transfer-source-lock {
  border-color: var(--document-pos-line);
  background: #f8fbff;
}

.page-transfers .transfer-source-lock strong {
  color: var(--ink);
}

.stock-table-wrap {
  margin-top: 16px;
}

.stock-threshold-link {
  color: var(--ink);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.stock-threshold-link:hover {
  color: var(--blue-700);
}

.stock-threshold-modal {
  width: min(460px, 100%);
}

.stock-threshold-form {
  display: grid;
  gap: 12px;
  padding: 18px 20px 20px;
}

.stock-threshold-form .field {
  margin-bottom: 0;
}

.stock-threshold-form input {
  width: 96px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
  text-align: right;
}

.shift-confirm-card {
  width: min(460px, 100%);
}

.shift-confirm-body {
  display: grid;
  gap: 14px;
  padding: 18px 20px 20px;
}

.shift-confirm-body p {
  margin: 0;
  color: #334155;
  font-weight: 800;
  line-height: 1.5;
}

.shift-confirm-body .modal-actions {
  padding-top: 2px;
}

.shift-confirm-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.shift-confirm-summary[hidden] {
  display: none;
}

.shift-confirm-summary div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.shift-confirm-summary div:first-child {
  grid-column: 1 / -1;
}

.shift-confirm-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.shift-confirm-summary dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.section-gap {
  margin-top: 16px;
}

.shift-detail-actions {
  justify-content: flex-end;
  margin-bottom: 16px;
}

.shift-page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
}

.shift-page-hero span,
.shift-page-hero p {
  color: var(--muted);
}

.shift-page-hero span {
  display: block;
  font-size: 12px;
  font-weight: 900;
}

.shift-page-hero h2 {
  margin: 3px 0;
  color: var(--blue-700);
  font-size: 24px;
  letter-spacing: 0;
}

.shift-page-hero p {
  margin: 0;
}

.shift-page-hero > strong {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 8px;
  background: #e2e8f0;
  color: #475569;
  font-size: 13px;
}

.shift-page-hero > strong.is-open {
  background: #dcfce7;
  color: #166534;
}

.shift-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.shift-stat-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.shift-stat-grid span,
.shift-stat-grid strong,
.shift-stat-grid small {
  display: block;
}

.shift-stat-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.shift-stat-grid strong {
  margin-top: 5px;
  color: var(--blue-700);
  font-size: 18px;
}

.shift-stat-grid small {
  margin-top: 3px;
  color: var(--muted);
}

.shift-workspace {
  display: grid;
  grid-template-columns: minmax(430px, 1.1fr) minmax(340px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.shift-action-panel,
.shift-summary-panel {
  min-height: 100%;
}

.shift-side-stack {
  display: grid;
  gap: 16px;
}

.shift-open-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.shift-open-summary div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.shift-open-summary span,
.shift-open-summary strong {
  display: block;
}

.shift-open-summary span {
  color: var(--muted);
  font-size: 12px;
}

.shift-open-summary strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
}

.shift-products-panel .panel-head {
  align-items: flex-start;
}

.shift-products-scroll {
  max-height: 290px;
  overflow: auto;
}

.shift-products-table {
  font-size: 12px;
}

.shift-products-table th:first-child,
.shift-products-table td:first-child {
  width: 48px;
}

.shift-products-table th:nth-child(3),
.shift-products-table td:nth-child(3),
.shift-products-table th:nth-child(4),
.shift-products-table td:nth-child(4) {
  text-align: right;
}

.shift-products-table td strong,
.shift-products-table td small {
  display: block;
}

.shift-products-table td small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.shift-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.shift-report-head h2 {
  margin: 4px 0;
  color: var(--blue-700);
  font-size: 28px;
  letter-spacing: 0;
}

.shift-report-head p {
  margin: 0;
  color: var(--muted);
}

.shift-count-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.shift-count-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.shift-count-head-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.shift-count-print-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.shift-count-head strong,
.shift-count-head span {
  display: block;
}

.shift-count-head strong {
  color: var(--blue-700);
  font-size: 14px;
}

.shift-count-head span,
.shift-count-head small,
.shift-count-box p,
.shift-count-table td span {
  color: var(--muted);
  font-size: 12px;
}

.shift-count-head small {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: var(--blue-700);
  font-weight: 900;
}

.shift-count-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.shift-count-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.shift-count-table th,
.shift-count-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.shift-count-table th {
  background: #eff6ff;
  color: #334155;
  font-weight: 900;
}

.shift-count-table th:nth-child(2),
.shift-count-table td:nth-child(2) {
  width: 82px;
  text-align: right;
}

.shift-count-table th:nth-child(3),
.shift-count-table td:nth-child(3) {
  width: 94px;
  text-align: right;
}

.shift-count-table td strong {
  display: block;
  color: var(--ink);
}

.shift-count-table td span {
  display: block;
  margin-top: 2px;
}

.shift-count-table input {
  width: 76px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: right;
  font-weight: 900;
}

.shift-count-box p {
  margin: 0;
  line-height: 1.35;
}

.shift-count-check-shell {
  display: none;
}

.shift-count-check-doc {
  min-height: 297mm;
  padding: 26px 34px;
}

.shift-count-check-doc .stock-import-doc-head {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d7dee8;
}

.shift-count-check-doc .stock-import-brand {
  align-items: center;
  gap: 10px;
}

.shift-count-check-doc .stock-import-brand img {
  width: 96px;
}

.shift-count-check-doc .stock-import-brand strong {
  font-size: 17px;
}

.shift-count-check-doc .stock-import-brand p {
  margin-top: 1px;
  font-size: 10px;
}

.shift-count-check-doc .stock-import-doc-title {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.shift-count-check-doc .stock-import-doc-title h1 {
  margin: 0;
  font-size: 20px;
}

.shift-count-check-doc .stock-import-doc-title dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  margin: 0;
  font-size: 11px;
  text-align: left;
}

.shift-count-check-doc .stock-import-doc-title dt {
  color: var(--muted);
  font-weight: 900;
}

.shift-count-check-doc .stock-import-doc-title dd {
  margin: 0;
  font-weight: 900;
}

.shift-count-check-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.shift-count-check-table th:first-child,
.shift-count-check-table td:first-child {
  width: 28px;
  text-align: center;
}

.shift-count-check-table th:nth-child(2),
.shift-count-check-table td:nth-child(2) {
  width: 54px;
  text-align: left;
}

.shift-count-check-table th:nth-child(4),
.shift-count-check-table td:nth-child(4),
.shift-count-check-table th:nth-child(5),
.shift-count-check-table td:nth-child(5) {
  width: 48px;
  text-align: right;
}

.shift-count-check-table th,
.shift-count-check-table td {
  padding: 4px 5px;
  font-size: 10px;
}

.shift-count-check-table td {
  height: 22px;
}

.shift-count-check-table th:nth-child(3),
.shift-count-check-table td:nth-child(3) {
  text-align: left;
  overflow-wrap: anywhere;
}

.shift-count-check-signatures {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.shift-count-check-signatures div {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 12px;
  align-items: end;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.shift-count-check-signatures span,
.shift-count-check-signatures small {
  border-top: 1px solid #cbd5e1;
  padding-top: 6px;
  text-align: center;
}

.shift-count-check-signatures i {
  display: none;
}

.transfer-search {
  grid-template-columns: minmax(120px, 150px) minmax(120px, 150px) minmax(260px, 1fr) minmax(96px, 120px) auto;
  justify-content: stretch;
  margin-bottom: 14px;
}

.transfer-search .sales-filter-actions {
  justify-content: flex-end;
}

.transfer-doc .stock-import-corner {
  background: #22a66a;
}

.transfer-doc .stock-import-party span,
.transfer-doc .stock-import-doc-meta h2,
.transfer-doc .stock-import-doc-meta dt,
.transfer-doc .stock-import-summary span {
  color: #0f6b43;
}

.transfer-doc-table th:nth-child(5),
.transfer-doc-table td:nth-child(5),
.transfer-doc-table th:nth-child(6),
.transfer-doc-table td:nth-child(6),
.transfer-doc-table th:nth-child(7),
.transfer-doc-table td:nth-child(7) {
  text-align: right;
}

.transfer-doc .receipt-status {
  margin-bottom: 14px;
}

.shift-count-detail-panel {
  width: min(100%, 1060px);
  margin-inline: auto;
}

.shift-count-doc-shell {
  margin-top: 18px;
}

.shift-count-doc {
  gap: 0;
}

.shift-count-doc-grid {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.shift-count-doc-section {
  break-inside: avoid;
  page-break-inside: avoid;
}

.shift-count-doc-section h3 {
  margin: 0 0 4px;
  color: var(--blue-700);
  font-size: 14px;
}

.shift-count-doc-section .shift-count-detail-head {
  margin-bottom: 5px;
}

.shift-count-doc .shift-count-detail-table {
  font-size: 10px;
  line-height: 1.18;
}

.shift-count-doc .shift-count-detail-table th:first-child,
.shift-count-doc .shift-count-detail-table td:first-child {
  width: 30px;
}

.shift-count-doc .shift-count-detail-table th:nth-child(3),
.shift-count-doc .shift-count-detail-table th:nth-child(4),
.shift-count-doc .shift-count-detail-table th:nth-child(5),
.shift-count-doc .shift-count-detail-table td:nth-child(3),
.shift-count-doc .shift-count-detail-table td:nth-child(4),
.shift-count-doc .shift-count-detail-table td:nth-child(5) {
  width: 58px;
}

.shift-count-doc .shift-count-detail-table th:nth-child(6),
.shift-count-doc .shift-count-detail-table td:nth-child(6) {
  width: 54px;
}

.shift-count-doc .shift-count-detail-table th,
.shift-count-doc .shift-count-detail-table td {
  padding: 3px 5px;
  vertical-align: middle;
}

.shift-count-doc .shift-count-detail-table td strong,
.shift-count-doc .shift-count-detail-table td small {
  display: inline;
}

.shift-count-doc .shift-count-detail-table td small {
  margin-top: 0;
  margin-left: 4px;
  font-size: 9px;
  white-space: nowrap;
}

.shift-count-doc .shift-count-detail-table .badge {
  min-height: 20px;
  padding: 3px 7px;
  font-size: 10px;
}

.shift-count-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.shift-count-detail-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.shift-count-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.shift-count-detail-head h3 {
  margin: 0 0 4px;
  color: var(--blue-700);
  font-size: 17px;
}

.shift-count-detail-head span {
  color: var(--muted);
  font-size: 12px;
}

.shift-count-mini-summary {
  flex: 0 0 auto;
  min-width: 70px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eff6ff;
  text-align: center;
}

.shift-count-mini-summary strong,
.shift-count-mini-summary small {
  display: block;
}

.shift-count-mini-summary strong {
  color: var(--blue-700);
  font-size: 15px;
}

.shift-count-mini-summary small {
  color: var(--muted);
  font-size: 11px;
}

.shift-count-result-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shift-count-result-strip span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.shift-count-result-strip .short {
  background: #fee2e2;
  color: #991b1b;
}

.shift-count-result-strip .over {
  background: #fef3c7;
  color: #92400e;
}

.shift-count-detail-table td:nth-child(3),
.shift-count-detail-table td:nth-child(4),
.shift-count-detail-table td:nth-child(5),
.shift-count-detail-table th:nth-child(3),
.shift-count-detail-table th:nth-child(4),
.shift-count-detail-table th:nth-child(5) {
  text-align: right;
}

.shift-count-detail-table td strong,
.shift-count-detail-table td small {
  display: block;
}

.shift-count-detail-table td small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.product-editor {
  margin-bottom: 16px;
}

.product-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.field-wide {
  grid-column: span 2;
}

.checkbox-field {
  align-self: center;
}

.checkbox-field input {
  width: 20px;
  min-height: 20px;
}

.branch-options {
  display: grid;
  gap: 8px;
  align-self: stretch;
}

.branch-options > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.branch-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #334155;
  font-weight: 800;
}

.branch-options input {
  width: 18px;
  min-height: 18px;
}

.branch-check-grid {
  display: grid;
  gap: 8px;
  align-self: stretch;
}

.branch-check-grid > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.branch-check-grid > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.branch-check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: #334155;
  font-weight: 800;
}

.branch-check-grid input {
  width: 18px;
  min-height: 18px;
}

.transfer-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.transfer-items {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.transfer-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.transfer-items-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.button-link {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.transfer-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 38px;
  gap: 10px;
  align-items: end;
}

.icon-only {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.icon-only:hover {
  border-color: #fecaca;
  color: #dc2626;
  background: #fff5f5;
}

.transfer-doc-page {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.transfer-doc {
  width: min(100%, 820px);
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.transfer-doc-head,
.transfer-doc-branches,
.transfer-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.transfer-doc-head {
  align-items: start;
  margin-bottom: 22px;
}

.transfer-doc-head img {
  width: 156px;
}

.transfer-doc-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
  text-align: right;
}

.transfer-doc-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.7;
  text-align: right;
}

.transfer-doc-branches {
  margin-bottom: 18px;
}

.transfer-doc-branches div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.transfer-doc-branches span,
.transfer-doc-branches small,
.transfer-doc-note {
  color: var(--muted);
}

.transfer-doc-table {
  margin-top: 10px;
}

.transfer-doc-summary {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 16px;
  font-size: 18px;
  font-weight: 900;
}

.transfer-doc-note {
  margin: 14px 0 0;
  font-weight: 800;
}

.transfer-signatures {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
  color: #334155;
  font-weight: 900;
  text-align: center;
}

.transfer-signatures span::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 10px;
  background: var(--line);
}

.receipt-mini {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #f8fbff;
}

.tiny-input {
  width: 70px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.receipt-page {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.receipt-58 {
  width: 258px;
  padding: 16px 12px;
  background: #fff;
  box-shadow: var(--shadow);
  color: #111827;
  font-family: "Courier New", monospace;
  font-size: 12px;
}

.receipt-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 auto 8px;
}

.receipt-brand img {
  width: 28px;
  height: 28px;
}

.receipt-brand strong {
  color: #0648bf;
  font-family: Arial, "Helvetica Neue", Tahoma, sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.receipt-58 h2,
.receipt-58 p {
  margin: 0 0 8px;
  text-align: center;
}

.receipt-58 hr {
  border: 0;
  border-top: 1px dashed #94a3b8;
  margin: 10px 0;
}

.receipt-line,
.receipt-total {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.receipt-line span {
  max-width: 142px;
}

.receipt-line small {
  display: block;
  margin-top: 3px;
}

.receipt-total.grand {
  font-size: 15px;
  font-weight: 900;
}

.receipt-status {
  margin: 8px 0;
  padding: 7px 8px;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
}

.receipt-status--voided {
  border: 1px solid #fecdd3;
  color: #be123c;
  background: #fff1f2;
}

.center {
  text-align: center;
}

.receipt-actions {
  display: flex;
  gap: 8px;
}

.stock-import-doc-actions {
  width: min(100%, 860px);
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 10px 0 2px;
}

.stock-import-doc-shell {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.stock-import-doc-shell.shift-count-check-shell {
  display: none;
}

.stock-import-doc {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 860px);
  min-height: 1120px;
  padding: 42px 48px;
  background: #fff;
  box-shadow: var(--shadow);
  color: #111827;
  overflow: visible;
}

.stock-import-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 86px;
  height: 86px;
  background: #c15d62;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.stock-export-doc .stock-import-corner {
  background: #22a66a;
}

.stock-export-doc .stock-import-party span,
.stock-export-doc .stock-import-doc-meta h2,
.stock-export-doc .stock-import-doc-meta dt,
.stock-export-doc .stock-import-summary span {
  color: #0f6b43;
}

.shift-doc .stock-import-corner {
  background: #1267d8;
}

.shift-doc .stock-import-party span,
.shift-doc .stock-import-doc-meta h2,
.shift-doc .stock-import-doc-meta dt,
.shift-doc .stock-import-summary span {
  color: #0b56b3;
}

.stock-import-doc-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 42px;
  align-items: start;
  margin-bottom: 28px;
}

.stock-import-company img {
  width: 272px;
  max-width: 100%;
  margin-bottom: 12px;
}

.stock-import-company p,
.stock-import-party p {
  margin: 0;
  color: #111827;
  font-size: 13px;
  line-height: 1.55;
}

.stock-import-party {
  margin-top: 18px;
}

.stock-import-party span {
  color: #b6575d;
  font-weight: 900;
}

.stock-import-party strong {
  display: block;
  margin: 4px 0 2px;
  font-size: 14px;
}

.stock-import-doc-meta {
  padding-top: 32px;
}

.stock-import-doc-meta h2 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #cbd5e1;
  color: #b6575d;
  text-align: center;
  font-size: 25px;
  font-weight: 800;
}

.stock-import-doc-meta dl {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 7px 16px;
  margin: 0;
  padding: 12px 8px 14px;
  border-bottom: 1px solid #cbd5e1;
  font-size: 13px;
}

.stock-import-doc-meta dt {
  color: #b6575d;
  font-weight: 900;
}

.stock-import-doc-meta dd {
  margin: 0;
  font-weight: 800;
}

.stock-import-doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.stock-import-doc-table th {
  padding: 8px 10px;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  font-weight: 900;
}

.stock-import-doc-table td {
  padding: 10px;
  vertical-align: top;
  border-bottom: 1px solid #e2e8f0;
}

.stock-import-doc-table th:first-child,
.stock-import-doc-table td:first-child {
  width: 42px;
  text-align: center;
}

.stock-import-doc-table th:nth-child(3),
.stock-import-doc-table td:nth-child(3),
.stock-import-doc-table th:nth-child(5),
.stock-import-doc-table td:nth-child(5),
.stock-import-doc-table th:nth-child(6),
.stock-import-doc-table td:nth-child(6) {
  text-align: right;
}

.stock-import-doc-table td strong,
.stock-import-doc-table td span,
.stock-import-doc-table td small {
  display: block;
}

.stock-import-doc-table td span,
.stock-import-doc-table td small {
  margin-top: 4px;
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}

.stock-import-doc-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  margin-top: 24px;
}

.shift-doc-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 22px;
}

.shift-doc-summary-grid div {
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.shift-doc-summary-grid span,
.shift-doc-summary-grid strong {
  display: block;
}

.shift-doc-summary-grid span {
  color: #64748b;
  font-size: 12px;
}

.shift-doc-summary-grid strong {
  margin-top: 4px;
  color: #0b56b3;
  font-size: 15px;
}

.shift-doc-section {
  margin-top: 24px;
}

.shift-doc-section h3 {
  margin: 0 0 8px;
  color: #0b56b3;
  font-size: 15px;
}

.shift-doc-table,
.shift-doc-product-table {
  font-size: 12px;
}

.shift-doc-table th:nth-child(5),
.shift-doc-table td:nth-child(5),
.shift-doc-table th:nth-child(6),
.shift-doc-table td:nth-child(6),
.shift-doc-table th:nth-child(7),
.shift-doc-table td:nth-child(7),
.shift-doc-product-table th:nth-child(3),
.shift-doc-product-table td:nth-child(3),
.shift-doc-product-table th:nth-child(5),
.shift-doc-product-table td:nth-child(5) {
  text-align: right;
}

.shift-doc-cash-block {
  margin-top: 10px;
}

.shift-doc {
  min-height: auto;
  padding: 28px 34px;
}

.shift-doc .stock-import-corner {
  width: 58px;
  height: 58px;
}

.shift-doc .stock-import-doc-head {
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 24px;
  margin-bottom: 14px;
}

.shift-doc .stock-import-company img {
  width: 206px;
  margin-bottom: 6px;
}

.shift-doc .stock-import-company p,
.shift-doc .stock-import-party p {
  font-size: 11px;
  line-height: 1.35;
}

.shift-doc .stock-import-party {
  margin-top: 10px;
}

.shift-doc .stock-import-party strong {
  margin: 2px 0 0;
  font-size: 12px;
}

.shift-doc .stock-import-doc-meta {
  padding-top: 18px;
}

.shift-doc .stock-import-doc-meta h2 {
  margin-bottom: 7px;
  padding-bottom: 7px;
  font-size: 20px;
}

.shift-doc .stock-import-doc-meta dl {
  grid-template-columns: 64px 1fr;
  gap: 4px 10px;
  padding: 7px 4px 8px;
  font-size: 11px;
}

.shift-doc .shift-doc-summary-grid {
  gap: 7px;
  margin: 4px 0 10px;
}

.shift-doc .shift-doc-summary-grid div {
  padding: 8px 9px;
}

.shift-doc .shift-doc-summary-grid span {
  font-size: 10px;
}

.shift-doc .shift-doc-summary-grid strong {
  margin-top: 2px;
  font-size: 13px;
}

.shift-doc-count-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.shift-doc-count-summary div {
  padding: 8px 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.shift-doc-count-summary span,
.shift-doc-count-summary strong,
.shift-doc-count-summary small {
  display: block;
}

.shift-doc-count-summary span {
  color: #64748b;
  font-size: 10px;
}

.shift-doc-count-summary strong {
  margin-top: 2px;
  color: #0b56b3;
  font-size: 13px;
}

.shift-doc-count-summary small {
  margin-top: 2px;
  color: #475569;
  font-size: 10px;
}

.shift-doc .stock-import-doc-bottom {
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  margin-top: 10px;
}

.shift-doc .stock-import-note {
  padding-top: 6px;
  font-size: 11px;
}

.shift-doc .stock-import-note p {
  margin-top: 5px;
  line-height: 1.35;
}

.shift-doc .stock-import-summary {
  gap: 5px;
  font-size: 11px;
}

.shift-doc .stock-import-summary div {
  gap: 12px;
}

.shift-doc .stock-import-summary strong {
  min-width: 86px;
}

.shift-doc .shift-doc-final-block {
  grid-template-columns: 1fr;
  margin-top: 8px;
}

.shift-doc .shift-doc-final-block .stock-import-note {
  padding-top: 0;
}

.shift-doc .shift-doc-section {
  margin-top: 12px;
}

.shift-doc .shift-doc-section h3 {
  margin-bottom: 5px;
  font-size: 13px;
}

.shift-doc .stock-import-doc-table {
  font-size: 11px;
}

.shift-doc .stock-import-doc-table th {
  padding: 5px 7px;
}

.shift-doc .stock-import-doc-table td {
  padding: 6px 7px;
}

.shift-doc .stock-import-signatures {
  margin-top: 18px;
  padding-top: 12px;
  gap: 22px;
}

.shift-doc .stock-import-signatures p {
  min-height: 22px;
  margin-bottom: 18px;
  font-size: 11px;
}

.shift-doc .stock-import-signatures small {
  margin-top: 5px;
  font-size: 10px;
}

.stock-import-note {
  padding-top: 20px;
  font-size: 13px;
}

.stock-import-note p {
  margin: 10px 0 0;
  color: #475569;
  line-height: 1.5;
}

.stock-import-summary {
  display: grid;
  gap: 10px;
  font-size: 13px;
}

.stock-import-summary div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
}

.stock-import-summary span {
  color: #b6575d;
  text-align: right;
}

.stock-import-summary strong {
  min-width: 104px;
  text-align: right;
}

.stock-import-summary .grand {
  padding-top: 5px;
  font-weight: 900;
}

.stock-import-signatures {
  margin-top: auto;
  padding-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.stock-import-signatures p {
  min-height: 38px;
  margin: 0 0 34px;
  font-size: 13px;
}

.stock-import-signatures span {
  display: block;
  border-top: 1px solid #cbd5e1;
}

.stock-import-signatures small {
  display: block;
  margin-top: 7px;
  text-align: center;
  font-size: 12px;
}

.stock-import-void-card {
  width: min(520px, 100%);
}

.stock-import-void-form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.flash {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 900;
}

.flash a {
  margin-left: 10px;
  text-decoration: underline;
}

.flash--success {
  color: #047857;
  background: #dcfce7;
}

.flash--error {
  color: #b91c1c;
  background: #fee2e2;
}

.mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 12px;
  font-weight: 900;
}

.mini-link.import-meta-add {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--blue-700);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.login-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  width: min(480px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.login-logo {
  display: block;
  width: min(320px, 100%);
  height: auto;
  max-width: 100%;
  margin: 0 auto 18px;
}

.login-card h1 {
  margin: 0 0 7px;
  font-size: 28px;
  letter-spacing: 0;
}

.login-card p {
  margin: 0 0 20px;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 2px;
}

.remember-field {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.remember-field input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--blue-700);
}

.auth-links {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 900;
}

.auth-links a {
  color: var(--blue-700);
}

.login-alert {
  margin-bottom: 14px;
  padding: 11px 12px;
  border-radius: 8px;
  color: #b91c1c;
  background: #fee2e2;
  font-weight: 800;
}

.login-hint {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 12px;
  border-radius: 8px;
  color: var(--muted);
  background: #f8fbff;
  font-size: 13px;
}

.login-hint strong {
  color: var(--ink);
}

.login-demo-list {
  display: grid;
  gap: 6px;
}

.login-demo-list span {
  display: grid;
  grid-template-columns: minmax(76px, 1fr) minmax(70px, auto);
  gap: 2px 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.login-demo-list b {
  color: var(--ink);
}

.login-demo-list em {
  color: var(--blue-700);
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.login-demo-list small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 86px 1fr;
  }

  .sidebar {
    padding-inline: 10px;
  }

  .brand span:last-child,
  .nav span,
  .nav-section-label,
  .shift-chip {
    display: none;
  }

  .nav-group {
    position: relative;
  }

  .nav-parent-row {
    display: grid;
    grid-template-columns: 46px 20px;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .brand {
    justify-content: center;
  }

  .nav a {
    justify-content: center;
    padding: 0;
  }

  .nav-parent-row > a {
    width: 46px;
  }

  .nav-dropdown-toggle {
    display: grid;
    width: 20px;
    height: 43px;
    margin-left: -4px;
    border-radius: 6px;
  }

  .nav-dropdown-toggle svg {
    width: 13px;
    height: 13px;
  }

  .nav-group.is-open .subnav {
    display: grid;
  }

  .subnav {
    position: absolute;
    top: 0;
    left: calc(100% + 10px);
    z-index: 60;
    min-width: 158px;
    margin: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: #075bd3;
    box-shadow: 12px 14px 28px rgba(7, 52, 130, 0.22);
  }

  .subnav a {
    justify-content: flex-start;
    min-height: 34px;
    padding: 0 10px;
    white-space: nowrap;
  }

  .pos-layout {
    grid-template-columns: 150px minmax(360px, 1fr);
  }

  .cart-panel {
    grid-column: 1 / -1;
  }

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

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

  .dashboard-chart-panel {
    grid-column: 1 / -1;
  }

  .dashboard-branch-chart-panel {
    grid-column: 1 / -1;
  }

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

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

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

  .report-chart-panel,
  .report-wide {
    grid-column: 1 / -1;
  }

  .shift-workspace {
    grid-template-columns: 1fr;
  }

  .shift-side-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 760px) {
  .modal-backdrop {
    align-items: start;
    padding: 12px;
  }

  .modal-card {
    max-height: calc(100vh - 24px);
  }

  .user-form {
    padding: 14px;
  }

  .user-form-grid,
  .user-form-section {
    grid-template-columns: 1fr;
  }

  .user-form-section--wide {
    grid-column: auto;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .secondary-button,
  .modal-actions .primary-button {
    width: 100%;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 236px;
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .brand span:last-child,
  .nav span,
  .nav-section-label,
  .shift-chip {
    display: block;
  }

  .nav-group {
    position: static;
  }

  .nav-parent-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
  }

  .nav-parent-row > a {
    width: auto;
  }

  .nav-dropdown-toggle {
    display: grid;
    width: 34px;
    height: 34px;
    margin-left: 0;
  }

  .nav-dropdown-toggle svg {
    width: 16px;
    height: 16px;
  }

  .nav-group.is-open .subnav {
    display: grid;
  }

  .subnav {
    position: static;
    min-width: 0;
    margin: -1px 0 4px 29px;
    padding: 0 0 0 10px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .subnav a {
    min-height: 31px;
    padding: 0 10px;
  }

  .nav a {
    justify-content: flex-start;
    padding: 0 12px;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .topbar {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 14px;
  }

  .topbar-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    width: 100%;
  }

  .profile-trigger span:not(.avatar) {
    min-width: 0;
  }

  .content {
    padding: 14px;
  }

  .metric-grid,
  .metric-grid.small,
  .shift-stat-grid,
  .dashboard-layout,
  .dashboard-grid,
  .shift-workspace,
  .shift-side-stack,
  .shift-count-detail-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-hero-actions {
    justify-content: stretch;
  }

  .dashboard-hero-actions a {
    flex: 1;
  }

  .dashboard-chart-panel {
    grid-column: auto;
  }

  .dashboard-branch-chart-panel {
    grid-column: auto;
  }

  .reports-filter,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .report-chart-panel,
  .report-wide {
    grid-column: auto;
  }

  .report-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .branch-bar-chart {
    grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
    min-height: 210px;
    gap: 10px;
    padding: 14px 10px;
  }

  .dashboard-branch-chart-panel.featured .branch-bar-chart {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    min-height: 246px;
    gap: 12px;
    padding: 18px 10px 14px;
  }

  .branch-bar-chart div {
    grid-template-rows: minmax(128px, 1fr) auto;
  }

  .dashboard-branch-chart-panel.featured .branch-bar-chart div {
    grid-template-rows: minmax(154px, 1fr) auto;
  }

  .branch-bar-chart span em {
    font-size: 10px;
  }

  .dashboard-branch-chart-panel.featured .branch-bar-chart span em {
    inset: -25px 50% auto auto;
    font-size: 11px;
  }

  .shift-page-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .shift-page-hero > strong {
    align-self: flex-start;
  }

  .shift-open-summary {
    grid-template-columns: 1fr;
  }

  .transfer-search {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .pos-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .pos-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
  }

  .pos-categories h2 {
    display: none;
  }

  .pos-categories button {
    width: auto;
    min-width: max-content;
    margin: 0;
  }

  .pos-search {
    grid-template-columns: 1fr;
  }

  .pos-stock-toggle {
    justify-content: start;
  }

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

  .product-card {
    min-height: 160px;
  }

  .page-pos .product-card,
  .page-stock-import .product-card,
  .page-stock-export .product-card,
  .page-transfers .product-card {
    min-height: 198px;
  }

  .page-pos .product-card .product-visual,
  .page-stock-import .product-card .product-visual,
  .page-stock-export .product-card .product-visual,
  .page-transfers .product-card .product-visual {
    width: min(100%, 116px);
    height: auto;
  }

  .cart-row {
    grid-template-columns: 20px 1fr auto;
  }

  .cart-row > strong {
    grid-column: 2 / -1;
    justify-self: end;
  }

  .import-cart-controls {
    grid-template-columns: 1fr;
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .sales-filter {
    grid-template-columns: 1fr;
  }

  .import-history-filter {
    grid-template-columns: 1fr;
  }

  .sales-filter-actions {
    justify-content: stretch;
  }

  .sales-filter-actions .primary-button,
  .sales-filter-actions .clear-button {
    flex: 1;
  }

  .product-form,
  .transfer-form,
  .import-item-row {
    grid-template-columns: 1fr;
  }

  .product-form--modal,
  .product-form-section,
  .product-form-section--price,
  .product-form-section--status {
    grid-template-columns: 1fr;
  }

  .product-form-section--main,
  .product-form-section--image,
  .product-name-field,
  .product-image-input-field,
  .product-form-section--image .product-image-manager {
    grid-column: auto;
  }

  .stock-form.compact {
    grid-template-columns: 1fr;
  }

  .product-image-manager {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .transfer-item-row,
  .transfer-doc-head,
  .transfer-doc-branches,
  .transfer-signatures {
    grid-template-columns: 1fr;
  }

  .transfer-doc {
    padding: 18px;
  }

  .transfer-doc-head h2,
  .transfer-doc-head p {
    text-align: left;
  }

  .field-wide {
    grid-column: auto;
  }

  .data-table {
    min-width: 820px;
  }

  .panel {
    overflow-x: auto;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  body {
    background: #fff;
  }

  .sidebar,
  .topbar,
  .receipt-actions,
  .stock-import-void-modal,
  .flash {
    display: none;
  }

  .app-shell,
  .main,
  .content,
  .stock-import-doc-shell,
  .receipt-page,
  .shift-report {
    display: block;
    padding: 0;
  }

  .shift-report .panel,
  .shift-report .metric {
    box-shadow: none;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .receipt-58 {
    width: 58mm;
    box-shadow: none;
  }

  .stock-import-doc {
    width: 100%;
    min-height: auto;
    padding: 0;
    box-shadow: none;
    overflow: visible;
  }

  body.print-target-active .stock-import-doc-shell {
    display: none !important;
  }

  body.print-target-active .stock-import-doc-shell.is-print-target-shell {
    display: block !important;
  }

  body.print-target-active .stock-import-doc-shell:has(.is-print-target) {
    display: block !important;
  }

  body.print-target-active .stock-import-doc:not(.is-print-target) {
    display: none !important;
  }

  body.print-target-active .shift-count-check-shell:has(.is-print-target) {
    display: block !important;
  }

  body.print-target-active * {
    visibility: hidden !important;
  }

  body.print-target-active .is-print-target-shell,
  body.print-target-active .is-print-target-shell * {
    visibility: visible !important;
  }

  body.print-target-active .is-print-target-shell {
    position: absolute !important;
    inset: 0 auto auto 0;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.print-target-active .is-print-target {
    display: flex !important;
  }

  .stock-import-corner {
    display: none;
  }

  .stock-import-doc-head {
    break-after: avoid;
    page-break-after: avoid;
  }

  .shift-count-check-doc {
    padding: 0;
  }

  .shift-count-check-doc .stock-import-doc-head {
    grid-template-columns: minmax(0, 1fr) 66mm;
    gap: 5mm;
    align-items: center;
    margin-bottom: 4mm;
    padding-bottom: 3mm;
    border-bottom: 0.2mm solid #cbd5e1;
  }

  .shift-count-check-doc .stock-import-brand {
    gap: 3mm;
  }

  .shift-count-check-doc .stock-import-brand img {
    width: 24mm;
  }

  .shift-count-check-doc .stock-import-brand strong {
    font-size: 13pt;
  }

  .shift-count-check-doc .stock-import-brand p {
    font-size: 7.5pt;
  }

  .shift-count-check-doc .stock-import-doc-title {
    gap: 1.5mm;
  }

  .shift-count-check-doc .stock-import-doc-title h1 {
    font-size: 15pt;
  }

  .shift-count-check-doc .stock-import-doc-title dl {
    gap: 0.8mm 2mm;
    font-size: 8pt;
  }

  .shift-count-check-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3mm;
  }

  .shift-count-check-table th,
  .shift-count-check-table td {
    padding: 1mm 1.2mm;
    font-size: 7.2pt;
  }

  .shift-count-check-table td {
    height: 5.4mm;
  }

  .shift-count-check-table th:first-child,
  .shift-count-check-table td:first-child {
    width: 7mm;
  }

  .shift-count-check-table th:nth-child(2),
  .shift-count-check-table td:nth-child(2) {
    width: 13mm;
    text-align: left;
  }

  .shift-count-check-table th:nth-child(3),
  .shift-count-check-table td:nth-child(3) {
    text-align: left;
  }

  .shift-count-check-table th:nth-child(4),
  .shift-count-check-table td:nth-child(4),
  .shift-count-check-table th:nth-child(5),
  .shift-count-check-table td:nth-child(5) {
    width: 11mm;
  }

  .shift-count-check-signatures {
    margin-top: 8mm;
    gap: 14mm;
  }

  .shift-count-check-signatures div {
    font-size: 8pt;
  }

  .stock-import-doc-table {
    page-break-inside: auto;
  }

  .stock-import-doc-table thead {
    display: table-header-group;
  }

  .stock-import-doc-table tbody {
    display: table-row-group;
  }

  .stock-import-doc-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .stock-import-doc-bottom,
  .stock-import-summary,
  .stock-import-signatures {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .stock-import-doc-bottom {
    margin-top: 10mm;
  }

  .stock-import-signatures {
    margin-top: 26mm;
    padding-top: 0;
  }

  .shift-doc .stock-import-doc-head {
    grid-template-columns: minmax(0, 1fr) 74mm;
    gap: 8mm;
    margin-bottom: 5mm;
  }

  .shift-doc .stock-import-company img {
    width: 52mm;
    margin-bottom: 2mm;
  }

  .shift-doc .stock-import-company p,
  .shift-doc .stock-import-party p {
    font-size: 8.5pt;
    line-height: 1.28;
  }

  .shift-doc .stock-import-party {
    margin-top: 3mm;
  }

  .shift-doc .stock-import-doc-meta {
    padding-top: 4mm;
  }

  .shift-doc .stock-import-doc-meta h2 {
    margin-bottom: 2mm;
    padding-bottom: 2mm;
    font-size: 15pt;
  }

  .shift-doc .stock-import-doc-meta dl {
    grid-template-columns: 18mm 1fr;
    gap: 1.2mm 3mm;
    padding: 2mm 1mm;
    font-size: 8.5pt;
  }

  .shift-doc .shift-doc-summary-grid {
    gap: 2mm;
    margin: 1mm 0 3mm;
  }

  .shift-doc .shift-doc-summary-grid div {
    padding: 2mm;
  }

  .shift-doc .shift-doc-summary-grid span {
    font-size: 8pt;
  }

  .shift-doc .shift-doc-summary-grid strong {
    font-size: 10pt;
  }

  .shift-doc-count-summary {
    gap: 2mm;
    margin-top: 3mm;
  }

  .shift-doc-count-summary div {
    padding: 2mm;
  }

  .shift-doc-count-summary span,
  .shift-doc-count-summary small {
    font-size: 8pt;
  }

  .shift-doc-count-summary strong {
    font-size: 9.5pt;
  }

  .shift-doc .stock-import-doc-bottom {
    grid-template-columns: minmax(0, 1fr) 66mm;
    gap: 6mm;
    margin-top: 3mm;
  }

  .shift-doc .stock-import-note,
  .shift-doc .stock-import-summary,
  .shift-doc .stock-import-doc-table {
    font-size: 8.5pt;
  }

  .shift-doc .stock-import-note {
    padding-top: 1mm;
  }

  .shift-doc .stock-import-note p {
    margin-top: 1.5mm;
    line-height: 1.28;
  }

  .shift-doc .stock-import-summary {
    gap: 1.5mm;
  }

  .shift-doc .shift-doc-final-block {
    grid-template-columns: 1fr;
    margin-top: 2mm;
  }

  .shift-doc .shift-doc-final-block .stock-import-note {
    padding-top: 0;
  }

  .shift-doc .shift-doc-section {
    margin-top: 4mm;
  }

  .shift-doc .shift-doc-section h3 {
    margin-bottom: 1.5mm;
    font-size: 10pt;
  }

  .shift-doc .stock-import-doc-table th {
    padding: 1.5mm 2mm;
  }

  .shift-doc .stock-import-doc-table td {
    padding: 1.6mm 2mm;
  }

  .shift-doc .stock-import-signatures {
    margin-top: 7mm;
    padding-top: 0;
    gap: 8mm;
  }

  .shift-doc .stock-import-signatures p {
    min-height: 8mm;
    margin-bottom: 7mm;
    font-size: 8.5pt;
  }

  .shift-doc .stock-import-signatures small {
    margin-top: 1.5mm;
    font-size: 8pt;
  }

  .shift-count-doc-shell {
    margin-top: 0;
  }

  .shift-count-doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3mm;
    margin-top: 3mm;
  }

  .shift-count-doc-section {
    break-inside: auto;
    page-break-inside: auto;
  }

  .shift-count-doc-section h3 {
    margin-bottom: 1mm;
    font-size: 9pt;
  }

  .shift-count-doc .shift-count-detail-table {
    font-size: 6.8pt;
    line-height: 1.16;
  }

  .shift-count-doc .shift-count-detail-table th:first-child,
  .shift-count-doc .shift-count-detail-table td:first-child {
    width: 8mm;
  }

  .shift-count-doc .shift-count-detail-table th:nth-child(3),
  .shift-count-doc .shift-count-detail-table th:nth-child(4),
  .shift-count-doc .shift-count-detail-table th:nth-child(5),
  .shift-count-doc .shift-count-detail-table td:nth-child(3),
  .shift-count-doc .shift-count-detail-table td:nth-child(4),
  .shift-count-doc .shift-count-detail-table td:nth-child(5) {
    width: 11mm;
  }

  .shift-count-doc .shift-count-detail-table th:nth-child(6),
  .shift-count-doc .shift-count-detail-table td:nth-child(6) {
    width: 11mm;
  }

  .shift-count-doc .shift-count-detail-table th {
    padding: 0.7mm 0.9mm;
  }

  .shift-count-doc .shift-count-detail-table td {
    padding: 0.7mm 0.9mm;
    vertical-align: middle;
  }

  .shift-count-doc .shift-count-detail-table td strong,
  .shift-count-doc .shift-count-detail-table td small {
    display: inline;
  }

  .shift-count-doc .shift-count-detail-table td small {
    margin-top: 0;
    margin-left: 0.8mm;
    font-size: 6.3pt;
    white-space: nowrap;
  }

  .shift-count-doc .shift-count-detail-table .badge {
    min-height: auto;
    padding: 0.6mm 1.1mm;
    font-size: 6.2pt;
  }

  .transfer-doc {
    width: 100%;
    padding: 0;
    box-shadow: none;
  }
}
