/**
 * Кабинет Croft. Токены — /tokens.css, компоненты — /avangard.css.
 * Здесь алиасы старых --pzm-* и стили существующей разметки.
 */
:root {
  font-family: Geologica, system-ui, sans-serif;
  color-scheme: light;
  --pzm-accent: var(--signal-ink, #456200);
  --pzm-accent-hover: #2f4400;
  --pzm-accent-soft: var(--signal-soft, #edf9c8);
  --pzm-accent-muted: var(--signal-soft, #edf9c8);
  --pzm-sidebar-bg: var(--asphalt, #15171b);
  --pzm-sidebar-text: var(--on-asphalt, #edeee8);
  --pzm-sidebar-muted: var(--on-asphalt-2, #a0a4ac);
  --pzm-blue-900: var(--asphalt, #15171b);
  --pzm-blue-800: var(--signal-ink, #456200);
  --pzm-blue-600: var(--signal-ink, #456200);
  --pzm-blue-50: var(--signal-soft, #edf9c8);
  --pzm-bg-app: var(--canvas, #f2f2ee);
  --pzm-bg-card: var(--surface, #fff);
  --pzm-border: var(--line, #e2e2db);
  --pzm-border-soft: var(--surface-2, #f7f7f3);
  --pzm-text: var(--ink, #131519);
  --pzm-text-muted: var(--ink-3, #62666d);
  --pzm-danger: var(--danger, #b32318);
  --pzm-danger-bg: var(--danger-soft, #fde6e2);
  --pzm-success: var(--ok, #0a6a77);
  --pzm-success-bg: var(--ok-soft, #ddf0f2);
  --pzm-radius: var(--radius-md, 14px);
  --pzm-radius-sm: var(--radius-sm, 10px);
  --pzm-shadow-card: var(--shadow-1, 0 1px 2px rgba(19, 21, 25, 0.06));
  --pzm-shell-sidebar-w: var(--sidebar-w, 256px);
  --pzm-shell-tabs-h: var(--tabbar-h, 64px);
}

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

body {
  margin: 0;
  color: var(--ink, var(--pzm-text));
  background: var(--canvas, var(--pzm-bg-app));
  font-family: var(--font-sans, Geologica, system-ui, sans-serif);
  font-size: 14px;
  line-height: 20px;
}

body.pzm-marketing {
  background: #fff;
}

a {
  color: var(--link, var(--signal-ink));
}
a:hover {
  color: var(--signal-ink);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--pzm-accent);
  outline-offset: 2px;
}

/* --- Layout --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 20px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: var(--space-5);
  margin-bottom: 12px;
  border: 1px solid var(--line);
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 860px) {
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

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

.field label,
label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--ink-2);
}

.hint {
  color: var(--pzm-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.status {
  margin-top: 8px;
  font-size: 14px;
  color: #334155;
  min-height: 0;
}

.status.error {
  color: var(--pzm-danger);
}
.status.success {
  color: var(--pzm-success);
}

.hidden {
  display: none;
}

/* --- Forms --- */
input:where(:not(.av-input__el)),
select:where(:not(.av-input__el)),
textarea:where(:not(.av-input__el)) {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  min-height: var(--control-md);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
}

textarea:where(:not(.av-input__el)) {
  min-height: 220px;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
}

.av-input__el:focus-visible {
  outline: none;
}

input[type="date"] {
  padding: 8px 10px;
}

/* --- Buttons: виды и состояния как в UI kit --- */
button:where(:not(
  .av-btn,
  .av-hint,
  .av-seg__opt,
  .av-record,
  .av-suggest__item,
  .filter-pill,
  .pos-btn,
  .pos-qty-btn,
  .pos-icon-btn,
  .pos-trash,
  .pos-split-chip,
  .av-svc,
  .pos-service-card,
  .pos-client-picker-item,
  .pos-client-suggestion,
  .barcode-suggestion,
  .products-combobox-option,
  .type-row,
  .auth-type-btn
)),
.btn,
a.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--control-md);
  min-height: var(--control-md);
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--signal);
  color: var(--on-signal);
  font: 600 14px/20px var(--font-sans, inherit);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}
button[hidden],
.btn[hidden] {
  display: none;
}
button:where(:not(
  .av-btn,
  .av-hint,
  .av-seg__opt,
  .av-record,
  .filter-pill,
  .pos-btn,
  .auth-back,
  .av-suggest__item
)):active:not(:disabled),
.btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.985);
}
button:disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button.is-loading,
.btn.is-loading {
  opacity: 1;
  cursor: progress;
}
button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

button:not([class])::after,
button.auth-wide::after,
a.btn:not(.btn-outline):not(.btn-dark):not(.btn-ghost):not(.btn-danger)::after,
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--on-signal);
  opacity: 0;
  transition: opacity 120ms ease;
  pointer-events: none;
}
button:not([class]):hover:not(:disabled)::after,
button.auth-wide:hover:not(:disabled)::after,
a.btn:not(.btn-outline):not(.btn-dark):not(.btn-ghost):not(.btn-danger):hover::after,
.btn-primary:hover:not(:disabled)::after {
  opacity: 0.08;
}
.auth-tabs button::after,
.schedule-days button::after {
  content: none;
}
.auth-tabs button:active,
.schedule-days button:active,
.filter-pill:active,
.type-row:active {
  transform: none;
}

button.secondary,
.btn-outline,
a.btn.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
button.secondary:hover:not(:disabled),
.btn-outline:hover:not(:disabled),
a.btn.btn-outline:hover {
  background: var(--surface-2);
  border-color: var(--ink-3);
  filter: none;
}

button.btn-dark,
.btn-dark,
.products-primary-btn {
  background: var(--asphalt);
  color: var(--on-asphalt);
  border-color: transparent;
}
button.btn-dark:hover:not(:disabled),
.btn-dark:hover:not(:disabled),
.products-primary-btn:hover:not(:disabled) {
  background: var(--asphalt-2);
  filter: none;
}

button.btn-ghost,
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: transparent;
}
button.btn-ghost:hover:not(:disabled),
.btn-ghost:hover:not(:disabled) {
  background: var(--surface-3);
  color: var(--ink);
}

button.btn-danger,
.btn-danger,
button.danger,
.sale-btn-danger {
  background: var(--surface);
  color: var(--danger);
  border-color: var(--danger);
}
button.btn-danger:hover:not(:disabled),
.btn-danger:hover:not(:disabled),
button.danger:hover:not(:disabled),
.sale-btn-danger:hover:not(:disabled) {
  background: var(--danger-soft);
  filter: none;
}

a.btn-link,
.btn-link,
button.auth-back {
  background: none;
  border: 0;
  height: auto;
  min-height: 0;
  padding: 0;
  color: var(--link);
  font-weight: 600;
  box-shadow: none;
}
a.btn-link:hover,
.btn-link:hover,
button.auth-back:hover:not(:disabled) {
  background: none;
  color: var(--signal-ink);
}

.btn-sm,
.pager-btn {
  height: var(--control-sm);
  min-height: var(--control-sm);
  min-width: 0;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 8px;
}
.btn-lg,
button.auth-wide {
  height: var(--control-lg);
  min-height: var(--control-lg);
  padding: 0 20px;
  font-size: 15px;
}
.sale-dialog-close,
.products-dialog-close,
.type-picker-head button {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  background: transparent;
  color: var(--ink-2);
  border-color: transparent;
  font-size: 18px;
  line-height: 1;
}
.sale-dialog-close:hover:not(:disabled),
.products-dialog-close:hover:not(:disabled),
.type-picker-head button:hover:not(:disabled) {
  background: var(--surface-3);
  color: var(--ink);
}


/* --- Marketing (index) --- */
.topbar {
  background: #fff;
  border-bottom: 1px solid #e7ecf5;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.brand {
  font-weight: 800;
  font-size: 28px;
  text-decoration: none;
  color: var(--pzm-accent);
  letter-spacing: -0.02em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav a {
  text-decoration: none;
  color: #25324b;
  font-size: 14px;
}

a.btn,
a.btn.btn-primary,
.btn-primary {
  background: var(--signal);
  color: var(--on-signal);
  border-color: transparent;
}

.section {
  padding: 72px 0;
}
.section-light {
  background: #eef2f8;
}
.section-title {
  margin: 0 0 8px;
  text-align: center;
  font-size: 34px;
  letter-spacing: -0.02em;
}
.section-subtitle {
  margin: 0 auto 36px;
  text-align: center;
  color: #5f6f8e;
  max-width: 760px;
}

.hero {
  background: radial-gradient(circle at 15% 20%, #fb923c, #9a3412);
  color: #fff;
  padding: 78px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: center;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.hero p {
  margin: 0 0 24px;
  color: #dbe6ff;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-actions .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.hero-visual {
  border-radius: 16px;
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}
.hero-chip {
  position: absolute;
  background: #fff;
  color: #1f2f4d;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.chip-top {
  top: 18px;
  right: 18px;
}
.chip-bottom {
  left: 18px;
  bottom: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature-card {
  border: 1px solid #e5ebf5;
  border-radius: var(--pzm-radius);
  padding: 14px;
  background: #fff;
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.feature-card p {
  margin: 0;
  color: #5f6f8e;
  font-size: 14px;
}

.work-row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  margin-bottom: 16px;
}
.work-card {
  background: #fff;
  border: 1px solid #dfe7f4;
  border-radius: 14px;
  padding: 16px;
}
.work-card h3 {
  margin: 0 0 8px;
}
.work-card ul {
  margin: 0;
  padding-left: 18px;
  color: #5f6f8e;
  line-height: 1.6;
}
.work-image {
  border-radius: 14px;
  border: 1px solid #dfe7f4;
  overflow: hidden;
  min-height: 180px;
}
.work-image img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tariff {
  background: #fff;
  border: 1px solid #e5ebf5;
  border-radius: 14px;
  padding: 18px;
}
.tariff h3 {
  margin: 0 0 8px;
}
.price {
  font-size: 38px;
  font-weight: 800;
  margin: 8px 0 10px;
  letter-spacing: -0.02em;
}
.tariff ul {
  margin: 0 0 14px;
  padding-left: 18px;
  color: #5f6f8e;
}
.tariff.highlight {
  border-color: #3f6cff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
}
.tariff-badge {
  display: inline-block;
  font-size: 12px;
  color: #1f4db8;
  background: #e4edff;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 8px;
}

.cta {
  background: radial-gradient(circle at 50% 25%, #ea580c, #7c2d12);
  color: #fff;
}
.cta-inner {
  text-align: center;
}
.cta h2 {
  margin: 0 0 8px;
  font-size: 40px;
  letter-spacing: -0.02em;
}
.cta p {
  color: #ffedd5;
  margin: 0 0 20px;
}

footer {
  background: #fff;
  border-top: 1px solid #e7ecf5;
  padding: 32px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 16px;
}
.footer-title {
  margin: 0 0 8px;
  font-weight: 700;
}
.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #5f6f8e;
  line-height: 1.8;
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero-grid,
  .work-row,
  .tariff-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero h1 {
    font-size: 40px;
  }
}
@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 28px;
  }
  .cta h2 {
    font-size: 30px;
  }
}

/* --- App hub (app.html) --- */
.nav-card {
  border: 1px solid var(--pzm-border);
  border-radius: 10px;
  padding: 12px;
}
.nav-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.nav-card p {
  margin: 0 0 10px;
  color: var(--pzm-text-muted);
  font-size: 13px;
}
.nav-card a.btn {
  padding: 8px 12px;
  font-size: 13px;
  margin-right: 6px;
  margin-bottom: 6px;
}
.top-actions {
  margin-top: 10px;
}
#paywall-block {
  border: 1px solid #fecaca;
  background: var(--pzm-danger-bg);
}

/* --- History page --- */
.title-page,
h1.title {
  margin: 0 0 8px;
  font-size: 26px;
}
.history-search.row {
  align-items: stretch;
}
.history-search input {
  flex: 1;
}
@media (max-width: 680px) {
  .history-search.row {
    flex-direction: column;
  }
}

/* --- Billing --- */
.locked-banner {
  background: var(--pzm-danger-bg);
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  color: #991b1b;
  font-size: 14px;
}
.billing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 720px) {
  .billing-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Products / list items --- */
.item {
  border: 1px solid var(--pzm-border);
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  margin-top: 8px;
  background: #fafcff;
}
.item-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.item-line {
  color: #334155;
}
.item-line b {
  color: var(--pzm-text);
  margin-right: 4px;
}
.item-actions {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

/* --- List cards (receipts, sales, products, suppliers, inventory) --- */
.list-stack {
  margin-top: 8px;
}
.item.item-card,
.sale.item-card {
  margin-top: 0;
}
.item-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.item-header .item-title {
  margin-bottom: 0;
  flex: 1 1 12rem;
  font-size: 15px;
  line-height: 1.35;
}
.item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge-success {
  color: var(--ok);
  background: var(--ok-soft);
  border-color: transparent;
}
.badge-warn {
  color: var(--warn);
  background: var(--warn-soft);
  border-color: transparent;
}
.badge-danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: transparent;
}
.badge-muted,
.badge-info {
  color: var(--info);
  background: var(--info-soft);
  border-color: transparent;
}
.item-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
}
.item-kv-row {
  margin: 0;
  min-width: 0;
}
.item-kv-row dt {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--pzm-text-muted);
}
.item-kv-row dd {
  margin: 0;
  font-size: 13px;
  color: var(--pzm-text);
  word-break: break-word;
}
.item-kv-row--wide {
  grid-column: 1 / -1;
}
.item-kv-row--highlight dd {
  font-weight: 700;
  color: var(--pzm-blue-800);
}
.item-notes {
  margin-top: 8px;
  font-size: 12px;
  color: var(--pzm-text-muted);
  line-height: 1.45;
}
.sale.item-card .sale-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  flex: 1 1 12rem;
  line-height: 1.35;
}
.sale.item-card .item-kv {
  margin-top: 0;
}
.sale-nested.item-card {
  border-left-width: 2px;
  border-left-color: var(--pzm-border);
  padding: 10px 12px;
  box-shadow: none;
}
.sale-nested.item-card:hover {
  border-left-color: var(--pzm-blue-600);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.sale-nested .item-title {
  font-size: 13px;
  font-weight: 600;
}
.sale .items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--pzm-border-soft);
}

/* --- Sales page (Lovable-like) --- */
.sales-page .page-header {
  margin-bottom: 12px;
}
.sales-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sales-search-row {
  width: 100%;
}
.sales-search {
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--pzm-border);
  background: #fff;
  padding: 10px 16px;
  font-size: 14px;
}
.sales-search:focus {
  border-color: var(--pzm-accent);
  box-shadow: 0 0 0 3px var(--pzm-accent-muted);
  outline: none;
}
.status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
button.filter-pill {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--pzm-border);
  background: #fff;
  color: var(--pzm-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
button.filter-pill:hover:not(:disabled) {
  background: var(--surface);
  border-color: var(--ink-3);
  color: var(--ink);
}
button.filter-pill.is-active,
button.filter-pill.is-active:hover:not(:disabled) {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--on-signal);
}
.sales-filters {
  margin-top: 2px;
}
.sales-filter-actions {
  margin-top: 2px;
}
.sales-filter-actions .status {
  margin: 0;
}
.sales-list,
.list-stack,
.lines,
#list:has(> .list-block),
#list:has(> .employee-item),
#list:has(> .item),
#cats_list,
#prods_list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.sales-empty,
.lines > .hint,
.sales-list > .hint,
.list-stack > .hint {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 16px;
  color: var(--ink-3);
  background: transparent;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
}
.sales-table-card {
  display: contents;
}
.sales-table-head {
  display: none;
}
.sales-row,
.sale-card,
.item.item-card,
.lines > .line,
.list-block,
.employee-item,
#list > .item,
#cats_list > .item,
#prods_list > .item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  color: var(--ink);
  text-align: left;
  min-height: 0;
  width: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 120ms ease;
}
.sales-row,
.sale-card-clickable {
  cursor: pointer;
}
.sales-row:hover,
.sales-row:focus-visible,
.sale-card-clickable:hover,
.item.item-card:hover,
.lines > .line:hover,
.list-block:hover,
.employee-item:hover,
#list > .item:hover,
#cats_list > .item:hover,
#prods_list > .item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
  background: var(--surface);
  outline: none;
}
.sales-row-top,
.line-top,
.sale-card-top,
.item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}
.sales-row-id,
.sale-card-id,
.line-title,
.item-title,
.employee-title {
  font-family: var(--font-mono, "Martian Mono", ui-monospace, monospace);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}
.item-title,
.employee-title,
.line-title {
  font-family: var(--font-sans, Geologica, sans-serif);
  font-size: 14px;
  line-height: 20px;
}
.sales-row-amount,
.sale-card-amount,
.line-amount,
.overview-sale-amount {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-display, Tektur, sans-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
  text-align: right;
}
.sales-row-debt {
  display: block;
  margin-top: 2px;
  font-family: var(--font-sans, Geologica, sans-serif);
  font-size: 12px;
  font-weight: 500;
  color: var(--warn);
}
.sales-row-sub,
.sale-card-meta,
.sale-card-cashier,
.line-grid,
.item-kv,
.employee-grid {
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-3);
}
.sales-row-date,
.sales-row-cashier,
.sales-row-pay {
  display: none;
}
.sales-row-status,
.item-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.line-grid,
.item-grid,
.employee-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
}
.line-entry b,
.item-line b,
.employee-line b,
.item-kv-row dt {
  color: var(--ink-3);
  font-weight: 500;
  margin-right: 4px;
}
.item-notes {
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-2);
  background: var(--surface-2);
  padding: 8px 10px;
  border-radius: 8px;
}
.item.item-card {
  border-left: 1px solid var(--line);
}
.sale-nested.item-card {
  box-shadow: none;
}
.sale-nested.item-card:hover {
  transform: none;
  box-shadow: none;
}
.sales-row .badge {
  padding: 2px 8px;
}
.sale-card-clickable {
  cursor: pointer;
}
.sale-card-clickable:hover,
.sale-card-clickable:focus-visible {
  border-color: var(--pzm-accent, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}
.sale-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 16px;
}
.sale-card-clickable .sale-card-top {
  margin-bottom: 0;
}
.sale-dialog {
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--surface);
  box-shadow: var(--shadow-3);
}
.sale-dialog::backdrop {
  background: var(--scrim);
}
.sale-dialog-body {
  padding: 18px 18px 16px;
  overflow: auto;
  max-height: calc(100vh - 32px);
}
.sale-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.sale-dialog-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.sale-dialog-close {
  flex: none;
}
.sale-dialog-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 12px;
}
.sale-dialog-summary-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}
.sale-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--pzm-border-soft);
}
.sale-line-refund-btn {
  height: var(--control-sm);
  min-height: var(--control-sm);
  padding: 0 10px;
  font-size: 13px;
}
@media (max-width: 640px) {
  .sale-dialog-summary-meta {
    align-items: flex-start;
    text-align: left;
  }
  .sale-dialog-actions {
    flex-direction: column;
  }
  .sale-dialog-actions button {
    width: 100%;
  }
}
.sale-card-id {
  font-size: 15px;
  font-weight: 700;
  color: var(--pzm-text);
}
.sale-card-amount {
  margin-top: 4px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--pzm-text);
}
.sale-card-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.sale-card-meta,
.sale-card-cashier {
  font-size: 13px;
  color: var(--pzm-text-muted);
}
.sale-card-cashier {
  font-weight: 500;
  color: var(--pzm-text);
}
.sale-lines {
  border-top: 1px solid var(--pzm-border-soft);
  padding-top: 4px;
}
.sale-dialog-net {
  margin-top: 4px;
  font-size: 13px;
  color: var(--pzm-text-muted);
}
.sale-dialog-client {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--pzm-border-soft);
  border-radius: 10px;
  background: var(--pzm-surface-muted, #f7f7f6);
}
.sale-dialog-client-label {
  font-size: 12px;
  color: var(--pzm-text-muted);
  margin-bottom: 2px;
}
.sale-dialog-client-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--pzm-text);
}
.sale-dialog-payment {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--pzm-border-soft);
  border-radius: 10px;
  background: var(--pzm-surface-muted, #f7f7f6);
}
.sale-dialog-payment-head {
  margin-top: 4px;
  margin-bottom: 6px;
}
.sale-dialog-payment-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.sale-dialog-payment-badge--cash {
  background: #dcfce7;
  color: #166534;
}
.sale-dialog-payment-badge--terminal,
.sale-dialog-payment-badge--terminal_manual {
  background: #dbeafe;
  color: #1e40af;
}
.sale-dialog-payment-badge--mixed {
  background: #fef3c7;
  color: #92400e;
}
.sale-dialog-payment-badge--debt,
.sale-dialog-payment-badge--partial {
  background: #fee2e2;
  color: #991b1b;
}
.sale-dialog-payment-badge--unknown {
  background: #f3f4f6;
  color: #374151;
}
.sale-dialog-payment-split {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.sale-dialog-payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.sale-dialog-payment-kind {
  color: var(--pzm-text-muted);
}
.sale-dialog-payment-sum {
  font-weight: 600;
  color: var(--pzm-text);
}
.sale-dialog-payment-single {
  font-size: 14px;
  font-weight: 600;
  color: var(--pzm-text);
}
.client-section-title {
  margin: 18px 0 8px;
  font-size: 0.95rem;
}
.client-history-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--pzm-border-soft, var(--pzm-border));
}
.client-history-item:last-child {
  border-bottom: 0;
}
.client-history-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.clients-toolbar {
  margin-bottom: 4px;
}
.client-edit-form {
  margin-bottom: 8px;
}
.client-edit-form .grid {
  margin-bottom: 10px;
}
.client-consent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--pzm-text);
}
.sale-line-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.sale-line-refund-btn {
  min-height: 28px;
  padding: 2px 10px;
  font-size: 12px;
}
.sale-line-refunded-mark {
  font-size: 12px;
  color: var(--pzm-danger);
  font-weight: 600;
}
.sale-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pzm-border-soft);
}
.sale-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sale-line-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--pzm-text);
}
.sale-line-meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--pzm-text-muted);
}
.sale-line-total {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--pzm-text);
}
.sale-line-empty {
  padding: 10px 0 0;
  font-size: 13px;
  color: var(--pzm-text-muted);
}
@media (max-width: 640px) {
  .sale-card-right {
    text-align: left;
    align-items: flex-start;
  }
  .sale-card-amount {
    font-size: 1.25rem;
  }
}

