/* 负责人电脑端布局（对照参考图 02/04） */
body { background: #f6f5f3; }
.loginwrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.loginbox { width: 380px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.loginbox h2 { margin: 0 0 6px; }

#shell { display: none; min-height: 100vh; }
#shell.on { display: flex; }
.side {
  width: 208px; background: linear-gradient(180deg, #16301f, #123322);
  color: #e8f3ec; padding: 18px 12px; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
}
.brand { font-weight: 800; font-size: 16.5px; padding: 4px 10px 16px; letter-spacing: .5px; }
#menu { flex: 1; display: flex; flex-direction: column; gap: 2px; }
#menu button {
  display: flex; gap: 9px; align-items: center; width: 100%; text-align: left;
  background: none; border: none; color: #cfe3d6; font-size: 14px;
  padding: 9px 12px; border-radius: 9px;
}
#menu button.active { background: rgba(255,255,255,.14); color: #fff; font-weight: 700; }
#menu button:hover { background: rgba(255,255,255,.08); }
#menu .grp { font-size: 11px; color: #7fa68e; padding: 12px 12px 4px; }
.sidefoot { font-size: 11.5px; color: #7fa68e; padding: 10px 12px 0; border-top: 1px solid rgba(255,255,255,.12); }

.main { flex: 1; padding: 20px 26px 40px; min-width: 0; }
.topbar { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.topbar-title { font-size: 22px; font-weight: 800; }

.metrics { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.metric { flex: 1; padding: 14px 18px; text-align: center; border-right: 1px solid var(--line); }
.metric:last-child { border-right: none; }
.metric .lbl { font-size: 12.5px; color: var(--muted); }
.metric .val { font-size: 30px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }
.metric .val.amber { color: var(--amber-600); }
.metric .val.green { color: var(--green-700); }

.banner { border-radius: 12px; padding: 10px 16px; font-size: 14px; font-weight: 600; margin: 12px 0; }
.banner.amber { background: var(--amber-100); color: #92400e; }
.banner.green { background: var(--green-50); color: var(--green-800); }
.banner.red { background: #fee2e2; color: var(--danger); }

.filterbar { display: flex; gap: 10px; margin: 14px 0; align-items: center; flex-wrap: wrap; }
.toolbar { display: flex; gap: 10px; align-items: center; }

.receivewrap { display: flex; gap: 14px; align-items: flex-start; }
.receivewrap .tbl { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sidecard { width: 250px; flex-shrink: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.sidecard h4 { margin: 0 0 10px; font-size: 14.5px; }
.missing-item { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.missing-item:last-child { border-bottom: none; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.qrbox { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: inline-block; text-align: center; }
.qrbox svg { width: 128px; height: 128px; }

.ranktable .r1 { color: #b45309; font-weight: 800; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.batchlist { max-height: 70vh; overflow: auto; }
.batchitem { padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.batchitem.on { background: var(--green-50); border-left: 3px solid var(--green-700); }
.batchitem b { font-size: 14px; }
.batchitem .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.checkrow { display: flex; align-items: flex-start; gap: 8px; }
textarea.field { min-height: 64px; resize: vertical; }
