/* ============================================================
   app.css — 应用外壳 / 登录 / 各页面布局
   ============================================================ */

/* ============ 登录页 ============ */
.login-page {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    radial-gradient(1100px 650px at 72% 10%, #E9F0F8 0%, #F4F7FA 55%, #F1F4F8 100%);
  background-size: 26px 26px, 26px 26px, 130px 130px, 130px 130px, auto;
  overflow: auto;
  padding: 30px 20px;
}

/* 图纸角框 */
.login-frame {
  position: fixed;
  pointer-events: none;
  inset: 26px;
  border: 1px solid rgba(124, 148, 180, 0.28);
}
.login-frame::before,
.login-frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(0, 91, 172, 0.45);
}
.login-frame::before {
  left: -2px;
  top: -2px;
  border-right: none;
  border-bottom: none;
}
.login-frame::after {
  right: -2px;
  bottom: -2px;
  border-left: none;
  border-top: none;
}

.login-box {
  width: 400px;
  max-width: 100%;
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow-3);
  overflow: hidden;
  animation: rise 0.4s ease;
  position: relative;
}
.login-box::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
}

.login-brand {
  padding: 34px 36px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}
.login-logo-img {
  height: 64px;
  width: auto;
  flex: none;
}
.login-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.login-name h1 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text);
}
.login-name .login-co {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-2);
  white-space: nowrap;
}

.login-tagline {
  font-size: 12.5px;
  color: var(--text-2);
  letter-spacing: 0.28em;
  padding-bottom: 4px;
}

.login-form {
  padding: 22px 36px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-form .field label {
  font-size: 12px;
}

.login-err {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--red-tint);
  border: 1px solid var(--red-line);
  color: var(--red-text);
  border-radius: var(--r);
  padding: 9px 12px;
  font-size: 12.5px;
}

/* 首登强制改密提示条 */
.pw-force-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--amber-tint);
  border: 1px solid var(--amber-line);
  color: var(--amber-deep);
  border-radius: var(--r);
  padding: 9px 12px;
  font-size: 12.5px;
  line-height: 1.6;
}
.pw-force-tip svg {
  flex: none;
  margin-top: 2px;
}

.login-foot {
  padding: 12px 36px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-3);
}
.login-foot .ver {
  font-family: var(--mono);
}

/* ============ 应用外壳 ============ */
.shell {
  display: flex;
  min-height: 100vh;
}

/* —— 侧栏 —— */
.sidebar {
  width: var(--sidebar-w);
  flex: none;
  display: flex;
  flex-direction: column;
  background: var(--ink-1);
  border-right: 1px solid var(--ink-line);
  color: var(--ink-text);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 20;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--ink-line);
}
.side-logo {
  width: 38px;
  height: 30px;
  flex: none;
  object-fit: contain;
}
.side-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.side-name b {
  font-size: 14.5px;
  color: var(--text);
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.side-name span {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-text-dim);
  margin-top: 1px;
  white-space: nowrap;
}

.side-nav {
  flex: 1;
  padding: 14px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.side-nav::-webkit-scrollbar {
  width: 6px;
}
.side-nav::-webkit-scrollbar-thumb {
  border: none;
  background: var(--ink-line);
}

/* 分组标题（可折叠） */
.nav-grp {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  margin-top: 12px;
  border-radius: var(--r);
  cursor: pointer;
  user-select: none;
  color: var(--ink-text-dim);
  transition: color 0.14s, background 0.14s;
}
.nav-grp:hover {
  color: var(--ink-text);
  background: var(--ink-2);
}
.nav-grp.on { color: var(--ink-text); }
.nav-grp .ng-cap {
  flex: 1;
  font-size: 13px;
  letter-spacing: 0.06em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}
.nav-grp .ng-arrow {
  flex: none;
  opacity: 0.55;
  transition: transform 0.16s;
}
.nav-grp .ng-arrow.open { transform: rotate(180deg); }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r);
  color: var(--ink-text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  transition: all 0.14s;
  position: relative;
}
.nav-item.sub { padding-left: 16px; }
.nav-item .ni {
  flex: 1;
  white-space: nowrap;
}
.nav-item:hover {
  background: var(--ink-2);
  color: var(--text);
}
.nav-item.on {
  background: var(--blue-tint);
  border-color: var(--sel-line);
  color: var(--blue-deep);
  font-weight: 700;
}
.nav-item.on::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--blue);
}