/* Salary/detail text rows (not inside .lines) */
.item .line,
.nested .line {
  border: none;
  padding: 0;
  background: transparent;
  font-size: 13px;
  color: var(--ink-2);
  box-shadow: none;
  border-radius: 0;
}
.item .line b,
.nested .line b {
  color: var(--pzm-text);
  margin-right: 4px;
}

.product-preview {
  margin-top: 10px;
  border: 1px solid var(--pzm-border);
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px;
}
.product-preview-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.product-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.product-preview-line {
  font-size: 13px;
  color: #334155;
}
.product-preview-line b {
  color: var(--pzm-text);
  margin-right: 4px;
}

.barcode-suggestions {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}
.barcode-suggestion {
  width: 100%;
  text-align: left;
  border: 1px solid var(--pzm-border);
  border-radius: var(--pzm-radius-sm);
  background: #fff;
  color: var(--pzm-text);
  padding: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}
.barcode-suggestion:hover {
  background: var(--pzm-blue-50);
}
.barcode-suggestion-main {
  font-size: 13px;
  font-weight: 700;
}
.barcode-suggestion-sub {
  font-size: 12px;
  color: #475569;
  margin-top: 2px;
}

.product-picker-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}
.product-picker-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--pzm-border);
  border-radius: var(--pzm-radius-sm);
  background: #fff;
  color: var(--pzm-text);
  padding: 10px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
}
.product-picker-item:hover:not(:disabled) {
  background: var(--pzm-blue-50);
  border-color: var(--pzm-blue-600);
}
.product-picker-item:disabled {
  opacity: 0.6;
  cursor: wait;
}
.product-picker-main {
  flex: 1;
  min-width: 0;
}
.product-picker-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.product-picker-meta {
  font-size: 12px;
  color: var(--pzm-text-muted);
  margin-top: 3px;
}
.product-picker-price {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--pzm-blue-800);
  white-space: nowrap;
}
.product-picker-add-hint {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--pzm-blue-600);
  opacity: 0;
  transition: opacity 0.15s;
}
.product-picker-item:hover:not(:disabled) .product-picker-add-hint {
  opacity: 1;
}
.product-picker-empty {
  padding: 8px 0;
}

