@charset "UTF-8";
:root {
  --c-emerald-900: #04342C;
  --c-emerald-700: #0A5C45;
  --c-primary: #1D9E75;
  --c-primary-400: #5DCAA5;
  --c-sage: #9FE1CB;
  --c-emerald-50: #EAF6F0;
  --c-accent: #D85A30;
  --c-amber: #BA7517;
  --c-blue: #185FA5;
  --c-rose: #D4537E;
  --c-ink-900: #16261F;
  --c-ink-700: #2E3B34;
  --c-ink-500: #5F6B64;
  --c-ink-400: #8A938D;
  --c-bg: #FBFCFA;
  --c-surface: #FFFFFF;
  --c-surface-2:#F2F6F3;
  --c-border: #E4EAE6;
  --c-border-2: #D2DBD5;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 40, 30, 0.06), 0 1px 1px rgba(16, 40, 30, 0.04);
  --shadow: 0 4px 16px rgba(16, 40, 30, 0.08), 0 1px 3px rgba(16, 40, 30, 0.05);
  --shadow-lg: 0 18px 48px rgba(16, 40, 30, 0.14);
  --sidebar-w: 248px;
  --topbar-h: 64px;
  --brand-sidebar: var(--c-emerald-900);
  --brand-primary: var(--c-primary);
  --brand-accent: var(--c-accent);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-ink-900);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 8px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--c-ink-900);
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 19px;
}

h3 {
  font-size: 16px;
}

p {
  margin: 0 0 12px;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

input, select, textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--c-ink-900);
  background: var(--c-surface);
  border: 1px solid var(--c-border-2);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, select::placeholder, textarea::placeholder {
  color: var(--c-ink-400);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.15);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--c-border-2) transparent;
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-thumb {
  background: var(--c-border-2);
  border-radius: 999px;
  border: 2px solid var(--c-bg);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--c-ink-400);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  background: var(--c-surface);
  color: var(--c-ink-700);
  border-color: var(--c-border-2);
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s;
}
.btn i {
  font-size: 17px;
}
.btn:hover {
  background: var(--c-surface-2);
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn--primary {
  background: var(--brand-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(29, 158, 117, 0.28);
}
.btn--primary:hover {
  background: #178a66;
}
.btn--accent {
  background: var(--brand-accent);
  color: #fff;
  border-color: transparent;
}
.btn--accent:hover {
  filter: brightness(0.95);
}
.btn--ghost {
  background: transparent;
  border-color: transparent;
}
.btn--ghost:hover {
  background: var(--c-surface-2);
}
.btn--danger {
  background: #fff;
  color: #D85A30;
  border-color: rgba(216, 90, 48, 0.4);
}
.btn--danger:hover {
  background: rgba(216, 90, 48, 0.07);
}
.btn--block {
  width: 100%;
}
.btn--lg {
  padding: 14px 24px;
  font-size: 15px;
}
.btn--sm {
  padding: 7px 12px;
  font-size: 12.5px;
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 40, 30, 0.06), 0 1px 1px rgba(16, 40, 30, 0.04);
}
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
}
.card__title {
  font-size: 15px;
  font-weight: 600;
}
.card__body {
  padding: 20px;
}

.stat {
  position: relative;
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 1px 2px rgba(16, 40, 30, 0.06), 0 1px 1px rgba(16, 40, 30, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: stat-rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}
.stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(16, 40, 30, 0.08), 0 1px 3px rgba(16, 40, 30, 0.05);
}
.stat__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat__label {
  font-size: 12.5px;
  color: var(--c-ink-500);
}
.stat__icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--c-emerald-50);
  color: var(--brand-primary);
}
.stat__icon i {
  font-size: 18px;
}
.stat__value {
  font-size: 26px;
  font-weight: 600;
  margin: 8px 0 4px;
  letter-spacing: -0.02em;
}
.stat__delta {
  font-size: 12px;
  color: var(--c-ink-500);
  display: flex;
  align-items: center;
  gap: 4px;
}
.stat__delta--up {
  color: var(--brand-primary);
}
.stat__delta--down {
  color: #D85A30;
}
.stat--accent .stat__icon {
  background: rgba(216, 90, 48, 0.12);
  color: #D85A30;
}
.stat--blue .stat__icon {
  background: rgba(24, 95, 165, 0.12);
  color: #185FA5;
}
.stat--amber .stat__icon {
  background: rgba(186, 117, 23, 0.14);
  color: #BA7517;
}

