/* ===================================================================
   云笺书店 · 进销存系统 样式表
   设计基调：深蓝书脊 + 暖纸色点缀，浅色界面，数据优先
   =================================================================== */
:root {
  --ink: #1b2431;
  --ink-2: #45536a;
  --muted: #8792a2;
  --line: #e6eaf0;
  --bg: #f4f6f9;
  --card: #ffffff;
  --navy: #16233a;
  --navy-2: #1d3050;
  --navy-3: #2a4266;
  --accent: #c98a3c;
  --accent-2: #e8b06a;
  --accent-soft: #fdf3e6;
  --green: #2f7d5d;
  --green-soft: #e9f5ef;
  --red: #c0453b;
  --red-soft: #fdeceb;
  --blue: #2b6cb0;
  --blue-soft: #eaf2fb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(22, 35, 58, .04), 0 8px 24px rgba(22, 35, 58, .05);
  --shadow-lg: 0 18px 48px rgba(22, 35, 58, .16);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: .2px; }
p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

/* ---------------- 登录 ---------------- */
.login-wrap { display: grid; grid-template-columns: 46% 54%; min-height: 100vh; }
.login-aside {
  position: relative; padding: 54px 58px; color: #eef3fa; display: flex; flex-direction: column;
  background:
    radial-gradient(1000px 520px at 12% -8%, rgba(232, 176, 106, .30), transparent 60%),
    linear-gradient(160deg, #16233a 0%, #1d3050 52%, #16233a 100%);
  overflow: hidden;
}
.login-aside::after {
  content: ""; position: absolute; right: -120px; bottom: -140px; width: 380px; height: 380px;
  border: 1px solid rgba(255, 255, 255, .10); border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255, 255, 255, .03), 0 0 0 90px rgba(255, 255, 255, .02);
}
.brand-mark { display: flex; align-items: center; gap: 14px; }
.brand-mark h1 { font-size: 21px; letter-spacing: 3px; }
.brand-mark p { font-size: 12px; color: rgba(238, 243, 250, .62); letter-spacing: 2px; }
.aside-copy { margin-top: auto; }
.aside-copy h2 { font-size: 40px; line-height: 1.28; letter-spacing: 1px; font-weight: 600; }
.aside-copy p { margin-top: 16px; color: rgba(238, 243, 250, .68); font-size: 13.5px; letter-spacing: .6px; }
.aside-points { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 12px; }
.aside-points li { display: flex; align-items: center; gap: 12px; color: rgba(238, 243, 250, .82); font-size: 13px; }
.aside-points span {
  font-size: 11px; color: var(--accent-2); border: 1px solid rgba(232, 176, 106, .45);
  padding: 1px 7px; border-radius: 20px; letter-spacing: 1px;
}
.aside-foot { margin-top: 34px; font-size: 11.5px; color: rgba(238, 243, 250, .42); letter-spacing: 1px; }