.totals {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.totals .metric {
  border: 1px solid var(--pzm-border-soft);
  border-radius: var(--pzm-radius-sm);
  padding: 8px;
  background: #fff;
}

@media (max-width: 720px) {
  .grid,
  .line-grid,
  .totals,
  .item-grid,
  .item-kv,
  .product-preview-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Stats --- */
.stats-total {
  font-size: 16px;
}
.stats-total b {
  font-size: 24px;
}
.stats-item {
  border: 1px solid var(--pzm-border);
  border-radius: 10px;
  padding: 10px;
  margin-top: 8px;
}
.stats-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.stats-list {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}
.stats-record-row {
  border: 1px dashed var(--pzm-border);
  border-radius: var(--pzm-radius-sm);
  padding: 8px;
  font-size: 13px;
  display: grid;
  gap: 4px;
}
.stats-record-row-line b {
  margin-right: 6px;
}
.stats-more {
  margin-top: 8px;
}
a.btn-link {
  display: inline-flex;
  margin-top: 8px;
  text-decoration: none;
}

/* --- CMS --- */
.revision-list {
  margin-top: 10px;
}
.revision-item {
  border: 1px solid #dbe1ee;
  border-radius: var(--pzm-radius-sm);
  padding: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}

/* --- Salary metrics --- */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 14px 16px;
  box-shadow: var(--shadow-1);
}
.metric-grid > .metric:first-child {
  background: var(--asphalt);
  color: var(--on-asphalt);
  border-color: transparent;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.metric-title {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.metric-grid > .metric:first-child .metric-title {
  color: var(--on-asphalt-2);
}
.metric-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.metric-grid > .metric:first-child .metric-value {
  color: var(--signal);
}
details.item {
  padding: 0;
  overflow: hidden;
}
details.item > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px;
}
details.item > summary::-webkit-details-marker {
  display: none;
}
.nested {
  margin: 0 10px 10px 10px;
  padding-left: 10px;
  border-left: 2px solid var(--pzm-border-soft);
}
.nested .item {
  margin-top: 6px;
}

@media (max-width: 860px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Login / register spinner --- */
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  animation: pzm-spin 0.8s linear infinite;
  margin-right: 6px;
}
@keyframes pzm-spin {
  to {
    transform: rotate(360deg);
  }
}

.error-text {
  color: var(--pzm-danger);
}

/* --- Pager --- */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--pzm-border-soft);
}
.pager-info {
  font-size: 13px;
  color: var(--pzm-text-muted);
}
.pager-actions {
  display: flex;
  gap: 8px;
}
.pager-btn {
  min-width: 88px;
}