.nav-pend {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--orange);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.side-user {
  border-top: 1px solid var(--ink-line);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.avatar {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: #EDF2F8;
  border: 1px solid #DFE6EF;
  color: #43536B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.su-info {
  flex: 1;
  min-width: 0;
}
.su-info b {
  display: block;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.su-info span {
  display: block;
  font-size: 11px;
  color: var(--ink-text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.su-acts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.su-acts button {
  border: 1px solid var(--ink-line);
  background: transparent;
  color: var(--ink-text-dim);
  border-radius: 4px;
  font-size: 11px;
  padding: 2px 8px;
  letter-spacing: 0.05em;
}
.su-acts button:hover {
  color: var(--blue-deep);
  border-color: var(--blue);
  background: var(--blue-tint);
}

/* —— 主区 —— */
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--header-h);
  flex: none;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 15;
}
.top-crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-3);
}
.top-crumb .sep {
  color: #C4CFDB;
}
.top-crumb b {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.top-pend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--sel-line);
  background: var(--blue-tint);
  color: var(--blue-deep);
  border-radius: 16px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.top-pend:hover {
  background: var(--sel-tint);
}
.top-pend .num {
  font-weight: 700;
}

.content {
  flex: 1;
  padding: 22px 26px 40px;
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
}

/* 页头 */
.page-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  animation: rise 0.28s ease;
}
.page-head .ph-main {
  flex: 1;
  min-width: 0;
}
.page-head h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.page-head .ph-sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-3);
  letter-spacing: 0.03em;
}
.page-head .ph-acts {
  display: flex;
  gap: 10px;
  flex: none;
  align-items: center;
}

/* ============ 工作台 ============ */
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 16px;
  animation: rise 0.3s ease;
}
.dash-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 16px;
  align-items: start;
}
.dash-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.status-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.status-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s;
  background: #FAFBFC;
}
.status-card:hover {
  border-color: var(--hover-line);
  background: #fff;
  box-shadow: var(--shadow-1);
}
.status-card .sc-val {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}
.status-card .sc-lab {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}