.stat:nth-child(1) {
  animation-delay: 45ms;
}

.stat:nth-child(2) {
  animation-delay: 90ms;
}

.stat:nth-child(3) {
  animation-delay: 135ms;
}

.stat:nth-child(4) {
  animation-delay: 180ms;
}

.stat:nth-child(5) {
  animation-delay: 225ms;
}

.stat:nth-child(6) {
  animation-delay: 270ms;
}

.stat:nth-child(7) {
  animation-delay: 315ms;
}

.stat:nth-child(8) {
  animation-delay: 360ms;
}

@keyframes stat-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--c-surface-2);
  color: var(--c-ink-700);
}
.badge--green {
  background: #EAF6F0;
  color: #0A5C45;
}
.badge--blue {
  background: rgba(24, 95, 165, 0.1);
  color: #185FA5;
}
.badge--amber {
  background: rgba(186, 117, 23, 0.14);
  color: #BA7517;
}
.badge--coral {
  background: rgba(216, 90, 48, 0.12);
  color: #D85A30;
}
.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
}
.alert i {
  font-size: 18px;
  flex-shrink: 0;
}
.alert--error {
  background: rgba(216, 90, 48, 0.08);
  color: #9c3b1c;
  border: 1px solid rgba(216, 90, 48, 0.2);
}
.alert--success {
  background: #EAF6F0;
  color: #0A5C45;
  border: 1px solid rgba(29, 158, 117, 0.25);
}
.alert--info {
  background: rgba(24, 95, 165, 0.07);
  color: #0c447c;
  border: 1px solid rgba(24, 95, 165, 0.2);
}

.field {
  display: block;
  margin-bottom: 16px;
}
.field__label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--c-ink-700);
  margin-bottom: 6px;
}
.field__input {
  position: relative;
  display: flex;
  align-items: center;
}
.field__input > i:first-child {
  position: absolute;
  left: 12px;
  font-size: 17px;
  color: var(--c-ink-400);
  pointer-events: none;
}
.field__input input {
  padding-left: 38px;
}
.field__toggle {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--c-ink-400);
  display: flex;
}
.field__toggle i {
  font-size: 17px;
}
.field__toggle:hover {
  color: var(--c-ink-700);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th {
  text-align: left;
  font-weight: 400;
  color: var(--c-ink-500);
  padding: 10px 14px;
  white-space: nowrap;
}
.table td {
  padding: 12px 14px;
  border-top: 1px solid var(--c-border);
}
.table tbody tr {
  transition: background 0.12s;
}
.table tbody tr:hover {
  background: var(--c-surface-2);
}
.table__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.skeleton {
  background: linear-gradient(90deg, var(--c-surface-2) 25%, #e9efea 37%, var(--c-surface-2) 63%);
  background-size: 400% 100%;
  border-radius: 8px;
  animation: shimmer 1.3s ease infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}
.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 248px;
  flex-shrink: 0;
  background: var(--brand-sidebar);
  color: var(--c-sage);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar__logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--brand-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar__logo i {
  font-size: 22px;
}
.sidebar__name {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.1;
}
.sidebar__sub {
  color: var(--c-sage);
  font-size: 11px;
}
.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px;
}
.sidebar__section {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(159, 225, 203, 0.55);
  padding: 16px 12px 8px;
}
.sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 2px;
  color: var(--c-sage);
  font-size: 13.5px;
  font-weight: 450;
  transition: background 0.14s, color 0.14s;
}
.sidebar__link i {
  font-size: 19px;
  flex-shrink: 0;
}
.sidebar__link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  text-decoration: none;
}
.sidebar__link.is-active {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(29, 158, 117, 0.28);
}
.sidebar__badge {
  margin-left: auto;
  font-size: 10.5px;
  background: var(--brand-accent);
  color: #fff;
  padding: 1px 7px;
  border-radius: 999px;
}
.sidebar__foot {
  padding: 12px 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar {
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(251, 252, 250, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar__title {
  font-size: 16px;
  font-weight: 600;
}
.topbar__date {
  font-size: 12px;
  color: var(--c-ink-500);
}
.topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar__icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--c-ink-500);
  transition: background 0.14s;
}
.topbar__icon:hover {
  background: var(--c-surface-2);
}
.topbar__icon i {
  font-size: 19px;
}
.topbar__icon .dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-accent);
  border: 1.5px solid var(--c-surface);
}
.topbar__avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--brand-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.content {
  padding: 24px;
  flex: 1;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

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

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

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

.sidebar-toggle {
  display: none;
}

@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    z-index: 60;
    transform: translateX(-100%);
    box-shadow: 0 18px 48px rgba(16, 40, 30, 0.14);
  }
  .app.nav-open .sidebar {
    transform: none;
  }
  .sidebar-toggle {
    display: flex;
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .content {
    padding: 16px;
  }
  .grid--4 {
    grid-template-columns: 1fr;
  }
  .grid--2 {
    grid-template-columns: 1fr;
  }
  .col-span-2 {
    grid-column: auto;
  }
}
.auth-body {
  margin: 0;
}