/* --- Page header --- */
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.page-header h1,
.overview-header h1,
.pos-title {
  margin: 0 0 4px;
  font-family: var(--font-display, Tektur, sans-serif);
  font-weight: 650;
  font-size: 28px;
  line-height: 32px;
  letter-spacing: -0.01em;
}
.page-header .hint {
  margin: 0;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.kpi-card {
  background: var(--pzm-bg-card);
  border: 1px solid var(--pzm-border);
  border-radius: var(--pzm-radius);
  box-shadow: var(--pzm-shadow-card);
  padding: 14px 16px;
}
.kpi-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.kpi-card .kpi-label {
  font-size: 13px;
  color: var(--pzm-text-muted);
  margin-bottom: 0;
}
.kpi-icon {
  color: var(--pzm-accent);
  display: inline-flex;
  flex-shrink: 0;
}
.kpi-card .kpi-value {
  font-family: var(--font-display, Tektur, sans-serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 34px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.kpi-card.kpi-instrument,
.overview-today-grid > .kpi-card:first-child,
.kpi-grid > .kpi-card:first-child {
  background: var(--asphalt);
  color: var(--on-asphalt);
  border-color: transparent;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.kpi-card.kpi-instrument .kpi-label,
.kpi-card.kpi-instrument .kpi-meta,
.overview-today-grid > .kpi-card:first-child .kpi-label,
.overview-today-grid > .kpi-card:first-child .kpi-meta,
.kpi-grid > .kpi-card:first-child .kpi-label,
.kpi-grid > .kpi-card:first-child .kpi-meta {
  color: var(--on-asphalt-2);
}
.kpi-card.kpi-instrument .kpi-value,
.overview-today-grid > .kpi-card:first-child .kpi-value,
.kpi-grid > .kpi-card:first-child .kpi-value {
  color: var(--signal);
}
.kpi-card.kpi-instrument .kpi-icon,
.kpi-grid > .kpi-card:first-child .kpi-icon {
  background: var(--asphalt-2);
  color: var(--signal);
}
.kpi-card .kpi-meta {
  font-size: 12px;
  color: var(--pzm-text-muted);
  margin-top: 6px;
  min-height: 1.2em;
}
@media (max-width: 860px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Overview dashboard (Lovable) --- */
.overview-metric-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 0 0 16px;
}
.overview-segment {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--pzm-border, #e5e7eb) 70%, transparent);
  border: 1px solid var(--pzm-border, #e5e7eb);
}
.overview-segment-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--pzm-muted, #6b7280);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.overview-segment-btn.is-active {
  background: var(--pzm-surface, #fff);
  color: var(--pzm-text, #111827);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.overview-profit-hint {
  margin: 0;
  font-size: 0.85rem;
}

.overview-today-card {
  margin: 0 0 16px;
}
.overview-today-card .overview-section-head {
  margin-bottom: 12px;
}
.overview-today-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.overview-today-grid .kpi-card {
  box-shadow: none;
  padding: 12px 14px;
}
@media (max-width: 860px) {
  .overview-today-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.overview-page {
  max-width: 1120px;
}
.overview-header .overview-cta {
  text-decoration: none;
}
.overview-section-title {
  margin: 0;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.overview-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.overview-link {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.overview-main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.9fr);
  gap: 12px;
  margin-bottom: 12px;
  align-items: stretch;
}
.av-branch-pick[hidden] {
  display: none !important;
}
.av-branch-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pzm-text-muted, #6b7280);
}
.av-branch-pick select {
  height: 32px;
  max-width: 220px;
  padding: 0 8px;
  border: 1px solid var(--pzm-border, #e5e7eb);
  border-radius: 8px;
  background: var(--pzm-surface, #fff);
  color: var(--pzm-text, #111);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}
.overview-charts-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  min-width: 0;
  align-content: start;
}
.overview-charts-row {
  display: contents;
}
.overview-charts-row .overview-chart-card {
  min-width: 0;
}
.overview-chart-card,
.overview-sales-card,
.overview-stock-card {
  margin-bottom: 0;
}
.overview-chart-card .av-card__title {
  font-family: var(--font-sans, Geologica, sans-serif);
}
.overview-chart-foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--on-asphalt-2, #a0a4ac) 35%, transparent);
}
.overview-chart-scope {
  font-size: 12px;
  font-weight: 600;
  color: var(--on-asphalt, #edeee8);
  line-height: 1.35;
}
.overview-chart-note {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--on-asphalt-2, #a0a4ac);
}
.av-chart--signed .av-chart__bar {
  position: absolute;
  bottom: var(--b, 0);
  left: 0;
  right: 0;
  margin: 0 auto;
}
.av-chart--signed .av-chart__bar.is-neg {
  background: var(--danger);
  border-radius: 2px 2px 6px 6px;
}
.overview-sales-list {
  display: flex;
  flex-direction: column;
}
.overview-sale-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pzm-border);
}
.overview-sale-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.overview-sale-id {
  font-family: var(--font-mono, "Martian Mono", ui-monospace, monospace);
  font-weight: 600;
  font-size: 13px;
}
.overview-sale-id {
  font-size: 13px;
  color: var(--pzm-text-muted);
  font-variant-numeric: tabular-nums;
}
.overview-sale-who {
  font-size: 14px;
  font-weight: 600;
  color: var(--pzm-text);
  margin-top: 2px;
}
.overview-sale-amount {
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.overview-stock-card {
  margin-top: 0;
}
#analytics-blocks {
  margin-top: 12px;
  align-items: start;
}
.overview-branch-section {
  margin-top: 28px;
}
.overview-branch-section h2 {
  margin: 0 0 4px;
  font-family: var(--font-display, Tektur, sans-serif);
  font-size: 22px;
}
.overview-branch-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 8px 0 12px;
}
.overview-branch-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) {
  .overview-branch-blocks {
    grid-template-columns: 1fr;
  }
}
#analytics-blocks > .card {
  margin-bottom: 0;
}
#analytics-blocks > .card > .overview-section-title {
  margin-bottom: 8px;
}
#ltv-block,
[data-role="ltv"] {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.overview-ltv-summary {
  font-size: 13px;
  line-height: 18px;
}
#analytics-blocks .overview-stock-row,
.overview-branch-blocks .overview-stock-row {
  padding: 8px 0;
}
.overview-mini-pager .pager {
  margin-top: 8px;
  padding-top: 8px;
}
.overview-mini-pager .pager-btn {
  min-width: 72px;
  height: 32px;
  padding: 0 10px;
  font-size: 13px;
}
.overview-stock-list {
  display: flex;
  flex-direction: column;
}
.overview-stock-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--pzm-border);
}
.overview-stock-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.overview-stock-row:first-child {
  padding-top: 0;
}
.overview-stock-name {
  font-size: 14px;
  font-weight: 600;
}
.overview-stock-meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--pzm-text-muted);
}
@media (max-width: 900px) {
  .overview-main {
    grid-template-columns: 1fr;
  }
}