.mini-list {
  display: flex;
  flex-direction: column;
}
.mini-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background 0.12s;
}
.mini-row:last-child {
  border-bottom: none;
}
.mini-row:hover {
  background: var(--hover-bg);
}
.mini-main {
  flex: 1;
  min-width: 0;
}
.mini-no {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
}
.mini-sub {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-side {
  text-align: right;
  flex: none;
}
.mini-amt {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.wh-legend {
  display: flex;
  gap: 18px;
  padding: 12px 18px 0;
  font-size: 12px;
  color: var(--text-2);
  flex-wrap: wrap;
}
.wh-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: -1px;
}

/* ============ 库存页 ============ */
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
}
.filter-bar .field {
  width: 190px;
}
.filter-bar .field.grow {
  flex: 1;
  min-width: 220px;
}
.filter-bar .f-acts {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.sum-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.sum-chip {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 12.5px;
  color: var(--text-2);
}
.sum-chip b {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.sum-chip.hot {
  border-color: var(--orange-line);
  background: var(--orange-tint);
  color: var(--orange-deep);
}
.sum-chip.hot b {
  color: var(--orange-deep);
}

/* 仓库卡 */
.wh-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.wh-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 15px 17px;
  transition: all 0.15s;
}
.wh-card:hover {
  border-color: var(--hover-line);
  box-shadow: var(--shadow-1);
}
.wh-card .wh-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.wh-card .wh-top b {
  font-size: 14.5px;
  letter-spacing: 0.03em;
}
.wh-tag {
  height: 19px;
  padding: 0 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.wh-tag.zhongxin {
  background: var(--blue-tint);
  color: var(--blue);
}
.wh-tag.zhouzhuan {
  background: var(--gray-tint);
  color: var(--gray);
}
.wh-card .wh-mgr {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-3);
}
.wh-nums {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.wh-nums .wn {
  padding: 8px 10px;
  background: #F6F8FA;
  border-radius: var(--r);
}
.wh-nums .wn b {
  display: block;
  font-family: var(--mono);
  font-size: 15.5px;
  font-weight: 700;
}
.wh-nums .wn span {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

/* 方向标记 */
.dir-in {
  color: var(--green);
  font-weight: 700;
}
.dir-out {
  color: var(--red);
  font-weight: 700;
}

/* 批次/流水 tab 组 */
.drawer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.drawer-stats .ds {
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 10px 13px;
  background: #FAFBFC;
}
.drawer-stats .ds b {
  font-family: var(--mono);
  font-size: 17px;
}
.drawer-stats .ds span {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 2px;
}
.drawer-stats .ds.ok b {
  color: var(--green);
}
.drawer-stats .ds.bad b {
  color: var(--red);
}

/* ============ 提料页 ============ */
.req-toolbar {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  border-bottom: none;
}
.status-tabs {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 1px solid var(--line-soft);
  padding: 0 10px;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  overflow: auto;
}
.status-tabs .tabs {
  border-bottom: none;
}
.req-toolbar + .status-tabs {
  border-radius: 0;
}
.status-tabs + .tbl-wrap {
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  border-top: none;
}
.req-toolbar + .status-tabs + .tbl-wrap {
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* 详情页 */
.detail-head {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 16px;
  animation: rise 0.25s ease;
}
.dh-row1 {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.dh-no {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.dh-row2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.dh-item span {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.dh-item b {
  font-size: 13.5px;
  font-weight: 600;
}

.detail-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 16px;
  align-items: start;
}
.detail-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* 人员档案详情行 */
.pr-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: var(--text-2);
}
.pr-row {
  display: flex;
  gap: 10px;
  line-height: 1.55;
}
.pr-row .pr-k {
  flex: 0 0 96px;
  color: var(--text-3);
}
.pr-row b {
  color: var(--text-1);
  font-weight: 600;
  word-break: break-all;
}

/* 人员档案编辑弹窗分区 */
.hr-sec {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.hr-sec:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.hr-sec h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.wh-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.wh-row {
  display: grid;
  grid-template-columns: 160px 1fr 180px 34px;
  gap: 8px;
  width: 100%;
  align-items: center;
}
.hn-row {
  display: grid;
  grid-template-columns: 110px 1fr 34px;
  gap: 8px;
  width: 100%;
  align-items: center;
}
.honor-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.honor-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
}
.honor-item .badge {
  flex: 0 0 auto;
  height: 20px;
  line-height: 20px;
}
.honor-title {
  color: var(--text-1);
}

/* 出库单卡 */
.oo-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #FAFBFC;
}
.oo-card:last-child {
  margin-bottom: 0;
}
.oo-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.oo-no {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13.5px;
}

/* 限额条 */
.limit-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.limit-bar {
  width: 64px;
  height: 5px;
  background: var(--gray-tint);
  border-radius: 3px;
  overflow: hidden;
  flex: none;
}
.limit-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--green);
}
.limit-bar i.over {
  background: var(--red);
}

/* 表单页 */
.form-page {
  max-width: 980px;
  margin: 0 auto;
}
.form-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 16px;
  overflow: hidden;
  animation: rise 0.25s ease;
}
.fs-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: #F8FAFC;
}
.fs-head::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--blue);
}
.fs-head h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.fs-head .fs-note {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-3);
}
.fs-body {
  padding: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.form-grid .span2 {
  grid-column: span 2;
}

/* 明细行 */
.item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 150px 40px;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
}
.item-row .mat-chip {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px 12px;
  background: #FAFBFC;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s;
}
.item-row .mat-chip:hover {
  border-color: var(--blue);
}
.mat-chip .mc-name {
  font-weight: 600;
  font-size: 13px;
}
.mat-chip .mc-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}
.mat-chip .mc-empty {
  color: var(--text-3);
  font-size: 12.5px;
}
.item-del {
  height: 34px;
  width: 34px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-3);
  border-radius: var(--r);
  font-size: 16px;
}
.item-del:hover {
  color: var(--red);
  background: var(--red-tint);
}
.form-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  padding: 14px 4px 2px;
  font-size: 13px;
  color: var(--text-2);
}
.form-total b {
  font-family: var(--mono);
  font-size: 17px;
  color: var(--text);
  margin-left: 6px;
}
.form-total .ft-amount b {
  color: var(--blue-deep);
}