.auth-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}

.auth-brand {
  background: linear-gradient(160deg, #04342C 0%, #06483A 55%, #0A5C45 100%);
  color: var(--c-sage);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 48px;
}
.auth-brand::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 158, 117, 0.4), transparent 70%);
}
.auth-brand__inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
}
.auth-brand__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
.auth-brand .logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.auth-brand .logo-mark i {
  font-size: 26px;
}
.auth-brand .logo-text {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}
.auth-brand__title {
  color: #fff;
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.auth-brand__sub {
  font-size: 15px;
  color: var(--c-sage);
  margin-bottom: 32px;
}
.auth-brand__points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-brand__points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #dff3ea;
}
.auth-brand__points li i {
  font-size: 20px;
  color: var(--c-primary-400);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--c-bg);
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

.auth-card__head {
  margin-bottom: 20px;
}
.auth-card__head h2 {
  font-size: 24px;
}
.auth-card__head p {
  color: var(--c-ink-500);
  margin: 0;
}

.auth-toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--c-surface-2);
  border-radius: 12px;
  margin-bottom: 20px;
}
.auth-toggle__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-ink-500);
}
.auth-toggle__btn i {
  font-size: 17px;
}
.auth-toggle__btn:hover {
  text-decoration: none;
  color: var(--c-ink-900);
}
.auth-toggle__btn.is-active {
  background: var(--c-surface);
  color: var(--brand-primary);
  box-shadow: 0 1px 2px rgba(16, 40, 30, 0.06), 0 1px 1px rgba(16, 40, 30, 0.04);
}

.auth-foot {
  text-align: center;
  font-size: 11.5px;
  color: var(--c-ink-400);
  margin-top: 20px;
}

@media (max-width: 880px) {
  .auth-wrap {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    display: none;
  }
}
.prod__img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--c-surface-2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-ink-400);
}
.prod__img i {
  font-size: 20px;
}
.prod__name {
  display: flex;
  align-items: center;
  gap: 12px;
}
.prod__title {
  font-weight: 500;
}
.prod__sku {
  font-size: 11.5px;
  color: var(--c-ink-500);
}
.prod__stock--low {
  color: #D85A30;
  font-weight: 500;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.toolbar__search {
  position: relative;
  flex: 1;
  min-width: 240px;
}
.toolbar__search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-ink-400);
  font-size: 17px;
}
.toolbar__search input {
  padding-left: 38px;
}

.dropzone {
  position: relative;
  border: 1.5px dashed var(--c-border-2);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}