/* --- App shell --- */
body.pzm-app {
  background: var(--pzm-bg-app);
}
.shell-layout {
  display: flex;
  min-height: 100vh;
}
.shell-sidebar {
  width: var(--pzm-shell-sidebar-w);
  flex-shrink: 0;
  background: var(--pzm-sidebar-bg);
  color: var(--pzm-sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.shell-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 16px;
}
.shell-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--pzm-accent);
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.shell-brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.shell-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.shell-nav-link {
  color: var(--pzm-sidebar-muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}
.shell-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.shell-nav-link.is-active {
  background: var(--pzm-accent);
  color: #fff;
}
.shell-more-label {
  margin: 14px 8px 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pzm-sidebar-muted);
}
.shell-user {
  margin-top: auto;
  padding: 16px 8px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.shell-user-name {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}
.shell-user-meta {
  font-size: 12px;
  color: var(--pzm-sidebar-muted);
  margin: 2px 0 8px;
}
.shell-logout {
  color: var(--pzm-sidebar-muted);
  font-size: 13px;
}
.shell-logout:hover {
  color: #fff;
}
.shell-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.shell-topbar {
  display: flex;
  justify-content: flex-end;
  padding: 12px 20px 0;
}
.shell-plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--pzm-accent-muted);
  color: var(--pzm-accent-hover);
  font-size: 12px;
  font-weight: 600;
}
.shell-content {
  flex: 1;
}
h1.is-hoisted {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.av-shell__content > .container,
.av-shell__content .container {
  max-width: none;
  margin: 0;
  padding: 0;
}
.av-sheet-layer[hidden],
.av-dialog-layer[hidden] {
  display: none !important;
}
a.av-tab,
a.av-tab:hover,
a.av-side__item,
a.av-side__item:hover,
a.av-sheet__item,
a.av-sheet__item:hover {
  text-decoration: none;
}
.av-side__brand,
.av-top__brand {
  text-decoration: none;
  color: inherit;
}
.av-side__brand img {
  height: 30px;
  width: auto;
  display: block;
}
.av-top__brand img {
  height: 32px;
  width: auto;
  display: block;
}
code,
.mono,
.products-barcode-item code {
  font-family: var(--font-mono, "Martian Mono", ui-monospace, monospace);
}
.shell-content.is-loading {
  opacity: 0.55;
  pointer-events: none;
}
.shell-content > .container {
  max-width: 1200px;
}
.shell-progress {
  position: fixed;
  top: 0;
  left: var(--pzm-shell-sidebar-w);
  right: 0;
  z-index: 80;
  height: 2px;
  background: var(--pzm-accent);
  transform-origin: left;
  animation: shell-progress-run 0.9s ease infinite;
}
.shell-progress[hidden] {
  display: none;
}
@keyframes shell-progress-run {
  0% { transform: scaleX(0.15); opacity: 0.4; }
  50% { transform: scaleX(0.7); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0.4; }
}
.shell-tabs {
  display: none;
}
.shell-sheet {
  display: none;
}

@media (max-width: 860px) {
  .shell-progress {
    left: 0;
  }
  .shell-sidebar {
    display: none;
  }
  .shell-topbar {
    padding: 10px 16px 0;
  }
  .shell-tabs {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: #fff;
    border-top: 1px solid var(--pzm-border);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
    gap: 4px;
  }
  .shell-tab {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: var(--pzm-text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 10px 4px;
    min-height: 44px;
    border-radius: 10px;
  }
  .shell-tab.is-active {
    color: var(--pzm-accent);
    background: var(--pzm-accent-soft);
  }
  body.pzm-app .shell-content {
    padding-bottom: calc(var(--pzm-shell-tabs-h) + env(safe-area-inset-bottom) + 12px);
  }
  .shell-sheet:not([hidden]) {
    display: block;
  }
  .shell-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.45);
    z-index: 50;
  }
  .shell-sheet-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 51;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    max-height: 75vh;
    overflow: auto;
  }
  .shell-sheet-title {
    font-weight: 700;
    margin-bottom: 10px;
  }
  .shell-sheet-nav {
    display: flex;
    flex-direction: column;
  }
  .shell-sheet-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--pzm-border-soft);
    text-decoration: none;
    color: var(--pzm-text);
    font-weight: 500;
    min-height: 44px;
  }
}