.form-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 4px 0 10px;
}

/* 物资选择器 */
.picker-search {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.picker-list {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.pick-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 90px 90px 76px;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background 0.12s;
}
.pick-row:last-child {
  border-bottom: none;
}
.pick-row:hover {
  background: #F0F5FA;
}
.pick-row.on {
  background: var(--blue-tint);
  box-shadow: inset 3px 0 0 var(--blue);
}

/* 占位页 */
.placeholder-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 100px 20px;
  text-align: center;
}
.ph-mark {
  width: 120px;
  height: 84px;
  border: 2px dashed #C4CFDB;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: #B4C0CE;
  position: relative;
  background: var(--card);
}
.ph-mark::after {
  content: "";
  position: absolute;
  right: -8px;
  top: -8px;
  width: 16px;
  height: 16px;
  background: var(--blue-tint);
  border: 2px solid var(--blue);
  border-radius: 4px;
}
.placeholder-page h3 {
  font-size: 17px;
  letter-spacing: 0.1em;
}
.placeholder-page p {
  color: var(--text-3);
  font-size: 13px;
  max-width: 400px;
}

/* ============ 响应式 ============ */
@media (max-width: 1400px) {
  .dash-kpis {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1100px) {
  .dash-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .dh-row2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .item-row {
    grid-template-columns: minmax(0, 1fr) 110px 130px 40px;
  }
}
@media (max-width: 900px) {
  :root {
    --sidebar-w: 64px;
  }
  .side-name,
  .nav-item .ni,
  .nav-item .nav-pend,
  .su-info,
  .su-acts {
    display: none;
  }
  .nav-item {
    justify-content: center;
    padding-left: 11px;
  }
  .nav-item.sub { padding-left: 11px; }
  .nav-grp {
    display: none;
  }
  .side-user {
    justify-content: center;
  }
  .dash-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   物流 / 安拆 / 回收 / 翻新 / 系统管理 —— 新增组件样式
   ============================================================ */

/* ---------- 弹窗内双列表单网格 ---------- */
.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.modal-grid .span2 {
  grid-column: 1 / -1;
}

/* 明细行变体：物资 + 数量 + 删除（物流 / 回收新建弹窗） */
.item-row.cols-qty {
  grid-template-columns: minmax(0, 1fr) 150px 40px;
}

/* ---------- 角色多选（用户管理） ---------- */
.role-checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 14px;
  padding: 10px 12px;
  background: #FAFBFC;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.role-checks .check {
  margin: 0;
  white-space: nowrap;
}

/* ---------- 分段选择器（跟踪节点切换等） ---------- */
.seg-group {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--card);
}
.seg {
  height: 32px;
  padding: 0 18px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.15s;
}
.seg + .seg {
  border-left: 1px solid var(--line);
}
.seg:hover {
  background: var(--gray-tint);
  color: var(--text);
}
.seg.on {
  background: var(--blue-tint);
  color: var(--blue-deep);
  font-weight: 600;
}

/* ---------- 物流节点垂直时间线 ---------- */
.track {
  display: flex;
  flex-direction: column;
}
.trk-item {
  display: flex;
  gap: 14px;
  position: relative;
  padding-bottom: 22px;
}
.trk-item:last-child {
  padding-bottom: 0;
}
.trk-item::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 31px;
  bottom: 3px;
  width: 2px;
  background: repeating-linear-gradient(
    -180deg,
    var(--line) 0 5px,
    transparent 5px 9px
  );
}
.trk-item:last-child::before {
  display: none;
}
.trk-item.done::before {
  background: linear-gradient(180deg, var(--green), var(--blue));
  background-size: 100% 100%;
}
.trk-node {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--text-3);
  z-index: 1;
}
.trk-item.done .trk-node {
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
  text-shadow: 0 1px 2px rgba(12, 22, 36, 0.3);
}
.trk-item.doing .trk-node {
  border-color: var(--orange);
  color: var(--orange-deep);
  background: var(--orange-tint);
  animation: pulse 2s ease-in-out infinite;
}
.trk-main {
  flex: 1;
  min-width: 0;
}
.trk-loc {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-2);
}
.trk-note {
  margin-top: 5px;
  padding: 7px 11px;
  background: #F6F8FA;
  border-left: 3px solid var(--line);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 12.5px;
  color: var(--text-2);
}
.trk-item.done .trk-note {
  border-left-color: var(--green);
}
.trk-item.doing .trk-note {
  border-left-color: var(--orange);
}