.login-main { display: flex; align-items: center; justify-content: center; padding: 40px; background: #fbfcfd; }
.login-card { width: 100%; max-width: 372px; }
.login-card h3 { font-size: 24px; letter-spacing: 1px; }
.login-card > .muted { margin: 8px 0 28px; font-size: 13px; }
.login-card .field { margin-bottom: 16px; }
.login-card .btn-block { margin-top: 8px; padding: 11px; font-size: 15px; letter-spacing: 4px; }
.login-hint { margin-top: 26px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 20px;
  padding: 3px 10px; font-size: 12px; cursor: pointer; transition: .16s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.form-error {
  background: var(--red-soft); color: var(--red); border-radius: 8px; padding: 8px 12px;
  font-size: 12.5px; margin-bottom: 12px;
}

/* ---------------- 布局 ---------------- */
.app-shell { display: grid; grid-template-columns: 226px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--navy); color: #cfd8e5; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow: hidden;
}
.side-brand {
  display: flex; align-items: center; gap: 10px; padding: 20px 18px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.side-brand-txt strong { display: block; color: #fff; font-size: 15px; letter-spacing: 2px; }
.side-brand-txt small { color: rgba(207, 216, 229, .55); font-size: 11px; letter-spacing: 2px; }
.nav { flex: 1; overflow-y: auto; padding: 12px 10px 18px; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 6px; }
.nav-group { margin-top: 14px; }
.nav-group:first-child { margin-top: 4px; }
.nav-title {
  display: flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: 1.4px;
  color: rgba(207, 216, 229, .45); padding: 4px 10px 6px;
}
.nav-title svg { opacity: .8; }
.nav-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 8px;
  color: #c6d1e0; font-size: 13.2px; cursor: pointer; transition: .15s; position: relative;
  text-decoration: none;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(232, 176, 106, .22), rgba(232, 176, 106, .04)); color: #fff; }
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2.5px;
  background: var(--accent-2); border-radius: 2px;
}
.nav-item .dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.nav-item.active .dot { background: var(--accent-2); }
.side-foot {
  border-top: 1px solid rgba(255, 255, 255, .07); padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.me { display: flex; align-items: center; gap: 9px; min-width: 0; }
.me strong { display: block; color: #fff; font-size: 13px; font-weight: 500; }
.me small { color: rgba(207, 216, 229, .5); font-size: 11px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(232, 176, 106, .18); color: var(--accent-2); font-size: 12.5px; flex: none;
}
.icon-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1);
  background: transparent; color: #cfd8e5; display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 58px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center;
  justify-content: space-between; padding: 0 26px; position: sticky; top: 0; z-index: 20;
}
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.crumb i { font-style: normal; color: #c9d1dc; }
.crumb strong { color: var(--ink); font-weight: 500; font-size: 14px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.today { color: var(--muted); font-size: 12.5px; }
.pill {
  font-size: 11px; color: var(--green); background: var(--green-soft); border-radius: 20px;
  padding: 2px 9px; letter-spacing: .5px;
}
.view { padding: 22px 26px 40px; max-width: 1500px; width: 100%; }

/* ---------------- 通用组件 ---------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.page-head h2 { font-size: 21px; letter-spacing: .3px; }
.page-head .sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.card-hd h3 { font-size: 14.5px; }
.card-hd .hint { font-size: 12px; color: var(--muted); }
.card-bd { padding: 16px 18px; }
.card-bd.flush { padding: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 9px;
  padding: 7px 14px; font-size: 13px; font-family: inherit; cursor: pointer; transition: .15s;
  white-space: nowrap;
}
.btn:hover { border-color: #cfd7e3; color: var(--ink); background: #fbfcfe; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn-primary:hover { background: var(--navy-3); border-color: var(--navy-3); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #b97c31; border-color: #b97c31; color: #fff; }
.btn-danger { color: var(--red); border-color: #f0d2cf; background: var(--red-soft); }
.btn-danger:hover { background: #fbe0de; color: var(--red); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn-link { border: none; background: none; color: var(--blue); padding: 2px 4px; font-size: 12.5px; cursor: pointer; }
.btn-link.danger { color: var(--red); }
.btn-link:hover { text-decoration: underline; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; color: var(--ink-2); letter-spacing: .2px; }
.field > span b { color: var(--red); font-weight: 400; }
input[type=text], input[type=number], input[type=date], input[type=password], select, textarea {
  font-family: inherit; font-size: 13px; color: var(--ink); background: #fff;
  border: 1px solid #dbe2ec; border-radius: 9px; padding: 7px 11px; outline: none; transition: .15s;
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(42, 66, 102, .08); }
input::placeholder { color: #b3bcc9; }
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238792a2' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
textarea { min-height: 66px; resize: vertical; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); gap: 12px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi .k-label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .k-value { font-size: 23px; font-weight: 600; letter-spacing: .3px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .k-value small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.kpi .k-foot { font-size: 12px; color: var(--muted); margin-top: 6px; }
.kpi .k-foot b { color: var(--green); font-weight: 500; }
.kpi.warn .k-value { color: var(--accent); }
.kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: rgba(22, 35, 58, .025); }

.table-wrap { width: 100%; overflow-x: auto; }
table.tb { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tb th {
  text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; letter-spacing: .3px;
  padding: 10px 14px; background: #fafbfd; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.tb td { padding: 10px 14px; border-bottom: 1px solid #eff2f6; color: var(--ink-2); vertical-align: middle; }
table.tb tbody tr:hover { background: #fbfcfe; }
table.tb tbody tr:last-child td { border-bottom: none; }
table.tb td.strong { color: var(--ink); font-weight: 500; }
table.tb td.right, table.tb th.right { text-align: right; }
table.tb td.center, table.tb th.center { text-align: center; }
table.tb tfoot td { padding: 11px 14px; background: #fafbfd; font-weight: 500; color: var(--ink); border-top: 1px solid var(--line); }
.tb .sub { display: block; color: var(--muted); font-size: 11.5px; }
.empty { padding: 46px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.empty svg { display: block; margin: 0 auto 10px; opacity: .45; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; padding: 1px 8px; border-radius: 20px; background: #f1f4f8; color: var(--ink-2); white-space: nowrap; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.amber { background: var(--accent-soft); color: #a8691f; }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.gray { background: #f1f4f8; color: var(--muted); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.pager .pages { display: flex; gap: 6px; }
.pager button { min-width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink-2); font-size: 12.5px; }
.pager button.active { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

.tabs { display: flex; gap: 4px; padding: 4px; background: #eef2f7; border-radius: 10px; }
.tabs button { border: none; background: transparent; padding: 6px 14px; border-radius: 8px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; font-family: inherit; }
.tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(22, 35, 58, .08); }

/* ---------------- 图表 ---------------- */
.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 90px; gap: 10px; align-items: center; font-size: 12.5px; }
.bar-row .name { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 8px; background: #f0f3f7; border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2a4266, #4b6f9e); }
.bar-row .val { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; font-size: 12.5px; }

.rank-list { display: grid; }
.rank-item { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed #eef1f6; }
.rank-item:last-child { border-bottom: none; }
.rank-no { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: #f1f4f8; color: var(--muted); font-size: 11.5px; }
.rank-item:nth-child(1) .rank-no { background: var(--navy-2); color: #fff; }
.rank-item:nth-child(2) .rank-no { background: #40597f; color: #fff; }
.rank-item:nth-child(3) .rank-no { background: #6b83a4; color: #fff; }
.rank-item .t { color: var(--ink); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-item .s { color: var(--muted); font-size: 11.5px; }
.rank-item .v { color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------------- 弹窗 ---------------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(19, 28, 44, .42); backdrop-filter: blur(2px);
  display: grid; place-items: center; z-index: 100; padding: 24px; animation: fade .18s ease;
}
.modal {
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); width: 100%;
  max-width: 560px; max-height: 90vh; display: flex; flex-direction: column; animation: pop .2s ease;
}
.modal.wide { max-width: 880px; }
.modal.narrow { max-width: 420px; }
.modal-hd { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-hd h3 { font-size: 15.5px; }
.modal-bd { padding: 20px; overflow-y: auto; }
.modal-ft { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.modal-close { border: none; background: none; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span2 { grid-column: span 2; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.99); } }

.toast-root { position: fixed; top: 18px; right: 18px; display: grid; gap: 8px; z-index: 200; }
.toast {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--green);
  border-radius: 9px; box-shadow: var(--shadow-lg); padding: 10px 14px; font-size: 13px;
  min-width: 220px; animation: slide .2s ease;
}
.toast.err { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--accent); }
@keyframes slide { from { opacity: 0; transform: translateX(12px); } }

/* ---------------- 看板 ---------------- */
.grid-2 { display: grid; grid-template-columns: 1.62fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2eq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stack { display: grid; gap: 16px; }
.stack-sm { display: grid; gap: 10px; }
.mt { margin-top: 16px; }

/* ---------------- POS ---------------- */
.pos-grid { display: grid; grid-template-columns: 1fr 372px; gap: 16px; align-items: start; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; max-height: 620px; overflow-y: auto; padding: 2px; }
.book-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff;
  cursor: pointer; transition: .14s; position: relative;
}
.book-card:hover { border-color: #bccbdd; box-shadow: 0 4px 14px rgba(22, 35, 58, .07); transform: translateY(-1px); }
.book-card .t { font-size: 13px; color: var(--ink); font-weight: 500; line-height: 1.4; height: 37px; overflow: hidden; }
.book-card .a { font-size: 11.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-card .b { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.book-card .p { color: var(--accent); font-weight: 600; font-size: 14px; }
.book-card .s { font-size: 11px; color: var(--muted); }
.cart { position: sticky; top: 78px; }
.cart-items { max-height: 330px; overflow-y: auto; }
.cart-row { display: grid; grid-template-columns: 1fr 84px 60px; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px dashed #eef1f6; }
.cart-row .t { font-size: 12.8px; color: var(--ink); line-height: 1.35; }
.cart-row .t small { display: block; color: var(--muted); font-size: 11px; }
.qty-box { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.qty-box button { width: 24px; height: 26px; border: none; background: #fafbfd; cursor: pointer; color: var(--ink-2); font-size: 13px; }
.qty-box input { width: 34px; height: 26px; border: none; text-align: center; font-size: 12.5px; padding: 0; }
.qty-box input:focus { box-shadow: none; }
.cart-sum { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); padding: 5px 0; }
.cart-sum.total { font-size: 15px; color: var(--ink); font-weight: 600; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; }
.cart-sum.total b { color: var(--accent); font-size: 22px; }
.pay-types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 12px 0; }
.pay-type { border: 1px solid var(--line); border-radius: 8px; padding: 7px 0; text-align: center; font-size: 12px; cursor: pointer; color: var(--ink-2); background: #fff; }
.pay-type.active { border-color: var(--navy-2); background: #eef3fa; color: var(--navy-2); font-weight: 500; }

/* ---------------- 单据明细行 ---------------- */
.item-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.item-table th { font-size: 11.5px; color: var(--muted); font-weight: 500; text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.item-table td { padding: 5px 8px; border-bottom: 1px solid #f2f5f9; }
.item-table input, .item-table select { padding: 5px 8px; font-size: 12.5px; }
.item-table .del { color: var(--red); cursor: pointer; border: none; background: none; font-size: 15px; }

/* ---------------- 其他 ---------------- */
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--muted); font-size: 12.5px; }
.kv dd { margin: 0; color: var(--ink); }
.doc-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 20px; padding: 4px 0 14px; border-bottom: 1px dashed var(--line); margin-bottom: 12px; }
.doc-head .l { font-size: 11.5px; color: var(--muted); }
.doc-head .v { font-size: 13px; color: var(--ink); margin-top: 1px; }
.doc-total { display: flex; justify-content: flex-end; gap: 26px; padding-top: 14px; font-size: 13px; color: var(--ink-2); }
.doc-total b { color: var(--ink); font-size: 15px; }
.split { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.scroll-y { max-height: 460px; overflow-y: auto; }
.mono-sm { font-family: Consolas, monospace; font-size: 12px; color: var(--muted); }
.store-note { font-size: 12px; color: var(--muted); line-height: 1.7; }
.store-note p { margin: 0 0 6px; }
.store-note p:last-child { margin-bottom: 0; }
.dot-legend { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; }

@media (max-width: 1180px) {
  .grid-2, .grid-2eq, .pos-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .cart { position: static; }
}
@media (max-width: 900px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .view { padding: 16px; }
  .topbar { padding: 0 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: span 1; }
}
