:root, [data-theme="light"] {
  --bg: #b8bec8;
  --card: #d8dce3;
  --text: #1c232c;
  --muted: #5c6672;
  --line: #b4bcc6;
  --sidebar: #c5cad3;
  --sidebar-text: #334155;
  --sidebar-active: #0f172a;
  --accent: #2563eb;
  --purple: #4f46e5;
  --blue: #2563eb;
  --navy: #1e3a8a;
  --green: #059669;
  --red: #dc2626;
  --orange: #d97706;
  --shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 8px 24px rgba(15, 23, 42, .06);
  --radius: 14px;
  --sidebar-w: 276px;
  --topbar-h: 60px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0b1220;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --line: #243044;
  --sidebar: #020617;
  --sidebar-text: #94a3b8;
  --sidebar-active: #fff;
  --shadow: none;
  color-scheme: dark;
}
[data-theme="dark"] .nav-ico-wrap { background: rgba(255,255,255,.06); }
[data-theme="dark"] .side-nav a.nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
[data-theme="dark"] .side-nav a.is-active { color: #fff; background: rgba(37, 99, 235, .22); }
[data-theme="dark"] .nav-acc-count { background: rgba(255,255,255,.08); }
[data-theme="dark"] .nav-acc[data-group="satis"] > .nav-acc-btn .nav-ico-wrap { color: #93c5fd; }
[data-theme="dark"] .nav-acc[data-group="stok"] > .nav-acc-btn .nav-ico-wrap { color: #6ee7b7; }
[data-theme="dark"] .nav-acc[data-group="alis"] > .nav-acc-btn .nav-ico-wrap { color: #fcd34d; }
[data-theme="dark"] .nav-acc[data-group="finans"] > .nav-acc-btn .nav-ico-wrap { color: #c4b5fd; }
[data-theme="dark"] .nav-acc[data-group="pazarlama"] > .nav-acc-btn .nav-ico-wrap { color: #f9a8d4; }
[data-theme="dark"] .nav-acc[data-group="personel"] > .nav-acc-btn .nav-ico-wrap { color: #fdba74; }
[data-theme="dark"] .nav-acc[data-group="isletme"] > .nav-acc-btn .nav-ico-wrap { color: #7dd3fc; }
[data-theme="dark"] .nav-acc[data-group="hizmet"] > .nav-acc-btn .nav-ico-wrap { color: #fda4af; }
[data-theme="dark"] .nav-acc[data-group="entegre"] > .nav-acc-btn .nav-ico-wrap { color: #5eead4; }
[data-theme="dark"] .nav-hello { background: linear-gradient(135deg, rgba(37,99,235,.22), rgba(14,165,233,.1)); border-color: rgba(59,130,246,.22); }
[data-theme="dark"] .nav-find kbd { background: rgba(255,255,255,.08); }
[data-theme="dark"] .nav-acc-secs i { background: rgba(255,255,255,.08); }
[data-theme="dark"] .nav-pulse a { background: rgba(255,255,255,.05); }
* { box-sizing: border-box; }
html {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  min-height: 100%;
}
body {
  margin: 0;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  min-height: 100%;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0 0 12px; font-weight: 650; letter-spacing: -.02em; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }

.app-body {
  display: flex;
  align-items: flex-start;
  height: auto;
  max-height: none;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  padding-left: 0;
}
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  max-width: var(--sidebar-w);
  background: var(--sidebar);
  color: var(--sidebar-text);
  padding: 6px 8px 8px;
  position: sticky; top: 0; z-index: 5;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--line);
  pointer-events: auto;
}
.sidebar .brand {
  display: flex; align-items: center; gap: 8px; color: var(--text);
  padding: 2px 6px 6px; margin-bottom: 2px; border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 11px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .35);
}
.brand small { display: block; color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.2; }
.nav-label {
  margin: 4px 6px 1px; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700;
}
.side-nav > .nav-label:first-child { margin-top: 2px; }
.side-nav {
  display: flex; flex-direction: column; gap: 2px;
  flex: 1 1 auto; min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
.nav-find { flex: 0 0 auto; padding: 0 2px 4px; position: relative; }
.nav-find-input {
  min-height: 32px; padding: 5px 28px 5px 10px; font-size: 12px; border-radius: 10px;
}
.nav-find kbd {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 6px;
  background: rgba(15,23,42,.1); color: var(--muted); pointer-events: none;
}
.nav-find:focus-within kbd { opacity: 0; }
.nav-hello {
  display: flex; align-items: center; gap: 8px;
  margin: 0 2px 4px; padding: 6px 8px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(37,99,235,.14), rgba(14,165,233,.08));
  border: 1px solid rgba(59,130,246,.16);
}
.nav-hello > div { min-width: 0; flex: 1; }
.nav-hello strong { display: block; font-size: 12px; color: var(--text); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-hello small { display: block; font-size: 10px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-clock {
  margin-left: auto; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--text); letter-spacing: .02em;
}
.nav-find-empty { margin: 6px 8px; font-size: 12px; color: var(--muted); }
.nav-go-pos {
  display: flex; align-items: center; gap: 8px;
  margin: 0 2px 4px; padding: 7px 10px; border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9); color: #fff !important;
  font-weight: 800; font-size: 13px; letter-spacing: .01em;
  box-shadow: 0 6px 14px rgba(37,99,235,.24);
}
.nav-go-pos .nav-ico-wrap { background: rgba(255,255,255,.18); color: #fff; }
.nav-go-pos small { margin-left: auto; opacity: .8; font-size: 10px; font-weight: 800; }
.nav-go-pos:hover { filter: brightness(1.06); transform: translateY(-1px); }
.nav-go-pos.is-on { filter: brightness(1.08); box-shadow: 0 0 0 2px rgba(255,255,255,.28), 0 6px 14px rgba(37,99,235,.24); }
.nav-go-receipt {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  box-shadow: 0 6px 14px rgba(15,118,110,.24);
  margin-bottom: 6px;
}
.nav-go-receipt.is-on { box-shadow: 0 0 0 2px rgba(255,255,255,.28), 0 6px 14px rgba(15,118,110,.24); }
.nav-pulse {
  display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 3px;
  margin: 0 2px 4px;
}
.nav-pulse a {
  display: grid; gap: 0; place-items: center;
  padding: 4px 1px; border-radius: 8px;
  background: rgba(15,23,42,.08); color: var(--sidebar-text);
  text-decoration: none; min-width: 0;
}
.nav-pulse a:hover { background: rgba(37,99,235,.16); color: var(--text); }
.nav-pulse b { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.nav-pulse span { font-size: 8px; letter-spacing: .02em; text-transform: uppercase; opacity: .7; white-space: nowrap; overflow: hidden; max-width: 100%; }
.nav-pulse a.is-hot b { color: #f59e0b; }
.nav-pins {
  display: flex; flex-wrap: wrap; gap: 4px; margin: 0 2px 4px;
}
.nav-pins a {
  font-size: 10px; font-weight: 700; padding: 4px 7px; border-radius: 99px;
  background: rgba(15,23,42,.08); color: var(--sidebar-text);
}
.nav-pins a:hover { background: rgba(37,99,235,.18); color: var(--text); }
.nav-acc-preview {
  display: block; font-style: normal; font-size: 9px; font-weight: 550; opacity: .48;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px;
}
.nav-acc.is-open .nav-acc-preview { display: none; }
.nav-acc-secs {
  display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px;
}
.nav-acc.is-open .nav-acc-secs { display: none; }
.nav-acc-secs i {
  font-style: normal; font-size: 8px; font-weight: 800; letter-spacing: .03em;
  text-transform: uppercase; padding: 2px 5px; border-radius: 99px;
  background: rgba(15,23,42,.08); opacity: .72;
}
.nav-live {
  flex-shrink: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px; font-size: 10px; font-weight: 800;
  display: grid; place-items: center;
  background: rgba(14,165,233,.22); color: #38bdf8;
}
.nav-live.is-warn { background: rgba(245,158,11,.22); color: #fbbf24; animation: navPulse 1.8s ease-in-out infinite; }
@keyframes navPulse { 50% { transform: scale(1.08); } }
.nav-acc {
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(15,23,42,.04);
  position: relative;
  overflow: hidden;
}
.nav-acc::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px;
  border-radius: 99px; opacity: .5;
}
.nav-acc[data-group="satis"]::before { background: #3b82f6; }
.nav-acc[data-group="stok"]::before { background: #10b981; }
.nav-acc[data-group="alis"]::before { background: #f59e0b; }
.nav-acc[data-group="finans"]::before { background: #8b5cf6; }
.nav-acc[data-group="pazarlama"]::before { background: #ec4899; }
.nav-acc[data-group="personel"]::before { background: #f97316; }
.nav-acc[data-group="isletme"]::before { background: #0ea5e9; }
.nav-acc[data-group="hizmet"]::before { background: #f43f5e; }
.nav-acc[data-group="entegre"]::before { background: #14b8a6; }
.nav-acc:hover { border-color: rgba(148,163,184,.18); }
.nav-acc.is-open {
  background: rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.22);
}
.nav-acc[data-group="satis"].is-open { background: rgba(37,99,235,.1); border-color: rgba(59,130,246,.28); }
.nav-acc[data-group="stok"].is-open { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.28); }
.nav-acc[data-group="alis"].is-open { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.28); }
.nav-acc[data-group="finans"].is-open { background: rgba(139,92,246,.08); border-color: rgba(139,92,246,.28); }
.nav-acc[data-group="pazarlama"].is-open { background: rgba(236,72,153,.08); border-color: rgba(236,72,153,.28); }
.nav-acc[data-group="personel"].is-open { background: rgba(249,115,22,.08); border-color: rgba(249,115,22,.28); }
.nav-acc[data-group="isletme"].is-open { background: rgba(14,165,233,.08); border-color: rgba(14,165,233,.28); }
.nav-acc[data-group="hizmet"].is-open { background: rgba(244,63,94,.08); border-color: rgba(244,63,94,.28); }
.nav-acc[data-group="entegre"].is-open { background: rgba(20,184,166,.08); border-color: rgba(20,184,166,.28); }
.side-nav.is-finding .nav-acc-count { opacity: .45; }
.nav-acc[hidden] { display: none !important; }
.nav-link[hidden], .nav-label[hidden] { display: none !important; }
.nav-acc { flex: 0 0 auto; }
.nav-acc-btn {
  width: 100%; display: flex; align-items: center; gap: 7px;
  padding: 6px 8px 6px 10px; margin: 0; border: 0; border-radius: 10px;
  background: transparent; color: var(--sidebar-text);
  font: inherit; font-size: 13px; font-weight: 750; letter-spacing: .02em;
  text-align: left; cursor: pointer;
}
.nav-acc-txt { display: flex; align-items: center; min-width: 0; flex: 1; }
.nav-acc-name { line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-acc-txt small, .nav-acc-preview, .nav-acc-secs { display: none !important; }
.nav-acc-count {
  flex-shrink: 0; min-width: 20px; height: 18px; padding: 0 5px;
  border-radius: 99px; font-size: 10px; font-weight: 800;
  display: grid; place-items: center;
  background: rgba(15, 23, 42, .1); color: inherit; opacity: .85;
}
.nav-acc-btn::after {
  content: ""; width: 7px; height: 7px; margin-left: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); opacity: .55; flex-shrink: 0;
}
.nav-acc.is-open > .nav-acc-btn {
  background: rgba(37, 99, 235, .16); color: var(--text);
}
.nav-acc.is-open > .nav-acc-btn::after { transform: rotate(45deg); }
.nav-acc.is-open > .nav-acc-btn .nav-acc-count { background: rgba(37, 99, 235, .28); }
.nav-acc-btn:hover { background: rgba(15, 23, 42, .08); color: var(--text); }
.nav-acc-panel { display: none; flex-direction: column; gap: 1px; padding: 2px 0 6px 6px; }
.nav-acc.is-open > .nav-acc-panel { display: flex; }
.nav-acc-panel > .nav-label { margin: 8px 8px 2px; }
.nav-acc-panel > .nav-label:first-child { margin-top: 2px; }
.nav-acc[data-group="satis"] > .nav-acc-btn .nav-ico-wrap { background: rgba(37,99,235,.2); color: #3b82f6; }
.nav-acc[data-group="stok"] > .nav-acc-btn .nav-ico-wrap { background: rgba(16,185,129,.18); color: #059669; }
.nav-acc[data-group="alis"] > .nav-acc-btn .nav-ico-wrap { background: rgba(245,158,11,.2); color: #d97706; }
.nav-acc[data-group="finans"] > .nav-acc-btn .nav-ico-wrap { background: rgba(139,92,246,.2); color: #7c3aed; }
.nav-acc[data-group="pazarlama"] > .nav-acc-btn .nav-ico-wrap { background: rgba(236,72,153,.18); color: #db2777; }
.nav-acc[data-group="personel"] > .nav-acc-btn .nav-ico-wrap { background: rgba(249,115,22,.18); color: #ea580c; }
.nav-acc[data-group="isletme"] > .nav-acc-btn .nav-ico-wrap { background: rgba(14,165,233,.18); color: #0284c7; }
.nav-acc[data-group="hizmet"] > .nav-acc-btn .nav-ico-wrap { background: rgba(244,63,94,.18); color: #e11d48; }
.nav-acc[data-group="entegre"] > .nav-acc-btn .nav-ico-wrap { background: rgba(20,184,166,.18); color: #0d9488; }
.side-nav-foot {
  flex: 0 0 auto;
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
  overflow: visible;
  gap: 1px;
}
.side-nav a.nav-link {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--sidebar-text); font-weight: 550; position: relative;
  min-width: 0;
  font-size: 13px;
  line-height: 1.2;
}
.side-nav a.nav-link > span:nth-child(2) {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-ico { width: 16px; height: 16px; flex-shrink: 0; opacity: .9; }
.nav-ico-wrap {
  width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  background: rgba(15, 23, 42, .08); flex-shrink: 0;
}
.side-nav a.nav-link:hover { background: rgba(15, 23, 42, .08); color: var(--text); }
.side-nav a.nav-link:hover .nav-ico-wrap { background: rgba(37,99,235,.22); }
.side-nav a.is-active {
  background: rgba(37, 99, 235, .18); color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .35);
}
.side-nav a.is-active::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px;
  border-radius: 0 4px 4px 0; background: #60a5fa;
}
.side-nav a.is-active .nav-ico-wrap { background: #2563eb; color: #fff; }

.shell {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  display: block;
  overflow: visible;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}
.topbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 8px 16px;
  background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 80; min-height: var(--topbar-h); max-width: 100%;
}
.page-title { font-size: 1.05rem; margin: 0; font-weight: 650; flex: 0 1 140px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-freq {
  display: flex; align-items: center; gap: 6px;
  flex: 1 1 auto; min-width: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.top-freq[hidden] { display: none !important; }
.top-freq::-webkit-scrollbar { height: 0; display: none; }
.top-freq a {
  flex: none; padding: 6px 10px; border-radius: 10px;
  font-size: 13px; font-weight: 700; line-height: 1.2;
  color: var(--text); background: var(--bg); border: 1px solid var(--line);
  white-space: nowrap; text-decoration: none;
}
.top-freq a:hover { border-color: var(--blue); color: var(--text); }
.top-freq a.is-on {
  background: var(--blue); color: #fff; border-color: transparent;
}
.topbar-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; flex: 0 0 auto; flex-wrap: wrap; }
.top-who { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.top-who .btn { min-height: 28px; padding: 2px 8px; font-size: 12px; }
.profile-wrap { position: relative; flex-shrink: 0; }
.profile-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px; min-height: 40px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); cursor: pointer; text-align: left;
}
.profile-btn:hover { border-color: var(--blue); }
.profile-ava {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #2563eb, #7c3aed);
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .02em;
}
.profile-ava.is-lg { width: 44px; height: 44px; font-size: 14px; border-radius: 12px; }
.profile-txt { display: grid; line-height: 1.15; min-width: 0; }
.profile-txt strong { font-size: 13px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.profile-txt small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.profile-pop {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 95;
  width: min(360px, calc(100vw - 24px));
  background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(15,23,42,.2);
  padding: 14px;
}
.profile-pop.is-open, .profile-pop:not([hidden]) { display: block; }
.profile-pop[hidden] { display: none !important; }
.profile-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.profile-head strong { display: block; font-size: 15px; }
.profile-head p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.profile-dl { margin: 0; display: grid; gap: 8px; }
.profile-dl > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; align-items: start; }
.profile-dl dt { margin: 0; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }
.profile-dl dd { margin: 0; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.profile-dl dd.is-warn { color: #c2410c; }
.profile-bar { height: 8px; border-radius: 99px; background: rgba(148,163,184,.25); overflow: hidden; margin: 12px 0 4px; }
.profile-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #22c55e, #2563eb); }
.profile-bar.is-warn i { background: linear-gradient(90deg, #f59e0b, #dc2626); }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.profile-actions .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
.mem-now {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px; margin: 8px 0 12px;
}
.mem-now span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.mem-now strong { font-size: 15px; }
.mem-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin-top: 14px;
}
.mem-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; display: grid; gap: 8px; align-content: start;
}
.mem-card h3 { margin: 0; font-size: 1.1rem; }
.mem-card .plan-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--blue, #2563eb);
}
.mem-price { margin: 0; font-size: 1.15rem; font-weight: 800; }
.mem-card.is-on { border-color: #22c55e; box-shadow: 0 0 0 1px rgba(34,197,94,.35); }
.mem-card .btn { width: 100%; }
@media (max-width: 900px) {
  .mem-grid { grid-template-columns: 1fr; }
}
.mem-pay-box { width: min(560px, 100%); }
.mem-pay-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.mem-pay-plan {
  display: grid; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); cursor: pointer;
}
.mem-pay-plan:has(input:checked) { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, var(--bg)); }
.mem-pay-plan input { position: absolute; opacity: 0; pointer-events: none; }
.mem-pay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0 12px; }
.mem-pay-tabs .btn.is-on { background: var(--blue); color: #fff; border-color: var(--blue); }
.mem-iban { display: grid; gap: 6px; margin-bottom: 12px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; }
.mem-iban p { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pay-iyzico { min-height: 280px; }
.sidebar-toggle { display: none; }

.menu-overlay {
  display: none !important;
  visibility: hidden;
  position: fixed; inset: 0; background: rgba(15,20,28,.35);
  z-index: 4; pointer-events: none !important;
}

.quick-wrap { position: relative; }
.quick-popup {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 90;
  width: min(340px, calc(100vw - 32px));
  background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15,23,42,.18);
  padding: 12px;
}
.quick-popup.is-open, .quick-popup:not([hidden]) { display: block; }
.quick-popup[hidden] { display: none !important; }
.quick-links { display: grid; gap: 4px; margin-bottom: 10px; max-height: 240px; overflow: auto; }
.quick-row { display: flex; align-items: center; gap: 6px; }
.quick-row a { flex: 1; padding: 8px 10px; border-radius: 8px; }
.quick-row a:hover { background: var(--bg); }
.quick-row .btn { min-height: 32px; padding: 4px 8px; font-size: 12px; }
.quick-add { display: grid; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }

.page { padding: 16px clamp(12px, 2vw, 24px) 40px; width: 100%; max-width: 100%; overflow: visible; flex: 0 0 auto; }
.page.receipt { overflow: visible; max-height: none; }
.mt { margin-top: 16px; }

.grid { display: grid; gap: 14px; width: 100%; min-width: 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.grid-6 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.dash-hero { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.dash-page { display: grid; gap: 14px; }
.dash-welcome { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.dash-welcome h2 { margin: 0 0 4px; }
.dash-welcome p { margin: 0; }
.dash-net { text-align: right; }
.dash-net span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.dash-net strong { font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; }
.dash-sec { display: grid; gap: 8px; }
.dash-sec h3, .dash-page .card > h3 {
  margin: 0 0 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.dash-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dash-kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dash-kpis .kpi { display: grid; gap: 4px; }
.dash-kpis .kpi span { font-size: 12px; font-weight: 700; }
.dash-kpis .is-focus { outline: 2px solid var(--purple); }
.dash-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.dash-split-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: dashr; }
.dash-rank li {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center;
  counter-increment: dashr;
}
.dash-rank li::before {
  content: counter(dashr); width: 22px; height: 22px; border-radius: 8px;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
  background: var(--bg); border: 1px solid var(--line); color: var(--muted);
}
.dash-rank span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 650; }
.dash-rank strong { font-variant-numeric: tabular-nums; font-size: 13px; }
.dash-rank em { display: none; }
.dash-total { margin: 0 0 10px; font-weight: 750; }
.dash-note { margin: 10px 0 0; }
.dash-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.dash-card-head h3 { margin: 0; }
.dash-add { display: grid; grid-template-columns: 1fr 100px 140px auto; gap: 8px; align-items: center; }
.dash-add-note { grid-template-columns: 140px 1fr 1fr auto; }
.dash-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 0; }
.dash-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.dash-list li > div { display: grid; gap: 2px; min-width: 0; }
.dash-list strong { font-size: 13px; }
.dash-list span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-list-act { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
@media (max-width: 980px) {
  .dash-kpis, .dash-kpis-4, .dash-split, .dash-split-3 { grid-template-columns: 1fr; }
  .dash-add, .dash-add-note { grid-template-columns: 1fr 1fr; }
  .dash-add button, .dash-add-note button { grid-column: 1 / -1; }
  .dash-net { text-align: left; }
}

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px clamp(12px, 1.5vw, 18px); min-width: 0; max-width: 100%;
  overflow-x: auto;
}
.kpi .val { font-size: 1.35rem; font-weight: 750; letter-spacing: -.03em; }
.muted { color: var(--muted); }

.btn, button.btn, a.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 10px; padding: 9px 14px; font-weight: 600; cursor: pointer; color: #fff;
  min-height: 40px; font-size: 14px;
}
.btn-purple { background: var(--purple); }
.btn-blue { background: var(--blue); }
.btn-navy { background: var(--navy); }
.btn-green { background: var(--green); }
.btn-danger { background: var(--red); }
.btn-orange { background: var(--orange); }
.btn-gray { background: #475569; }
.btn-white { background: var(--card); color: var(--text) !important; border: 1px solid var(--line); }
.icon-btn {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; cursor: pointer; color: var(--text); min-height: 40px;
}
.theme-btn { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; }
.theme-ico { width: 18px; height: 18px; flex-shrink: 0; }
.input, select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--text); min-height: 40px; font-size: 15px;
}
.input:focus, select:focus, textarea:focus { outline: 2px solid rgba(37,99,235,.25); border-color: var(--blue); }
label { display: block; font-size: 12px; font-weight: 600; margin: 0 0 6px; color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row .input, .row select { flex: 1 1 160px; min-width: 0; }
.table-wrap { overflow: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; max-width: 100%; }
table { width: 100%; border-collapse: collapse; min-width: 0; }
th, td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; overflow-wrap: anywhere; word-break: break-word; }
thead th { background: #d5dae1; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .03em; }
[data-theme="dark"] thead th { background: #0b1220; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 650; }
.badge-green { background: #ecfdf5; color: #047857; }
.badge-blue { background: #eff6ff; color: #1d4ed8; }
.badge-navy { background: #eef2ff; color: #3730a3; }
.badge-orange { background: #fff7ed; color: #c2410c; }
.badge-purple { background: #eef2ff; color: #4338ca; }
.badge-gray { background: #f3f4f6; color: #374151; }
.alert { padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.alert-ok { background: #ecfdf5; color: #047857; }
.alert-err { background: #fef2f2; color: #b91c1c; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.auth-card { width: min(420px, 100%); }
.welcome { background: var(--card); }
.thumb { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: var(--bg); flex-shrink: 0; }
.thumb-lg { width: 64px; height: 64px; }
.thumb-lg { width: 56px; height: 56px; }
.thumb-empty { display: grid; place-items: center; color: var(--muted); font-size: 12px; border: 1px dashed var(--line); }
.locked { opacity: .55; }
.summary-bar { display: flex; flex-wrap: wrap; gap: 16px; background: #d8dde4; padding: 12px; border-radius: 12px; border: 1px solid var(--line); }
[data-theme="dark"] .summary-bar { background: #0b1220; }
.actions { display: flex; flex-wrap: wrap; gap: 4px; }
.actions a, .actions button { margin-right: 0; padding: 6px 8px; font-size: 12px; min-height: 32px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.widget-list { display: grid; gap: 8px; }
.widget-item { display: flex; gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.profit { color: var(--green); }
.loss { color: var(--red); }

.pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
  gap: 12px;
  align-items: start;
  width: 100%;
  min-width: 0;
}
.pos-main { display: grid; gap: 16px; min-width: 0; }
.staff-page { display: grid; gap: 12px; }
.staff-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.staff-card-head h2 { margin: 0 0 4px; }
.staff-card-head p { margin: 0; }
.staff-perm-panel { margin-top: 12px; }
.staff-perm-panel[hidden] { display: none !important; }
.staff-perm { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 12px; }
.staff-perm-g { display: grid; gap: 6px; }
.staff-sc-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 650;
  margin: 0; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); cursor: pointer; color: var(--text);
}
.staff-sc-item:hover { border-color: var(--blue); }
.staff-sc-item:has(input:checked) {
  background: var(--blue); border-color: var(--blue); color: #fff;
}
.staff-sc-item input { accent-color: #fff; width: 16px; height: 16px; flex-shrink: 0; }
.tab {
  display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 650; font-size: 13px;
}
.tab.is-on { background: var(--blue); color: #fff; border-color: var(--blue); }
.cust-layout { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
.cust-table { table-layout: auto; }
.cust-table th:nth-child(3), .cust-table td:nth-child(3), .num { white-space: nowrap; text-align: right; }
.cust-table tfoot th, .cust-table tfoot td { border-bottom: 0; font-weight: 750; }
@media (max-width: 980px) {
  .cust-layout { grid-template-columns: 1fr; }
}
.btn, .input, select, textarea { max-width: 100%; }
.pos-side { min-width: 0; max-width: 100%; position: sticky; top: 72px; height: calc(100vh - 84px); max-height: calc(100vh - 84px); overflow: hidden; }
.pos-check {
  display: flex; flex-direction: column; gap: 8px;
  height: 100%; min-height: 0; overflow: hidden;
  padding: 12px; overflow-x: hidden;
}
.pos-check .input { min-height: 38px; padding: 6px 10px; font-size: 14px; }
.pos-cart .table-wrap { max-height: min(36vh, 340px); }
.pos-search-row .input { flex: 1 1 220px; min-width: 0; }
.pos-toolbar { margin: 10px 0 6px; color: var(--muted); font-size: 13px; }
.pos-table { table-layout: fixed; }
.pos-table th, .pos-table td { overflow-wrap: normal; word-break: normal; }
.pos-table th:nth-child(2), .pos-table td:nth-child(2) { width: 168px; }
.pos-table th:nth-child(3), .pos-table td:nth-child(3),
.pos-table th:nth-child(4), .pos-table td:nth-child(4) { width: 96px; text-align: right; white-space: nowrap; }
.pos-table th:nth-child(5), .pos-table td:nth-child(5) { width: 72px; }
.pos-table .qty { width: 100%; min-width: 0; padding: 6px 8px; min-height: 36px; font-size: 13px; }
.pos-qty { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 6px; align-items: center; }
.pos-qty .sale-unit, .pos-qty .pos-unit-lab {
  width: 100%; min-width: 0; max-width: none;
  min-height: 36px; padding: 6px 4px; font-size: 12px;
}
.pos-unit-lab {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--muted); font-weight: 650;
}
.pos-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  margin: 0; padding: 12px 14px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 22%, var(--card)), color-mix(in srgb, #059669 18%, var(--card)));
  border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--line));
}
.pos-hero small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.pos-hero strong { display: block; font-size: 1.75rem; line-height: 1.1; letter-spacing: -.03em; }
.pos-hero-r { display: grid; justify-items: end; gap: 4px; }
.pos-hero em { font-style: normal; font-weight: 800; font-size: 12px; padding: 5px 10px; border-radius: 999px; background: #059669; color: #fff; }
.pos-hero em[data-pay="eft"] { background: #0e7490; }
.pos-hero em[data-pay="pos"] { background: #2563eb; }
.pos-hero em[data-pay="acik_hesap"] { background: #ea580c; }
.pos-hero em[data-pay="parcali"] { background: #7c3aed; }
.pos-hero time { font-size: 12px; font-weight: 700; color: var(--muted); }
.pos-hero b { font-size: 13px; color: var(--green); }
.pos-hero b.is-short { color: var(--red); }
.pos-last { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--muted); max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-pay {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  flex-shrink: 0;
}
.pay-btn {
  min-height: 46px; padding: 6px 4px; border-radius: 12px; border: 1px solid transparent;
  color: #fff; cursor: pointer; font-weight: 800; font-size: 13px;
  display: grid; place-items: center; gap: 1px;
}
.pay-btn small { font-size: 9px; font-weight: 700; opacity: .78; }
.pay-btn:hover { filter: brightness(1.06); }
.pay-btn:active { transform: scale(.97); }
.pay-nakit { background: #059669; }
.pay-eft { background: #0e7490; }
.pay-pos { background: #2563eb; }
.pay-acik { background: #ea580c; }
.pay-parcali { background: #7c3aed; }
.pay-btn.active { box-shadow: inset 0 0 0 2px #fff; filter: brightness(1.08); }
.pos-cust-chip {
  margin: 0; padding: 5px 8px; border-radius: 8px; flex-shrink: 0;
  background: color-mix(in srgb, var(--blue) 10%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--blue) 24%, var(--line));
  font-size: 12px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pos-check [hidden] { display: none !important; }
.pos-extra { margin: 0; flex-shrink: 0; }
.pos-partial { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0; }
.pos-partial p { margin: 0; }
.pos-partial .input { padding: 4px 6px; min-height: 28px; }
.pos-rest { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 4px; }
.pos-rest .btn { min-height: 26px; padding: 2px 4px; font-size: 11px; }
.pos-cash {
  display: grid; gap: 8px;
  flex: 1 1 auto; min-height: 0;
}
.pos-give-wrap {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
}
.pos-give-wrap span { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pos-give-in { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; border: 0; background: transparent; padding: 4px 0; min-height: 36px; }
.pos-notes { display: grid; gap: 8px; min-height: 0; }
.pos-notes-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.pos-notes-head span { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pos-notes-edit {
  border: 0; background: transparent; color: var(--blue); font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; padding: 0;
}
.pos-notes-edit.is-on { color: var(--text); }
.pos-notes-tools { display: flex; gap: 10px; align-items: center; }
.pos-notes-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
}
.pos-note {
  display: grid; gap: 4px; padding: 6px 4px 5px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
}
.pos-note.is-off { opacity: .4; }
.pos-note.is-off .pos-note-val { text-decoration: line-through; }
.pos-note-val {
  display: block; text-align: center; font-weight: 800; font-size: 15px; line-height: 1.2;
  border: 0; background: transparent; color: var(--text); cursor: pointer; padding: 2px 0;
}
.pos-note-qty { display: block; text-align: center; font-size: 11px; font-weight: 750; color: var(--muted); min-height: 14px; }
.pos-note-ops { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pos-note-ops button {
  min-height: 34px; border-radius: 9px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--blue) 8%, var(--bg)); color: var(--text);
  font-weight: 800; font-size: 18px; cursor: pointer; padding: 0;
}
.pos-note-ops button:hover { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 16%, var(--bg)); }
.pos-note-ops button:active { transform: scale(.96); }
.pos-note-ops button:disabled { opacity: .35; cursor: default; transform: none; }
.pos-numpad {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 6px; margin: 0; min-height: 0; height: 100%;
}
.pos-numpad button {
  min-height: 48px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font-weight: 800; font-size: 18px; cursor: pointer;
}
.pos-numpad button:hover { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, var(--bg)); }
.pos-numpad button:active { transform: scale(.96); background: color-mix(in srgb, var(--blue) 18%, var(--bg)); }
.pos-numpad button[data-pad="C"], .pos-numpad button[data-pad="B"] { font-size: 15px; color: var(--muted); }
.pos-numpad .pos-pad-ok { background: color-mix(in srgb, var(--blue) 16%, var(--bg)); color: var(--text); }
.pos-disc { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.pos-disc select { width: 108px; flex: 0 0 108px; min-height: 36px; padding: 4px 8px; font-size: 13px; }
.pos-disc #discVal { width: 64px; flex: 0 0 64px; min-height: 36px; }
.pos-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; flex-shrink: 0;
  font-size: 13px; font-weight: 650; color: var(--muted);
}
.pos-stats b, .pos-stats strong { float: right; color: var(--text); font-size: 14px; }
.pos-stats .loss b { color: var(--red); }
.pos-stats .sum-change { color: var(--green); grid-column: 1 / -1; font-size: 14px; }
.pos-stats .sum-change.is-short { color: var(--red); }
.pos-check-actions {
  display: grid; grid-template-columns: 1fr auto auto; gap: 6px; margin-top: 0;
  padding-top: 8px; border-top: 1px solid var(--line); flex-shrink: 0;
}
.pos-save { width: 100%; padding: 12px 12px; font-size: 16px; display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; }
.pos-save small { font-size: 11px; opacity: .85; font-weight: 700; }
.pos-check-actions .btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.25); }
.pos-check-actions .btn-white { min-height: 48px; padding: 10px 14px; font-size: 14px; }
.pos-cust h3 { margin: 0 0 8px; font-size: 15px; }
.pos-cust-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.pos-cust-grid p { margin: 0; }
.pos-cust-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pos-quick-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.pos-quick-head h3 { margin: 0; flex-shrink: 0; font-size: 15px; }
.pos-quick-search { position: relative; flex: 1; min-width: 0; }
.pos-quick-search .input { width: 100%; }
.pos-qsug {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 8;
  display: grid; gap: 4px; max-height: 280px; overflow: auto;
  padding: 6px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.pos-qsug[hidden] { display: none !important; }
.pos-qsug-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; align-items: center; }
.pos-qsug-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; align-items: center;
  width: 100%; border: 0; background: transparent; color: inherit; text-align: left;
  padding: 6px; border-radius: 10px; cursor: pointer;
}
.pos-qsug-row:hover { background: var(--bg); }
.pos-qsug-row img, .pos-qsug-row .pos-qph {
  width: 44px; height: 44px; border-radius: 8px; object-fit: contain; background: var(--bg);
}
.pos-qsug-row strong { display: block; font-size: 13px; line-height: 1.25; }
.pos-qsug-row em { font-style: normal; color: var(--muted); font-size: 12px; font-weight: 700; }
.pos-qsug-pin {
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  border-radius: 8px; padding: 6px 8px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.pos-qgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 108px);
  justify-content: start;
  align-content: start;
  gap: 8px;
  min-width: 0;
}
.pos-qline { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; }
.pos-qchip {
  display: inline-flex; align-items: baseline; gap: 6px; max-width: 280px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  border-radius: 999px; padding: 4px 10px; cursor: pointer; text-align: left;
  font-size: 12px; font-weight: 650; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pos-qchip:hover { border-color: var(--blue); }
.pos-qchip em { font-style: normal; color: var(--muted); font-weight: 700; flex-shrink: 0; }
.pos-qrm {
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font-size: 11px; font-weight: 650; padding: 0 4px; text-decoration: underline;
}
.pos-qrm:hover { color: var(--red); }
.pos-qempty { color: var(--muted); font-size: 13px; margin: 0; grid-column: 1 / -1; }
.pos-qbody {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: flex-start;
}
.pos-qgrid {
  flex: 1;
  min-width: 0;
}
.pos-qpad {
  flex: 0 0 210px;
  width: 210px;
  margin-left: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.pos-qkey {
  min-width: 0;
  min-height: 58px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  border-radius: 10px; padding: 6px;
  cursor: pointer; font-size: 11px; font-weight: 700; line-height: 1.2;
  text-align: center; display: grid; place-items: center;
  overflow: hidden; word-break: break-word;
}
.pos-qkey:hover { border-color: var(--blue); }
.pos-qkey.is-on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.pos-qkey.is-plus {
  background: transparent;
  border: 1.5px dashed color-mix(in srgb, var(--muted) 55%, transparent);
  color: var(--muted);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1;
}
.pos-qkey.is-plus:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(37, 99, 235, .08);
}
.pos-qcell { position: relative; min-width: 0; display: grid; }
.pos-qcell .pos-qkey { width: 100%; min-height: 58px; }
.pos-qswap {
  position: absolute; top: 3px; right: 3px;
  width: 22px; height: 22px; padding: 0; z-index: 2;
  border: 0; border-radius: 6px; cursor: pointer;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--text) 14%, transparent);
  color: var(--text);
}
.pos-qcell:has(.is-on) .pos-qswap {
  background: rgba(255,255,255,.24);
  color: #fff;
}
.pos-qswap:hover { background: var(--blue); color: #fff; }
.pos-qswap svg { width: 12px; height: 12px; }
.pick-slot-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 10px; padding: 8px 10px; border-radius: 10px;
  background: color-mix(in srgb, var(--blue) 10%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--line));
  font-size: 13px;
}
.pick-slot-bar[hidden] { display: none; }
.pick-row.is-current { background: color-mix(in srgb, var(--blue) 12%, transparent); }
.pos-qtile { position: relative; width: 108px; max-width: 108px; min-width: 0; display: grid; gap: 2px; }
.pos-qtile .pos-qrm { justify-self: start; }
.pos-qstok { font-size: 10px; opacity: .7; }
.pos-qhit {
  display: grid; gap: 4px; width: 108px; box-sizing: border-box;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  border-radius: 12px; padding: 6px; cursor: pointer; text-align: left;
}
.pos-qhit:hover { border-color: var(--blue); }
.pos-qimg {
  display: grid; place-items: center; width: 100%; height: 72px;
  border-radius: 8px; background: rgba(0,0,0,.18); overflow: hidden;
}
.pos-qimg img {
  width: 100%; height: 72px; max-width: 100%; max-height: 72px;
  object-fit: contain; min-width: 0; min-height: 0;
}
.pos-qph {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-weight: 800; font-size: 22px; color: var(--muted);
}
.pos-qhit strong {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 12px; line-height: 1.3; min-height: 2.6em;
}
.pos-qhit em { font-style: normal; color: var(--muted); font-size: 12px; font-weight: 800; }
.pos-qx {
  position: absolute; top: 6px; right: 6px; z-index: 1;
  width: 22px; height: 22px; border: 0; border-radius: 6px;
  background: rgba(185, 28, 28, .92); color: #fff; font-size: 14px; line-height: 22px;
  padding: 0; cursor: pointer;
}
.pos-qempty { color: var(--muted); font-size: 13px; margin: 0; grid-column: 1 / -1; }
.pos-qbtn {
  text-align: left; border: 1px solid var(--line); background: var(--bg);
  color: var(--text); border-radius: 12px; padding: 10px; cursor: pointer;
  text-decoration: none; display: grid; gap: 4px;
}
.pos-qbtn strong { font-size: 13px; }
.pos-qbtn em { font-style: normal; color: var(--muted); font-size: 12px; font-weight: 700; }
.pos-cust[hidden] { display: none !important; }
.modal-box-wide { width: min(920px, 100%); }
.modal-box.pick-modal {
  width: min(720px, calc(100vw - 48px));
  height: min(560px, calc(100vh - 80px));
  max-height: min(560px, calc(100vh - 80px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 12px;
  box-sizing: border-box;
}
.pick-modal .row { flex-shrink: 0; }
.pick-modal > p { margin: 8px 0 0; flex-shrink: 0; }
.pick-table { flex: 1; min-height: 0; max-height: none; overflow: auto; margin-top: 8px; }
.pick-table thead th { position: sticky; top: 0; z-index: 1; }
.pick-table table { table-layout: fixed; width: 100%; }
.pick-table th, .pick-table td {
  overflow-wrap: normal; word-break: normal; vertical-align: middle;
  padding: 5px 8px; font-size: 12px;
}
.pick-table th:nth-child(1), .pick-table td:nth-child(1) { width: 44px; }
.pick-table th:nth-child(3), .pick-table td:nth-child(3) { width: 96px; white-space: nowrap; text-align: right; }
.pick-table th:nth-child(4), .pick-table td:nth-child(4) { width: 128px; }
.pick-thumb {
  width: 32px; height: 32px; object-fit: contain; border-radius: 6px;
  background: var(--bg); display: block;
}
.pick-thumb.thumb-empty { font-size: 10px; }
.pick-name {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 13px; line-height: 1.25;
}
.pick-meta {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 11px; color: var(--muted); margin-top: 1px;
}
.pick-price { font-variant-numeric: tabular-nums; font-weight: 700; }
.pick-table tbody tr.pick-row { cursor: pointer; }
.pick-table tbody tr.pick-row:hover { background: rgba(37,99,235,.08); }
.pick-add-qty { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px; align-items: center; }
.pick-add-qty .pick-qty { min-height: 28px; padding: 2px 6px; font-size: 12px; }
.pick-add-qty .btn { min-height: 28px; padding: 2px 8px; font-size: 12px; }

@media (max-height: 760px) {
  .pos-side { overflow: auto; height: auto; max-height: calc(100vh - 76px); }
  .pos-check { height: auto; overflow: visible; }
}

@media (max-width: 1180px) {
  .pos-layout { grid-template-columns: 1fr; }
  .pos-side { position: static; height: auto; max-height: none; overflow: visible; }
  .pos-check { height: auto; }
  .pos-cust-grid { grid-template-columns: 1fr 1fr; }
  .pos-cust-actions { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .pos-qbody { flex-wrap: wrap; }
  .pos-qpad { margin-left: 0; }
}

@media (max-width: 900px) {
  .app-body { padding-left: 0; display: block; }
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-105%);
    transition: transform .2s ease; width: min(280px, 88vw); max-width: min(280px, 88vw);
    flex: none;
    overflow-y: auto;
  }
  .side-nav { overflow: visible; flex: none; }
  .sidebar.is-open { transform: none; }
  .menu-overlay.is-open {
    display: block !important;
    visibility: visible;
    pointer-events: auto !important;
    z-index: 50;
  }
  .sidebar-toggle { display: inline-flex; }
  .pos-meta { grid-template-columns: 1fr; }
  .pos-cust-grid { grid-template-columns: 1fr; }
  .page { padding: 12px; }
  .tenant-name { display: none; }
  .theme-btn { padding: 8px; }
  .theme-lbl { display: none; }
  .profile-txt { display: none; }
  .profile-btn { padding: 4px; }
}

@media (max-width: 640px) {
  .kpi .val { font-size: 1.15rem; }
  .pay-btn { min-height: 40px; font-size: 13px; }
  .topbar-right .muted { display: none; }
  .top-who .btn { display: inline-flex; }
}

.land-body { background: #070b14; color: #e8eef8; min-height: 100vh; overflow-x: hidden; }
.land-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background:
  radial-gradient(800px 400px at 10% 0%, rgba(37,99,235,.35), transparent 60%),
  radial-gradient(700px 380px at 90% 10%, rgba(124,58,237,.28), transparent 55%); }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 14s ease-in-out infinite; }
.orb-a { width: 420px; height: 420px; background: #2563eb; top: -80px; left: -80px; }
.orb-b { width: 360px; height: 360px; background: #7c3aed; right: -60px; top: 20%; animation-delay: -5s; }
.orb-c { width: 300px; height: 300px; background: #0ea5e9; bottom: -40px; left: 30%; animation-delay: -9s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(48px, -36px) scale(1.1); }
}
.land-nav, .land-hero, .land-section, .land-foot { position: relative; z-index: 1; }
.land-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 8%; max-width: 1280px; margin: 0 auto;
  animation: rise .7s ease both;
}
.land-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.land-brand small { display: block; color: #94a3b8; font-size: 12px; }
.land-nav-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.land-nav-links > a:not(.btn) { color: #cbd5e1; }
.land-hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding: 48px 8% 72px; max-width: 1280px; margin: 0 auto;
}
.land-kicker { letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: #93c5fd; animation: rise .8s ease both; }
.land-copy h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.15; color: #fff; margin: 8px 0 16px; animation: rise .9s ease both; }
.land-copy em { font-style: normal; color: #93c5fd; }
.land-lead { color: #94a3b8; max-width: 52ch; animation: rise 1s ease both; }
.land-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; animation: rise 1.05s ease both; }
a.btn.btn-ghost, .btn-ghost {
  background: transparent !important;
  color: #f8fafc !important;
  border: 1px solid rgba(226,232,240,.55) !important;
}
a.btn.btn-ghost:hover, .btn-ghost:hover { background: rgba(255,255,255,.08) !important; }
.land-preview { position: relative; min-height: 360px; animation: rise 1.1s ease both; }
.preview-pos {
  background: rgba(15,23,42,.82); border: 1px solid rgba(148,163,184,.25); border-radius: 18px;
  padding: 18px; backdrop-filter: blur(12px); position: relative; overflow: hidden;
}
.preview-pos::after {
  content: ""; position: absolute; left: 0; right: 0; height: 40px;
  background: linear-gradient(180deg, transparent, rgba(147,197,253,.18), transparent);
  animation: scan 3.2s ease-in-out infinite;
}
@keyframes scan { 0% { top: -40px; } 100% { top: 110%; } }
.preview-pay { display: flex; gap: 8px; margin-bottom: 12px; }
.preview-pay b { background: #1d4ed8; color: #fff; padding: 6px 10px; border-radius: 8px; font-size: 12px; }
.preview-pay b:nth-child(2) { background: #334155; }
.preview-pay b:nth-child(3) { background: #c2410c; }
.preview-line { display: flex; gap: 8px; align-items: center; border: 1px solid #334155; border-radius: 10px; padding: 10px; color: #64748b; margin-bottom: 12px; }
.preview-line i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse 1.6s infinite; }
.preview-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #1e293b; }
.preview-total { display: flex; justify-content: space-between; margin-top: 10px; font-size: 1.1rem; }
.preview-card {
  position: absolute; background: #fff; color: #0f172a; border-radius: 14px; padding: 12px 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.25); min-width: 140px; z-index: 2;
}
.preview-card span { display: block; font-size: 12px; color: #64748b; }
.float-1 { top: 12px; right: -8px; animation: floaty 5s ease-in-out infinite; }
.float-2 { bottom: 28px; left: -12px; animation: floaty 6s ease-in-out infinite reverse; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .35; } }
.land-section { padding: 24px 8% 64px; max-width: 1280px; margin: 0 auto; }
.land-section h2 { color: #fff; font-size: 1.6rem; }
.land-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin-top: 20px; }
.land-grid .card { background: rgba(15,23,42,.7); color: #e2e8f0; border-color: #1e293b; }
.land-feat { animation: rise .8s ease both; transition: transform .25s ease, border-color .25s ease; }
.land-feat:nth-child(2) { animation-delay: .08s; }
.land-feat:nth-child(3) { animation-delay: .16s; }
.land-feat:nth-child(4) { animation-delay: .24s; }
.land-feat:nth-child(5) { animation-delay: .32s; }
.land-feat:nth-child(6) { animation-delay: .4s; }
.land-feat:hover { transform: translateY(-6px); border-color: #60a5fa; }
.land-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.land-pills span { border: 1px solid #334155; border-radius: 999px; padding: 8px 14px; animation: rise .9s ease both; }
.land-foot { text-align: center; padding: 24px; color: #64748b; font-size: 13px; }
@media (max-width: 900px) {
  .land-hero { grid-template-columns: 1fr; padding-top: 24px; }
  .land-grid { grid-template-columns: 1fr; }
  .preview-card { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin-bottom: 10px; }
}
.pf-wrap { display: grid; gap: 12px; max-width: min(920px, 100%); }
.pf-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 16px; }
.pf-head h2 { margin: 0; }
.pf-grid { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 12px; align-items: start; }
.pf-photo { display: grid; gap: 8px; }
.pf-photo > label:first-child { margin: 0; }
.pf-drop {
  display: grid; place-items: center; min-height: 180px; border: 1px dashed var(--line);
  border-radius: 12px; background: var(--bg); cursor: pointer; overflow: hidden; margin: 0;
}
.pf-drop img { max-width: 100%; max-height: 180px; object-fit: contain; }
.pf-url { margin: 0; }
.pf-fields { display: grid; gap: 16px; }
.pf-sec { display: grid; gap: 10px; }
.pf-pack { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-pack-hint { align-self: end; margin: 0 0 4px !important; }
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-row[hidden] { display: none !important; }
.pf-row > p { margin: 0; }
.kdv-form { width: 100%; border-collapse: collapse; }
.kdv-form th, .kdv-form td { padding: 6px 8px; vertical-align: middle; text-align: left; }
.kdv-form thead th { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: transparent; }
[data-theme="dark"] .kdv-form thead th { background: transparent; }
.kdv-form tbody th { width: 64px; font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }
.kdv-form .input { width: 100%; min-width: 0; }
.kdv-form td:nth-child(3) { width: 110px; }
.kdv-cost-line { display: flex; gap: 8px; align-items: center; }
.kdv-cost-line .input { flex: 1; min-width: 0; }
.kdv-toggle {
  flex-shrink: 0; min-height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font-weight: 750; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.kdv-toggle.is-on {
  background: #2563eb; color: #fff; border-color: #2563eb;
}
[data-theme="dark"] .kdv-toggle.is-on {
  background: #3b82f6; border-color: #3b82f6; color: #fff;
}
.alis-pager {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 10px 0 8px;
}
.alis-pager label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 650; font-size: 13px; }
.alis-pager select { width: 88px; min-width: 88px; }
.alis-pager span { color: var(--muted); font-size: 13px; font-weight: 650; }
.alis-pager a[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.prod-page .alis-pager { margin: 0 0 12px; }
.sales-pager {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
}
.sales-wrap .sales-pager:last-child { border-bottom: 0; border-top: 1px solid var(--line); }
.sales-pager-size, .sales-pager-nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sales-pager-size span, .sales-pager-meta, .sales-pager-gap { color: var(--muted); font-size: 13px; font-weight: 650; }
.sales-pager .btn { min-height: 32px; padding: 4px 10px; min-width: 36px; justify-content: center; }
.sales-pager a[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.sales-pager-meta { margin-left: auto; }
.alis-search-wrap { position: relative; margin: 8px 0 10px; }
.alis-prod { position: relative; min-width: 0; }
.alis-prod-q { width: 100%; }
.alis-sug {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 12;
  max-height: 260px; overflow: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15,23,42,.16); padding: 4px;
}
.alis-sug-row {
  display: grid; width: 100%; text-align: left; gap: 2px;
  padding: 8px 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text); cursor: pointer;
}
.alis-sug-row:hover { background: var(--bg); }
.alis-sug-row strong { font-size: 13px; font-weight: 700; }
.alis-sug-row em { font-style: normal; color: var(--muted); font-size: 12px; }
.alis-sug-empty { padding: 10px; color: var(--muted); font-size: 13px; }
.alis-rows-wrap { overflow: visible; }
#alisRows tr[hidden] { display: none !important; }
.pf-row-3 { grid-template-columns: 1.4fr 1fr 1fr; }
.pf-barcode { display: flex; gap: 6px; align-items: center; }
.pf-barcode .input { flex: 1; min-width: 0; }
.pf-barcode .btn { flex: 0 0 auto; padding: 4px 8px; min-height: 32px; font-size: 11px; }
.pf-barcode-msg { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); min-height: 1.2em; }
.pf-barcode-msg.is-ok { color: #0f7a3d; }
.pf-barcode-msg.is-warn { color: #b45309; }
.pf-barcode-msg a { color: inherit; font-weight: 600; }
.pf-cat-btn {
  width: 100%; justify-content: space-between; min-height: 40px;
  background: var(--card); color: var(--text) !important; border: 1px solid var(--line);
  font-weight: 600;
}
.pf-cat-btn:hover { border-color: var(--blue); }
.pf-kdv-hint { margin: 0; }
.kdv-seg {
  display: flex; width: 100%; padding: 3px; gap: 3px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg); min-height: 42px;
}
.kdv-seg-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0;
  margin: 0; padding: 8px 10px; border-radius: 10px; cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.kdv-seg-btn input { position: absolute; opacity: 0; pointer-events: none; }
.kdv-seg-btn:has(input:checked) { background: #2563eb; color: #fff; }
.pf-row > p .kdv-seg { margin-top: 8px; }
.kdv-calc {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  padding: 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line);
}
.kdv-calc div { display: grid; gap: 2px; padding: 6px 8px; border-radius: 10px; }
.kdv-calc .is-typed { background: rgba(37,99,235,.14); box-shadow: inset 0 0 0 1px rgba(37,99,235,.35); }
.kdv-calc span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kdv-calc strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.kdv-profit { margin: 0; font-size: 13px; font-weight: 650; color: var(--muted); }
.kdv-copy { width: 100%; }
@media (max-width: 640px) { .kdv-calc { grid-template-columns: 1fr; } }
.modal-back {
  display: none; place-items: center; position: fixed; inset: 0; z-index: 90;
  background: rgba(15, 23, 42, .45); padding: 16px;
}
.modal-back.is-open { display: grid; }
.modal-box { width: min(440px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; max-height: 85vh; overflow: auto; }
.cat-list { display: grid; gap: 6px; max-height: 240px; overflow: auto; margin: 10px 0; }
.cat-item { text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; color: var(--text); }
.cat-item:hover { border-color: var(--blue); }
@media (max-width: 900px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-row, .pf-row-3 { grid-template-columns: 1fr; }
}
.receipt-paper { width: var(--rc-w, 105mm); max-width: 100%; margin: 0 auto; background: #fff; color: #000; padding: 8px; font-size: 13px; box-sizing: border-box; }
.receipt-paper table { font-size: 12px; min-width: 0; }
.receipt-paper thead th { background: #000; color: #fff; }
.receipt-paper.receipt-free {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  font-family: "Consolas", "Courier New", ui-monospace, monospace;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
.receipt-stack {
  padding: 3.2mm 3.6mm 4mm;
  font-size: 11px;
  line-height: 1.28;
  font-family: "Consolas", "Courier New", ui-monospace, monospace;
}
.receipt-stack .rc-stack-row { margin: 0 0 1.2px; }
.rc-head { width: 100%; text-align: center; }
.rc-info { font-size: 9px; line-height: 1.35; margin-top: 2px; }
.rc-plain { width: 100%; }
.rc-items-classic { width: 100%; font-size: 10px; }
.rc-items-h {
  display: grid; grid-template-columns: 1fr 52px; gap: 4px;
  border-bottom: 1px solid #111; padding: 0 0 2px; margin: 0 0 3px;
  font-weight: 800; font-size: 9px; letter-spacing: .02em;
}
.rc-items-classic.is-kdv .rc-items-h,
.rc-items-classic.is-kdv .rc-item-line { grid-template-columns: 1fr 28px 52px; }
.rc-items-h span:last-child, .rc-item-line span:last-child { text-align: right; }
.rc-items-h span:nth-child(2), .rc-item-line span:nth-child(2) { text-align: center; }
.rc-item { padding: 1px 0 3px; }
.rc-item-name { font-weight: 800; text-transform: uppercase; }
.rc-item-line { display: grid; grid-template-columns: 1fr 52px; gap: 4px; }
.rc-canvas-body { position: relative; width: 100%; flex: 1 0 auto; }
.rc-foot-lock {
  margin-top: auto;
  padding: 4px 2.5mm 4mm;
  text-align: center;
  border-top: 0;
  background: #fff;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}
.receipt-paper.is-canvas {
  min-height: 160mm;
  max-width: none !important;
  width: var(--rc-w, 105mm);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.tpl-size-tag {
  margin: 10px 0 0;
  text-align: center;
  font-weight: 750;
  font-size: 13px;
  color: var(--muted);
}
.rc-block {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
  padding: 1mm 1.4mm;
  font-size: 11px;
  line-height: 1.25;
  color: #111;
}
.rc-block.is-edit {
  outline: 1px dashed rgba(37,99,235,.45);
  cursor: move;
  background: rgba(255,255,255,.55);
}
.rc-block.is-on { outline: 2px solid #2563eb; background: #fff; z-index: 2; }
.rc-del {
  display: none;
  position: absolute; top: 0; right: 0; z-index: 3;
  width: 18px; height: 18px; border: 0; border-radius: 0 0 0 6px;
  background: #dc2626; color: #fff; font-size: 14px; line-height: 18px;
  cursor: pointer; padding: 0; place-items: center;
}
.receipt-paper.is-canvas .rc-block.is-on .rc-del { display: grid; }
.rc-del:hover { background: #b91c1c; }
.tpl-file { display: inline-flex; margin: 0 0 8px; cursor: pointer; }
.rc-logo-img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
  display: block; background: transparent;
}
.rc-logo-ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  border: 1px dashed #94a3b8; color: #64748b; font-size: 11px; background: #f8fafc;
}
.tpl-builder { display: grid; gap: 12px; overflow: visible; }
.tpl-easy {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.tpl-palette { padding: 14px 16px !important; position: relative; z-index: 8; overflow: visible; pointer-events: auto; }
.tpl-stage { min-width: 0; overflow: auto; position: relative; z-index: 1; }
.tpl-top { position: relative; z-index: 8; }
.receipt-paper.is-canvas { touch-action: pan-y; overflow: hidden; }
.tpl-g {
  margin: 12px 0 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.tpl-g:first-of-type { margin-top: 0; }
.tpl-add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tpl-chips { display: grid; gap: 4px; }
.tpl-chip {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 44px; width: 100%;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  border-radius: 12px; padding: 8px 10px; margin: 0; cursor: pointer; font-weight: 700; font-size: 13px;
  pointer-events: auto; position: relative; z-index: 1;
}
.rc-handle {
  position: absolute; right: 0; bottom: 0; z-index: 4;
  width: 12px; height: 12px; border-radius: 2px 0 0 0;
  background: #2563eb; cursor: nwse-resize;
}
.tpl-chip:hover { border-color: var(--blue); }
.tpl-chip.is-used { opacity: .45; }
.tpl-chip.is-on { background: var(--blue); color: #fff; border-color: var(--blue); opacity: 1; }
.tpl-text-box { display: grid; gap: 8px; margin: 0 0 12px; }
.tpl-text-box textarea { min-height: 88px; resize: vertical; }
.tpl-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.tpl-selbar #selHint { flex: 1; min-width: 140px; color: var(--muted); font-weight: 600; font-size: 13px; }
.rc-store { text-align: center; font-weight: 800; font-size: 13px; width: 100%; letter-spacing: .03em; text-transform: uppercase; }
.rc-center { text-align: center; width: 100%; }
.rc-foot { text-align: center; }
.rc-foot strong { display: block; font-size: 14px; letter-spacing: .12em; }
.rc-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; width: 100%; }
.rc-kv-total { font-size: 13px; font-weight: 800; }
.rc-block[data-type="store_name"],
.rc-block[data-type="logo"],
.rc-block[data-type="barcode"] {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rc-block[data-type="datetime"],
.rc-block[data-type="receipt_no"],
.rc-block[data-type="customer_name"],
.rc-block[data-type="payment_type"],
.rc-block[data-type="cashier"],
.rc-block[data-type="item_count"],
.rc-block[data-type="vat"] {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rc-block[data-type="subtotal"],
.rc-block[data-type="discount"],
.rc-block[data-type="total"],
.rc-block[data-type="paid"],
.rc-block[data-type="remain"],
.rc-block[data-type="paid_remaining"] {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rc-items { width: 100%; table-layout: fixed; border-collapse: collapse; }
.rc-items th, .rc-items td { overflow: hidden; text-overflow: ellipsis; }
.rc-items th { background: #111 !important; color: #fff; font-size: 10px; padding: 4px 3px; white-space: nowrap; }
.rc-items td { padding: 4px 3px; border-bottom: 1px dashed #ccc; font-size: 11px; }
.rc-items th:nth-child(1), .rc-items td:nth-child(1) { width: 42%; text-align: left; white-space: normal; word-break: break-word; }
.rc-items th:nth-child(2), .rc-items td:nth-child(2) { width: 14%; text-align: center; white-space: nowrap; }
.rc-items th:nth-child(3), .rc-items td:nth-child(3),
.rc-items th:nth-child(4), .rc-items td:nth-child(4) { width: 22%; text-align: right; white-space: nowrap; }
.rc-barcode { display: grid; place-items: center; height: 100%; }
.rc-barcode svg { width: 100%; height: 70%; }
.rc-barcode span { font-size: 9px; letter-spacing: .08em; }
.rc-line { border: 0; border-top: 1px solid #111; margin: 1mm 0 0; }
.rc-text { white-space: pre-wrap; }
.tpl-chip:active { transform: scale(.98); }
.tpl-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.tpl-toolbar .input { width: min(220px, 100%); flex: 1 1 140px; }
.tpl-grid-bg {
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 18px 12px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tpl-builder .card { overflow: visible; }
.tpl-builder .tpl-stage.card { overflow: auto; }
.page.receipt .tpl-top.card,
.page.receipt .tpl-palette.card { overflow: visible; }
.tpl-saved { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.tpl-saved li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tpl-saved form { margin-left: auto; }

.guide-page { display: grid; gap: 12px; max-width: 820px; }
.guide-intro h2 { margin: 0 0 8px; }
.guide-toc {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
}
.guide-toc a {
  padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 650;
  background: rgba(37, 99, 235, .14); color: var(--text);
}
.guide-toc a:hover { background: rgba(37, 99, 235, .28); }
.guide-dl { margin: 0; display: grid; gap: 10px; }
.guide-dl dt { font-weight: 750; font-size: 14px; }
.guide-dl dd { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.guide-flow { margin: 14px 0 0; }
.guide-page .card h2 { margin: 0 0 12px; font-size: 17px; }

.biz-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
  background: var(--bg); border: 1px solid var(--line); color: var(--muted);
}
.biz-chip.is-ok { background: rgba(16,185,129,.16); border-color: rgba(16,185,129,.38); color: #047857; }
.biz-chip.is-soon { background: rgba(245,158,11,.16); border-color: rgba(245,158,11,.38); color: #b45309; }
.biz-chip.is-late { background: rgba(239,68,68,.16); border-color: rgba(239,68,68,.38); color: #b91c1c; }
[data-theme="dark"] .biz-chip.is-ok { color: #6ee7b7; }
[data-theme="dark"] .biz-chip.is-soon { color: #fcd34d; }
[data-theme="dark"] .biz-chip.is-late { color: #fca5a5; }

.set-page { max-width: 920px; }
.set-page .card h2 { margin: 0 0 4px; font-size: 16px; }
.set-page section.card > .muted { margin: 0 0 12px; }
.set-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; align-items: center;
}
.set-head-id { display: flex; gap: 12px; align-items: center; min-width: 0; }
.set-head p { margin: 4px 0 0; font-size: 13px; }
.set-mark {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
  background: rgba(37,99,235,.18); color: #2563eb;
}
[data-theme="dark"] .set-mark { color: #93c5fd; }
.set-kpis { display: flex; gap: 6px; }
.set-kpis a {
  display: grid; place-items: center; min-width: 56px; padding: 6px 8px; border-radius: 10px;
  background: rgba(15,23,42,.06); text-decoration: none; color: var(--text);
}
.set-kpis b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.set-kpis span { font-size: 9px; letter-spacing: .04em; text-transform: uppercase; opacity: .65; }
[data-theme="dark"] .set-kpis a { background: rgba(255,255,255,.06); }
.set-fill { display: flex; align-items: center; gap: 8px; font-size: 12px; grid-column: 1 / -1; }
.set-bar { width: 120px; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.set-bar i { display: block; height: 100%; background: var(--blue); border-radius: 999px; }
.set-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.set-chip {
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 99px; text-decoration: none;
  background: rgba(15,23,42,.06); color: var(--sidebar-text);
}
.set-chip.is-ok { background: rgba(16,185,129,.16); color: #059669; }
.set-chip.is-miss { background: rgba(239,68,68,.14); color: #dc2626; }
[data-theme="dark"] .set-chip.is-ok { color: #6ee7b7; }
[data-theme="dark"] .set-chip.is-miss { color: #fca5a5; }
.set-miss-note { margin: 0; font-size: 12px; color: var(--muted); }
.set-tabs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 6px;
  position: sticky; top: 8px; z-index: 4; padding: 6px;
  border-radius: 16px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(12px);
}
.set-tabs button {
  display: flex; flex-direction: column; gap: 1px; align-items: flex-start;
  margin: 0; padding: 8px 10px; border: 1px solid transparent; border-radius: 12px;
  background: rgba(15,23,42,.05); color: var(--sidebar-text);
  font: inherit; text-align: left; cursor: pointer;
}
.set-tabs button strong { font-size: 13px; font-weight: 750; color: var(--text); display: flex; align-items: center; gap: 6px; }
.set-tab-n {
  display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: #dc2626; color: #fff; font-size: 10px; font-style: normal; font-weight: 800;
}
.set-tabs button small { font-size: 10px; opacity: .62; }
.set-tabs button:hover { background: rgba(37,99,235,.1); }
.set-tabs button.is-on {
  background: rgba(37,99,235,.16); border-color: rgba(37,99,235,.28); color: var(--text);
}
[data-theme="dark"] .set-tabs button { background: rgba(255,255,255,.04); }
.set-form { display: grid; gap: 12px; }
.set-pane { display: none; }
.set-pane.is-on { display: block; }
.set-page .pf-row { margin-bottom: 4px; }
.set-hint { margin: 6px 0 0 !important; font-size: 12px; }
.set-sub {
  margin: 16px 0 8px; font-size: 11px; font-weight: 750; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.set-pane > .set-sub:first-of-type { margin-top: 8px; }
.set-sw-grid { display: grid; gap: 8px; margin-top: 12px; grid-template-columns: 1fr 1fr; }
.set-sw {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: rgba(15,23,42,.05); cursor: pointer; font-size: 13px; font-weight: 650;
}
.set-sw input { position: absolute; opacity: 0; pointer-events: none; }
.set-sw i {
  flex-shrink: 0; width: 36px; height: 20px; border-radius: 99px;
  background: rgba(15,23,42,.18); position: relative; transition: background .15s;
}
.set-sw i::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: transform .15s;
}
.set-sw input:checked + i { background: #2563eb; }
.set-sw input:checked + i::after { transform: translateX(16px); }
.set-sw input:focus-visible + i { outline: 2px solid #93c5fd; outline-offset: 2px; }
[data-theme="dark"] .set-sw { background: rgba(255,255,255,.04); }
[data-theme="dark"] .set-sw i { background: rgba(255,255,255,.14); }
.set-save {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  position: sticky; bottom: 8px; z-index: 3;
  padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  backdrop-filter: blur(12px);
}
.set-save.is-top {
  position: sticky; top: calc(var(--topbar-h) + 8px); bottom: auto; z-index: 4;
  margin: 0 0 12px;
}
.set-form.is-info .set-save { display: none; }
.set-save .muted { font-size: 12px; }
.set-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.set-info dd { overflow-wrap: anywhere; }
.set-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
@media (max-width: 800px) {
  .set-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .set-head { grid-template-columns: 1fr; }
  .set-info { grid-template-columns: 1fr; }
  .set-sw-grid { grid-template-columns: 1fr; }
  .set-fill { width: 100%; }
  .set-bar { flex: 1; width: auto; }
  .set-kpis { width: 100%; }
  .set-kpis a { flex: 1; }
}
.prod-page { display: grid; gap: 12px; }
.prod-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.prod-head h2 { margin: 0; }
.prod-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr) auto;
  gap: 10px;
  align-items: end;
}
.prod-filter-row > p { margin: 0; }
.prod-filter-btns { display: flex; gap: 8px; }
.prod-table { min-width: 640px; }
.prod-table th, .prod-table td {
  overflow-wrap: normal; word-break: normal; vertical-align: middle;
  padding: 6px 8px; font-size: 12px;
}
.prod-table th { white-space: nowrap; font-size: 11px; padding: 6px 8px; }
.prod-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.prod-table .num strong { display: block; white-space: nowrap; font-size: 12px; }
.prod-table .num .badge { margin-top: 2px; padding: 1px 6px; font-size: 10px; }
.prod-table input.input { min-height: 32px; padding: 4px 8px; font-size: 13px; }
.prod-table .thumb, .prod-table .thumb-lg { width: 40px; height: 40px; border-radius: 8px; }
.prod-table .btn-sm { min-height: 26px; padding: 2px 8px; font-size: 11px; }
.prod-table .sale-money { gap: 1px; }
.prod-table .sale-money span { font-size: 10px; }
.prod-cell { display: flex; gap: 8px; align-items: center; min-width: 140px; }
.prod-meta { display: grid; gap: 1px; min-width: 0; }
.prod-meta strong { font-size: 12px; line-height: 1.25; }
.prod-meta span { color: var(--muted); font-size: 11px; line-height: 1.25; }
@media (max-width: 980px) {
  .prod-filter-row { grid-template-columns: 1fr 1fr; }
  .prod-filter-btns { grid-column: 1 / -1; }
}

.rep-page { display: grid; gap: 12px; }
.rep-filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}
.rep-filter-row > p { margin: 0; }
.rep-filter-btns { display: flex; align-items: end; }
.rep-body {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.rep-pay { display: grid; gap: 10px; }
.rep-pay-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: baseline;
}
.rep-pay-row em { color: var(--muted); font-style: normal; font-size: 12px; font-weight: 700; min-width: 2.5em; text-align: right; }
.rep-pay-row strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rep-pay-bar {
  height: 6px; border-radius: 999px; background: var(--bg); overflow: hidden;
}
.rep-pay-bar i {
  display: block; height: 100%; background: var(--blue); border-radius: 999px;
}
.rep-table th, .rep-table td { overflow-wrap: normal; word-break: normal; }
.rep-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 980px) {
  .rep-filter-row { grid-template-columns: 1fr 1fr; }
  .rep-filter-btns { grid-column: 1 / -1; }
  .rep-body { grid-template-columns: 1fr; }
}

.cash-ana-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cash-ana-top h2 { margin: 0 0 4px; }
.cash-ana-top strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.cash-ana-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.cash-ana-kpis div {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; display: grid; gap: 2px;
}
.cash-ana-kpis span { font-size: 12px; font-weight: 700; color: var(--muted); }
.cash-ana-kpis strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .cash-ana-kpis { grid-template-columns: 1fr; }
}
.cash-ana-meta span {
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 10px; font-size: 12px; font-weight: 700; color: var(--muted);
}
.cash-open-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 8px 0;
}
.cash-open-row > p { margin: 0; }
.cash-open-denoms { grid-template-columns: 1fr; }
.cash-open-denoms .btn { justify-self: start; }
.cash-denoms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 0;
}
.cash-denom {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
}
.cash-denom-lab { font-weight: 750; white-space: nowrap; }
.cash-denom-line { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; font-size: 13px; }
.cash-denom-other { grid-column: 1 / -1; }
.cash-denom-total {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 750;
  padding: 6px 4px 2px;
}
#cashCountPanel[hidden] { display: none !important; }
.cash-check {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.cash-check-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
}
.cash-check-row strong { font-weight: 750; }
.cash-check-sum { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; font-size: 14px; }
.cash-ch-meta { flex-wrap: wrap; }
.cash-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.cash-head h2 { margin: 0 0 4px; }
.cash-period { margin: 0; color: var(--muted); font-weight: 650; }
.cash-period span { margin: 0 6px; opacity: .6; }
.cash-head-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cash-head-meta span {
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 10px; font-size: 12px; font-weight: 700; color: var(--muted);
}
.cash-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.cash-ch {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px;
  background: var(--bg); display: grid; gap: 8px;
}
.cash-ch-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cash-ch-top span { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cash-ch-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.cash-ch-meta span { white-space: nowrap; }
.cash-ch .input { font-variant-numeric: tabular-nums; font-weight: 700; }
.cash-acik {
  padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line);
  color: var(--muted); font-size: 13px; margin-bottom: 12px;
}
.cash-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.cash-foot > p { margin: 0; }
.cash-ops, .cash-hist { min-width: 640px; }
.cash-ops th, .cash-ops td, .cash-hist th, .cash-hist td {
  overflow-wrap: normal; word-break: normal; vertical-align: top;
}
.cash-ops .num, .cash-hist .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cash-when { white-space: nowrap; }
.cash-when span { display: block; color: var(--muted); font-size: 12px; }
.cash-op { font-weight: 650; }
.cash-who { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cash-note { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.cash-hist td.num { display: table-cell; }
.cash-hist td.num span { display: block; font-size: 11px; font-weight: 700; }
.cash-view { border-color: var(--blue); }
@media (max-width: 900px) {
  .cash-channels { grid-template-columns: 1fr; }
  .cash-foot, .cash-open-row { grid-template-columns: 1fr; }
  .cash-denoms { grid-template-columns: 1fr; }
  .cash-check-row { grid-template-columns: 1fr 1fr; }
  .cash-check-row strong { grid-column: 1 / -1; }
}
.sales-filter { display: grid; gap: 12px; }
.sales-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.sales-pills .btn { min-height: 34px; padding: 6px 12px; }
.sales-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr) auto;
  gap: 10px;
  align-items: end;
}
.sales-filter-row > p { margin: 0; }
.sales-filter-btns { display: flex; gap: 8px; align-items: center; padding-bottom: 1px; }
.sales-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.sales-kpis.has-cost { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sales-kpis .card { padding: 12px 14px; overflow: hidden; }
.sales-kpis .val { font-size: 1.12rem; white-space: nowrap; }
.sales-wrap { overflow: hidden; max-width: 100%; }
.sales-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.sales-table th, .sales-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
  padding: 10px 8px;
}
.sales-table th { white-space: nowrap; }
.sales-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: normal; }
.sales-table tr.is-void { opacity: .55; }
.sales-table th:nth-child(2), .sales-table td:nth-child(2) { width: 5.4rem; }
.sales-table th:nth-child(4), .sales-table td:nth-child(4) { width: 4.8rem; }
.sales-table th:last-child, .sales-table td:last-child { width: 3.2rem; }
.sale-doc { display: grid; gap: 2px; min-width: 0; }
.sale-doc strong { font-size: 13px; }
.sale-doc span { color: var(--text); font-size: 12px; }
.sale-who { color: var(--muted) !important; }
.sale-when { white-space: normal; }
.sale-when strong, .sale-when span { display: block; }
.sale-when span { color: var(--muted); font-size: 12px; }
.sale-money { display: grid; gap: 2px; justify-items: end; min-width: 0; }
.sale-money span { color: var(--muted); font-size: 11px; font-weight: 600; }
.sale-remain { color: var(--orange) !important; }
.sale-acts { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.btn-sm { min-height: 30px; padding: 4px 10px; font-size: 12px; }
.sale-more { position: static; }
.sale-more > summary { list-style: none; min-width: 30px; padding: 4px 8px; cursor: pointer; }
.sale-more > summary::-webkit-details-marker { display: none; }
.sale-more-back {
  display: none !important;
}
.sale-more[open] > .sale-more-back,
body > .sale-more-back.is-open {
  display: grid !important;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 23, 42, .55);
  padding: 16px;
}
.sale-more-menu {
  position: relative;
  width: min(360px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}
.sale-more-menu form { display: grid; gap: 6px; }
.sale-more-menu .btn { justify-content: center; width: 100%; }
.sale-items-pop { display: grid; gap: 8px; }
.sale-items-pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 180px; overflow: auto; }
.sale-items-pop li { display: grid; gap: 2px; }
.sale-items-pop li strong { font-size: 13px; font-weight: 650; line-height: 1.3; }
.sale-items-pop li span { color: var(--muted); font-size: 12px; }
.sale-ret-lab { margin: 8px 0 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.sale-ret { display: grid; gap: 6px; margin: 6px 0 10px; }
.sale-ret-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 88px; gap: 8px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.sale-ret-row span { display: grid; gap: 2px; min-width: 0; }
.sale-ret-row strong { font-size: 13px; }
.sale-ret-row em { font-style: normal; color: var(--muted); font-size: 12px; }
.sale-ret-row .input { min-height: 36px; }
@media (max-width: 980px) {
  .sales-filter-row { grid-template-columns: 1fr 1fr; }
  .sales-filter-btns { grid-column: 1 / -1; }
  .sales-kpis, .sales-kpis.has-cost { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .tpl-easy { grid-template-columns: 1fr; }
  .tpl-stage { order: -1; }
  .tpl-palette { position: static; }
}
.admin-page { display: grid; gap: 16px; width: 100%; min-width: 0; max-width: 100%; }
.page.admin { min-width: 0; max-width: 100%; overflow-x: hidden; }
.admin-body { min-width: 0; }
.admin-body .shell, .admin-body .page { min-width: 0; max-width: 100%; }
.admin-body .card { min-width: 0; }
.admin-body .table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-sec h2 { margin: 0 0 8px; font-size: 15px; }
.admin-body .sales-kpis.admin-kpis,
.admin-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr));
  gap: 10px;
}
.admin-kpis .kpi span { font-size: 12px; color: var(--muted); font-weight: 650; }
.admin-body .sales-kpis.admin-kpis .val { white-space: normal; overflow-wrap: anywhere; font-size: clamp(.95rem, 2.4vw, 1.2rem); }
.admin-body a.card.kpi { text-decoration: none; color: inherit; }
.admin-alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.admin-alerts li { padding: 8px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.admin-alerts li:last-child { border-bottom: 0; }
.admin-cust-wrap { max-height: none; overflow: auto; max-width: 100%; }
.admin-cust-table { min-width: 760px; width: 100%; font-size: 13px; }
.admin-cust-table th { white-space: nowrap; }
.admin-cust-table th, .admin-cust-table td { overflow-wrap: anywhere; word-break: break-word; vertical-align: top; }
.admin-pw {
  font-size: 12px; font-weight: 750; padding: 2px 8px; border-radius: 8px;
  background: rgba(37,99,235,.12); color: var(--text); white-space: normal; overflow-wrap: anywhere;
}
.admin-edit { display: grid; gap: 10px; max-width: 100%; width: 100%; }
.admin-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; min-width: 0; }
.admin-acts form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; min-width: 0; }
.admin-acts .input { width: auto; min-width: 0; flex: 1 1 110px; max-width: 180px; }
.admin-pkg { min-width: 0; width: 100%; }
.admin-body .rpt-filter { width: 100%; }
.admin-body .rpt-filter p { flex: 1 1 160px; min-width: 0; }
.brand-mark.brand-mark-img {
  padding: 3px;
  background: #fff;
}
.brand-mark-img img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 8px;
}
.sys-jump {
  display: flex; flex-wrap: wrap; gap: 8px;
  position: sticky; top: 8px; z-index: 4;
  padding: 8px 0; background: color-mix(in srgb, var(--bg, #0f172a) 88%, transparent);
}
.sys-jump a {
  font-size: 12px; font-weight: 650; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text); background: var(--card, transparent);
}
.sys-logo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sys-logo-prev { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: #fff; padding: 4px; border: 1px solid var(--line); }
.admin-sys .admin-sec { scroll-margin-top: 56px; }
.rpt-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.rpt-filter p { margin: 0; min-width: 160px; }
.rpt-filter-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rpt-bars { display: grid; gap: 8px; }
.rpt-bar { display: grid; grid-template-columns: 110px 1fr 110px; gap: 8px; align-items: center; }
.rpt-lab { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpt-track { height: 10px; border-radius: 99px; background: rgba(148,163,184,.22); overflow: hidden; }
.rpt-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #3b82f6, #2563eb); }
.rpt-bar b { font-size: 12px; text-align: right; }
.audit-res { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.audit-res.is-ok { background: rgba(34,197,94,.18); color: #16a34a; }
.audit-res.is-fail { background: rgba(239,68,68,.18); color: #dc2626; }
.inbox-bell { position: relative; text-decoration: none; }
.inbox-bell .nav-ico { width: 20px; height: 20px; }
.inbox-bell.has-unread { color: var(--text); }
.inbox-count {
  position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: #dc2626; color: #fff; font-size: 10px; font-weight: 800;
  display: grid; place-items: center;
}
.msg-banner {
  display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 10px;
}
.msg-banner p { margin: 6px 0 0; white-space: pre-wrap; }
.msg-banner.is-announce { background: rgba(37,99,235,.12); }
.msg-banner.is-maintenance { background: rgba(245,158,11,.16); }
.msg-banner.is-feature { background: rgba(16,185,129,.14); }
.msg-banner.is-campaign { background: rgba(168,85,247,.14); }
.msg-banner.is-subscription { background: rgba(239,68,68,.12); }
.msg-banner.is-stock-empty { background: rgba(239,68,68,.14); }
.msg-banner.is-stock-low { background: rgba(245,158,11,.16); }
.stock-low-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stock-low-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.nav-link { position: relative; }
.nav-badge {
  margin-left: auto; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: #dc2626; color: #fff; font-size: 9px; font-weight: 800;
  display: grid; place-items: center;
}
.st-msg.is-admin { border-left: 3px solid #2563eb; background: rgba(37,99,235,.1); }
.st-msg.is-you { border-left: 3px solid rgba(148,163,184,.45); }
.inbox-page { display: grid; gap: 12px; max-width: 720px; }
.inbox-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.inbox-type { font-size: 12px; font-weight: 700; }
.inbox-item.is-read { opacity: .72; }
.msg-firms { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; max-height: 220px; overflow: auto; }
.msg-pick { padding: 10px; }
.st-st, .st-pr { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; display: inline-block; }
.st-st.is-new { background: rgba(37,99,235,.18); }
.st-st.is-open { background: rgba(16,185,129,.18); }
.st-st.is-waiting { background: rgba(245,158,11,.2); }
.st-st.is-resolved { background: rgba(148,163,184,.22); }
.st-pr.is-low { opacity: .75; }
.st-pr.is-high { background: rgba(245,158,11,.2); }
.st-pr.is-urgent { background: rgba(239,68,68,.2); }
.inbox-type.is-support { color: #2563eb; }
a.card.kpi { text-decoration: none; color: inherit; }
.site-cms { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 20px; align-items: start; }
.site-cms-nav { display: grid; gap: 6px; position: sticky; top: 12px; }
.site-cms-nav a {
  display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px;
  color: var(--text); border: 1px solid transparent;
}
.site-cms-nav a small { color: var(--muted); font-size: 12px; }
.site-cms-nav a.is-on { background: rgba(37,99,235,.16); border-color: rgba(37,99,235,.35); }
.site-cms-nav a:hover { background: rgba(148,163,184,.12); }
.site-cms-view { margin-top: 8px; font-size: 13px; font-weight: 650; color: #2563eb !important; }
.site-cms-main { display: grid; gap: 16px; min-width: 0; }
.site-form { display: grid; gap: 16px; }
.site-block { display: grid; gap: 12px; }
.site-block-h { display: grid; gap: 2px; }
.site-block-h h2 { margin: 0; font-size: 1.15rem; }
.site-block-h p { margin: 0; color: var(--muted); font-size: 13px; }
.site-title-split { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.site-title-split p { margin: 0; }
.site-lab { margin: 4px 0 0; font-weight: 650; font-size: 13px; }
.site-list, .site-pills-edit { display: grid; gap: 8px; }
.site-pills-edit { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.site-pairs { display: grid; gap: 10px; }
.site-pair {
  display: grid; grid-template-columns: 28px 1fr 1.6fr; gap: 10px; align-items: start;
  padding: 10px; border: 1px solid var(--line); border-radius: 14px;
}
.site-pair p { margin: 0; }
.site-n {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(37,99,235,.15); font-weight: 800; font-size: 12px; margin-top: 22px;
}
.site-savebar {
  position: sticky; bottom: 8px; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 12px 14px; border-radius: 16px;
  background: color-mix(in srgb, var(--card, #111) 92%, transparent);
  border: 1px solid var(--line); z-index: 3;
}
.site-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; align-items: start; }
.site-post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-post-list li {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.site-post-list li:last-child { border-bottom: 0; }
.site-post-list strong { display: block; }
@media (max-width: 980px) {
  .site-cms, .site-split, .site-title-split, .site-pair { grid-template-columns: 1fr; }
  .site-cms-nav { position: static; grid-template-columns: 1fr 1fr; }
  .site-n { margin-top: 0; }
  .admin-body .topbar { gap: 8px; }
}
@media (max-width: 900px) {
  .admin-body .sidebar { z-index: 60; }
  .admin-cust-table { min-width: 640px; }
  .admin-body .pf-row, .admin-body .pf-row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .rpt-bar { grid-template-columns: 1fr; }
  .rpt-bar b { text-align: left; }
  .admin-kpis, .admin-body .sales-kpis.admin-kpis { grid-template-columns: 1fr 1fr; }
  .site-cms-nav { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .admin-kpis, .admin-body .sales-kpis.admin-kpis { grid-template-columns: 1fr; }
}

@media print {
  .sidebar, .topbar, .no-print, .tpl-builder aside, .tpl-toolbar, .tpl-selbar, .tpl-top, .rc-handle, .rc-del { display: none !important; }
  body * { visibility: hidden; }
  .receipt-paper, .receipt-paper * { visibility: visible; }
  .receipt-paper { position: absolute; left: 0; top: 0; box-shadow: none; max-width: none !important; width: var(--rc-w, 105mm) !important; }
  .rc-block.is-edit, .rc-block.is-on { outline: none !important; background: transparent !important; }
}

.su-body { min-height: 100vh; }
.su-shell { max-width: 980px; margin: 0 auto; padding: 20px 16px 48px; display: grid; gap: 14px; }
.su-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.su-who { text-align: right; }
.su-who strong { display: block; font-size: 14px; }
.su-who small { color: var(--muted); font-size: 12px; }
.su-intro h1 { margin: 0 0 6px; font-size: 22px; }
.su-intro p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.su-prog { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.su-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.su-bar i { display: block; height: 100%; background: var(--blue); border-radius: 99px; transition: width .25s ease; }
.su-prog span { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.su-steps {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px;
}
.su-step {
  padding: 6px 10px; border-radius: 99px; font-size: 12px; font-weight: 700;
  background: rgba(15,23,42,.06); color: var(--muted); cursor: pointer; border: 1px solid transparent;
}
.su-step.is-done { color: var(--text); background: rgba(16,185,129,.14); }
.su-step.is-on { color: var(--text); background: rgba(37,99,235,.16); border-color: rgba(37,99,235,.3); }
[data-theme="dark"] .su-step { background: rgba(255,255,255,.05); }
.su-form { display: grid; gap: 12px; }
.su-form .su-pane { display: none; }
.su-form .su-pane.is-on { display: block; }
.su-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  position: sticky; bottom: 8px; padding: 10px 12px; border-radius: 14px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(10px);
}
.su-nav { display: flex; gap: 8px; }
.su-nav [hidden] { display: none !important; }
.su-count b { color: var(--text); }
.mod-g {
  padding: 16px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--card);
}
.mod-g-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.mod-g-h h3 { margin: 0; font-size: 18px; }
.mod-g-h p { margin: 4px 0 0; }
.mod-g-act { display: flex; gap: 6px; flex-wrap: wrap; }
.mod-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px;
}
.mod-item {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px;
  align-items: start; margin: 0; padding: 10px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(15,23,42,.04); cursor: pointer;
}
.mod-item input { margin-top: 2px; }
.mod-item .mod-lab { font-size: 13px; font-weight: 700; }
.mod-item small { grid-column: 2; font-size: 10px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.mod-item em { grid-column: 2; font-size: 10px; font-style: normal; font-weight: 700; color: #2563eb; }
.mod-item:has(input:checked) { border-color: rgba(37,99,235,.35); background: rgba(37,99,235,.1); }
.mod-item.is-lock { opacity: .92; cursor: default; }
.mod-item.is-sug:not(:has(input:checked)) { box-shadow: inset 0 0 0 1px rgba(16,185,129,.25); }
.mod-g:not(.is-wide) .mod-item.is-extra:not(:has(input:checked)) { display: none; }
.mod-more { margin-top: 10px; }
[data-theme="dark"] .mod-item { background: rgba(255,255,255,.04); }
[data-theme="dark"] .mod-item em { color: #93c5fd; }
.mod-pick { display: grid; gap: 12px; margin: 12px 0; }
.set-page #s-ekran.card { max-width: none; }
@media (max-width: 700px) {
  .su-foot { position: sticky; }
  .mod-g-h { flex-direction: column; }
}

.wa-from {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap;
}
.wa-from h2, .wa-box h2, .wa-api h2 { margin: 0 0 4px; }
.wa-from.is-on { border-color: rgba(16,185,129,.35); }
.wa-from.is-off { border-color: rgba(245,158,11,.28); }
.wa-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.wa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wa-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.wa-box textarea.input { min-height: 120px; resize: vertical; }
.wa-api code { font-size: 12px; }

.sec-find { position: relative; display: block; }
.sec-find .input { width: 100%; }
.sec-drop {
  position: fixed; z-index: 80; margin: 0; padding: 6px;
  max-height: 280px; overflow: auto; box-sizing: border-box;
  border-radius: 12px; border: 1px solid var(--line, rgba(255,255,255,.14));
  background: var(--card, #0f1722); color: var(--text, #eaf4f8);
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.sec-drop button {
  display: block; width: 100%; margin: 0; padding: 8px 10px; border: 0; border-radius: 8px;
  background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 650;
  text-align: left; cursor: pointer; min-height: 0;
}
.sec-drop button:hover, .sec-drop button.is-on { background: rgba(37,99,235,.2); }
.sec-drop .is-empty { padding: 8px 10px; font-size: 12px; color: var(--muted, #94a3b8); }
.sec-hint { display: block; margin: 6px 0 0; font-size: 12px; }
@media (max-width: 700px) {
  .wa-grid { grid-template-columns: 1fr; }
}