.dropzone:hover {
  border-color: var(--brand-primary);
  background: #EAF6F0;
}
.dropzone.is-drag {
  border-color: var(--brand-primary);
  background: #EAF6F0;
}
.dropzone__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #EAF6F0;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.dropzone__icon i {
  font-size: 24px;
}
.dropzone__hint {
  font-size: 13px;
  color: var(--c-ink-500);
  margin: 0;
}
.dropzone__hint strong {
  color: var(--brand-primary);
}
.dropzone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.gallery__tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--c-surface-2);
  overflow: hidden;
}
.gallery__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery__tile.is-primary::after {
  content: "PRIMARY";
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.gallery__actions {
  position: absolute;
  bottom: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
}
.gallery__actions button {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery__actions button:hover {
  background: rgba(0, 0, 0, 0.75);
}
.gallery__actions button i {
  font-size: 14px;
}

.variations {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.variations__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr 36px;
  gap: 8px;
  align-items: center;
}
.variations__row input {
  padding: 8px 10px;
  font-size: 13px;
}
.variations__head {
  font-size: 11px;
  color: var(--c-ink-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.variations__remove {
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--c-ink-400);
  border-radius: 8px;
}
.variations__remove:hover {
  background: rgba(216, 90, 48, 0.08);
  color: #D85A30;
}

.form-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--c-border);
}
.form-section:first-child {
  border-top: none;
  padding-top: 0;
}
.form-section__head h3 {
  font-size: 15px;
  margin-bottom: 4px;
}
.form-section__head p {
  font-size: 12.5px;
  color: var(--c-ink-500);
  margin: 0;
}

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

.form-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 880px) {
  .form-section {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form-grid, .form-grid--3 {
    grid-template-columns: 1fr;
  }
  .variations__row {
    grid-template-columns: 1fr 1fr;
  }
  .variations__head {
    display: none;
  }
}
.tab-bar {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--c-surface-2);
  border-radius: 12px;
  margin-bottom: 16px;
  width: fit-content;
}
.tab-bar a {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink-500);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.14s, color 0.14s;
}
.tab-bar a:hover {
  color: var(--c-ink-900);
}
.tab-bar a.is-active {
  background: var(--c-surface);
  color: var(--brand-primary);
  box-shadow: 0 1px 2px rgba(16, 40, 30, 0.06), 0 1px 1px rgba(16, 40, 30, 0.04);
}

.qty-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: #EAF6F0;
  color: #0A5C45;
}
.qty-pill--low {
  background: rgba(186, 117, 23, 0.14);
  color: #BA7517;
}
.qty-pill--out {
  background: rgba(216, 90, 48, 0.12);
  color: #D85A30;
}

.qty-adj {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.qty-adj button {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 6px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-2);
  color: var(--c-ink-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-adj button:hover {
  background: var(--c-surface-2);
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.qty-adj button i {
  font-size: 14px;
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(440px, 100%);
  background: var(--c-surface);
  border-left: 1px solid var(--c-border);
  box-shadow: 0 18px 48px rgba(16, 40, 30, 0.14);
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  z-index: 80;
}
.drawer.is-open {
  transform: translateX(0);
}
.drawer__head {
  padding: 20px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer__title {
  font-size: 15px;
  font-weight: 600;
}
.drawer__sub {
  font-size: 12px;
  color: var(--c-ink-500);
}
.drawer__close {
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-ink-500);
  border-radius: 8px;
}
.drawer__close:hover {
  background: var(--c-surface-2);
}
.drawer__close i {
  font-size: 18px;
}
.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 40, 30, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 70;
}
.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.led {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
}
.led:last-child {
  border-bottom: none;
}
.led__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EAF6F0;
  color: var(--brand-primary);
}
.led__icon i {
  font-size: 16px;
}
.led--out .led__icon {
  background: rgba(216, 90, 48, 0.12);
  color: #D85A30;
}
.led__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.led__reason {
  font-size: 13px;
  font-weight: 500;
  text-transform: capitalize;
}
.led__meta {
  font-size: 11.5px;
  color: var(--c-ink-500);
}
.led__qty {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.led__qty--in {
  color: var(--brand-primary);
}
.led__qty--out {
  color: #D85A30;
}
.led__bal {
  font-size: 11px;
  color: var(--c-ink-500);
  text-align: right;
}

.line-builder__row {
  display: grid;
  grid-template-columns: 2fr 1fr 80px 36px;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--c-border);
}
.line-builder__row:first-of-type {
  border-top: none;
}
.line-builder__head {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-ink-500);
  border-top: none;
  padding-bottom: 4px;
}
.line-builder__remove {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--c-ink-400);
  border-radius: 8px;
}
.line-builder__remove:hover {
  background: rgba(216, 90, 48, 0.08);
  color: #D85A30;
}
.line-builder__hint {
  font-size: 11px;
  color: var(--c-ink-500);
}