/* POS responsive stack */
@media (max-width: 860px) {
  .pos-layout {
    display: flex !important;
    flex-direction: column !important;
  }
}

/* --- Products page (Lovable) --- */
.products-page .products-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.products-page .products-header h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.products-page .products-header .hint {
  margin: 6px 0 0;
}
.products-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.products-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.products-toolbar--filters {
  margin-top: -8px;
}
.products-search {
  width: 100%;
  max-width: 280px;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid var(--pzm-border);
  background: #fff;
  padding: 6px 12px;
  font-size: 14px;
}
.products-search:focus {
  border-color: var(--pzm-accent);
  box-shadow: 0 0 0 3px var(--pzm-accent-muted);
  outline: none;
}
.products-category-combobox {
  flex: 1 1 220px;
  max-width: 320px;
}
.products-combobox {
  position: relative;
  width: 100%;
}
.products-combobox-input {
  width: 100%;
  max-width: none;
}
.products-combobox-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--pzm-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--pzm-shadow-card);
}
.products-combobox-option {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
}
.products-combobox-option:hover,
.products-combobox-option.is-active {
  background: var(--pzm-accent-muted, #eef7f3);
}
.products-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.products-filter-group--wide {
  flex: 1 1 100%;
}
.products-filter-label {
  font-size: 12px;
  color: var(--pzm-text-muted);
  white-space: nowrap;
}
.products-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.products-table-card {
  overflow: hidden;
  border: 1px solid var(--pzm-border);
  border-radius: 12px;
  background: var(--pzm-bg-card);
  box-shadow: var(--pzm-shadow-card);
}
.products-table-scroll {
  width: 100%;
  overflow-x: auto;
}
.products-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.products-table thead th {
  height: 40px;
  padding: 8px 12px;
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.products-table thead th.num,
.products-table td.num,
.products-table td.money {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.products-table tbody td {
  height: 52px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.products-table tbody tr:hover td {
  background: var(--surface-2);
}
.products-table tbody tr:last-child td {
  border-bottom: none;
}
.report-item-link {
  color: var(--pzm-accent, #0b6e4f);
  font-weight: 600;
  text-decoration: none;
}
.report-item-link:hover {
  text-decoration: underline;
}
.products-row {
  cursor: pointer;
}
.products-row:hover {
  background: rgba(28, 25, 23, 0.025);
}
.products-name {
  font-weight: 600;
  color: var(--pzm-text);
}
.products-sku {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: var(--pzm-text-muted);
}
.products-stock-low {
  color: #dc2626;
  font-weight: 600;
}
.products-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.products-status-active {
  background: var(--ok-soft);
  color: var(--ok);
}
.products-status-off {
  background: rgba(120, 113, 108, 0.14);
  color: #57534e;
}
.products-empty {
  padding: 28px 12px !important;
  text-align: center;
  color: var(--pzm-text-muted);
}
.products-dialog {
  width: min(640px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--surface);
  box-shadow: var(--shadow-3);
}
.products-dialog::backdrop {
  background: var(--scrim);
}
.products-dialog-form {
  padding: 18px 18px 16px;
}
.products-dialog-form .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.products-dialog-form .field > input,
.products-dialog-form .field > select {
  width: 100%;
  height: var(--control-md);
  min-height: var(--control-md);
  max-height: var(--control-md);
  padding: 0 12px;
  line-height: 20px;
}
.branch-stock-choice {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.branch-stock-choice[hidden] {
  display: none;
}
.branch-stock-option {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.branch-stock-option:has(input:checked) {
  border-color: var(--pzm-text, #111827);
}
.branch-stock-option input {
  margin-right: 8px;
}
.branch-stock-option .hint {
  margin: 0 0 0 24px;
}
.products-dialog-inline-action {
  justify-content: flex-end;
}
.products-dialog-inline-action button {
  width: 100%;
}
.products-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.products-dialog-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.products-dialog-close {
  flex: none;
}
.products-dialog-actions {
  margin-top: 14px;
  justify-content: flex-end;
}
.products-barcodes-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.35rem;
}
.products-barcode-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
}
.products-barcode-item code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.products-barcode-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: color-mix(in srgb, var(--accent, #2563eb) 14%, transparent);
  color: var(--accent, #2563eb);
}
.products-barcode-conflict {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #b42318;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.products-barcode-conflict.is-linkable {
  color: #175cd3;
}
.products-barcode-owner-main {
  font-weight: 600;
}
.products-barcode-owner-sub {
  opacity: 0.9;
}
.products-barcode-link-btn {
  align-self: flex-start;
  margin-top: 0.15rem;
}
.products-barcode-delete {
  margin-left: auto;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  line-height: 1;
}
@media (max-width: 640px) {
  .products-search {
    max-width: none;
  }
  .products-primary-btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Auth pages --- */
body.pzm-auth {
  min-height: 100vh;
  background-color: var(--canvas);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 18px 18px;
}
.auth-wrap {
  max-width: 440px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.auth-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}
.auth-logo {
  display: block;
  height: 32px;
  width: auto;
  margin-bottom: 16px;
}
.auth-card h1 {
  margin-top: 0;
  font-family: var(--font-display, Tektur, sans-serif);
}
.auth-tabs {
  display: flex;
  background: var(--pzm-border-soft);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
}
.auth-tabs button {
  flex: 1;
  background: transparent;
  color: var(--pzm-text-muted);
  box-shadow: none;
  font-weight: 600;
}
.auth-tabs button:hover:not(:disabled) {
  background: transparent;
  color: var(--pzm-text);
}
.auth-tabs button.is-active {
  background: var(--signal);
  color: var(--on-signal);
  box-shadow: none;
}
.auth-progress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 12px 0 18px;
}
.auth-progress span {
  height: 4px;
  border-radius: 99px;
  background: var(--pzm-border);
}
.auth-progress span.is-on {
  background: var(--pzm-accent);
}
.auth-type-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: #fff;
  color: var(--pzm-text);
  border: 1px solid var(--pzm-border);
  padding: 12px;
  margin-bottom: 8px;
}
.auth-type-btn:hover:not(:disabled) {
  background: var(--pzm-accent-soft);
  color: var(--pzm-text);
}
.auth-type-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--pzm-accent-muted);
  color: var(--pzm-accent-hover);
  flex: 0 0 auto;
}
.auth-type-icon svg {
  width: 20px;
  height: 20px;
}
.auth-type-text {
  flex: 1;
  min-width: 0;
}
.auth-type-text strong {
  display: block;
  font-size: 15px;
}
.auth-type-text small {
  color: var(--pzm-text-muted);
  font-size: 12px;
}
.auth-back {
  background: transparent;
  color: var(--pzm-text);
  padding: 0;
  margin: 0 0 8px;
  font-weight: 600;
}
.auth-back:hover:not(:disabled) {
  background: transparent;
  color: var(--signal-ink);
}
.auth-req {
  color: var(--pzm-danger);
}
.auth-wide {
  width: 100%;
  margin-top: 8px;
}
.schedule-box {
  background: var(--pzm-border-soft);
  border-radius: var(--pzm-radius-sm);
  padding: 12px;
}
.schedule-days {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.schedule-days button {
  background: #fff;
  color: var(--pzm-text);
  border: 1px solid var(--pzm-border);
  min-width: 42px;
  padding: 8px 10px;
}
.schedule-days button.is-on {
  background: var(--signal);
  color: var(--on-signal);
  border-color: var(--signal);
}
.schedule-hours {
  display: flex;
  align-items: center;
  gap: 8px;
}
.schedule-hours input {
  flex: 1;
}
.schedule-24 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
}
.type-picker {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.45);
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.type-picker:not([hidden]) {
  display: flex;
}
.type-picker-card {
  background: #fff;
  width: min(480px, 100%);
  max-height: 88vh;
  border-radius: 16px;
  padding: 16px;
  overflow: auto;
}
.type-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.type-picker-head h2 {
  margin: 0;
  font-size: 18px;
}
.type-picker-head button {
  background: transparent;
  color: var(--pzm-text-muted);
  padding: 4px 8px;
}
.type-group {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--pzm-text-muted);
  margin: 14px 0 6px;
  font-weight: 700;
}
.type-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--pzm-text);
  text-align: left;
  padding: 10px 8px;
  border-radius: 10px;
}
.type-row:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--ink);
}
.type-row.is-on {
  background: var(--signal-soft);
}
.moderation-ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 8px auto 12px;
  background: var(--pzm-accent-muted);
  font-size: 24px;
}
.moderation-ico.is-bad {
  background: var(--pzm-danger-bg);
}

