/* ============================================================
   鹿川画材供货商 · 校园报货系统  样式
   兼容目标：iOS 12 / iPadOS 15 的老 Safari
   刻意规避：flex gap、CSS Grid、clamp()、:is()、aspect-ratio、
             100vh 动态单位、backdrop-filter
   ============================================================ */

:root {
  --primary: #FF6A2B;
  --primary-d: #E4551A;
  --primary-l: #FFF1E9;
  --ink: #16161A;
  --ink2: #5A5A66;
  --ink3: #9A9AA6;
  --bg: #F4F4F2;
  --card: #FFFFFF;
  --line: #EAEAE6;
  --price: #FF3B30;
  --green: #12B76A;
  --green-l: #E7F8F0;
  --blue: #2E7BF6;
  --amber: #F79009;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow: 0 2px 10px rgba(20, 20, 30, 0.06);
  --shadow-up: 0 -2px 16px rgba(20, 20, 30, 0.09);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
input, button, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; -webkit-appearance: none; }
img, svg { display: block; }

/* ---------- 通用 ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.row { display: -webkit-box; display: -webkit-flex; display: flex; }
.row-mid { -webkit-box-align: center; -webkit-align-items: center; align-items: center; }
.row-between { -webkit-box-pack: justify; -webkit-justify-content: space-between; justify-content: space-between; }
.row-center { -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; }
.col { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-orient: vertical; -webkit-flex-direction: column; flex-direction: column; }
.grow { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; min-width: 0; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; } .mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; }
.mb16 { margin-bottom: 16px; }
.mr6 { margin-right: 6px; } .mr8 { margin-right: 8px; } .mr12 { margin-right: 12px; }
.ml8 { margin-left: 8px; } .ml12 { margin-left: 12px; }
.hide { display: none !important; }
.muted { color: var(--ink2); }
.dim { color: var(--ink3); }
.tiny { font-size: 12px; }
.small { font-size: 13px; }
.bold { font-weight: 600; }
.num { font-family: "SF Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.price { color: var(--price); font-weight: 700; }
.price:before { content: "\00A5"; font-size: .82em; margin-right: 1px; }

/* ---------- 卡片 / 按钮 ---------- */
.card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 16px;
}
.card + .card { margin-top: 14px; }
.card-t { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.card-h { display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: justify; -webkit-justify-content: space-between; justify-content: space-between;
  margin-bottom: 12px; }

.btn {
  display: -webkit-inline-box; display: -webkit-inline-flex; display: inline-flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: var(--r-md);
  background: var(--primary); color: #fff;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  -webkit-transition: opacity .15s; transition: opacity .15s;
  box-shadow: 0 4px 14px rgba(240, 85, 27, .22);
}
.btn:active { opacity: .75; }
.btn-ghost, .btn-line, .btn-danger, .btn-green { box-shadow: none; }
.btn[disabled] { background: #D6D6D2; color: #fff; opacity: 1; }
.btn-lg { height: 50px; font-size: 16px; border-radius: 14px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn-ghost { background: #F1F1EE; color: var(--ink); }
.btn-ghost:active { background: #E6E6E2; }
.btn-line { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-line:active { background: var(--primary-l); }
.btn-danger { background: #FFF0EF; color: var(--price); }
.btn-green { background: var(--green); }
.btn-block { display: -webkit-box; display: -webkit-flex; display: flex; width: 100%; }
.btn[disabled]:active { opacity: 1; }

/* 订单里「单个商品」的撤销小按钮（比 btn-sm 更小，跟在数量后面） */
.item-cancel {
  height: 27px; padding: 0 11px; font-size: 11.5px; border-radius: 8px;
  margin-left: 9px; box-shadow: none;
  -webkit-box-flex: 0; -webkit-flex: none; flex: none;
  background: #FFF0EF; color: var(--price);
}
.item-cancel:active { background: #FCE1DF; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--ink2); margin-bottom: 6px; font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; height: 48px; padding: 0 14px;
  font-size: 16px; /* 防 iOS 聚焦缩放 */
  background: #FAFAF8; border: 1px solid var(--line);
  border-radius: var(--r-md); outline: none;
  -webkit-appearance: none; appearance: none;
}
textarea.input { height: auto; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.input:focus { border-color: var(--primary); background: #fff; }
select.input {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%239A9AA6' stroke-width='1.8' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}

/* ---------- 顶部栏 ---------- */
.topbar {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 30;
  background: #fff; border-bottom: 1px solid var(--line);
}
.topbar-in { height: 56px; display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center; }
.logo { width: 30px; height: 30px; border-radius: 9px; background: var(--primary);
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
  margin-right: 10px; }
.logo svg { width: 18px; height: 18px; }
.brand { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
.brand small { display: block; font-size: 11px; font-weight: 400; color: var(--ink3); letter-spacing: 0; }

/* ---------- 标签 / 徽标 ---------- */
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 1.5; }
.tag-wait { background: #FFF6E5; color: #B25E00; }
.tag-done { background: var(--green-l); color: #0A7A47; }
.tag-paid { background: #EAF2FF; color: #1B5FCC; }
.tag-unpaid { background: #FFF0EF; color: #C42B21; }

.chip { display: inline-block; padding: 8px 15px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500;
  color: var(--ink2); white-space: nowrap; margin: 0 8px 10px 0; }
.chip-on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.chip-sm { padding: 6px 12px; font-size: 13px; margin: 0 6px 8px 0; }
.grid-head { padding: 16px 16px 0; font-size: 13px; color: var(--ink3); }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--ink3);
  padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
  background: #FCFCFA; position: -webkit-sticky; position: sticky; top: 0;
}
table.tbl td { padding: 11px 10px; border-bottom: 1px solid #F4F4F1; vertical-align: top; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:active { background: #FAFAF8; }
table.tbl .ta-r { text-align: right; }
table.tbl .ta-c { text-align: center; }

/* ---------- 空状态 / 提示 ---------- */
.empty { padding: 48px 20px; text-align: center; color: var(--ink3); }
.empty svg { width: 52px; height: 52px; margin: 0 auto 12px; opacity: .5; }
.toast {
  position: fixed; left: 50%; bottom: 100px; z-index: 999;
  -webkit-transform: translateX(-50%); transform: translateX(-50%);
  background: rgba(22,22,26,.93); color: #fff; font-size: 14px;
  padding: 11px 20px; border-radius: 12px; max-width: 80%;
  opacity: 0; pointer-events: none;
  -webkit-transition: opacity .22s, transform .22s; transition: opacity .22s, transform .22s;
  -webkit-transform: translateX(-50%) translateY(8px); transform: translateX(-50%) translateY(8px);
}
.toast.on { opacity: 1;
  -webkit-transform: translateX(-50%) translateY(0); transform: translateX(-50%) translateY(0); }

.alert { padding: 12px 14px; border-radius: var(--r-md); font-size: 13px; line-height: 1.6;
  background: var(--primary-l); color: #A63E12; }
.alert-warn { background: #FFF7E6; color: #96601A; }
.alert-info { background: #EEF4FF; color: #2A5599; }

/* ============================================================
   登录页
   ============================================================ */
.login-page { min-height: 100%; background: #fff; }
.login-hero {
  background: #FF6A2B;
  background: -webkit-linear-gradient(158deg, #FF8F55 0%, #F0551B 100%);
  background: linear-gradient(158deg, #FF8F55 0%, #F0551B 100%);
  color: #fff; padding: 40px 24px 52px;
  border-radius: 0 0 28px 28px;
}
.login-hero h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.login-hero p { font-size: 13px; opacity: .85; margin-top: 6px; }
.login-hero .brush { margin-top: 20px; }
.login-body { padding: 0 20px 40px; margin-top: -32px; }
.login-card { background: #fff; border-radius: 20px; box-shadow: 0 6px 30px rgba(20,20,30,.10);
  padding: 22px 20px; max-width: 420px; margin: 0 auto; }
.seg { display: -webkit-box; display: -webkit-flex; display: flex; background: #F1F1EE;
  border-radius: 11px; padding: 3px; margin-bottom: 20px; }
.seg-i {
  -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; text-align: center;
  height: 38px; line-height: 38px; font-size: 14px; font-weight: 500; color: var(--ink2);
  border-radius: 9px; -webkit-transition: all .18s; transition: all .18s;
}
.seg-i.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* ============================================================
   学生端
   ============================================================ */
.app { padding-bottom: 92px; }

/* 居中弹窗（改密码提醒用，比底部抽屉更醒目） */
.modal-mask {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 80;
  background: rgba(0, 0, 0, .45);
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: #fff; border-radius: 20px; padding: 22px 20px 18px;
  width: 100%; max-width: 360px;
  box-shadow: 0 20px 50px rgba(20, 20, 30, .25);
}
.modal-t { font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.modal-s { font-size: 13px; color: var(--ink2); line-height: 1.65; margin: 7px 0 16px; }

.hero {
  background: #fff; padding: 18px 16px 4px;
}
.hero-card {
  border-radius: var(--r-lg); padding: 20px;
  background: #FF6A2B;
  background: -webkit-linear-gradient(152deg, #FF8F55 0%, #F0551B 100%);
  background: linear-gradient(152deg, #FF8F55 0%, #F0551B 100%);
  color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 8px 24px rgba(240, 85, 27, .26);
}
.hero-card .who { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
.hero-card .cls { font-size: 12px; opacity: .65; margin-top: 4px; }
.hero-card .notice { font-size: 12px; line-height: 1.65; opacity: .8; margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 12px; }
.hero-me {
  margin-top: 14px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow);
  display: -webkit-box; display: -webkit-flex; display: flex; padding: 14px 0;
}
.hero-me .it { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; text-align: center; position: relative; }
.hero-me .it + .it:before { content: ""; position: absolute; left: 0; top: 12%;
  width: 1px; height: 76%; background: var(--line); }
.hero-me .n { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-me .l { font-size: 11px; color: var(--ink3); margin-top: 3px; }

.catbar { background: #fff; padding: 14px 0 4px; position: -webkit-sticky; position: sticky;
  top: 0; z-index: 25; border-bottom: 1px solid var(--line); }
.catbar-in { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap;
  padding: 0 16px; }
.catbar-in::-webkit-scrollbar { display: none; }

.grid { padding: 14px 16px 0; }
.pcard {
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 12px;
  width: 48.2%; margin-right: 3.6%; float: left;
  -webkit-transition: transform .15s; transition: transform .15s;
}
.pcard:nth-child(2n) { margin-right: 0; }
.pcard:active { -webkit-transform: scale(.985); transform: scale(.985); }
.grid:after { content: ""; display: block; clear: both; }
/* 方图（和淘宝的商品卡一样）：后台把每张图都裁成正方形，
   这里框子也是正方形，配上 cover 就永远铺满、任何比例都不会露出白边。
   以前是 74%（扁的），方图放进去左右会各留一条白 —— 就是「没铺满、有白边」的来源。
   ⚠️ 想改回扁的：把 100% 改回 74% 即可，其余不用动。 */
.pcard-img { position: relative; padding-top: 100%; }
.pcard-img .inner { position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; }
.pcard-img svg { width: 62%; height: 62%; max-width: 96px; max-height: 96px; }
.pcard-body { padding: 11px 12px 13px; }
.pcard-name { font-size: 15px; font-weight: 600; line-height: 1.35;
  height: 40px; overflow: hidden; }
.pcard-spec { font-size: 11.5px; color: var(--ink3); margin-top: 3px; height: 16px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-foot { margin-top: 9px; display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: justify; -webkit-justify-content: space-between; justify-content: space-between; }
.pcard-price { font-size: 17px; }
.pcard-price i { font-size: 11px; font-style: normal; color: var(--ink3); font-weight: 400; }

.stepper { display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center; }
.stepper .b { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-l);
  color: var(--primary); display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
  font-size: 20px; font-weight: 600; line-height: 1; }
.stepper .b.on { background: var(--primary); color: #fff; }
.stepper .b:active { opacity: .7; }
.stepper .q { min-width: 30px; text-align: center; font-size: 16px; font-weight: 600;
  font-variant-numeric: tabular-nums; }
/* 退货选择：一行一样东西，前面一个勾选框。
   ⚠️ 默认一个都不勾 —— 学生想退哪样自己勾（原来默认每件都是 1，等于默认全退）。
   整行都能点，不用瞄准小方框；勾上才出现数量加减。 */
.ret-row { display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  padding: 11px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.ret-row:last-child { border-bottom: 0; }
.ret-row.on { background: #FFFBF7; }
.ret-row .ret-chk { -webkit-flex: none; flex: none; }
.ret-row .ret-info { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; min-width: 0; padding: 0 10px; }
.ret-row .ret-nm { font-size: 14.5px; color: var(--ink); }
.ret-row .ret-nm b { font-weight: 600; }
.add-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
  font-size: 20px; font-weight: 600; line-height: 1; }

/* 底部结算条 */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: #fff; box-shadow: var(--shadow-up);
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
}
.cartbar-in { max-width: 1180px; margin: 0 auto; display: -webkit-box; display: -webkit-flex;
  display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; }
.cart-icon { position: relative; width: 46px; height: 46px; border-radius: 14px;
  background: var(--primary-l); display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; }
.cart-icon svg { width: 24px; height: 24px; }
.cart-dot { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px;
  border-radius: 999px; background: var(--price); color: #fff; font-size: 11px; font-weight: 700;
  line-height: 20px; text-align: center; padding: 0 5px; }
.cart-sum { margin-left: 12px; }
.cart-sum .t { font-size: 20px; font-weight: 700; color: var(--price); font-variant-numeric: tabular-nums; }
.cart-sum .s { font-size: 11px; color: var(--ink3); }

/* 弹层 */
.mask { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0,0,0,.42);
  z-index: 60; opacity: 0; pointer-events: none; -webkit-transition: opacity .25s; transition: opacity .25s; }
.mask.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff;
  border-radius: 22px 22px 0 0; max-height: 84%; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  -webkit-transform: translateY(102%); transform: translateY(102%);
  -webkit-transition: transform .28s cubic-bezier(.32,.72,0,1); transition: transform .28s cubic-bezier(.32,.72,0,1);
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
}
.sheet.on { -webkit-transform: translateY(0); transform: translateY(0); }
.sheet-h { padding: 16px 18px 10px; display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: justify; -webkit-justify-content: space-between; justify-content: space-between;
  border-bottom: 1px solid var(--line); position: -webkit-sticky; position: sticky; top: 0; background: #fff; }
.sheet-h .t { font-size: 16px; font-weight: 600; }
.sheet-body { padding: 14px 18px; }
.sheet-f { padding: 12px 18px 0; background: #fff;
  /* 底部按钮跟着弹窗一起固定在屏幕下沿。
     弹窗内容是整块滚动的（.sheet 设了 overflow-y:auto），
     一旦内容比屏幕高（比如「文萃π色」42 个颜色），
     原来的按钮会被顶到屏幕外，学生得先滑到底才点得到「加入购物车」。
     顶部标题栏早就是 sticky 了，底部照同样套路来一份。 */
  position: -webkit-sticky; position: sticky; bottom: 0;
  box-shadow: 0 -10px 14px -10px rgba(0, 0, 0, .10); }

.cart-item { display: -webkit-box; display: -webkit-flex; display: flex; padding: 12px 0;
  border-bottom: 1px solid #F4F4F1; }
.cart-item:last-child { border-bottom: 0; }
.cart-thumb { width: 58px; height: 58px; border-radius: 12px; margin-right: 12px;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; }
.cart-thumb svg { width: 34px; height: 34px; }

.list-row { display: -webkit-box; display: -webkit-flex; display: flex; padding: 12px 0;
  border-bottom: 1px solid #F4F4F1; }
.list-row:last-child { border-bottom: 0; }
.order-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px;
  margin-bottom: 10px; }
.order-card:last-child { margin-bottom: 0; }
.order-h { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center;
  -webkit-align-items: center; align-items: center;
  -webkit-box-pack: justify; -webkit-justify-content: space-between; justify-content: space-between;
  margin-bottom: 8px; }

/* ============================================================
   管理端 / 班长端
   ============================================================ */
.admin { padding-bottom: 40px; }
.kpis { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap;
  flex-wrap: wrap; margin: 0 -7px; }
.kpi { -webkit-box-flex: 1; -webkit-flex: 1 1 150px; flex: 1 1 150px;
  margin: 7px; background: #fff; border-radius: var(--r-lg); padding: 15px 16px;
  box-shadow: var(--shadow); min-width: 140px; }
.kpi .l { font-size: 12px; color: var(--ink3); }
.kpi .v { font-size: 23px; font-weight: 700; margin-top: 6px; letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 13px; font-weight: 400; color: var(--ink3); }
.kpi.accent {
  background: #FF6A2B;
  background: -webkit-linear-gradient(140deg, #FF8F55 0%, #F0551B 100%);
  background: linear-gradient(140deg, #FF8F55 0%, #F0551B 100%);
  box-shadow: 0 8px 22px rgba(240, 85, 27, .24);
}
.kpi.accent .l { color: rgba(255,255,255,.8); }
.kpi.accent .v { color: #fff; }

.tabs { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap;
  flex-wrap: wrap; padding: 14px 0 4px; }
.tab { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--ink2); margin: 0 8px 9px 0; }
.tab.on { background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 4px 12px rgba(240, 85, 27, .24); }

/* ---------- 管理端：默认密码未改时的提醒条 ---------- */
.pwd-warn { display: -webkit-box; display: -webkit-flex; display: flex;
  flex-wrap: wrap; align-items: baseline; margin: 0 0 14px;
  padding: 12px 14px; border-radius: 12px; cursor: pointer;
  background: #FFF3F0; border: 1px solid #FFCFC4; color: #B32F12;
  font-size: 14px; line-height: 1.6; }
.pwd-warn b { margin-right: 8px; }
.pwd-warn-tx { color: #C0563A; }

.bar { height: 8px; border-radius: 999px; background: #F0F0EC; overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--primary); }

.item-line { display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #F4F4F1; }
.item-line:last-child { border-bottom: 0; }
.item-n { width: 30px; height: 30px; border-radius: 9px; background: #F6F6F3; color: var(--ink2);
  font-size: 12px; font-weight: 600; text-align: center; line-height: 30px; margin-right: 11px; }

/* ---------- 商品列表：搜索框 ---------- */
.psearch { position: relative; padding: 0 0 10px; }
.psearch .input { padding-right: 38px; }
.psearch-x { position: absolute; right: 12px; top: 50%; margin-top: -16px; width: 26px; height: 26px;
  line-height: 25px; text-align: center; border-radius: 50%; background: #EFEFEA; color: var(--ink2);
  font-size: 15px; cursor: pointer; -webkit-user-select: none; user-select: none; }
.psearch-x:active { background: #E2E2DC; }

/* ---------- 商品列表：同类聚堆的小标题 + 拖拽调序 ---------- */
.plist-group { padding: 16px 0 6px; font-size: 13.5px; font-weight: 700; color: var(--ink2);
  border-bottom: 1px solid var(--line); background: #FBFBF9; }
.plist-group:first-child { padding-top: 6px; }
.plist-group .plist-n { margin-left: 8px; font-size: 12px; font-weight: 400; color: #B3B3AC; }
.item-line .drag-h { -webkit-flex: none; flex: none; width: 20px; margin-right: 2px;
  color: #C9C9C1; font-size: 13px; letter-spacing: -2px; cursor: grab;
  -webkit-user-select: none; user-select: none; }
.item-line .drag-h:active { cursor: grabbing; }
/* 鼠标划过变橙 —— 把手本身很淡，不变色用户发现不了它（SKU 行同理） */
.item-line .drag-h:hover, .sku-drag-h:hover { color: var(--primary); }
.item-line.drop-before { box-shadow: inset 0 3px 0 var(--primary); }
.item-line.drop-after { box-shadow: inset 0 -3px 0 var(--primary); }

/* ---------- 分类管理 ---------- */
.cat-block { border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 4px 12px 8px; margin-bottom: 10px; background: #FDFDFB; }
.cat-line { display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  padding: 9px 0; border-bottom: 1px solid #F2F2EE; }
.cat-line.kid { padding-left: 18px; }
.cat-line .nm { font-size: 15px; font-weight: 600; }
.cat-line.kid .nm { font-size: 14px; font-weight: 400; color: var(--ink2); }
.cat-ops { margin-left: auto; display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center; }
.cat-ops .b { min-width: 32px; height: 30px; padding: 0 9px; border-radius: 9px;
  background: #F2F2EE; color: var(--ink2); font-size: 13px; margin-left: 6px; white-space: nowrap;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; }
.cat-ops .b:active { background: #E5E5E0; }
.cat-ops .b[disabled] { opacity: .3; }
.cat-ops .b.danger { background: #FFF0EF; color: var(--price); }
.cat-foot { padding: 10px 0 2px 18px; }
.qty-pill { background: var(--primary); color: #fff; font-size: 14px; font-weight: 700;
  border-radius: 8px; padding: 4px 10px; font-variant-numeric: tabular-nums; }

/* ---------- 商品规格 SKU ---------- */
.sku-row { display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  margin-bottom: 8px; }
/* 规格行：[分组(固定76)] [名称(自适应)] [价格(固定100)] [删除]
   ⚠️ 别再写「第一个 input 自适应、后面的固定」那种相对写法 ——
   往行里插一个新字段（比如这次的「分组」）会立刻错位。用 class 点名。 */
.sku-in-sub { -webkit-box-flex: 0; -webkit-flex: none; flex: none; width: 76px; margin-right: 8px; }
.sku-in-name { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; min-width: 0; }
.sku-in-price { -webkit-box-flex: 0; -webkit-flex: none; flex: none; width: 100px; margin-left: 8px; }
/* 规格行最左边的拖拽把手：按住它把这一行拖到别的先后（和商品列表一个手感）。
   ⚠️ 只有把手是 draggable —— 输入框里选字往外拖不会误触发调序。 */
.sku-drag-h { -webkit-flex: none; flex: none; width: 20px; margin-right: 2px;
  text-align: center; color: #C9C9C1; font-size: 13px; line-height: 40px;
  letter-spacing: -2px; cursor: grab; -webkit-user-select: none; user-select: none;
  -webkit-user-drag: element; }
.sku-drag-h:active { cursor: grabbing; }
.sku-row.sku-drop-before { box-shadow: inset 0 3px 0 var(--primary); }
.sku-row.sku-drop-after { box-shadow: inset 0 -3px 0 var(--primary); }
/* 换分组时的小标题（盒装 / 袋装）—— 80 多行铺开时得知道自己在改哪一段 */
.sku-group { margin: 14px 0 7px; font-size: 12.5px; font-weight: 700; color: #9A9AA4;
  letter-spacing: .3px; }
.sku-group:first-child { margin-top: 2px; }
.sku-del { width: 42px; height: 40px; margin-left: 8px; border-radius: 10px;
  background: #FFF0EF; color: var(--price); font-size: 20px; line-height: 1;
  -webkit-flex-shrink: 0; flex-shrink: 0;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; }
.sku-del:active { background: #FCE1DF; }
/* 规格行最前面的小方框：点一下传图（色卡）。
   没图 = 虚线框带个加号；有图 = 缩略图，右上角悬着小 × 可删。
   光标和按下变色都得给 —— 用户得一眼看出这玩意能点。 */
.sku-img { position:relative;width:40px;height:40px;-webkit-flex:none;flex:none;
  margin-right:8px;border-radius:8px;overflow:visible;background:#f6f6f3;cursor:pointer;
  display:-webkit-box;display:-webkit-flex;display:flex;
  -webkit-box-align:center;-webkit-align-items:center;align-items:center;
  -webkit-box-pack:center;-webkit-justify-content:center;justify-content:center; }
.sku-img.empty { border:1.5px dashed #D5D5CE; }
.sku-img.empty:after { content:'+'; font-size:20px; color:#B3B3AC; line-height:1; font-weight:600; }
.sku-img:active { background:#EFEFEA; }
.sku-img img { width:40px;height:40px;object-fit:cover;display:block;border-radius:8px; }
/* 拖图到方框上时的高亮 */
.sku-img.drag-on { border:1.5px solid var(--primary); background: var(--primary-l); }
/* 有图时右上角的删除小 ×（悬在图上，不受父级圆角裁切影响） */
.sku-img-rm { position:absolute;top:-7px;right:-7px;width:18px;height:18px;border-radius:50%;
  background:#FF6A2B;color:#fff;font-size:12px;line-height:18px;text-align:center;
  -webkit-flex:none;flex:none;box-shadow:0 1px 3px rgba(0,0,0,.25);font-weight:700; }
/* 色卡小图（学生端规格弹窗里的 30×30）。
   ⚠️ object-fit:cover 不能少：这是个 <img>，不写的话浏览器会把图硬压成 30×30
   —— 方的还好，不是方的就会被拉扁变形。 */
.sku-opt-img { display:block;width:30px;height:30px;border-radius:7px;margin-bottom:5px;background:#fff;object-fit:cover }

/* ---------- 学生端选规格 ----------
   规格排成多列小方块：手机一行 2 个，屏幕宽了一行 3 个。
   用 inline-block + 百分比宽度（不用 CSS Grid / flex-gap，老 Safari 才稳）。 */
.sku-grid { margin: 8px -4px 0; }
.sku-cell { display: inline-block; vertical-align: top; width: 50%;
  padding: 0 4px 8px; box-sizing: border-box; }
.sku-opt { position: relative; padding: 11px 11px; border: 1.5px solid var(--line); border-radius: 11px;
  background: #fff; font-size: 14px; line-height: 1.35; }
/* 已经加进购物车的：边框换成浅橙。
   ⚠️ 这条必须写在 .on 前面 —— 两个选择器特异性一样，后写的赢，
   否则「当前选中的那个」会被这条盖掉，看不出选的是哪个了。 */
.sku-opt.has { border-color: #F3C9AE; }
.sku-opt.on { border-color: var(--primary); background: var(--primary-l); }
.sku-opt.on .nm { font-weight: 600; }
.sku-opt:active { opacity: .7; }
.sku-opt .nm { display: block; }
.sku-opt .pr { display: block; margin-top: 2px; font-size: 12.5px;
  color: var(--price); font-weight: 600; }
/* 「加了几件」的小角标。加入购物车后弹窗不再自动关闭，
   全靠这个告诉学生哪些颜色已经加过了，免得重复加。 */
.sku-opt .got { position: absolute; top: -7px; right: -4px; z-index: 2;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 700;
  line-height: 20px; text-align: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .16); }
@media (min-width: 560px) { .sku-cell { width: 33.3333%; } }
.pick-sku { height: 32px; padding: 0 13px; border-radius: 999px; background: var(--primary);
  color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; }
.pick-sku.has { background: var(--primary-d); }

/* ---------- 分类管理（左树右商品） ---------- */
.cat-layout { display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: start; -webkit-align-items: flex-start; align-items: flex-start; }
.cat-panel { width: 292px; -webkit-flex-shrink: 0; flex-shrink: 0; background: #fff;
  border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px 12px; }
.cat-detail { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; min-width: 0; margin-left: 14px; }
.cat-detail-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; }

.cat-add { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.cat-tree { max-height: 58vh; overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 0 -6px; }
.cat-tree::-webkit-scrollbar { width: 7px; }
.cat-tree::-webkit-scrollbar-track { background: transparent; }
.cat-tree::-webkit-scrollbar-thumb { background: #DEDED8; border-radius: 4px; }
.cat-tree::-webkit-scrollbar-thumb:hover { background: #C6C6C0; }
.tree-row { display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  height: 36px; border-radius: 9px; padding: 0 6px; cursor: pointer;
  border: 1px solid transparent;
  -webkit-transition: background .12s; transition: background .12s; }
.tree-row:hover { background: #F6F6F3; }
.tree-row.on { background: var(--primary-l); }
.tree-row.on .tree-nm { color: var(--primary-d); }
.tree-row.on .tree-n, .tree-row.on .tree-arrow { color: var(--primary); }
.tree-row.drop-before { box-shadow: inset 0 3px 0 var(--primary); }
.tree-row.drop-after { box-shadow: inset 0 -3px 0 var(--primary); }
.tree-row.drop-child { background: var(--primary-l); border-color: var(--primary); }
.tree-arrow { width: 20px; -webkit-flex-shrink: 0; flex-shrink: 0; text-align: center;
  font-size: 10px; color: var(--ink3); }
.tree-arrow.kid { color: #D8D8D2; font-size: 12px; }
.tree-nm { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; min-width: 0;
  font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-row.lv1 .tree-nm { font-weight: 600; }
.tree-row.lv2 { padding-left: 16px; }
.tree-row.lv2 .tree-nm { color: var(--ink2); font-size: 13.5px; }
.tree-row.on.lv2 .tree-nm { color: var(--primary-d); }
.tree-n { font-size: 11px; color: var(--ink3); margin: 0 4px; font-variant-numeric: tabular-nums; }
.tree-more { width: 30px; height: 26px; -webkit-flex-shrink: 0; flex-shrink: 0;
  border-radius: 7px; color: var(--ink3);
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; }
.tree-more:hover { background: rgba(0,0,0,.07); color: var(--ink); }
.tree-row.on .tree-more { color: var(--primary); }
.tree-row.on .tree-more:hover { background: rgba(255,106,43,.14); color: var(--primary-d); }
.tree-edit { width: 100%; height: 28px; padding: 0 8px; font-size: 14px;
  border: 1px solid var(--primary); border-radius: 7px; outline: none; }
.cat-tip { font-size: 11.5px; color: var(--ink3); line-height: 1.8;
  padding-top: 10px; margin-top: 8px; border-top: 1px solid var(--line); }

.cat-menu { position: fixed; z-index: 200; background: #fff; border-radius: 12px;
  box-shadow: 0 10px 34px rgba(20,20,30,.18); padding: 6px; min-width: 148px; }
.cat-menu .mi { display: block; width: 100%; text-align: left; padding: 9px 12px;
  border-radius: 8px; font-size: 14px; color: var(--ink); white-space: nowrap; }
.cat-menu .mi:hover { background: #F4F4F1; }
.cat-menu .mi.red { color: var(--price); }
.cat-menu .mi.red:hover { background: #FFF0EF; }
.detail-h { font-size: 12px; color: var(--ink3); font-weight: 500; }
.cat-kid-row { display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #F4F4F1; cursor: pointer; }
.cat-kid-row:last-child { border-bottom: 0; }
.cat-prod { display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #F4F4F1; }
.cat-prod:last-child { border-bottom: 0; }

@media (max-width: 820px) {
  .cat-layout { display: block; }
  .cat-panel { width: auto; }
  .cat-detail { margin-left: 0; margin-top: 14px; }
  .cat-tree { max-height: none; }
}

/* 分发单打印区
   ⚠️ 这里是**一行一人**的流式排布，不是"一人一张卡片"。
   卡片版一个 40 人的班要打 4 页（卡片边框/内边距 + 每件商品独占一行，
   报了 9 样东西的人就占 11 行）；改成一行之后一页就打完了 —— 分发单是打给班长用的，
   省纸、一眼能看完整班比好看重要。 */
.sheet-print { background: #fff; }
.sheet-print h1 { font-size: 20px; font-weight: 700; text-align: center; letter-spacing: -0.3px; }
.sheet-print .sub { text-align: center; font-size: 12px; color: var(--ink3); margin-top: 5px; }
.dist-item { display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: start; -webkit-align-items: flex-start; align-items: flex-start;
  border-bottom: 1px solid var(--line); padding: 8px 2px; }
.dist-item .no { -webkit-flex: none; flex: none; width: 24px; line-height: 22px;
  color: var(--ink3); font-size: 12px; }
.dist-item .chk { -webkit-flex: none; flex: none; margin: 0 9px 0 2px; }
.dist-item .who { -webkit-flex: none; flex: none; width: 78px; line-height: 22px;
  font-size: 14px; font-weight: 600; }
.dist-item .goods { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; min-width: 0;
  line-height: 22px; font-size: 13px; color: var(--ink2); }
.dist-item .goods b { color: var(--ink); font-weight: 600; }
.dist-item .goods .sep { color: #CFCFC8; font-style: normal; margin: 0 5px; }
.dist-item .goods .num { color: var(--ink); }
.dist-item .goods .spec { color: var(--ink3); font-size: 11.5px; }
.dist-item .qty { -webkit-flex: none; flex: none; margin-left: 10px; line-height: 22px;
  font-size: 12px; color: var(--ink3); }
.cls-head { font-size: 16px; font-weight: 700; margin: 20px 0 10px; padding-bottom: 8px;
  border-bottom: 2px solid var(--ink); }
.cls-head:first-of-type { margin-top: 14px; }
.sign { font-size: 13px; color: var(--ink2); margin-top: 16px; line-height: 2; }
.sheet-print .dist-item .chk { border-color: #C4C4BE; }
.chk { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #CFCFC9; background: #fff;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; }
.chk.on { background: var(--primary); border-color: var(--primary); }
.chk.on:after { content: ""; width: 4px; height: 9px; border: solid #fff;
  border-width: 0 2px 2px 0; -webkit-transform: rotate(45deg); transform: rotate(45deg);
  margin-top: -3px; }

.pcheck { display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center; }
.pcheck + .pcheck { margin-top: 10px; }
.pcheck .nm { margin-left: 9px; font-size: 14px; }
.pcheck .ds { margin-left: auto; font-size: 12px; color: var(--ink3); }

/* ---------- 图片拖拽上传 ---------- */
.dropzone {
  border: 2px dashed #DCDCD6; border-radius: var(--r-md); background: #FAFAF8;
  min-height: 168px; padding: 20px 16px; text-align: center; cursor: pointer;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
  -webkit-transition: border-color .18s, background .18s; transition: border-color .18s, background .18s;
}
.dropzone.over { border-color: var(--primary); background: var(--primary-l); }
.dropzone.busy { opacity: .6; pointer-events: none; }
.dropzone .dz-icon { width: 46px; height: 46px; margin: 0 auto 10px; }
.dropzone .dz-t { font-size: 14px; font-weight: 600; }
.dropzone .dz-s { font-size: 12px; color: var(--ink3); margin-top: 5px; line-height: 1.7; }
.dz-preview img { width: 160px; height: 160px; object-fit: cover; border-radius: 10px;
  margin: 0 auto; display: block; background: #fff; }
.dz-preview .nm { font-size: 12px; color: var(--ink3); margin-top: 9px; }
.prod-thumb { width: 46px; height: 46px; border-radius: 12px; margin-right: 12px; overflow: hidden;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
  background-size: cover; background-repeat: no-repeat; background-position: center; }

/* ---------- 宽屏居中（学生端没有 wrap 容器，单独约束） ---------- */
@media (min-width: 1180px) {
  .hero-card, .hero-me { max-width: 1148px; margin-left: auto; margin-right: auto; }
  .grid, .grid-head { max-width: 1180px; margin-left: auto; margin-right: auto; }
  .catbar-in { max-width: 1180px; margin-left: auto; margin-right: auto; }
}

/* ---------- 鼠标设备上的悬停反馈（iPad 上无影响） ---------- */
@media (hover: hover) and (min-width: 760px) {
  .pcard:hover { box-shadow: 0 10px 26px rgba(20, 20, 30, .10);
    -webkit-transform: translateY(-2px); transform: translateY(-2px); }
  .tab:hover { border-color: #D8D8D2; }
  .btn:hover { opacity: .92; }
}

/* ---------- 手机适配 ---------- */
@media (max-width: 420px) {
  .pcard { width: 48%; margin-right: 4%; }
  .hero-card .who { font-size: 18px; }
}
@media (min-width: 700px) {
  .pcard { width: 31.4%; margin-right: 2.9%; }
  .pcard:nth-child(2n) { margin-right: 2.9%; }
  .pcard:nth-child(3n) { margin-right: 0; }
}
@media (min-width: 1000px) {
  .pcard { width: 23.5%; margin-right: 2%; }
  .pcard:nth-child(2n) { margin-right: 2%; }
  .pcard:nth-child(3n) { margin-right: 2%; }
  .pcard:nth-child(4n) { margin-right: 0; }
}

/* ---------- 打印 ---------- */
@media print {
  body { background: #fff; }
  .no-print, .topbar, .cartbar, .tabs, .toast { display: none !important; }
  .card { box-shadow: none; border: 0; border-radius: 0; padding: 0;
    margin: 0; }
  .wrap { max-width: none; padding: 0; }
  .app, .admin { padding: 0; }
  .kpis { margin: 0; }
  .kpi { display: none; }
  a { text-decoration: none; color: inherit; }

  /* 分发单 / 汇总表 打印排版 —— 目标：**一个班一页**
     （原来一人一张卡片，40 人的班要 4 页；现在一行一人，50 人也装得下）
     字号按"打印出来能看清"的下限压：商品 10px≈7.5pt，
     和快递单一个量级，比再省一页纸重要。 */
  .sheet-print h1 { font-size: 16px; margin: 0 0 3px; }
  .sheet-print .sub { font-size: 9.5px; margin-bottom: 5px; }
  .cls-head { font-size: 12px; margin: 8px 0 3px; padding-bottom: 3px;
    border-bottom: 1.5px solid #333; }
  .cls-head.page-break { page-break-before: always; }
  .dist-item { padding: 1px 0; border-bottom: 1px solid #E8E8E8;
    page-break-inside: avoid; }
  .dist-item .no { width: 15px; font-size: 9px; line-height: 14px; }
  .dist-item .chk { width: 13px; height: 13px; border-radius: 3px; border-width: 1px;
    margin: 0.5px 7px 0 1px; }
  .dist-item .who { width: 54px; font-size: 11px; line-height: 14px; }
  .dist-item .goods { font-size: 10px; line-height: 14px; }
  .dist-item .goods .spec { font-size: 8.5px; }
  .dist-item .qty { font-size: 9px; line-height: 14px; margin-left: 8px; }
  .sign { font-size: 10px; margin-top: 9px; line-height: 1.8; }
  table.tbl { font-size: 11.5px; }
  table.tbl th { font-size: 10.5px; padding: 5px 6px; background: #fff; }
  table.tbl td { padding: 6px; border-bottom: 1px solid #E4E4E4; }
  table.tbl tr { page-break-inside: avoid; }
  .qty-pill { background: none; color: #000; padding: 0; font-weight: 700; }
}