.pos-shell {
  margin: -24px;
  height: calc(100vh - 64px);
  display: flex;
  min-height: 0;
}

@media (max-width: 640px) {
  .pos-shell {
    margin: -16px;
    height: auto;
    flex-direction: column;
  }
}
.pos-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--c-surface-2);
  border-right: 1px solid var(--c-border);
}

.pos-toolbar {
  padding: 16px 20px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.pos-toolbar__search {
  position: relative;
  flex: 1;
  min-width: 240px;
}
.pos-toolbar__search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-ink-400);
  font-size: 18px;
}
.pos-toolbar__search input {
  padding-left: 42px;
  height: 44px;
  font-size: 14px;
}
.pos-toolbar__scan {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--c-emerald-50);
  color: var(--brand-primary);
  font-size: 12.5px;
  font-weight: 500;
}
.pos-toolbar__scan i {
  font-size: 17px;
}
.pos-toolbar__scan span code {
  background: #fff;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: ui-monospace, monospace;
}

.pos-cats {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  overflow-x: auto;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.pos-cats__chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--c-surface-2);
  color: var(--c-ink-700);
  border: 1px solid var(--c-border);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pos-cats__chip i {
  font-size: 16px;
}
.pos-cats__chip:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}
.pos-cats__chip.is-active {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  box-shadow: 0 8px 24px rgba(29, 158, 117, 0.28);
}

.pos-grid {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  align-content: start;
}

