:root {
  --ink: #253052;
  --muted: #6c7390;
  --line: #f3d8ec;
  --paper: #ffffff;
  --soft: #fff8fd;
  --sky: #64d7ff;
  --mint: #5ee0a5;
  --peach: #ffb06e;
  --lemon: #ffdf4d;
  --lilac: #b9a3ff;
  --rose: #ff6fae;
  --coral: #ff6b5f;
  --blue: #3267ff;
  --green: #16a66a;
  --red: #d8465d;
  --button-radius: 8px;
  --brand-font: Inter;
  --shadow: 0 18px 38px rgba(255, 111, 174, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

:where(.panel, .product-card, .category-tile, .trust-tile, .stat-tile, .admin-shell, .admin-grid, .erp-pos-workspace, .pos-kiosk, .pos-kiosk *, .erp-module-tile, .btn) {
  min-width: 0;
}

:where(.btn, button, .product-card, .category-tile, .trust-tile, .stat-tile, .panel, .admin-tabs a, .erp-module-tile, .touch-card, .kiosk-readonly) {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 223, 77, 0.28) 0 76px, transparent 77px),
    radial-gradient(circle at 92% 4%, rgba(100, 215, 255, 0.22) 0 92px, transparent 93px),
    radial-gradient(circle at 18% 84%, rgba(255, 111, 174, 0.18) 0 88px, transparent 89px),
    var(--soft);
  font-family: var(--brand-font), Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.route-erp {
  background: var(--soft);
}

.route-erp {
  --saas-bg: #f5f7fb;
  --saas-panel: #ffffff;
  --saas-panel-soft: #f8fafc;
  --saas-border: #dbe4f0;
  --saas-ink: #172033;
  --saas-muted: #637089;
  --saas-primary: #2563eb;
  --saas-primary-soft: #eef4ff;
  --saas-accent: #0f9f8f;
  --saas-shadow: 0 14px 34px rgba(20, 31, 52, 0.08);
}

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

button {
  cursor: pointer;
}

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

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

.top-strip {
  background: linear-gradient(90deg, var(--rose), #ff9dcc 34%, var(--lemon) 68%, var(--sky));
  color: #fff;
  font-size: 13px;
  text-shadow: 0 1px 0 rgba(36, 49, 79, 0.28);
}

.top-strip .wrap,
.header .wrap,
.nav .wrap,
.section,
.footer .wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.top-strip .wrap {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(255, 111, 174, 0.24);
  backdrop-filter: blur(14px);
}

.header .wrap {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
}

.brand-logo {
  width: 176px;
  max-height: 62px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--lemon), var(--rose));
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-3deg);
}

.searchbar {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 2px solid rgba(255, 111, 174, 0.44);
  border-radius: var(--button-radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(100, 215, 255, 0.12);
}

.searchbar input {
  min-width: 0;
  border: 0;
  padding: 13px 14px;
  outline: none;
}

.searchbar button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border: 2px solid rgba(37, 48, 82, 0.88);
  background: #fff;
  color: var(--ink);
  border-radius: var(--button-radius);
  min-height: 42px;
  padding: 0 14px;
  font-weight: 750;
  line-height: 1.12;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
  box-shadow: 3px 3px 0 rgba(37, 48, 82, 0.88);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.searchbar button {
  border-width: 0 0 0 2px;
  border-radius: 0;
  box-shadow: none;
  min-width: 66px;
}

.btn:hover,
.searchbar button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn.primary {
  background: linear-gradient(135deg, #fff8a8, var(--lemon) 48%, #ffd3e8);
}

.cart-button {
  position: relative;
  isolation: isolate;
  gap: 8px;
  border-color: rgba(37, 48, 82, 0.92);
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.92) 0 5px, transparent 6px),
    radial-gradient(circle at 86% 78%, rgba(255, 255, 255, 0.8) 0 4px, transparent 5px),
    linear-gradient(135deg, #fff8a8 0%, #ffe879 38%, #ffd3e8 72%, #c9f1ff 100%);
  color: #aa1c59;
  font-weight: 900;
  letter-spacing: 0;
  min-height: 46px;
}

.cart-button::after {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: -1;
  border: 1px dashed rgba(255, 111, 174, 0.5);
  border-radius: calc(var(--button-radius) - 3px);
  pointer-events: none;
}

.cart-button-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: #fff;
  color: #2f6fff;
  font-size: 19px;
  line-height: 1;
}

.detail-cart-button {
  min-width: min(100%, 210px);
}

