/* ============================================================
   果园养鸡项目管理系统 · 补充组件样式
   (登录页 / 页签 / 报表表格 / 分区图 / 动态流)
   ============================================================ */

/* ---- 登录页 ---- */
.login-page { min-height: 100vh; display: flex; flex-direction: column; padding: 40px 24px 32px; }
.login-logo {
  text-align: center; margin-bottom: 28px;
}
.login-logo .logo-circle {
  width: 88px; height: 88px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: var(--primary-deep);
}
.login-logo h1 { font-size: 24px; font-weight: 800; color: var(--primary-deep); }
.login-logo p { color: var(--text-sub); font-size: var(--fs-sm); margin-top: 4px; }
.login-form .form-group { margin-bottom: 18px; }
.login-submit { margin-top: 8px; }
.login-hint { text-align: center; color: var(--text-sub); font-size: var(--fs-sm); margin-top: 14px; }
.login-hint a { font-weight: 600; }
.quick-login { margin-top: 28px; }
.quick-login h2 { font-size: var(--fs-body); color: var(--text-sub); margin-bottom: 12px; text-align: center; font-weight: 600; }
.account-list { display: flex; flex-wrap: wrap; margin: -5px; }
.account-list .account-btn { width: calc(50% - 10px); margin: 5px; }
.account-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 12px; cursor: pointer; text-align: center;
  min-height: 122px;
}
.account-btn:active { background: var(--primary-light); border-color: var(--primary); }
.account-btn .av {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: var(--fs-body);
}
.account-btn .an { font-weight: 700; font-size: var(--fs-body); }
/* 「我的」页个人卡:名字与角色名同行,中间留足间距,不再挤在一起 */
.account-btn .am { display: flex; align-items: baseline; flex-wrap: wrap; }
.account-btn .am .an { white-space: nowrap; }
.account-btn .am .ar {
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--primary-deep); background: var(--primary-light);
  padding: 2px 10px; border-radius: 999px;
  margin-left: 12px;
}
.login-reset {
  margin-top: 22px; text-align: center; font-size: var(--fs-sm);
  color: var(--muted); text-decoration: underline; cursor: pointer;
}

/* ---- 页签 ---- */
.tabs { display: flex; background: #fff; border-radius: var(--radius-sm); padding: 4px; border: 1px solid var(--line); margin-bottom: var(--gap); }
.tabs .tab {
  flex: 1; text-align: center; padding: 10px 0; border-radius: 8px;
  font-size: var(--fs-body); font-weight: 600; color: var(--text-sub); cursor: pointer;
}
.tabs .tab.active { background: var(--primary); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- 报表表格 ---- */
.report-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-body); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.report-table th, .report-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.report-table th { font-size: var(--fs-sm); color: var(--text-sub); font-weight: 600; white-space: nowrap; background: var(--bg); }
.report-table tbody tr:last-child td { border-bottom: none; }
.report-table tbody tr:nth-child(even) { background: rgba(46, 158, 79, .05); }
.report-table tbody tr:hover { background: var(--primary-light); }
.report-table td.num-td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-table th.num-td { text-align: right; }
/* 表格横向滚动容器:仅在内容超宽(窄屏)时出现滚动条 */
.tbl-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl-scroll .report-table { min-width: 0; }
/* 死淘明细:固定列宽,让「品种」列得到合理宽度,不被原因列挤窄 */
.death-table { table-layout: fixed; }
.death-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.death-table td:last-child { white-space: normal; }

/* ---- 财务：分段筛选 / 明细流水 ---- */
.stat-card .sv.green { color: var(--primary-deep); }
.ipt {
  width: 100%; padding: 10px 12px; font-size: var(--fs-body); font-family: inherit;
  color: var(--text); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-sizing: border-box;
}
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg-item { padding: 6px 14px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-sub); cursor: pointer; white-space: nowrap; }
.seg-item.active { background: var(--primary); color: #fff; }
.ledger-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 2px; border-bottom: 1px solid var(--line);
}
.ledger-row:last-child { border-bottom: none; }
.lr-main { min-width: 0; flex: 1; }
.lr-item { font-size: var(--fs-body); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-sub { font-size: var(--fs-sm); color: var(--text-sub); margin-top: 2px; }
.lr-amt { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.empty-tip { text-align: center; color: var(--muted); font-size: var(--fs-body); padding: 28px 0; }

/* ---- 动态流 ---- */
.feed-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.feed-item:last-child { border-bottom: none; }
.feed-av {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary-deep);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.feed-main { flex: 1; min-width: 0; }
.feed-main .fd-line { font-size: var(--fs-body); }
.feed-main .fd-time { font-size: var(--fs-sm); color: var(--muted); }

/* ---- 分区图 ---- */
.zone-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.zone-legend .zl { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--text-sub); }
.zone-legend .zl .dot { width: 18px; height: 18px; border-radius: 6px; }

/* ---- 简版档案/施工卡 ---- */
.simple-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 10px; }

/* ---- 相机必拍提示 ---- */
.must-photo-tip { font-size: var(--fs-sm); color: var(--warn); display: flex; align-items: center; gap: 4px; }

/* ---- 大树分隔标题 ---- */
.sec-block-title {
  font-size: var(--fs-body); font-weight: 800; color: var(--primary-deep);
  padding: 10px 14px; background: var(--primary-light);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: space-between;
}

/* ---- 流程步骤条(采购四步/孵化四步) ---- */
.step-dot {
  width: 34px; height: 34px; margin: 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; position: relative;
  z-index: 1;
}
.step-flow { position: relative; }
.step-flow::before {
  content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 17px;
  height: 3px; background: var(--line); z-index: 0;
}
.s-done { background: var(--primary); color: #fff; }
.s-cur { background: var(--primary-light); color: var(--primary-deep); border: 2px solid var(--primary); }
.s-todo { background: #eef1ee; color: var(--muted); }