.pos-tile {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s;
}
.pos-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(16, 40, 30, 0.08), 0 1px 3px rgba(16, 40, 30, 0.05);
  border-color: var(--brand-primary);
}
.pos-tile:active {
  transform: translateY(0);
}
.pos-tile__img {
  aspect-ratio: 1;
  background: var(--c-emerald-50);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pos-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pos-tile__img .ti {
  font-size: 38px;
  color: var(--brand-primary);
  opacity: 0.5;
}
.pos-tile__body {
  padding: 8px 12px 12px;
}
.pos-tile__name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}
.pos-tile__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}
.pos-tile__price {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-primary);
  font-variant-numeric: tabular-nums;
}
.pos-tile__stock {
  font-size: 10.5px;
  color: var(--c-ink-500);
}
.pos-tile__stock--low {
  color: #BA7517;
}
.pos-tile__stock--out {
  color: #D85A30;
}
.pos-tile--variant::after {
  content: "OPTIONS";
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(4, 52, 44, 0.85);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.pos-tile--out {
  opacity: 0.55;
  pointer-events: none;
}
.pos-tile--out .pos-tile__img::after {
  content: "OUT";
  position: absolute;
  inset: auto auto 8px 8px;
  background: #D85A30;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
}

.pos-right {
  width: 420px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
}

@media (max-width: 980px) {
  .pos-right {
    width: 360px;
  }
}
@media (max-width: 640px) {
  .pos-right {
    width: 100%;
  }
}
.pos-cart {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pos-cart__head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pos-cart__title {
  font-size: 16px;
  font-weight: 600;
}
.pos-cart__count {
  font-size: 12px;
  color: var(--c-ink-500);
}
.pos-cart__customer {
  padding: 12px 20px;
  background: var(--c-surface-2);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.pos-cart__customer i {
  color: var(--c-ink-400);
  font-size: 17px;
  flex-shrink: 0;
}
.pos-cart__customer input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 13px;
}
.pos-cart__customer input:focus {
  box-shadow: none;
}
.pos-cart__customer-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-top: none;
  max-height: 280px;
  overflow-y: auto;
  z-index: 30;
  box-shadow: 0 4px 16px rgba(16, 40, 30, 0.08), 0 1px 3px rgba(16, 40, 30, 0.05);
  display: none;
}
.pos-cart__customer-results.is-open {
  display: block;
}
.pos-cart__customer-results > div {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  border-top: 1px solid var(--c-border);
}
.pos-cart__customer-results > div:first-child {
  border-top: none;
}
.pos-cart__customer-results > div:hover {
  background: var(--c-emerald-50);
}
.pos-cart__customer-results .vip {
  background: #EAF6F0;
  color: #0A5C45;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  margin-left: 6px;
}
.pos-cart__items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.pos-cart__empty {
  text-align: center;
  padding: 32px 20px;
  color: var(--c-ink-400);
}
.pos-cart__empty i {
  font-size: 40px;
  opacity: 0.4;
}
.pos-cart__totals {
  border-top: 1px solid var(--c-border);
  padding: 16px 20px 8px;
  background: var(--c-surface-2);
}
.pos-cart__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 4px 0;
}
.pos-cart__row--final {
  font-size: 22px;
  font-weight: 700;
  padding-top: 8px;
  border-top: 1px dashed var(--c-border-2);
  margin-top: 6px;
  color: var(--c-ink-900);
}
.pos-cart__bargain {
  background: rgba(216, 90, 48, 0.08);
  border: 1px solid rgba(216, 90, 48, 0.2);
  border-radius: 8px;
  padding: 6px 10px;
  margin: 6px 0;
  font-size: 12px;
  color: #9c3b1c;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pos-cart__bargain i {
  font-size: 15px;
}
.pos-cart__controls {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  align-items: center;
  border-top: 1px solid var(--c-border);
}
.pos-cart__controls .toggle {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-weight: 500;
}
.pos-cart__controls .toggle i {
  font-size: 16px;
  color: var(--c-ink-400);
}
.pos-cart__controls .toggle.is-on {
  background: #EAF6F0;
  border-color: rgba(29, 158, 117, 0.3);
  color: #0A5C45;
}
.pos-cart__controls .toggle.is-on i {
  color: #0A5C45;
}
.pos-cart__controls .bargain {
  position: relative;
}
.pos-cart__controls .bargain input {
  padding-left: 28px;
  height: 38px;
  font-weight: 600;
  font-size: 14px;
  text-align: right;
}
.pos-cart__controls .bargain::before {
  content: "₹";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: var(--c-ink-400);
}
.pos-cart__pay {
  padding: 16px 20px;
  border-top: 1px solid var(--c-border);
}
.pos-cart__pay .btn--primary {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(29, 158, 117, 0.28);
}

.cart-line {
  padding: 12px 20px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--c-border);
}
.cart-line__img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--c-emerald-50);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-line__img i {
  font-size: 18px;
}
.cart-line__name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.cart-line__var {
  font-size: 11px;
  color: var(--c-ink-500);
}
.cart-line__qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.cart-line__qty button {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 5px;
  background: #fff;
  border: 1px solid var(--c-border-2);
  cursor: pointer;
  color: var(--c-ink-500);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-line__qty button i {
  font-size: 13px;
}
.cart-line__qty button:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}
.cart-line__qty input {
  width: 38px;
  height: 24px;
  padding: 0;
  text-align: center;
  font-size: 12px;
}
.cart-line__right {
  text-align: right;
}
.cart-line__price {
  font-size: 13px;
  font-weight: 600;
}
.cart-line__remove {
  width: 22px;
  height: 22px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--c-ink-400);
  cursor: pointer;
  margin-top: 2px;
}
.cart-line__remove:hover {
  color: #D85A30;
}
.cart-line__remove i {
  font-size: 13px;
}

