:root {
  --bg: #e8f3fc;
  --paper: #ffffff;
  --ink: #1a2740;
  --muted: #5d7190;
  --line: #c5d8eb;
  --side: #040814;
  --side-head: #061226;
  --side-text: #d4e6ff;
  --side-muted: #7f99bb;
  --accent: #1677c7;
  --accent-hover: #0f62ab;
  --good: #1d8a58;
  --good-bg: #e4f7ed;
  --bad: #c53d4a;
  --bad-bg: #fdecee;
  --warn: #a36a08;
  --warn-bg: #fff6de;
  --info: #1d5fa0;
  --info-bg: #e7f2fc;
  --shadow: 0 1px 2px rgba(20, 60, 110, .06), 0 12px 28px rgba(20, 60, 110, .08);
  --glow: 0 0 16px rgba(22, 119, 199, .18);
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(80, 170, 230, .16), transparent 55%),
    radial-gradient(720px 380px at 100% 0%, rgba(40, 110, 190, .1), transparent 50%),
    var(--bg);
  font: 14px/1.5 "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent-hover); }
h1 { font-size: 22px; line-height: 1.3; margin: 0; font-weight: 650; letter-spacing: .02em; }
h2 { font-size: 16px; margin: 0 0 12px; letter-spacing: .04em; color: #163352; }
button, input, select, textarea { font: inherit; color: inherit; }
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; position: relative; }
.app::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(30, 110, 190, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 110, 190, .07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.sidebar { background: linear-gradient(180deg, #071428 0%, #040814 100%); color: var(--side-text); padding: 0; position: sticky; top: 0; height: 100vh; overflow: hidden; font-size: 16px; display: flex; flex-direction: column; z-index: 2; border-right: 1px solid rgba(80, 170, 255, .16); box-shadow: 8px 0 32px rgba(0, 0, 0, .28); }
.sidebar-body { flex: 1; overflow: auto; padding-bottom: 8px; }
.workspace-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px;
  background: #03070f;
  border-top: 1px solid rgba(80, 170, 255, .16);
}
.workspace-switch a {
  margin: 0 !important;
  padding: 10px 8px !important;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--side-muted);
  border: 1px solid transparent;
}
.workspace-switch a:hover { background: rgba(62, 200, 255, .08); text-decoration: none; }
.workspace-switch a.on { background: rgba(62, 200, 255, .18); color: #fff; border-color: rgba(62, 200, 255, .35); box-shadow: var(--glow); }
.sidebar a { display: flex; align-items: center; gap: 8px; color: var(--side-text); text-decoration: none; padding: 9px 12px 9px 38px; border-radius: 0; margin: 0; }
.sidebar a.active { background: linear-gradient(90deg, rgba(62, 200, 255, .28), rgba(62, 200, 255, .08)); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.sidebar a:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.sidebar a.active:hover { background: linear-gradient(90deg, rgba(62, 200, 255, .34), rgba(62, 200, 255, .1)); }
.nav-item { padding-left: 16px !important; font-weight: 500; }
.nav-item .ico, .nav-group summary .ico { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav-group { margin: 2px 0; }
.nav-group > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 16px;
  color: var(--side-text);
  user-select: none;
}
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after {
  content: "";
  margin-left: auto;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--side-muted);
  transform: rotate(-90deg);
}
.nav-group[open] > summary::after { transform: rotate(0deg); }
.nav-group > summary:hover { background: rgba(255,255,255,.06); }
.nav-group[open] > summary { color: #fff; }
.brand { display: flex; gap: 10px; align-items: center; padding: 16px; background: linear-gradient(180deg, rgba(62, 200, 255, .12), transparent); margin-bottom: 8px; border-bottom: 1px solid rgba(80, 170, 255, .16); }
.brand span { min-width: 0; }
.brand strong, .brand em { display: block; font-style: normal; }
.brand strong { font-size: 16px; line-height: 1.3; letter-spacing: .08em; }
.brand em { color: var(--side-muted); font-size: 13px; line-height: 1.3; }
.brand.lone { background: transparent; padding: 0; margin: 0 0 8px; border: 0; }
.brand.lone strong { font-size: 20px; }
.brand.lone em { color: var(--muted); }
.logo { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; background: #fff; flex: none; box-shadow: 0 0 12px rgba(62, 200, 255, .35); }
.brand.lone .logo { width: 48px; height: 48px; }
.column { min-width: 0; position: relative; z-index: 1; }
.topbar { display: flex; justify-content: flex-end; gap: 14px; align-items: center; padding: 12px 28px; background: rgba(255, 255, 255, .86); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.who { color: var(--muted); letter-spacing: .04em; }
main.content { padding: 22px 28px 48px; }
main.naked { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; }
.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 16px; }
.page-head.compact { align-items: flex-start; margin-bottom: 12px; }
.page-head.compact h2 { margin: 0; font-size: 16px; }
.lead { margin: 4px 0 0; color: var(--muted); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.panel + .panel, .top-gap { margin-top: 14px; }
.narrow { width: min(520px, 100%); }
.sheet { max-width: 1080px; }
.split { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.card:hover { border-color: rgba(22, 119, 199, .4); box-shadow: var(--glow); text-decoration: none; }
.card .k { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.card .v { font-size: 28px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--accent); }
.card.warn .v { color: var(--bad); }
.form-grid, .stack { display: grid; gap: 12px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-2, .field.span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.need .lbl::after,
.lines th.need::after {
  content: "*";
  color: var(--bad);
  margin-left: 4px;
  font-weight: 700;
}
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.filters .field { min-width: 150px; }
input[type="text"], input[type="password"], input[type="number"], input[type="date"], input[type="search"], input:not([type]), select, textarea {
  width: 100%; border: 1px solid #b7cce0; border-radius: 8px; padding: 8px 10px; background: #fff; color: var(--ink);
}
.combo { position: relative; }
.combo-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 240px; overflow: auto; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: var(--shadow);
}
.combo-list button {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 8px 10px; cursor: pointer; color: inherit;
}
.combo-list button:hover, .combo-list button.active { background: #eef6fd; }
input[type="file"] { width: 100%; }
.part-name { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.part-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex: none; display: block; }
.part-thumb-btn { padding: 0; border: 0; background: none; cursor: zoom-in; line-height: 0; flex: none; }
.photo-preview { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.photo-preview img { max-width: 240px; max-height: 180px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #f3f8fd; }
.photo-preview img[data-zoom] { cursor: zoom-in; }
.field.frozen input { background: #f3f8fd; color: var(--muted); }
.file-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.file-card { width: 220px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #f7fbff; display: flex; flex-direction: column; gap: 8px; }
.file-card.is-photo { width: 240px; }
.file-card .preview-btn { padding: 0; border: 0; background: #fff; border-radius: 8px; overflow: hidden; cursor: zoom-in; line-height: 0; }
.file-card .preview-btn img { width: 100%; height: 150px; object-fit: cover; display: block; }
.file-card .name { font-size: 12px; word-break: break-all; color: var(--ink); }
.file-card .file-meta { display: grid; gap: 8px; }
.file-card .file-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.upload-list { display: grid; gap: 8px; }
.upload-progress { display: grid; gap: 4px; }
.upload-progress .track { height: 8px; background: #e4eef6; border-radius: 999px; overflow: hidden; }
.upload-progress .bar { height: 100%; width: 0; background: var(--accent); }
.upload-progress .msg { font-size: 12px; color: var(--muted); }
.upload-progress.err .bar { background: var(--bad); }
.upload-progress.err .msg { color: var(--bad); }
.project-logs { display: grid; gap: 8px; }
.project-logs > .lbl { font-weight: 650; }
.project-log { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); background: none; }
.project-log .when { flex: none; min-width: 132px; color: var(--muted); font-variant-numeric: tabular-nums; }
.project-log .log-body { flex: 1; white-space: pre-wrap; word-break: break-word; }
.project-log textarea { flex: 1; min-height: 72px; }
.project-log .log-actions, .project-log .btn.small { flex: none; margin-left: auto; }
.project-log .log-actions { display: flex; gap: 8px; }
.zoom-mask { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(12, 32, 58, .72); cursor: zoom-out; }
.zoom-mask img { max-width: min(92vw, 1100px); max-height: 88vh; object-fit: contain; border-radius: 12px; background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.35); cursor: default; }
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #b7d8f5; border-color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid #b7cce0; background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; }
.btn:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.btn.primary { background: linear-gradient(180deg, #3aa6ea, #1677c7); border-color: transparent; color: #fff; font-weight: 650; box-shadow: var(--glow); }
.btn.primary:hover { background: linear-gradient(180deg, #4db4f2, #1c88d8); border-color: transparent; color: #fff; }
.btn.danger { color: var(--bad); border-color: #efc3c0; background: #fff; }
.btn.small { height: 28px; padding: 0 8px; font-size: 12px; }
.full-btn { width: 100%; }
.actions, .row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
td.row-actions { flex-wrap: nowrap; gap: 6px; }
.row-actions form { display: inline-flex; margin: 0; }
.login-card { width: min(420px, 100%); background: var(--paper); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
body.login-screen {
  background: #000208;
  color: #e8f1ff;
}
body.login-screen .naked-wrap,
body.login-screen main.naked {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}
.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(1100px 640px at 16% 10%, rgba(20, 70, 150, .16), transparent 62%),
    radial-gradient(820px 480px at 88% 84%, rgba(8, 40, 90, .12), transparent 64%),
    linear-gradient(165deg, #000208 0%, #01040c 48%, #020a16 100%);
}
.login-aurora {
  position: absolute;
  inset: -20%;
  background:
    conic-gradient(from 120deg at 30% 40%, transparent 0 40%, rgba(76, 201, 255, .04) 48%, transparent 58%),
    conic-gradient(from 300deg at 70% 70%, transparent 0 42%, rgba(30, 111, 217, .05) 52%, transparent 62%);
  animation: login-spin 48s linear infinite;
}
.login-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(70, 140, 220, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 140, 220, .05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 28%, transparent 78%);
  transform: perspective(700px) rotateX(58deg) translateY(18%);
  transform-origin: 50% 0;
  animation: login-grid 18s linear infinite;
}
.login-scan {
  position: absolute;
  left: -20%;
  right: -20%;
  height: 140px;
  top: 18%;
  background: linear-gradient(180deg, transparent, rgba(76, 201, 255, .08), transparent);
  animation: login-scan 7s ease-in-out infinite;
}
.login-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3a8ec8;
  box-shadow: 0 0 8px 1px rgba(76, 201, 255, .35);
  animation: login-float 9s ease-in-out infinite;
}
.login-particles span:nth-child(1) { left: 12%; top: 22%; animation-delay: 0s; }
.login-particles span:nth-child(2) { left: 28%; top: 68%; animation-delay: -1.4s; width: 3px; height: 3px; }
.login-particles span:nth-child(3) { left: 46%; top: 16%; animation-delay: -2.2s; }
.login-particles span:nth-child(4) { left: 63%; top: 54%; animation-delay: -3.1s; width: 5px; height: 5px; }
.login-particles span:nth-child(5) { left: 78%; top: 24%; animation-delay: -4s; }
.login-particles span:nth-child(6) { left: 86%; top: 72%; animation-delay: -5.2s; }
.login-particles span:nth-child(7) { left: 8%; top: 82%; animation-delay: -6s; }
.login-particles span:nth-child(8) { left: 38%; top: 40%; animation-delay: -2.8s; width: 3px; height: 3px; }
.login-particles span:nth-child(9) { left: 70%; top: 86%; animation-delay: -1.1s; }
.login-particles span:nth-child(10) { left: 92%; top: 42%; animation-delay: -3.6s; }
.login-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .38;
}
.login-circuit .wire {
  fill: none;
  stroke: url(#flow-a);
  stroke-width: 1.4;
  stroke-dasharray: 12 18 4 22;
  animation: login-dash 8s linear infinite;
}
.login-circuit .wire.delay {
  stroke: url(#flow-b);
  animation-duration: 11s;
  animation-direction: reverse;
}
.login-circuit .node {
  fill: #8fe3ff;
  filter: drop-shadow(0 0 6px #4cc9ff);
  animation: login-pulse 2.8s ease-in-out infinite;
}
body.login-screen main.naked { z-index: 1; }
body.login-screen .login-wrap { position: relative; z-index: 1; width: min(420px, 100%); }
body.login-screen .login-card {
  background: rgba(6, 22, 48, .72);
  border: 1px solid rgba(110, 176, 255, .28);
  box-shadow: 0 0 0 1px rgba(20, 70, 140, .25), 0 18px 50px rgba(0, 10, 30, .45), 0 0 40px rgba(30, 111, 217, .18);
  backdrop-filter: blur(16px);
  color: #e8f1ff;
}
body.login-screen .brand.lone strong { color: #fff; letter-spacing: .02em; }
body.login-screen .brand.lone .logo { background: #fff; box-shadow: 0 0 0 1px rgba(120, 180, 255, .35), 0 0 18px rgba(76, 201, 255, .25); }
body.login-screen .login-card .field { color: #b7cce8; }
body.login-screen .login-card input {
  background: rgba(3, 14, 34, .72);
  border-color: rgba(110, 176, 255, .28);
  color: #f3f8ff;
}
body.login-screen .login-card input:focus {
  outline: 2px solid rgba(76, 201, 255, .35);
  border-color: #4cc9ff;
}
body.login-screen .login-card .btn.primary {
  height: 40px;
  box-shadow: 0 0 18px rgba(30, 111, 217, .45);
}
body.login-screen .login-card .hint { color: #8aa8cc; }
body.login-screen main.naked .flash {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  margin: 0;
  backdrop-filter: blur(10px);
}
@keyframes login-spin { to { transform: rotate(360deg); } }
@keyframes login-grid {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 42px, 42px 0; }
}
@keyframes login-scan {
  0%, 100% { transform: translateY(-30px); opacity: .35; }
  50% { transform: translateY(220px); opacity: .8; }
}
@keyframes login-float {
  0%, 100% { transform: translateY(0); opacity: .35; }
  50% { transform: translateY(-18px); opacity: 1; }
}
@keyframes login-dash { to { stroke-dashoffset: -220; } }
@keyframes login-pulse {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .login-aurora, .login-grid, .login-scan, .login-particles span, .login-circuit .wire, .login-circuit .node {
    animation: none;
  }
}
.flash { border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; border: 1px solid transparent; }
main.naked .flash { width: min(420px, 100%); margin: 0; }
.flash.ok { background: var(--good-bg); color: var(--good); border-color: rgba(62, 224, 164, .28); }
.flash.error { background: var(--bad-bg); color: var(--bad); border-color: rgba(255, 107, 122, .28); }
.flash.warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(255, 193, 74, .28); }
.hint { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.pay-mark { color: var(--bad); font-weight: 650; }
.pay-field .lbl, .pay-field select { color: var(--bad); font-weight: 650; }
.pay-field select { border-color: #efc3c0; background: var(--bad-bg); }
.check { display: flex; gap: 8px; align-items: center; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
tr.ticket-row td { background: #f4f9fd; }
.tree-cell { display: inline-flex; align-items: center; gap: 8px; padding-left: 12px; color: var(--muted); }
.tree-cell::before { content: "└"; font-size: 12px; }
.badge.ticket-flag { background: #e8f1fb; color: var(--accent); font-size: 11px; padding: 1px 6px; }
td.row-actions { width: 1%; white-space: nowrap; text-align: right; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; background: #eef6fd; letter-spacing: .02em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:hover td { background: #f6fbff; }
tr.low td { background: #fff6f3; }
tr.muted-row td { color: var(--muted); }
tr.total-row td { font-weight: 650; background: #eef6fd; }
.empty { text-align: center; color: var(--muted); padding: 22px 10px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: #e8eef6; color: #4c5d73; border: 0; }
.badge.confirmed, .badge.in_stock { background: var(--good-bg); color: var(--good); }
.badge.voided, .badge.scrapped { background: #e8eef6; color: #4c5d73; }
.badge.issued { background: var(--info-bg); color: var(--info); }
.badge.lost, .badge.draft { background: var(--warn-bg); color: var(--warn); }
.badge.serial { background: #e4eefc; color: var(--accent); }
.badge.quantity { background: var(--info-bg); color: var(--info); }
.badge.pending { background: var(--warn-bg); color: var(--warn); }
.badge.active { background: var(--info-bg); color: var(--info); }
.badge.done { background: var(--good-bg); color: var(--good); }
.pager { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); }
.pager-total { color: var(--muted); }
.pager-size { width: auto; min-width: 108px; height: 32px; padding: 0 8px; }
.pager-pages { display: flex; gap: 6px; align-items: center; }
.pager-btn, .pager-ellipsis { min-width: 32px; height: 32px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; background: #f4f8fc; color: var(--ink); text-decoration: none; }
.pager-btn:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.pager-btn.current { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 650; }
.pager-btn.disabled { opacity: .4; pointer-events: none; }
.pager-ellipsis { border: 0; background: none; min-width: 20px; color: var(--muted); }
.pager-jump { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.pager-jump input { width: 48px; height: 32px; padding: 0 6px; text-align: center; }
.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-bottom: 16px; }
.meta span { display: block; color: var(--muted); font-size: 12px; }
.meta .wide { grid-column: 1 / -1; }
.sn { display: inline-block; margin: 0 6px 4px 0; padding: 1px 6px; border-radius: 6px; background: #eef4fb; }
.serial-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.serial-picks label { border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; background: white; font-size: 12px; }
.owner-picks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; }
.owner-picks .check { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: white; }
.help-page + .help-page { margin-top: 14px; }
.help-page p { margin: 0 0 12px; color: var(--muted); }
.help-page table { margin-top: 4px; }
.help-page th:first-child, .help-page td:first-child { white-space: nowrap; font-weight: 650; width: 22%; }
.help-notes { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.help-notes li { margin: 6px 0; }
.menu-perm-groups { display: grid; gap: 12px; margin-top: 6px; }
.menu-perm-group { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f7fafc; }
.menu-perm-group strong { display: block; margin-bottom: 6px; font-size: 13px; }
.total-line { margin: 12px 0 0; font-weight: 650; }
.void-form, .row-add { display: flex; gap: 8px; align-items: end; margin-top: 16px; }
.void-form .field, .row-add .field { min-width: 240px; flex: 1; }
.remark-form { display: grid; gap: 8px; margin-top: 16px; }
.remark-form textarea { width: 100%; }
.count-actual, .lines input.qty { max-width: 110px; }
[hidden] { display: none !important; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .split, .cards, .cards-3, .form-grid, .meta { grid-template-columns: 1fr; }
  main.content, .topbar { padding-left: 16px; padding-right: 16px; }
}
@media print {
  .sidebar, .topbar, .noprint, .flash, .actions, .zoom-mask, .app::before { display: none !important; }
  .app { display: block; }
  html { color-scheme: light; }
  body, main.content { background: white; color: #111; padding: 0; }
  .panel, .card { box-shadow: none; background: white; color: #111; }
  a { color: #111; }
}