/* --- Categories page (Lovable) --- */
.categories-page {
  max-width: 1120px;
}
.categories-header h1 {
  margin: 0;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.categories-header .hint {
  margin: 6px 0 0;
  max-width: 42rem;
}
.categories-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.25fr);
  gap: 16px;
  align-items: start;
}
.categories-card {
  background: var(--pzm-bg-card);
  border: 1px solid var(--pzm-border);
  border-radius: var(--pzm-radius);
  box-shadow: var(--pzm-shadow-card);
  padding: 20px;
}
.categories-card-title {
  margin: 0 0 16px;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.categories-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.categories-form .field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--pzm-text);
}
.categories-form input,
.categories-form select {
  min-height: 40px;
  border-radius: 10px;
}
.categories-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}
.categories-list {
  display: flex;
  flex-direction: column;
}
.categories-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--pzm-border);
}
.categories-row:first-child {
  padding-top: 0;
}
.categories-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.categories-row-main {
  min-width: 0;
  flex: 1;
}
.categories-row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--pzm-text);
  line-height: 1.35;
}
.categories-globe {
  flex-shrink: 0;
  color: var(--pzm-accent);
}
.categories-row-meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--pzm-text-muted);
}
.categories-delete-btn {
  flex-shrink: 0;
  height: var(--control-sm);
  min-height: var(--control-sm);
  padding: 0 10px;
  background: var(--surface);
  color: var(--danger);
  border: 1px solid var(--danger);
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}
.categories-delete-btn:hover:not(:disabled) {
  background: var(--danger-soft);
  color: var(--danger);
}
.categories-empty {
  padding: 24px 0;
  text-align: center;
  color: var(--pzm-text-muted);
  font-size: 14px;
}
@media (max-width: 860px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
}