/* ---------- 运输异常面板 ---------- */
.abn-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.abn-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 12px 14px;
  background: #FAFBFC;
}
.abn-card.open {
  border-left-color: var(--red);
  background: var(--red-tint);
}
.abn-desc {
  margin-top: 7px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
}
.abn-result {
  margin-top: 8px;
  padding: 8px 11px;
  background: var(--green-tint);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 12.5px;
  color: var(--text-2);
}

/* ---------- 工序横向步骤条（安拆 / 翻新） ---------- */
.steps-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.sb-step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 13px 13px 12px;
  background: #FAFBFC;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sb-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 22px;
  width: 10px;
  height: 2px;
  background: var(--line);
}
.sb-step.todo {
  border-style: dashed;
  background: transparent;
}
.sb-step.doing {
  border-color: var(--orange);
  background: var(--orange-tint);
  box-shadow: 0 0 0 3px rgba(242, 98, 15, 0.08);
}
.sb-step.done {
  border-color: var(--green-line);
  background: var(--green-tint);
}
.sb-step.done:not(:last-child)::after {
  background: linear-gradient(90deg, var(--green), var(--blue));
}
.sb-node {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--text-3);
  margin-bottom: 8px;
}
.sb-step.doing .sb-node {
  border-color: var(--orange);
  color: var(--orange-deep);
  background: #fff;
  animation: pulse 2s ease-in-out infinite;
}
.sb-step.done .sb-node {
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
}
.sb-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.sb-meta {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}
.sb-extra {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed var(--green-line);
  font-size: 11.5px;
  color: var(--text-2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- 翻新成本拆分 ---------- */
.cost-split {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-2);
}
.cs-row > span:first-child {
  width: 42px;
  flex: none;
}

/* ---------- 库存导入三步向导 ---------- */
.import-wizard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.iw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--ink-2);
  background-size: 22px 22px, 22px 22px, auto;
  border-bottom: 1px solid var(--line);
}
.iw-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  position: relative;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.iw-step + .iw-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: var(--ink-line);
}
.iw-step.on,
.iw-step.done {
  opacity: 1;
}
.iw-no {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--ink-line);
  color: var(--ink-text-dim);
  background: transparent;
}
.iw-step.on .iw-no {
  border-color: var(--orange);
  color: #fff;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 98, 15, 0.18);
}
.iw-step.done .iw-no {
  border-color: #4CAF7D;
  color: #fff;
  background: linear-gradient(135deg, #4CAF7D, #2E7D9E);
}
.iw-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}
.iw-desc {
  display: block;
  font-size: 11.5px;
  color: var(--ink-text-dim);
  margin-top: 1px;
}
.iw-body {
  padding: 18px;
}
.iw-panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.iw-drop {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 20px;
  border: 2px dashed var(--line);
  border-radius: var(--r);
  background: #FAFBFC;
  color: var(--text-3);
  transition: border-color 0.2s, background 0.2s;
}
.iw-drop:hover {
  border-color: var(--hover-line);
}
.iw-drop.err {
  border-color: var(--red);
  background: var(--red-tint);
}
.iw-drop-main {
  flex: 1;
  min-width: 0;
}
.iw-drop-main b {
  display: block;
  font-size: 13.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.iw-drop-main span {
  display: block;
  font-size: 12px;
  margin-top: 2px;
}
.iw-next {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 6px;
}
.iw-errs {
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 12px;
  color: var(--red);
  line-height: 1.5;
}
/* 预览表：错误行红底 + 新建档案徽标 */
.err-row {
  background: var(--red-tint);
}
.err-row td {
  border-top-color: var(--red-line);
}
.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--orange-deep);
  background: var(--orange-tint);
  border: 1px solid var(--orange-line);
}
.badge-new .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
/* 导入完成态 */
.iw-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 0 10px;
  text-align: center;
}
.iw-done b {
  font-size: 16px;
  letter-spacing: 0.04em;
}
.iw-done-mark {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 6px 18px rgba(46, 139, 87, 0.28);
}
.iw-order-no {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  background: #FAFBFC;
  font-size: 13px;
  color: var(--text-2);
}
.iw-order-no b {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

/* ---------- 响应式补充 ---------- */
@media (max-width: 1100px) {
  .steps-bar {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}
@media (max-width: 900px) {
  .modal-grid,
  .role-checks,
  .iw-steps {
    grid-template-columns: 1fr;
  }
  .iw-step + .iw-step::before {
    display: none;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .sb-step:not(:last-child)::after {
    display: none;
  }
}

/* ============ 工作台 · 待办处理区（两段式上段） ============ */
.todo-panel .panel-head { align-items: center; }
.todo-total { font-size: 13px; color: var(--text-3); }
.todo-total b { color: var(--blue); font-size: 15px; margin: 0 2px; }
.todo-tabs { margin-bottom: 14px; }
.todo-cnt {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 9px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  line-height: 17px;
  font-weight: 600;
}
.todo-go { font-size: 12px; color: var(--blue); margin-top: 3px; }
.todo-more {
  padding: 10px 0 2px;
  text-align: center;
  font-size: 12.5px;
  color: var(--blue);
  cursor: pointer;
}
.todo-more:hover { text-decoration: underline; }

/* 批量操作条 */
.batch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--blue-tint);
  border: 1px solid var(--blue-line);
  border-radius: var(--r-md, 8px);
  padding: 8px 14px;
  margin-bottom: 10px;
  font-size: 13px;
}
.batch-bar b { color: var(--blue); }

/* 待办轻量表格 */
.todo-tbl { border: 1px solid var(--line); border-radius: var(--r-md, 8px); overflow: hidden; }
.todo-tr {
  display: grid;
  grid-template-columns: 44px minmax(0, 1.6fr) minmax(0, 1.2fr) 120px 190px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.todo-tr:last-child { border-bottom: none; }
.todo-tr.th {
  background: var(--bg-2, #f5f8fc);
  font-size: 12px;
  color: var(--text-3);
  padding: 7px 14px;
}
.todo-tr:not(.th):hover { background: rgba(0, 91, 172, 0.035); }
.todo-tr .mini-no { font-family: var(--mono); font-weight: 600; font-size: 13px; }
.todo-tr .mini-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.td-ck { display: flex; justify-content: center; }
.td-num { text-align: right; }
.td-act { display: flex; justify-content: flex-end; }
/* 设备/盘点签无勾选列 */
.todo-tr.no-ck { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) 140px 170px; }

@media (max-width: 1100px) {
  .todo-tr { grid-template-columns: 44px minmax(0, 1fr) 110px 150px; }
  .todo-tr .td-sub { display: none; }
  .todo-tr.no-ck { grid-template-columns: minmax(0, 1fr) 120px 150px; }
}

/* ============ 库存中心容器页 ============ */
.ic-tabs {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0 10px;
  margin-bottom: 16px;
}
.ic-admin {
  font-size: 10px;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 4px;
  margin-left: 6px;
  line-height: 14px;
}

/* ============ 人员分析页 ============ */
.ins-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.ins-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 28px;
}
.ins-cap { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.ins-bar-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}
.ins-lab {
  font-size: 12.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}
.ins-track {
  height: 14px;
  background: var(--bg-2, #f0f4f9);
  border-radius: 3px;
  overflow: hidden;
}
.ins-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), #2e7cc4);
  min-width: 2px;
  transition: width .4s ease;
}
.ins-fill.fill-teal { background: linear-gradient(90deg, var(--teal), #7cc7c0); }
.ins-num { font-size: 12.5px; font-weight: 600; color: var(--text-2); text-align: right; }
.ins-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-2, #eef2f7);
  color: var(--text-3);
  font-size: 11px;
  margin-right: 6px;
}
.ins-rank.top { background: var(--blue); color: #fff; }

@media (max-width: 1100px) {
  .ins-kpis { grid-template-columns: repeat(2, 1fr); }
  .ins-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .ins-grid { grid-template-columns: 1fr; }
}