.pos-modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 40, 30, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.pos-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.pos-modal__panel {
  background: var(--c-surface);
  border-radius: 16px;
  width: min(440px, 92vw);
  padding: 20px;
  box-shadow: 0 18px 48px rgba(16, 40, 30, 0.14);
  transform: translateY(8px);
  transition: transform 0.18s;
}
.pos-modal.is-open .pos-modal__panel {
  transform: none;
}
.pos-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.pos-modal__title {
  font-size: 16px;
  font-weight: 600;
}
.pos-modal__close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--c-ink-500);
  border-radius: 8px;
}
.pos-modal__close:hover {
  background: var(--c-surface-2);
}
.pos-modal__close i {
  font-size: 18px;
}

.var-choice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}
.var-choice:hover {
  border-color: var(--brand-primary);
  background: var(--c-emerald-50);
}
.var-choice--out {
  opacity: 0.5;
  pointer-events: none;
}
.var-choice__name {
  font-weight: 500;
}
.var-choice__price {
  font-weight: 600;
  color: var(--brand-primary);
}
.var-choice__stock {
  font-size: 11px;
  color: var(--c-ink-500);
  margin-left: 8px;
}

.pay-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.pay-chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.pay-chip:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.pay-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.pay-method {
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
}
.pay-method i {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
  color: var(--c-ink-500);
}
.pay-method.is-active {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}
.pay-method.is-active i {
  color: #fff;
}

.staff-app {
  display: flex;
}

.staff-rail {
  width: 88px;
  flex-shrink: 0;
  background: #04342C;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  gap: 6px;
}
.staff-rail__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.staff-rail__logo i {
  font-size: 24px;
}
.staff-rail__logo:hover {
  text-decoration: none;
}
.staff-rail__btn {
  width: 60px;
  padding: 10px 6px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #9FE1CB;
  font-size: 10.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.14s, color 0.14s;
}
.staff-rail__btn i {
  font-size: 22px;
}
.staff-rail__btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.staff-rail__btn.is-active {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(29, 158, 117, 0.28);
}

@media (max-width: 640px) {
  .staff-rail {
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 8px;
    position: sticky;
    bottom: 0;
    top: auto;
    order: 2;
    gap: 4px;
    justify-content: space-around;
  }
  .staff-rail__logo {
    display: none;
  }
  .staff-rail__btn {
    width: 56px;
    padding: 6px;
    font-size: 9.5px;
  }
  .staff-app {
    flex-direction: column;
  }
}
.duty-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
  color: #fff;
  background: linear-gradient(160deg, #04342C 0%, #07453A 60%, #0A5C45 100%);
}
.duty-hero::before {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 158, 117, 0.42), transparent 70%);
  pointer-events: none;
}
.duty-hero__meta {
  margin: 0 0 4px;
  color: #9FE1CB;
  font-size: 12.5px;
  font-weight: 500;
  position: relative;
}
.duty-hero__sub {
  margin: 0 0 18px;
  color: #DFF3EA;
  font-size: 14px;
  position: relative;
}
.duty-hero__hint {
  margin: 16px 0 0;
  font-size: 11.5px;
  color: #9FE1CB;
  position: relative;
}
.duty-hero--on::before {
  background: radial-gradient(circle, rgba(216, 90, 48, 0.45), transparent 70%);
}
.duty-hero--done {
  background: linear-gradient(160deg, #2E3B34 0%, #4A5550 100%);
}
.duty-hero--done::before {
  display: none;
}

.duty-btn {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.16);
  background: var(--brand-primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 36px rgba(29, 158, 117, 0.42);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.duty-btn i {
  font-size: 38px;
}
.duty-btn:hover {
  transform: scale(1.03);
}
.duty-btn:active {
  transform: scale(0.98);
}
.duty-btn--on {
  background: #D85A30;
  box-shadow: 0 12px 36px rgba(216, 90, 48, 0.45);
}
.duty-btn--done {
  background: #5F6B64;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  cursor: default;
}
.duty-btn:disabled {
  cursor: not-allowed;
}

.cta-tile {
  background: var(--brand-primary);
  color: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(29, 158, 117, 0.28);
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.cta-tile p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.cta-tile span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}
.cta-tile i {
  font-size: 22px;
}
.cta-tile:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.cta-tile--ghost {
  background: var(--c-surface);
  color: var(--c-ink-900);
  border: 1px solid var(--c-border);
  box-shadow: 0 1px 2px rgba(16, 40, 30, 0.06), 0 1px 1px rgba(16, 40, 30, 0.04);
}
.cta-tile--ghost span {
  color: var(--c-ink-500);
}
.cta-tile[data-disabled="1"] {
  opacity: 0.55;
  pointer-events: none;
  background: var(--c-surface-2);
  color: var(--c-ink-500);
  box-shadow: none;
}
.cta-tile[data-disabled="1"] span {
  color: var(--c-ink-400);
}

.att-grid th, .att-grid td {
  padding: 8px 6px;
}
.att-grid .att-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--c-surface-2);
}