.btn.mint {
  background: linear-gradient(135deg, #8df2c4, var(--mint));
}

.btn.rose {
  background: linear-gradient(135deg, #ffa6ce, var(--rose));
}

.btn.ghost {
  box-shadow: none;
  border-color: var(--line);
  color: var(--muted);
  background: #fff;
}

.btn.icon {
  width: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

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

.nav {
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid #f4e6ff;
  backdrop-filter: blur(10px);
}

.nav .wrap {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
}

.nav a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid #f1d4e6;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
}

.nav a.active {
  color: var(--ink);
  border-color: rgba(255, 111, 174, 0.58);
  background: linear-gradient(135deg, #fff1f8, #e9f9ff);
}

.hero {
  min-height: clamp(470px, 67vh, 650px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 21%, #fff 0 50px, transparent 51px),
    radial-gradient(circle at 80% 39%, rgba(255, 223, 77, 0.8) 0 88px, transparent 89px),
    radial-gradient(circle at 58% 58%, rgba(100, 215, 255, 0.76) 0 110px, transparent 111px),
    linear-gradient(118deg, #fff 0 34%, #fff2f8 34% 58%, rgba(255, 111, 174, 0.52) 58% 73%, rgba(100, 215, 255, 0.58) 73% 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 116px;
  background:
    linear-gradient(90deg, #fff 0 9%, transparent 9% 14%, #ffe787 14% 23%, transparent 23% 30%, #ff9dca 30% 38%, transparent 38% 47%, #dff7ff 47% 58%, transparent 58% 68%, #fff 68% 77%, transparent 77% 100%),
    linear-gradient(0deg, rgba(255,255,255,0.9), rgba(255,255,255,0.08));
}

.hero::before {
  content: "";
  position: absolute;
  right: min(7vw, 96px);
  bottom: 96px;
  width: min(40vw, 500px);
  height: min(35vw, 410px);
  border: 2px solid rgba(37, 48, 82, 0.72);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 26%, #fff 0 24px, transparent 25px),
    radial-gradient(circle at 76% 20%, var(--lemon) 0 38px, transparent 39px),
    linear-gradient(#253052, #253052) 0 35% / 100% 2px no-repeat,
    linear-gradient(#253052, #253052) 0 68% / 100% 2px no-repeat,
    linear-gradient(90deg, #ff9dcc 0 17%, #fff 17% 28%, #ffdf4d 28% 43%, #fff5b8 43% 54%, #fff 54% 65%, #dff7ff 65% 81%, #64d7ff 81% 100%);
  box-shadow: 16px 16px 0 rgba(255, 111, 174, 0.18);
  transform: rotate(2deg);
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 84px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(40px, 6.4vw, 82px);
  line-height: 0.98;
  margin: 0;
  text-shadow: 3px 3px 0 #fff, 7px 7px 0 rgba(100, 215, 255, 0.18);
}

.hero p {
  max-width: 560px;
  color: #334060;
  font-size: 18px;
  line-height: 1.6;
  margin: 18px 0 24px;
}

.section {
  padding: 34px 0;
}

.section-mini {
  margin-top: 18px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
}

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

.category-grid,
.trust-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-tile,
.trust-tile,
.stat-tile,
.panel,
.product-card,
.cart-row,
.order-row {
  border: 1px solid #f4d8e8;
  border-radius: var(--button-radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.category-tile {
  min-height: 166px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  border-color: rgba(255, 111, 174, 0.26);
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 54px;
  height: 54px;
  border: 2px solid rgba(37, 48, 82, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 46%, rgba(37, 48, 82, 0.86) 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, rgba(37, 48, 82, 0.86) 46% 54%, transparent 54%),
    rgba(255,255,255,0.82);
  transform: rotate(8deg);
}

.category-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 34px rgba(255, 111, 174, 0.18);
}

.tile-sky { background: linear-gradient(135deg, #fff, #e9f9ff 44%, var(--sky)); }
.tile-mint { background: linear-gradient(135deg, #fff, #e9fff3 44%, #77e8b6); }
.tile-peach { background: linear-gradient(135deg, #fff, #fff0e4 44%, #ffbd85); }
.tile-lilac { background: linear-gradient(135deg, #fff, #f3edff 44%, #c9b8ff); }
.tile-lemon { background: linear-gradient(135deg, #fff, #fff5bf 44%, var(--lemon)); }
.tile-rose { background: linear-gradient(135deg, #fff, #ffe2ef 44%, var(--rose)); }

.category-tile strong {
  font-size: 21px;
}

.category-tile span {
  color: var(--muted);
  font-weight: 650;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
}

.filters,
.panel {
  padding: 16px;
}

.filters {
  align-self: start;
  position: sticky;
  top: 150px;
  border: 2px solid #f0dfff;
  border-radius: 8px;
  background: #fff;
}

.filters h3,
.panel h3 {
  margin: 0 0 12px;
}

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

.field label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  outline-color: var(--sky);
}

.field textarea {
  min-height: 94px;
  resize: vertical;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
}

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

.product-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 210px 1fr;
  border-color: rgba(255, 111, 174, 0.22);
  background: linear-gradient(180deg, #fff, #fffafd);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(100, 215, 255, 0.55);
  box-shadow: 0 22px 38px rgba(100, 215, 255, 0.16);
}

.product-media {
  position: relative;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 223, 77, 0.32) 0 34px, transparent 35px),
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(255,255,255,0.56)),
    repeating-linear-gradient(45deg, rgba(255, 111, 174, 0.15) 0 12px, rgba(100, 215, 255, 0.14) 12px 24px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

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

.product-art {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(circle at 72% 20%, rgba(255,255,255,0.88) 0 28px, transparent 29px),
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,255,255,0.42)),
    linear-gradient(135deg, var(--art-bg), var(--art-alt));
}

.product-art::before,
.product-art::after,
.product-art span {
  content: "";
  position: absolute;
  border: 2px solid var(--ink);
  background: var(--art-accent);
}

.product-art::before {
  width: 88px;
  height: 88px;
  transform: rotate(12deg);
  border-radius: 8px;
  left: 18%;
  top: 22%;
}

.product-art::after {
  width: 92px;
  height: 42px;
  right: 16%;
  bottom: 24%;
  border-radius: 8px;
  background: var(--art-alt);
}

.product-art span {
  width: 48px;
  height: 48px;
  right: 24%;
  top: 20%;
  border-radius: 50%;
  background: #fff;
}

.product-art strong {
  position: relative;
  z-index: 1;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(37, 48, 82, 0.86);
  border-radius: 8px;
  background: #fff;
  font-size: 24px;
  box-shadow: 5px 5px 0 rgba(37, 48, 82, 0.86);
}

.art-toy { --art-bg: #ffc08f; --art-accent: #ffdf4d; --art-alt: #cdbdff; }
.art-stationery { --art-bg: #64d7ff; --art-accent: #ff8fc1; --art-alt: #ffe88a; }
.art-home { --art-bg: #90ecc5; --art-accent: #64d7ff; --art-alt: #ffdf4d; }
.art-accessory { --art-bg: #cab9ff; --art-accent: #ffc08f; --art-alt: #ff8fc1; }
.art-cosmetic { --art-bg: #ff8fc1; --art-accent: #ffdf4d; --art-alt: #64d7ff; }

.badge-row {
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid rgba(37, 48, 82, 0.82);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.badge.new { background: var(--lemon); }
.badge.free { background: var(--mint); }
.badge.low { background: var(--rose); }

.product-body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.product-name {
  min-height: 44px;
  margin: 0;
  font-size: 17px;
  line-height: 1.28;
}

.price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.price {
  font-size: 20px;
  font-weight: 850;
  color: #e93d8f;
}

.stock {
  color: var(--muted);
  font-size: 13px;
}

.card-actions {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 8px;
}

.qty {
  display: inline-grid;
  grid-template-columns: 34px 44px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.qty button {
  border: 0;
  background: var(--soft);
  min-height: 34px;
  font-weight: 900;
}

.qty input {
  width: 44px;
  border: 0;
  text-align: center;
}

.detail {
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr;
  gap: 28px;
}

.product-gallery {
  display: grid;
  gap: 10px;
}

.detail-media {
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.detail-media img,
.detail-media .product-art {
  height: 100%;
  min-height: 480px;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.gallery-thumb {
  min-height: 74px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  padding: 0;
}

.gallery-thumb.active {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(255, 111, 174, 0.18);
}

.gallery-thumb img,
.gallery-thumb .product-art {
  width: 100%;
  height: 74px;
  object-fit: cover;
  min-height: 74px;
}

.stars {
  display: inline-flex;
  gap: 1px;
  color: #d6c9e2;
  font-weight: 900;
}

.stars .on {
  color: #ffb000;
}

.review-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.review-card,
.mini-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  padding: 12px;
}

.review-card p,
.mini-list p {
  margin-bottom: 6px;
}

.mini-list {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.detail-copy {
  display: grid;
  align-content: start;
  gap: 16px;
}

.detail-copy h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  margin: 0;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.trust-tile,
.stat-tile {
  padding: 16px;
}

.trust-tile {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 253, 0.84)),
    radial-gradient(circle at 86% 16%, rgba(255, 223, 77, 0.38) 0 30px, transparent 31px);
  border-color: rgba(100, 215, 255, 0.28);
}

.trust-tile strong,
.stat-tile strong {
  display: block;
  font-size: 22px;
}

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

.account-layout,
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 20px;
}

.choice-row,
.legal-checks {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

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

.choice-row label,
.legal-checks label {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.legal-checks a {
  color: var(--blue);
  font-weight: 800;
}

.verification-field {
  align-self: end;
}

.legal-nav {
  align-self: start;
  display: grid;
  gap: 8px;
  position: sticky;
  top: 150px;
}

.legal-nav a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 4px;
  background: #fffdfa;
}

.legal-nav a.active {
  border-color: var(--ink);
  background: #fff0fa;
  box-shadow: 3px 3px 0 var(--ink);
}

.legal-nav span {
  color: var(--muted);
  font-size: 13px;
}

.legal-document h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-top: 0;
}

.cart-row,
.order-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  margin-bottom: 12px;
}

.cart-thumb {
  height: 78px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
}

.cart-thumb .product-art,
.cart-thumb img {
  height: 78px;
}

.summary {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  position: sticky;
  top: 150px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.summary-line.total {
  border: 0;
  font-size: 22px;
  font-weight: 850;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  min-width: 0;
}

.admin-shell > div {
  min-width: 0;
}

.section.erp-workspace {
  width: calc(100% - 8px);
  max-width: none;
  padding: 8px 4px 24px;
}

.erp-shell {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 12px;
}

.erp-shell.sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.route-erp .section-head {
  margin: 0 0 10px;
  padding-inline: 4px;
}

.route-erp .admin-tabs {
  top: 12px;
  max-height: calc(100vh - 24px);
}

.admin-tabs {
  display: grid;
  align-content: start;
  gap: 10px;
  position: sticky;
  top: 150px;
  max-height: calc(100vh - 170px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.admin-favorites-label,
.admin-menu-section strong {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-menu-section,
.admin-submenu {
  display: grid;
  gap: 6px;
}

.admin-menu-section {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.admin-menu-section.all-modules {
  padding-top: 4px;
}

.admin-tabs a,
.admin-menu-group summary {
  min-height: 38px;
  border-radius: 8px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 800;
}

.admin-tabs a {
  color: var(--ink);
}

.admin-tabs a.active {
  background: #e9e9ff;
  color: var(--blue);
  box-shadow: inset 3px 0 0 var(--blue);
}

.admin-menu-group {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.admin-menu-group summary {
  cursor: pointer;
  list-style: none;
}

.admin-menu-group summary::-webkit-details-marker {
  display: none;
}

.admin-submenu {
  padding: 4px 0 4px 14px;
}

.admin-submenu a {
  min-height: 34px;
  font-size: 14px;
  font-weight: 750;
}

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

.wide-panel {
  min-width: 0;
}

.admin-data-table {
  min-width: 980px;
}

.product-admin-table {
  min-width: 1480px;
}

.admin-data-table th,
.admin-data-table td {
  vertical-align: middle;
}

.admin-data-table .child-row td:nth-child(2) {
  padding-left: 28px;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-filter-strip {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 220px) minmax(130px, 180px) auto;
  gap: 10px;
  align-items: end;
  margin: 14px 0;
}

.admin-filter-strip input,
.admin-filter-strip select {
  min-width: 0;
}

.admin-filter-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin: 12px 0;
  background: #fffdfa;
}

.admin-filter-box summary {
  cursor: pointer;
  font-weight: 850;
}

.admin-help-note {
  border: 1px solid #ffd0d8;
  background: #fff6f8;
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  font-weight: 750;
  margin: 12px 0;
}

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

.pill-row span {
  border: 1px solid var(--line);
  background: #fff9c9;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 850;
}

.status-toggle.off {
  opacity: .65;
}

.pagination-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
}

.page-size,
.page-numbers,
.pager {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-size a,
.page-numbers a {
  min-width: 38px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 850;
}

.page-size a.active,
.page-numbers a.active {
  border-color: var(--ink);
  background: var(--lemon);
  box-shadow: 2px 2px 0 var(--ink);
}

.header a[href*="admin"],
.nav a[href*="admin"],
.footer a[href*="admin"],
.actions a[href*="admin"] {
  display: none !important;
}

.btn.disabled {
  pointer-events: none;
  opacity: 0.45;
}

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

.admin-stack {
  display: grid;
  gap: 18px;
}

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

.admin-brand-logo {
  width: 188px;
  max-height: 72px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.soft-panel {
  background: #fffdfa;
  box-shadow: none;
}

.erp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 18px;
  align-items: stretch;
  background:
    radial-gradient(circle at 84% 12%, rgba(100, 215, 255, 0.36) 0 82px, transparent 83px),
    linear-gradient(135deg, #fff, #fff4fa 48%, #eaf9ff);
}

.erp-hero h3 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.erp-company-card {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 150px;
  border: 2px solid rgba(37, 48, 82, 0.88);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(255, 111, 174, 0.18) 0 33%, rgba(255, 223, 77, 0.24) 33% 66%, rgba(100, 215, 255, 0.22) 66%),
    #fff;
  box-shadow: 5px 5px 0 rgba(37, 48, 82, 0.88);
}

.erp-company-card strong {
  font-size: 22px;
}

.erp-company-card span {
  color: var(--muted);
  font-weight: 750;
}

.erp-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.erp-module-tile {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  color: var(--text);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 236, 112, .24), rgba(255, 157, 204, .16)),
    #fff;
  border: 1px solid rgba(44, 65, 111, .14);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.erp-module-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(64, 151, 255, .42);
  box-shadow: 0 16px 34px rgba(44, 65, 111, .14);
}

.erp-module-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #263452;
  font-weight: 900;
  background: linear-gradient(135deg, #c9f1ff, #ffd3e8 58%, #fff8a8);
  border: 1px solid rgba(44, 65, 111, .16);
  border-radius: 8px;
}

.erp-module-tile strong {
  font-size: 17px;
}

.erp-module-tile small {
  min-height: 42px;
  color: var(--muted);
  line-height: 1.35;
}

.erp-module-tile em {
  margin-top: auto;
  color: var(--primary);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.erp-submodule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.erp-submodule-card {
  min-height: 104px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px 10px;
  align-items: center;
  padding: 12px;
  color: var(--text);
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(237, 79, 152, .18);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(44, 65, 111, .08);
}

.erp-submodule-card span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #263452;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, #fff4a6, #ffd2e9 62%, #c8efff);
  border: 1px solid rgba(44, 65, 111, .14);
  border-radius: 8px;
}

.erp-submodule-card strong {
  min-width: 0;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.erp-submodule-card small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.erp-submodule-card.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(255, 236, 112, .34), rgba(255, 157, 204, .18)), #fff;
  box-shadow: 0 12px 24px rgba(237, 79, 152, .13);
}

.erp-process-panel .mini-list {
  align-items: flex-start;
}

.route-admin {
  --saas-bg: #f5f7fb;
  --saas-panel: #ffffff;
  --saas-panel-soft: #f8fafc;
  --saas-border: #dbe4f0;
  --saas-ink: #172033;
  --saas-muted: #637089;
  --saas-primary: #2563eb;
  --saas-primary-soft: #eef4ff;
  --saas-accent: #0f9f8f;
  --saas-danger: #dc3f5c;
  --saas-shadow: 0 14px 34px rgba(20, 31, 52, 0.08);
  background: var(--saas-bg);
}

.route-admin .top-strip,
.route-admin .header,
.route-admin .nav,
.route-admin .footer {
  display: none;
}

.route-admin #app {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 18%, rgba(37, 99, 235, 0.08), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(15, 159, 143, 0.1), transparent 26%),
    var(--saas-bg);
}

.saas-workspace {
  --saas-bg: #f5f7fb;
  --saas-panel: #ffffff;
  --saas-panel-soft: #f8fafc;
  --saas-border: #dbe4f0;
  --saas-ink: #172033;
  --saas-muted: #637089;
  --saas-primary: #2563eb;
  --saas-primary-soft: #eef4ff;
  --saas-accent: #0f9f8f;
  --saas-danger: #dc3f5c;
  --saas-shadow: 0 14px 34px rgba(20, 31, 52, 0.08);
}

.section.admin-workspace,
.section.erp-workspace.saas-workspace {
  width: min(100%, calc(100% - 28px));
  max-width: none;
  padding: 18px 0 34px;
}

.saas-workspace > .section-head {
  align-items: center;
  margin: 0 0 16px;
  padding: 18px 20px;
  border: 1px solid var(--saas-border);
  border-radius: 8px;
  background: var(--saas-panel);
  box-shadow: var(--saas-shadow);
}

.saas-workspace .section-title {
  color: var(--saas-ink);
  font-size: 34px;
  line-height: 1.08;
}

.saas-workspace .muted,
.saas-workspace .system-copyright {
  color: var(--saas-muted);
}

.saas-workspace .system-copyright {
  margin: 6px 0 0;
  font-weight: 800;
}

.saas-workspace .saas-shell {
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.saas-workspace .erp-shell.sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.saas-workspace .saas-main {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.saas-workspace .saas-sidebar {
  top: 14px;
  max-height: calc(100vh - 28px);
  padding: 12px;
  border-color: var(--saas-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--saas-shadow);
}

.saas-workspace .admin-menu-section,
.saas-workspace .admin-menu-group {
  border-color: var(--saas-border);
}

.saas-workspace .admin-favorites-label,
.saas-workspace .admin-menu-section strong {
  color: var(--saas-primary);
  letter-spacing: 0.06em;
}

.saas-workspace .admin-tabs a,
.saas-workspace .admin-menu-group summary {
  color: var(--saas-ink);
  border: 1px solid transparent;
  box-shadow: none;
}

.saas-workspace .admin-tabs a:hover,
.saas-workspace .admin-menu-group summary:hover {
  border-color: var(--saas-border);
  background: var(--saas-panel-soft);
}

.saas-workspace .admin-tabs a.active {
  border-color: rgba(37, 99, 235, 0.24);
  background: var(--saas-primary-soft);
  color: var(--saas-primary);
  box-shadow: inset 3px 0 0 var(--saas-primary);
}

.saas-workspace .panel,
.saas-workspace .integration-card,
.saas-workspace .admin-filter-box,
.saas-workspace .pagination-bar,
.saas-workspace .review-card,
.saas-workspace .mini-list {
  border-color: var(--saas-border);
  border-radius: 8px;
  background: var(--saas-panel);
  box-shadow: var(--saas-shadow);
}

.saas-workspace .soft-panel {
  background: var(--saas-panel-soft);
  box-shadow: none;
}

.saas-workspace .admin-help-note {
  border-color: #fed7aa;
  background: #fffbeb;
  color: #854d0e;
}

.saas-workspace .field label {
  color: var(--saas-muted);
}

.saas-workspace .field input,
.saas-workspace .field select,
.saas-workspace .field textarea,
.saas-workspace .admin-filter-strip input,
.saas-workspace .admin-filter-strip select {
  border-color: var(--saas-border);
  background: #fff;
  color: var(--saas-ink);
  outline-color: rgba(37, 99, 235, 0.28);
}

.saas-workspace .btn,
.saas-workspace .page-size a,
.saas-workspace .page-numbers a {
  border: 1px solid var(--saas-border);
  border-radius: 8px;
  background: #fff;
  color: var(--saas-ink);
  box-shadow: none;
}

.saas-workspace .btn:hover,
.saas-workspace .page-size a:hover,
.saas-workspace .page-numbers a:hover {
  transform: none;
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 8px 18px rgba(20, 31, 52, 0.08);
}

.saas-workspace .btn.primary,
.saas-workspace .page-size a.active,
.saas-workspace .page-numbers a.active {
  border-color: var(--saas-primary);
  background: var(--saas-primary);
  color: #fff;
  box-shadow: none;
}

.saas-workspace .btn.ghost {
  background: #fff;
  color: var(--saas-muted);
}

.saas-workspace .btn.rose {
  border-color: rgba(220, 63, 92, 0.25);
  background: #fff1f2;
  color: var(--saas-danger);
}

.saas-workspace .btn.mint,
.saas-workspace .status-pill {
  border-color: rgba(15, 159, 143, 0.26);
  background: #ecfdf5;
  color: #047857;
}

.saas-workspace .table-wrap {
  border: 1px solid var(--saas-border);
  border-radius: 8px;
  background: #fff;
}

.saas-workspace table {
  border-collapse: separate;
  border-spacing: 0;
}

.saas-workspace th,
.saas-workspace td {
  border-color: #e7edf5;
  padding: 11px 12px;
}

.saas-workspace th {
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.saas-workspace tr:hover td {
  background: #fbfdff;
}

.saas-workspace .thumb-mini {
  border: 1px solid var(--saas-border);
  background: var(--saas-panel-soft);
}

.saas-workspace .stat-tile {
  border-color: var(--saas-border);
  background: #fff;
  box-shadow: var(--saas-shadow);
}

.saas-workspace .stat-tile strong {
  color: var(--saas-ink);
  font-size: 24px;
}

.saas-workspace .erp-hero {
  background: linear-gradient(135deg, #ffffff, #f8fbff);
}

.saas-workspace .erp-company-card {
  border: 1px solid var(--saas-border);
  background: #fff;
  box-shadow: none;
}

.saas-workspace .erp-module-tile,
.saas-workspace .erp-submodule-card {
  border-color: var(--saas-border);
  background: #fff;
  box-shadow: var(--saas-shadow);
}

.saas-workspace .erp-module-tile:hover,
.saas-workspace .erp-submodule-card:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.34);
}

.saas-workspace .erp-module-icon,
.saas-workspace .erp-submodule-card span {
  border-color: rgba(37, 99, 235, 0.18);
  background: #eef4ff;
  color: var(--saas-primary);
}

.saas-workspace .erp-module-tile em {
  color: var(--saas-primary);
}

.saas-workspace .erp-submodule-card.active {
  border-color: var(--saas-primary);
  background: var(--saas-primary-soft);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.erp-login {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.08), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(15, 159, 143, 0.09), transparent 26%),
    var(--saas-bg, #f5f7fb);
  padding: 28px;
}

.erp-login-card {
  width: min(620px, 100%);
  background: var(--saas-panel, #fff);
  border: 1px solid var(--saas-border, #dbe4f0);
  border-radius: 10px;
  box-shadow: var(--saas-shadow, 0 14px 34px rgba(20, 31, 52, 0.08));
  color: var(--saas-ink, #172033);
}

.erp-login-card .section-title {
  color: var(--saas-ink, #172033);
}

.erp-login-card .muted,
.erp-login-card .system-copyright {
  color: var(--saas-muted, #637089);
}

.erp-login-card .btn.primary {
  background: var(--saas-primary, #2563eb);
  border-color: var(--saas-primary, #2563eb);
  box-shadow: none;
  color: #fff;
}

.erp-login-card .notice {
  background: var(--saas-primary-soft, #eef4ff);
  border-color: var(--saas-border, #dbe4f0);
  color: var(--saas-ink, #172033);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.status-pill.ok {
  background: #bff7dc;
}

.status-pill.warn {
  background: #fff3ad;
}

.status-pill.off {
  background: #ffd7e8;
}

.design-swatch-row {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}

.design-swatch-row span {
  width: 58px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
}

.active-theme-preview {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin: 14px 0;
  border: 2px solid var(--preview-ink);
  border-radius: var(--button-radius);
  background:
    radial-gradient(circle at 10% 20%, var(--a) 0 22px, transparent 23px),
    linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--s) 38%, #fff));
  box-shadow: 4px 4px 0 var(--preview-ink);
  padding: 16px;
}

.active-theme-preview h3,
.active-theme-preview p {
  margin: 0;
}

.active-theme-preview .eyebrow {
  display: inline-flex;
  margin-bottom: 6px;
  border: 2px solid var(--preview-ink);
  border-radius: 999px;
  background: var(--p);
  color: #fff;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 900;
}

.active-theme-buttons {
  display: grid;
  gap: 8px;
  min-width: 180px;
}

.active-theme-buttons span {
  display: grid;
  place-items: center;
  min-height: 36px;
  border: 2px solid var(--preview-ink);
  border-radius: var(--button-radius);
  background: var(--a);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 2px 2px 0 var(--preview-ink);
}

.active-theme-buttons span:nth-child(2) {
  background: var(--s);
}

.active-theme-buttons span:nth-child(3) {
  background: var(--p);
  color: #fff;
}

.design-swatch-row.mini {
  gap: 5px;
  margin: 0;
}

.design-swatch-row.mini span {
  width: 24px;
  height: 24px;
  border-width: 1px;
  box-shadow: 1px 1px 0 var(--ink);
}

.theme-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.theme-preset-card {
  display: grid;
  align-content: start;
  overflow: hidden;
  border: 2px solid rgba(36, 49, 79, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(67, 45, 108, 0.1);
}

.theme-preset-card.active {
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.theme-preview {
  min-height: 160px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 18%, color-mix(in srgb, var(--a) 72%, #fff) 0 22px, transparent 23px),
    linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--s) 34%, #fff));
  border-bottom: 2px solid rgba(36, 49, 79, 0.12);
}

.preview-toolbar {
  display: flex;
  gap: 7px;
  padding: 12px;
}

.preview-toolbar span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--preview-ink);
  border-radius: 50%;
  background: var(--p);
}

.preview-toolbar span:nth-child(2) {
  background: var(--a);
}

.preview-toolbar span:nth-child(3) {
  background: var(--s);
}

.preview-stage {
  min-height: 82px;
  position: relative;
}

.shape {
  position: absolute;
  display: block;
  border: 2px solid var(--preview-ink);
  box-shadow: 3px 3px 0 var(--preview-ink);
}

.shape.one {
  left: 20px;
  top: 16px;
  width: 58px;
  height: 42px;
  border-radius: 8px;
  background: var(--p);
  transform: rotate(-7deg);
}

.shape.two {
  left: 92px;
  top: 2px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--a);
}

.shape.three {
  right: 20px;
  top: 28px;
  width: 62px;
  height: 36px;
  border-radius: 8px 18px 8px 18px;
  background: var(--s);
  transform: rotate(6deg);
}

.motion-dot {
  position: absolute;
  right: 82px;
  top: 18px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--preview-ink);
  border-radius: 50%;
  background: #fff;
  animation: designPulse 1.4s ease-in-out infinite;
}

.preview-promo {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 2px solid var(--preview-ink);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 850;
}

.preview-promo small {
  color: var(--muted);
  font-weight: 800;
}

.theme-art-pencils .shape.one,
.theme-art-rainbow .shape.one {
  width: 22px;
  height: 70px;
  border-radius: 6px;
}

.theme-art-balloons .shape.two,
.theme-art-bubbles .shape.two,
.theme-art-clouds .shape.two {
  width: 62px;
  height: 44px;
}

.theme-art-orbit .shape.three,
.theme-art-neon .shape.three,
.theme-art-robot .shape.three {
  border-radius: 50%;
}

.theme-art-waves .shape.one,
.theme-art-motion .shape.one {
  border-radius: 999px;
}

.theme-art-books .shape.three,
.theme-art-shelves .shape.three {
  height: 58px;
}

.theme-preset-body {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.theme-preset-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.theme-preset-head h4,
.theme-preset-head p {
  margin: 0;
}

.theme-preset-head h4 {
  font-size: 17px;
}

.theme-preset-head p {
  font-size: 12px;
  line-height: 1.35;
}

.image-button-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.image-button-row span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: var(--button-radius);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 2px 2px 0 var(--ink);
}

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

.promo-mini-grid div {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fffdfa;
  padding: 8px;
}

.promo-mini-grid strong {
  font-size: 11px;
}

.promo-mini-grid span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.btn.full {
  width: 100%;
}

@keyframes designPulse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

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

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

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

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

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.thumb-mini {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.thumb-mini .product-art,
.thumb-mini img {
  height: 48px;
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

.integration-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  margin: 14px 0;
  padding: 14px;
}

.integration-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.integration-card summary::-webkit-details-marker {
  display: none;
}

.integration-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 10px;
}

.pos-shell {
  display: grid;
  gap: 16px;
}

.erp-pos-workspace {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 223, 77, 0.22) 0 88px, transparent 89px),
    radial-gradient(circle at 92% 4%, rgba(100, 215, 255, 0.18) 0 110px, transparent 111px),
    #fff8fd;
  color: #263248;
  padding: 8px;
}

.erp-pos-header {
  position: sticky;
  top: 8px;
  z-index: 9000;
  min-height: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 111, 174, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #fff4fa 58%, #eafbff);
  padding: 6px 10px;
  margin-bottom: 8px;
}

.erp-pos-header strong,
.erp-pos-header span {
  display: block;
}

.erp-pos-header span {
  color: #526175;
  font-size: 13px;
  font-weight: 700;
}

.erp-menu-drawer {
  position: static;
  display: inline-block;
}

.erp-menu-drawer summary {
  position: relative;
  z-index: 10001;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(37, 48, 82, 0.82);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff8a8, #ffdf4d);
  padding: 0 14px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.erp-menu-drawer summary::-webkit-details-marker {
  display: none;
}

.erp-menu-popover {
  display: none;
  box-sizing: border-box;
}

.erp-menu-drawer[open] .erp-menu-popover {
  display: block;
  position: fixed;
  top: 68px;
  left: 10px;
  z-index: 10000;
  width: min(360px, calc(100vw - 20px));
  max-height: calc(100vh - 82px);
  overflow: auto;
  border: 1px solid rgba(255, 111, 174, 0.34);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(37, 48, 82, 0.24);
  padding: 12px;
}

.erp-menu-popover *,
.erp-menu-popover *::before,
.erp-menu-popover *::after {
  box-sizing: border-box;
}

.erp-menu-popover .admin-tabs {
  width: 100%;
  display: grid !important;
  position: static;
  max-height: none;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.erp-menu-popover .admin-menu-section,
.erp-menu-popover .admin-menu-group {
  background: #fff;
}

.erp-menu-popover .admin-menu-group {
  margin-bottom: 8px;
}

.erp-menu-popover .admin-menu-group summary,
.erp-menu-popover .admin-tabs a {
  min-height: 38px;
  display: flex;
  align-items: center;
  border-radius: 7px;
  line-height: 1.18;
}

.erp-menu-popover .admin-tabs a {
  padding: 8px 10px 8px 32px;
}

.erp-menu-popover .admin-tabs a.active {
  background: linear-gradient(135deg, rgba(255, 111, 174, 0.16), rgba(100, 215, 255, 0.14));
}

.pos-kiosk {
  display: grid;
  grid-template-rows: auto minmax(0, auto) auto;
  gap: 4px;
  max-width: 100%;
  height: calc(100vh - 76px);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}

.pos-kiosk .panel {
  border-color: rgba(255, 111, 174, 0.26);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.pos-topbar {
  padding: 4px 6px;
}

.pos-mode-row,
.pos-kiosk-scan {
  display: grid;
  gap: 4px;
}

.pos-mode-row {
  grid-template-columns: minmax(260px, .9fr) minmax(420px, 1.25fr) minmax(260px, 1.45fr);
  margin-bottom: 4px;
  align-items: start;
}

.pos-kiosk-scan input,
.pos-kiosk-scan select,
.touch-select {
  min-height: 34px;
  border: 1px solid rgba(100, 215, 255, 0.78);
  border-radius: 6px;
  background: #fff;
  padding: 6px 9px;
  color: #34465e;
  font-size: 16px;
}

.touch-select {
  width: 100%;
  min-height: clamp(40px, 3.3vw, 50px);
  border-width: 2px;
  font-size: clamp(13px, 0.95vw, 16px);
  font-weight: 850;
  text-align: center;
}

.touch-choice-group {
  min-width: 0;
  display: grid;
  gap: 5px;
  align-content: start;
}

.touch-choice-group > strong {
  color: #34465e;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}

.touch-card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(92px, 100%), 1fr));
  gap: 6px;
  padding-bottom: 2px;
  overflow: visible;
}

.touch-card {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: clamp(40px, 3.2vw, 52px);
  display: grid;
  align-content: center;
  gap: 2px;
  border: 2px solid rgba(100, 215, 255, 0.58);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #fff4fa);
  color: #34465e;
  cursor: pointer;
  padding: 6px 8px;
  text-align: center;
  user-select: none;
  overflow: hidden;
}

.touch-card.compact {
  min-height: clamp(38px, 3vw, 48px);
}

.touch-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.touch-card span {
  font-size: clamp(11px, 0.82vw, 15px);
  font-weight: 900;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.touch-card small {
  color: #6a738c;
  font-size: clamp(9px, 0.68vw, 11px);
  font-weight: 800;
  line-height: 1.1;
}

.touch-card:has(input:checked) {
  border-color: #ff6fae;
  background: linear-gradient(135deg, #fff8a8, #ffd3e8);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.74);
  color: #aa1c59;
}

.staff-row .touch-card {
  min-width: 0;
}

.staff-row {
  grid-template-columns: repeat(auto-fit, minmax(min(84px, 100%), 1fr));
}

.staff-row .touch-card span {
  font-size: clamp(10px, 0.78vw, 14px);
}

.store-row .touch-card {
  min-width: 0;
}

.store-row {
  grid-template-columns: repeat(auto-fit, minmax(min(68px, 100%), 1fr));
}

.store-row .touch-card {
  min-height: 40px;
  padding: 5px 6px;
}

.store-row .touch-card span {
  font-size: clamp(9px, 0.7vw, 12px);
}

.store-row .touch-card small {
  font-size: clamp(7px, 0.56vw, 9px);
}

.payment-row {
  overflow: visible;
  grid-template-columns: repeat(auto-fit, minmax(min(126px, 100%), 1fr));
}

.payment-row .touch-card {
  min-height: 48px;
}

.salesperson-choice {
  grid-column: 1 / -1;
}

.customer-code-block {
  grid-column: 1 / -1;
}

.customer-type-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: visible;
}

.customer-type-row .touch-card {
  min-height: 48px;
}

.pos-customer-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(180px, 1.3fr);
  gap: 8px;
}

.salesperson-choice .staff-row {
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
}

.salesperson-choice .touch-card {
  min-height: 48px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.82) 0 5px, transparent 6px),
    linear-gradient(135deg, #fff, #eafbff 52%, #fff4fa);
}

.kiosk-readonly {
  min-height: 56px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(100, 215, 255, 0.58);
  border-radius: 8px;
  background: #fff;
  color: #34465e;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  padding: 8px;
  overflow-wrap: anywhere;
}

.pos-kiosk-scan {
  grid-template-columns: minmax(86px, 0.55fr) minmax(220px, 2.8fr) minmax(86px, 0.45fr) minmax(96px, 0.55fr) minmax(160px, 0.9fr);
}

.pos-kiosk-scan input[name="barcode"] {
  background: linear-gradient(135deg, #fff8a8, #ffdf4d);
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 850;
}

.pos-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  height: 100%;
}

.pos-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(380px, 35vw, 560px);
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  max-height: none;
  padding: 4px;
  gap: 8px;
  overflow: hidden;
}

.pos-lines-table {
  grid-column: 1;
  grid-row: 1;
  height: 100%;
  min-height: 0;
  overflow: auto;
}

.pos-lines-table table {
  font-size: 15px;
  min-width: 0;
}

.pos-lines-table th {
  background: linear-gradient(135deg, #fff4fa, #eafbff);
  color: #333;
  font-size: 12px;
}

.pos-lines-table td,
.pos-lines-table th {
  border: 1px solid #f3d8ec;
}

.pos-lines-table select,
.pos-lines-table input {
  width: 74px;
  min-height: 32px;
  border: 1px solid rgba(100, 215, 255, 0.72);
  border-radius: 5px;
  background: #fff;
}

.pos-settlement-panel {
  position: relative;
  display: grid;
  grid-column: 2;
  grid-row: 1;
  align-content: start;
  gap: 5px;
  margin-top: 2px;
  padding: 6px 8px 7px;
  border: 2px solid rgba(255, 111, 174, 0.38);
  border-top: 4px solid rgba(100, 215, 255, 0.74);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 252, 0.96));
  box-shadow: 0 -6px 18px rgba(100, 215, 255, 0.08), 0 8px 22px rgba(255, 111, 174, 0.08);
  min-height: 0;
  height: 100%;
  overflow: auto;
}

.pos-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.pos-total-panel {
  display: grid;
  gap: 4px;
}

.pos-total-panel div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5px;
}

.pos-total-panel span {
  color: #d6297a;
  font-size: clamp(13px, .95vw, 17px);
  font-weight: 850;
  text-align: right;
}

.pos-total-panel strong {
  min-height: 28px;
  display: grid;
  align-items: center;
  border: 1px solid rgba(100, 215, 255, 0.72);
  border-radius: 6px;
  background: #fff;
  padding: 0 8px;
  font-size: clamp(15px, 1.05vw, 20px);
  text-align: right;
}

.pos-total-panel .grand strong {
  min-height: 38px;
  color: #000;
  font-size: clamp(24px, 2vw, 34px);
}

.pos-discount-editor {
  grid-template-columns: 1fr 1fr 1fr !important;
}

.pos-discount-editor label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.pos-discount-editor small {
  color: #34465e;
  font-weight: 900;
}

.pos-discount-editor input {
  min-width: 0;
  min-height: 28px;
  border: 1px solid rgba(100, 215, 255, 0.72);
  border-radius: 6px;
  padding: 0 7px;
  text-align: right;
  font-size: 15px;
  font-weight: 850;
}

.currency-select-wrap select {
  width: 100%;
  min-height: 28px;
  border: 1px solid rgba(100, 215, 255, 0.72);
  border-radius: 6px;
  background: #fff;
  color: #263452;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.pos-currency-totals {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 5px !important;
}

.pos-currency-totals span {
  min-height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 111, 174, 0.22);
  border-radius: 6px;
  background: linear-gradient(135deg, #fff8a8, #fff4fa);
  color: #34465e;
  font-size: clamp(11px, .78vw, 14px);
  text-align: center;
}

.customer-display-toggle {
  min-height: 34px;
  white-space: normal;
}

.pos-payment-pad {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 6px;
}

.pos-payment-pad .field {
  margin: 0;
}

.pos-payment-pad .touch-payment-field {
  grid-column: 1 / -1;
}

.pos-payment-pad label {
  font-weight: 800;
  color: #34465e;
}

.pos-payment-pad .pos-complete {
  grid-column: 1 / -1;
  min-height: 38px;
  font-size: 16px;
}

.pos-payment-pad .pos-clear-inline {
  grid-column: 1 / -1;
  min-height: 28px;
  justify-self: stretch;
}

.pos-device-status {
  min-height: 46px;
  border: 1px solid rgba(100, 215, 255, 0.54);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #eafbff);
  padding: 5px 8px;
}

.pos-device-status strong,
.pos-device-status small {
  display: block;
  overflow-wrap: anywhere;
}

.pos-device-status strong {
  color: #263452;
  font-size: 14px;
}

.pos-device-status small {
  color: #6a738c;
  font-size: 10px;
  font-weight: 800;
}

.pos-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-top: 2px;
}

.pos-shortcut {
  min-height: 38px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  border: 2px solid rgba(44, 65, 111, .22);
  border-radius: 8px;
  color: #263452;
  background: #fff;
  box-shadow: 2px 2px 0 rgba(44, 65, 111, .2);
  padding: 5px 6px;
  font: inherit;
  cursor: pointer;
}

.pos-shortcut span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(44, 65, 111, .2);
  border-radius: 6px;
  background: rgba(255, 255, 255, .78);
  font-size: 14px;
  font-weight: 950;
}

.pos-shortcut strong {
  min-width: 0;
  font-size: clamp(9px, .66vw, 12px);
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-align: left;
}

.pos-shortcut.danger { background: linear-gradient(135deg, #ffe3ef, #ffd6d6); border-color: rgba(214, 41, 122, .45); }
.pos-shortcut.hold { background: linear-gradient(135deg, #fff4a6, #ffe6bd); }
.pos-shortcut.history { background: linear-gradient(135deg, #eafbff, #f5eaff); }
.pos-shortcut.serial { background: linear-gradient(135deg, #e9fff3, #d7f5ff); }
.pos-shortcut.stock { background: linear-gradient(135deg, #e8ffce, #fff4a6); }
.pos-shortcut.barcode { background: linear-gradient(135deg, #f5eaff, #c9f1ff); }

.pos-customer-view {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  background: #fff;
  padding: 16px;
}

.pos-customer-view h3 {
  margin: 0 0 14px;
  font-size: 30px;
}

.pos-customer-lines {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 260px;
}

.pos-customer-lines div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  border-bottom: 1px solid #e1e8f1;
  padding-bottom: 9px;
  font-size: 18px;
}

.pos-customer-total {
  border: 2px solid #263248;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff8a8, #ffdf4d);
  padding: 14px;
}

.pos-customer-total span,
.pos-customer-total strong {
  display: block;
}

.pos-customer-total span {
  color: #d6297a;
  font-size: 20px;
  font-weight: 850;
}

.pos-customer-total strong {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  text-align: right;
}

.device-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.device-health-grid div {
  min-width: 0;
  border: 1px solid rgba(100, 215, 255, 0.52);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #eafbff);
  padding: 10px;
}

.device-health-grid strong,
.device-health-grid span {
  display: block;
}

.device-health-grid strong {
  color: #d6297a;
  font-size: 13px;
}

.device-health-grid span {
  overflow-wrap: anywhere;
  color: #34465e;
  font-size: 12px;
  font-weight: 800;
}

.pos-admin-details {
  padding: 12px;
  max-height: 42px;
  overflow: hidden;
}

.pos-admin-details[open] {
  max-height: min(44vh, 420px);
  overflow: auto;
}

.pos-admin-details summary {
  cursor: pointer;
  font-weight: 900;
}

body:has(.erp-pos-workspace) {
  overflow: hidden;
}

.erp-pos-workspace {
  height: 100vh;
  overflow: hidden;
}

.erp-pos-header {
  min-height: 56px;
}

.erp-pos-workspace .pos-kiosk {
  height: calc(100vh - 64px);
}

.erp-pos-workspace .pos-settlement-panel {
  max-height: none;
}

.erp-pos-workspace .pos-payment-pad {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  align-items: end;
}

.erp-pos-workspace .pos-payment-pad .customer-code-block {
  grid-column: 1 / -1;
}

.erp-pos-workspace .pos-payment-pad .pos-customer-fields {
  grid-column: 1 / -1;
}

.erp-pos-workspace .pos-payment-pad .salesperson-choice {
  grid-column: 1 / -1;
}

.erp-pos-workspace .pos-payment-pad > .field.touch-payment-field:not(.customer-code-block):not(.salesperson-choice) {
  grid-column: 1 / -1;
}

.erp-pos-workspace .pos-payment-pad .pos-device-status {
  grid-column: 1 / -1;
}

.erp-pos-workspace .pos-payment-pad > label {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  border: 1px solid rgba(255, 111, 174, 0.22);
  border-radius: 6px;
  background: #fff;
  padding: 5px 7px;
  font-size: 12px;
  line-height: 1.1;
}

.erp-pos-workspace .pos-payment-pad .pos-clear-inline {
  grid-column: 1 / 2;
}

.erp-pos-workspace .pos-payment-pad .pos-complete {
  grid-column: 2 / -1;
}

/* DIA benzeri kasa çalışma düzeni: satır tablosu ana alan, ödeme/tahsilat sabit alt şerit. */
.erp-pos-workspace .pos-ticket {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 6px;
}

.erp-pos-workspace .pos-lines-table {
  grid-column: 1;
  grid-row: 1;
  height: auto;
  min-height: 120px;
}

.erp-pos-workspace .pos-settlement-panel {
  grid-column: 1;
  grid-row: 2;
  height: auto;
  max-height: none;
  overflow: visible;
  border-top-color: rgba(100, 215, 255, 0.86);
}

.erp-pos-workspace .pos-bottom-grid {
  grid-template-columns: minmax(250px, .34fr) minmax(520px, .66fr);
  gap: 8px;
}

.erp-pos-workspace .pos-payment-pad {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.erp-pos-workspace .pos-payment-pad .customer-code-block {
  grid-column: 1 / 3;
}

.erp-pos-workspace .pos-payment-pad .pos-customer-fields {
  grid-column: 3 / -1;
}

.erp-pos-workspace .pos-payment-pad .salesperson-choice {
  grid-column: 1 / 3;
}

.erp-pos-workspace .pos-payment-pad > .field.touch-payment-field:not(.customer-code-block):not(.salesperson-choice) {
  grid-column: 3 / -1;
}

.erp-pos-workspace .pos-payment-pad .pos-device-status {
  grid-column: 1 / 3;
}

.erp-pos-workspace .pos-payment-pad > label {
  min-height: 26px;
}

.erp-pos-workspace .pos-payment-pad .pos-clear-inline {
  grid-column: 3 / 4;
}

.erp-pos-workspace .pos-payment-pad .pos-complete {
  grid-column: 4 / -1;
}

.erp-pos-workspace .pos-shortcut-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.erp-pos-workspace .pos-shortcut {
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 34px;
  box-shadow: 1px 1px 0 rgba(44, 65, 111, .18);
}

.erp-pos-workspace .pos-shortcut-grid {
  align-self: end;
}

.erp-pos-workspace .pos-total-panel span {
  font-size: clamp(12px, .9vw, 16px);
}

.erp-pos-workspace .pos-total-panel strong,
.erp-pos-workspace .pos-discount-editor input,
.erp-pos-workspace .currency-select-wrap select {
  min-height: 27px;
}

.erp-pos-workspace .pos-total-panel .grand strong {
  min-height: 36px;
}

.erp-pos-workspace .touch-card {
  min-height: 34px;
}

.erp-pos-workspace .pos-payment-pad .pos-complete {
  min-height: 38px;
}

.erp-pos-workspace .pos-shortcut {
  min-height: 38px;
}

/* Tek ekran kasa düzeni: ürün satırları içeride kayar, tahsilat alanı viewport içinde kalır. */
.erp-pos-workspace {
  padding: 4px;
}

.erp-pos-workspace .erp-pos-header {
  min-height: 46px;
  margin-bottom: 4px;
  padding: 5px 8px;
}

.erp-pos-workspace .pos-kiosk {
  height: calc(100vh - 56px);
  grid-template-rows: auto minmax(0, 1fr) 24px;
  gap: 4px;
}

.erp-pos-workspace .pos-topbar {
  padding: 4px;
}

.erp-pos-workspace .pos-mode-row {
  grid-template-columns: minmax(170px, .8fr) minmax(320px, 1.25fr) minmax(300px, 1.5fr);
  gap: 4px;
  margin-bottom: 4px;
}

.erp-pos-workspace .touch-choice-group > strong {
  font-size: 10px;
}

.erp-pos-workspace .touch-card {
  min-height: 32px;
  border-radius: 7px;
  padding: 4px 6px;
}

.erp-pos-workspace .touch-card span {
  font-size: clamp(11px, .78vw, 14px);
  line-height: 1.02;
}

.erp-pos-workspace .touch-card small {
  font-size: 9px;
  line-height: 1;
}

.erp-pos-workspace .touch-select {
  min-height: 34px;
  font-size: 12px;
}

.erp-pos-workspace .pos-kiosk-scan {
  grid-template-columns: minmax(72px, .34fr) minmax(260px, 2.6fr) minmax(76px, .32fr) minmax(78px, .36fr) minmax(132px, .55fr);
}

.erp-pos-workspace .pos-kiosk-scan input,
.erp-pos-workspace .pos-kiosk-scan select,
.erp-pos-workspace .pos-kiosk-scan .btn {
  min-height: 32px;
  font-size: 13px;
}

.erp-pos-workspace .pos-main-grid {
  min-height: 0;
  height: 100%;
}

.erp-pos-workspace .pos-ticket {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 4px;
  min-height: 0;
  height: 100%;
  padding: 3px;
}

.erp-pos-workspace .pos-sales-area {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(310px, 28vw, 500px);
  gap: 4px;
}

.erp-pos-workspace .pos-lines-table {
  grid-column: auto;
  grid-row: auto;
  height: 100%;
  min-height: 0;
  overflow: auto;
}

.erp-pos-workspace .pos-lines-table table {
  font-size: 13px;
}

.erp-pos-workspace .pos-lines-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: 11px;
}

.erp-pos-workspace .pos-lines-table td,
.erp-pos-workspace .pos-lines-table th {
  padding: 4px 5px;
}

.erp-pos-workspace .pos-lines-table select,
.erp-pos-workspace .pos-lines-table input {
  min-height: 26px;
  width: 62px;
}

.erp-pos-workspace .pos-cari-side {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  overflow: hidden;
  border: 2px solid rgba(255, 111, 174, 0.28);
  border-top: 3px solid rgba(100, 215, 255, 0.78);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fff8fd);
  padding: 5px;
}

.erp-pos-workspace .pos-cari-side .field {
  margin: 0;
}

.erp-pos-workspace .pos-cari-side label,
.erp-pos-workspace .pos-payment-pad label {
  font-size: 11px;
  line-height: 1.05;
}

.erp-pos-workspace .pos-cari-side .touch-card-row {
  gap: 4px;
}

.erp-pos-workspace .pos-cari-side input {
  min-height: 31px;
  font-size: 13px;
}

.erp-pos-workspace .pos-customer-fields {
  grid-template-columns: minmax(95px, .7fr) minmax(150px, 1.3fr);
  gap: 4px;
}

.erp-pos-workspace .pos-device-status {
  min-height: 38px;
  padding: 4px 6px;
}

.erp-pos-workspace .pos-register-bar {
  grid-column: auto;
  grid-row: auto;
  display: grid;
  grid-template-columns: minmax(300px, .95fr) minmax(360px, 1.15fr) minmax(320px, .9fr);
  gap: 5px;
  height: auto;
  max-height: 230px;
  overflow: hidden;
  padding: 5px;
  border: 2px solid rgba(255, 111, 174, 0.34);
  border-top: 3px solid rgba(100, 215, 255, 0.82);
}

.erp-pos-workspace .pos-bottom-grid {
  display: contents;
}

.erp-pos-workspace .pos-total-panel {
  gap: 3px;
}

.erp-pos-workspace .pos-total-panel div {
  grid-template-columns: minmax(92px, .86fr) minmax(120px, 1fr);
  gap: 4px;
}

.erp-pos-workspace .pos-total-panel span {
  font-size: clamp(11px, .78vw, 14px);
  line-height: 1.05;
}

.erp-pos-workspace .pos-total-panel strong,
.erp-pos-workspace .pos-discount-editor input,
.erp-pos-workspace .currency-select-wrap select {
  min-height: 25px;
  font-size: 14px;
}

.erp-pos-workspace .pos-total-panel .grand strong {
  min-height: 34px;
  font-size: clamp(22px, 1.9vw, 32px);
}

.erp-pos-workspace .pos-discount-editor {
  grid-template-columns: minmax(92px, .85fr) minmax(80px, .7fr) minmax(70px, .55fr) !important;
}

.erp-pos-workspace .pos-currency-totals span {
  min-height: 20px;
  font-size: 10px;
}

.erp-pos-workspace .pos-payment-pad {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: stretch;
  gap: 4px;
}

.erp-pos-workspace .pos-payment-pad > .field.touch-payment-field {
  grid-column: 1 / -1;
}

.erp-pos-workspace .payment-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.erp-pos-workspace .payment-row .touch-card {
  min-height: 42px;
}

.erp-pos-workspace .pos-payment-pad > label {
  min-height: 25px;
  padding: 4px 6px;
  font-size: 11px;
}

.erp-pos-workspace .pos-payment-pad .pos-clear-inline {
  grid-column: 1 / -1;
  min-height: 29px;
}

.erp-pos-workspace .pos-payment-pad .pos-complete {
  grid-column: 1 / -1;
  min-height: 48px;
  font-size: clamp(16px, 1.15vw, 22px);
}

.erp-pos-workspace .pos-shortcut-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
}

.erp-pos-workspace .pos-shortcut {
  min-height: 42px;
  padding: 4px 6px;
  border-radius: 7px;
}

.erp-pos-workspace .pos-shortcut span {
  font-size: 18px;
}

.erp-pos-workspace .pos-shortcut strong {
  font-size: clamp(10px, .75vw, 13px);
  line-height: 1.05;
}

.erp-pos-workspace .pos-admin-details {
  min-height: 0;
  max-height: 24px;
  overflow: hidden;
  padding: 2px 8px;
}

.erp-pos-workspace .pos-admin-details[open] {
  position: fixed;
  inset: auto 8px 8px 8px;
  z-index: 9000;
  max-height: min(70vh, 720px);
  overflow: auto;
}

.pos-admin-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.pos-admin-actions .btn {
  min-height: 42px;
  white-space: normal;
}

/* Kasa ekranı son düzen: tablo ana alan, alt tahsilat bandı tek satır ve sabit. */
.erp-pos-workspace .pos-ticket {
  grid-template-rows: minmax(0, 1fr) clamp(178px, 24vh, 205px);
}

.erp-pos-workspace .pos-register-bar {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(500px, 1.35fr) minmax(290px, .72fr);
  height: auto;
  max-height: none;
  min-height: 0;
  gap: 5px;
  overflow: hidden;
  align-items: stretch;
}

.erp-pos-workspace .pos-total-panel,
.erp-pos-workspace .pos-payment-pad,
.erp-pos-workspace .pos-shortcut-grid {
  min-width: 0;
  min-height: 0;
}

.erp-pos-workspace .pos-total-panel {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 3px;
}

.erp-pos-workspace .pos-total-panel div {
  min-width: 0;
  grid-template-columns: minmax(118px, .72fr) minmax(118px, 1fr);
  gap: 4px;
}

.erp-pos-workspace .pos-total-panel span {
  font-size: clamp(10px, .76vw, 12px);
  line-height: 1.05;
}

.erp-pos-workspace .pos-total-panel strong,
.erp-pos-workspace .pos-discount-editor input,
.erp-pos-workspace .currency-select-wrap select {
  min-height: 23px;
  padding: 0 6px;
  font-size: 13px;
}

.erp-pos-workspace .pos-discount-editor {
  grid-template-columns: minmax(118px, .8fr) minmax(88px, .65fr) minmax(74px, .55fr) !important;
}

.erp-pos-workspace .pos-total-panel .grand strong {
  min-height: 30px;
  font-size: clamp(20px, 1.6vw, 28px);
}

.erp-pos-workspace .pos-currency-totals {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.erp-pos-workspace .pos-currency-totals span {
  min-height: 18px;
  font-size: 10px;
  text-align: center;
}

.erp-pos-workspace .pos-payment-pad {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-rows: auto auto 31px minmax(44px, 1fr);
  align-content: stretch;
  gap: 4px;
}

.erp-pos-workspace .pos-payment-pad > .field.touch-payment-field,
.erp-pos-workspace .pos-check-row {
  grid-column: 1 / -1;
}

.erp-pos-workspace .pos-payment-pad label {
  min-width: 0;
}

.erp-pos-workspace .pos-payment-pad .payment-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.erp-pos-workspace .pos-payment-pad .touch-card {
  min-height: 36px;
  padding: 4px 5px;
}

.erp-pos-workspace .pos-check-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.erp-pos-workspace .pos-check-option {
  min-height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  border: 1px solid rgba(255, 111, 174, 0.22);
  border-radius: 6px;
  background: #fff;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.05;
  white-space: normal;
}

.erp-pos-workspace .pos-payment-pad .pos-clear-inline {
  grid-column: 1 / 2;
  min-height: 31px;
}

.erp-pos-workspace .pos-payment-pad .pos-complete {
  grid-column: 2 / 3;
  grid-row: 3 / 5;
  min-height: 100%;
  font-size: clamp(16px, 1.15vw, 22px);
}

.erp-pos-workspace .pos-register-bar .pos-shortcut-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 4px;
  height: 100%;
}

.erp-pos-workspace .pos-shortcut {
  min-height: 0;
  padding: 4px 5px;
}

.erp-pos-workspace .pos-shortcut strong {
  font-size: clamp(9px, .7vw, 12px);
  line-height: 1.05;
}

.customer-display-screen {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 22px;
  background: linear-gradient(135deg, #fff8a8 0%, #ffd3e8 48%, #c9f1ff 100%);
  color: #263248;
  padding: 42px;
}

.customer-display-screen h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 96px);
}

.customer-display-lines {
  display: grid;
  align-content: start;
  gap: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 22px;
}

.customer-display-lines div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  border-bottom: 1px solid rgba(38, 50, 72, 0.16);
  padding-bottom: 10px;
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 850;
}

.customer-display-total {
  border: 4px solid #263248;
  border-radius: 8px;
  background: #fff;
  padding: 24px;
}

.customer-display-total span,
.customer-display-total strong {
  display: block;
}

.customer-display-total span {
  color: #d6297a;
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 900;
}

.customer-display-total strong {
  font-size: clamp(64px, 12vw, 150px);
  line-height: 0.95;
  text-align: right;
}

.pos-scan-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.pos-scan-form .field {
  margin-bottom: 0;
}

.pos-qty {
  display: inline-grid;
  grid-template-rows: auto auto auto;
  align-items: center;
  justify-items: center;
  gap: 8px;
}

.pos-payment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

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

.pos-total-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 111, 174, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff8fd, #effbff);
}

.pos-total-row span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
}

.pos-qty .btn.icon {
  width: 34px;
  min-height: 34px;
  padding: 0;
}

.pos-qty strong {
  min-width: 28px;
  min-height: 26px;
  display: grid;
  place-items: center;
  text-align: center;
}

.drop-zone {
  min-height: 140px;
  border: 2px dashed var(--sky);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff;
  padding: 16px;
  text-align: center;
}

.preview-box {
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
}

.preview-box img,
.preview-box .product-art {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.notice {
  margin-bottom: 14px;
  border: 1px solid #f8d5e8;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff8fd, #effbff);
  color: #7a3160;
  padding: 12px 14px;
  font-weight: 700;
}

.footer {
  margin-top: 40px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 223, 77, 0.2) 0 52px, transparent 53px),
    linear-gradient(135deg, #fff, #fff4fa 58%, #ecfbff);
  border-top: 1px solid rgba(255, 111, 174, 0.24);
}

.footer .wrap {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 34px 0;
}

.system-copyright,
.footer-copyright {
  color: #7b8498;
  font-size: 13px;
  font-weight: 800;
}

.footer h3,
.footer h4 {
  margin: 0 0 10px;
}

.footer a,
.footer p {
  display: block;
  color: var(--muted);
  margin: 7px 0;
}

#toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 80;
}

.toast {
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .header .wrap,
  .catalog-layout,
  .detail,
  .cart-layout,
  .checkout-layout,
  .account-layout,
  .legal-layout,
  .admin-shell,
  .admin-grid,
  .bulk-operation-grid,
  .admin-filter-strip,
  .erp-hero,
  .pos-mode-row,
  .pos-kiosk-scan,
  .pos-main-grid,
  .pos-bottom-grid,
  .pos-payment-pad,
  .pos-scan-form,
  .pos-payment-grid,
  .device-health-grid,
  .pos-customer-fields,
  .pagination-bar {
    grid-template-columns: 1fr;
  }

  .filters,
  .summary,
  .legal-nav,
  .admin-tabs {
    position: static;
  }

  .category-grid,
  .trust-grid,
  .stats-grid,
  .stats-grid.compact,
  .info-strip,
  .theme-preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

}

@media (max-width: 1280px) {
  .pos-mode-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .touch-card {
    min-width: 104px;
  }

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

  .staff-row .touch-card,
  .store-row .touch-card {
    min-width: 132px;
  }
}

@media (max-width: 980px) {
  .pos-mode-row,
  .pos-main-grid {
    grid-template-columns: 1fr;
  }

  .store-row {
    grid-template-columns: repeat(auto-fit, minmax(min(110px, 100%), 1fr));
  }

  .store-row .touch-card {
    min-height: 44px;
  }

  .store-row .touch-card span {
    font-size: 11px;
  }

  .store-row .touch-card small {
    font-size: 8px;
  }
}

@media (max-width: 760px) {
  .pos-kiosk-scan {
    grid-template-columns: 1fr 1fr;
  }

  .pos-kiosk-scan input[name="barcode"] {
    grid-column: 1 / -1;
  }

  .touch-card-row {
    overflow-x: visible;
  }

  .touch-card-row,
  .staff-row,
  .store-row {
    grid-template-columns: repeat(auto-fit, minmax(min(132px, 100%), 1fr));
  }

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

@media (max-width: 620px) {
  .top-strip .wrap,
  .section-head,
  .actions,
  .cart-row,
  .order-row {
    align-items: stretch;
    flex-direction: column;
  }

  .header .wrap {
    gap: 12px;
    padding: 12px 0;
  }

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

  .hero-inner {
    padding-bottom: 68px;
  }

  .hero::before {
    display: none;
  }

  .theme-preset-grid,
  .promo-mini-grid,
  .theme-preset-head,
  .active-theme-preview {
    grid-template-columns: 1fr;
  }

  .active-theme-buttons {
    min-width: 0;
  }

  .brand-logo {
    width: 138px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .hero p {
    font-size: 17px;
  }

  .category-grid,
  .trust-grid,
  .stats-grid,
  .stats-grid.compact,
  .info-strip,
  .product-grid,
  .footer .wrap,
  .form-grid,
  .gallery-strip {
    grid-template-columns: 1fr;
  }

  .cart-row,
  .order-row {
    grid-template-columns: 72px 1fr;
  }
}

.stock-list-panel {
  grid-column: 1 / -1;
  padding: 14px;
}

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

.stock-context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  align-items: end;
}

.stock-context-grid .wide {
  grid-column: span 2;
}

.stock-filter-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stock-table-wrap {
  max-height: 68vh;
  overflow: auto;
}

.stock-table {
  min-width: 1280px;
  table-layout: fixed;
}

.stock-table th:nth-child(1),
.stock-table td:nth-child(1) {
  width: 110px;
}

.stock-table th:nth-child(2),
.stock-table td:nth-child(2) {
  width: 310px;
}

.stock-table th:nth-child(3),
.stock-table td:nth-child(3) {
  width: 150px;
}

.stock-table th:nth-child(8),
.stock-table td:nth-child(8),
.stock-table th:nth-child(10),
.stock-table td:nth-child(10) {
  width: 118px;
}

.stock-table th:nth-child(13),
.stock-table td:nth-child(13),
.stock-table th:nth-child(14),
.stock-table td:nth-child(14) {
  width: 150px;
}

.stock-table th,
.stock-table td {
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  padding: 7px 8px;
  vertical-align: top;
}

.stock-table .numeric {
  text-align: right;
  white-space: nowrap;
}

.stock-column-filter th {
  background: color-mix(in srgb, var(--lemon) 78%, white);
  padding: 6px;
}

.stock-column-filter input {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid color-mix(in srgb, var(--sky) 55%, white);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 34px;
  padding: 6px 8px;
  width: 100%;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 260px;
}

.table-actions .btn {
  min-height: 34px;
  padding: 7px 10px;
}

.erp-quick-records {
  grid-column: 1 / -1;
}

.stock-count-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.stock-count-lines,
.stock-count-grid > .panel:last-child,
.stock-count-summary {
  grid-column: 1 / -1;
}

.stock-count-start,
.stock-count-scan,
.stock-count-summary {
  align-self: start;
}

.stock-count-scan-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(84px, 0.24fr) minmax(140px, 0.36fr) minmax(96px, 0.24fr);
  gap: 8px;
}

.stock-count-scan-row input,
.stock-count-scan-row select {
  min-width: 0;
  min-height: 48px;
  border: 1px solid color-mix(in srgb, var(--sky) 62%, white);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 850;
}

.stock-count-scan-row input[name="barcode"] {
  background: linear-gradient(135deg, #fff8a8, #ffdf4d);
  font-size: 18px;
}

.count-method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.count-method-grid div,
.stock-count-summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.count-method-grid strong,
.count-method-grid span,
.stock-count-summary span,
.stock-count-summary strong {
  display: block;
}

.count-method-grid strong {
  color: var(--blue);
  font-size: 13px;
}

.count-method-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.stock-count-summary button {
  grid-column: 1 / -1;
}

.stock-count-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.stock-count-summary strong {
  font-size: 24px;
}

.danger-text {
  color: #b3261e !important;
}

.success-text {
  color: #07864b !important;
}

.kv-system-bridge {
  display: grid;
  gap: 18px;
}

.kv-system-status-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.kv-system-bridge code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  border: 1px solid #d9ecff;
  border-radius: 8px;
  background: #f7fbff;
  color: #24304d;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
}

.admin-module-switcher {
  width: min(100%, 1680px);
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-module-card {
  min-height: 86px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  text-decoration: none;
  padding: 14px 16px;
  display: grid;
  align-content: center;
  gap: 6px;
  box-shadow: 0 10px 26px rgba(36, 48, 77, 0.07);
}

.admin-module-card strong,
.admin-module-card span {
  display: block;
}

.admin-module-card strong {
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.05;
}

.admin-module-card span {
  color: var(--muted);
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.25;
  font-weight: 800;
}

.admin-module-card.active {
  border-color: color-mix(in srgb, var(--sky) 72%, var(--rose));
  background: linear-gradient(135deg, rgba(255, 242, 148, 0.9), rgba(255, 222, 236, 0.88));
}

@media (max-width: 980px) {
  .admin-module-switcher {
    grid-template-columns: 1fr;
  }

  .stock-context-grid .wide {
    grid-column: 1 / -1;
  }

  .stock-table {
    min-width: 1180px;
  }

  .stock-table th,
  .stock-table td {
    font-size: 12px;
    padding: 7px 8px;
  }

  .stock-count-grid,
  .stock-count-scan-row,
  .count-method-grid,
  .kv-system-status-grid {
    grid-template-columns: 1fr;
  }
}