.report-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  margin-bottom: 16px;
}
.report-bar__presets {
  display: flex;
  gap: 4px;
}
.report-bar__chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--c-ink-700);
  text-decoration: none;
  background: var(--c-surface-2);
  border: 1px solid transparent;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.report-bar__chip:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  text-decoration: none;
}
.report-bar__chip.is-active {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(29, 158, 117, 0.28);
}
.report-bar__custom {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.report-bar__custom input[type=date] {
  height: 32px;
  padding: 0 8px;
  font-size: 12.5px;
  max-width: 145px;
}
.report-bar__custom select {
  height: 32px;
  padding: 0 8px;
  font-size: 12.5px;
}

.report-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--c-border);
  transition: background 0.14s;
}
.report-link:last-child {
  border-bottom: none;
}
.report-link:hover {
  background: var(--c-emerald-50);
  text-decoration: none;
}
.report-link > i:first-child {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--c-emerald-50);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.report-link__title {
  font-size: 13.5px;
  font-weight: 500;
}
.report-link__sub {
  font-size: 11.5px;
  color: var(--c-ink-500);
  margin-top: 2px;
}

.alert-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alert-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.alert-chip i {
  font-size: 17px;
}
.alert-chip:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 40, 30, 0.06), 0 1px 1px rgba(16, 40, 30, 0.04);
}
.alert-chip--danger {
  background: rgba(216, 90, 48, 0.1);
  color: #9C3B1C;
  border-color: rgba(216, 90, 48, 0.25);
}
.alert-chip--warn {
  background: rgba(186, 117, 23, 0.12);
  color: #8A560F;
  border-color: rgba(186, 117, 23, 0.25);
}
.alert-chip--info {
  background: var(--c-emerald-50);
  color: #0A5C45;
  border-color: rgba(29, 158, 117, 0.25);
}

.settings-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 720px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }
}
.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 6px;
}
.settings-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-ink-700);
  text-decoration: none;
  transition: background 0.14s, color 0.14s;
}
.settings-nav__item i {
  font-size: 18px;
  color: var(--c-ink-400);
}
.settings-nav__item:hover {
  background: var(--c-surface-2);
  text-decoration: none;
}
.settings-nav__item.is-active {
  background: var(--c-emerald-50);
  color: var(--brand-primary);
}
.settings-nav__item.is-active i {
  color: var(--brand-primary);
}

@media (max-width: 720px) {
  .settings-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ============ PATCH: POS image placeholder + loading states ============ */
.pos-tile__ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #EAF6F0;
}
.pos-tile__ph .ti { font-size: 38px; color: #1D9E75; opacity: .5; }

@keyframes pos-spin-kf { to { transform: rotate(360deg); } }
.pos-spin { display: inline-block; animation: pos-spin-kf .9s linear infinite; color: #1D9E75; }

.btn-retry {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border: none; border-radius: 9px;
  background: #1D9E75; color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer;
}
.btn-retry:hover { background: #178a64; }
