/* === 外协管理 H5 全局样式 === */

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: #323233;
  background: #f7f8fa;
  -webkit-font-smoothing: antialiased;
}

.app-container {
  min-height: calc(100vh - 50px);
  padding-bottom: 12px;
  overflow-y: auto;
}

.boot-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60vh;
}

/* === 通用卡片 === */
.wa-card {
  background: #fff;
  border-radius: 12px;
  margin: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.wa-card-title {
  font-size: 14px;
  font-weight: 500;
  color: #323233;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-card-title .extra {
  font-size: 12px;
  color: #969799;
  font-weight: 400;
}

/* === 打卡时长约束卡片 === */
.clock-limit {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.clock-limit .label { font-size: 13px; color: #646566; }
.clock-limit .value { font-size: 24px; font-weight: 500; color: #1989fa; }
.clock-limit .hint { font-size: 11px; color: #969799; margin-top: 4px; }
.clock-limit .over-limit { color: #ee0a24; }

/* === R24：补报提示条 === */
.backfill-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #ed6a0c;
  background: #fff7e8;
  padding: 8px 12px;
}
.backfill-tip .van-icon { flex-shrink: 0; }

/* === 工时明细条目 === */
.entry-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #ebedf0;
}
.entry-item:last-child { border-bottom: none; }
.entry-info { flex: 1; }
.entry-project { font-size: 14px; color: #323233; font-weight: 500; }
.entry-detail { font-size: 12px; color: #969799; margin-top: 2px; }
.entry-amount { font-size: 15px; color: #323233; font-weight: 500; }
.entry-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.entry-del { font-size: 12px; color: #ee0a24; cursor: pointer; }

/* === 费用条目 === */
.cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #ebedf0;
}
.cost-item:last-child { border-bottom: none; }
.cost-info { flex: 1; }
.cost-name { font-size: 14px; color: #323233; }
.cost-note { font-size: 12px; color: #969799; margin-top: 2px; }
.cost-amount { font-size: 15px; color: #323233; font-weight: 500; }
.cost-negative { color: #07c160; }
.cost-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cost-del { font-size: 12px; color: #ee0a24; cursor: pointer; }

/* === 汇总 === */
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: #646566;
}
.summary-row .summary-value { color: #323233; font-weight: 500; }
.summary-total {
  border-top: 1px solid #ebedf0;
  margin-top: 6px;
  padding-top: 10px;
  font-size: 16px;
  color: #323233;
}
.summary-total .summary-value { font-size: 18px; color: #1989fa; }

/* === 状态标签 === */
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}
.status-pending_l1 { background: #fff7e6; color: #fa8c16; }
.status-pending_l2 { background: #e6f4ff; color: #1677ff; }
.status-approved { background: #f6ffed; color: #52c41a; }
.status-rejected { background: #fff2f0; color: #ff4d4f; }

/* === 表单行 === */
.form-row {
  display: flex;
  align-items: center;
  padding: 8px 0;
  gap: 12px;
}
.form-label { width: 72px; font-size: 14px; color: #646566; flex-shrink: 0; }
.form-value { flex: 1; font-size: 14px; color: #323233; }
.form-value-placeholder { color: #c8c9cc; }

/* === 添加按钮 === */
.add-btn {
  display: block;
  text-align: center;
  padding: 8px;
  margin-top: 8px;
  font-size: 14px;
  color: #1989fa;
  border: 1px dashed #1989fa;
  border-radius: 8px;
  cursor: pointer;
}

/* === 提交区域 === */
.submit-area { padding: 16px 12px 24px; }
.submit-hint { text-align: center; font-size: 12px; color: #969799; margin-top: 8px; }
.submit-hint .over-limit { color: #ee0a24; }

/* === 项目搜索弹窗 === */
.proj-search-popup { display: flex; flex-direction: column; max-height: 70vh; }
.proj-search-header { border-bottom: 1px solid #ebedf0; }
.proj-search-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.proj-search-item {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid #f2f3f5;
  cursor: pointer; transition: background 0.15s;
}
.proj-search-item:active { background: #f2f3f5; }
.proj-search-item.active { background: #f0f9ff; }
.proj-search-item.active .proj-search-name { color: #1989fa; font-weight: 600; }
.proj-search-name { flex: 1; font-size: 14px; color: #323233; }
.proj-search-loc { font-size: 12px; color: #969799; }

/* === 项目分配页 === */
.assign-worker-list { display: flex; flex-wrap: wrap; gap: 8px; }
.assign-worker-chip {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: 16px;
  border: 1px solid #dcdee0; background: #fff;
  font-size: 13px; color: #646566; cursor: pointer;
  transition: all 0.15s;
}
.assign-worker-chip.active {
  background: #1989fa; border-color: #1989fa; color: #fff;
}
.assign-worker-count { font-size: 11px; opacity: 0.7; }
.assign-worker-chip.active .assign-worker-count { opacity: 0.85; }
.assign-action-row { display: flex; gap: 8px; margin-bottom: 8px; }
.assign-proj-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-bottom: 1px solid #f2f3f5;
  cursor: pointer; transition: background 0.15s;
}
.assign-proj-item:active { background: #f2f3f5; }
.assign-proj-item.active .assign-proj-name { color: #1989fa; font-weight: 600; }
.assign-proj-info { flex: 1; }
.assign-proj-name { font-size: 14px; color: #323233; }
.assign-proj-loc { font-size: 12px; color: #969799; margin-top: 2px; }

/* === 空状态 === */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  color: #969799;
}
.empty-state .text { font-size: 14px; margin-top: 12px; }

/* === 首页概览 === */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.overview-cell {
  background: #f7f8fa;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.overview-cell .num { font-size: 22px; font-weight: 500; color: #1989fa; }
.overview-cell .label { font-size: 12px; color: #969799; margin-top: 2px; }
.overview-cell .num.warn { color: #ff976a; }
.overview-cell .num.danger { color: #ee0a24; }
.overview-cell .num.success { color: #07c160; }

/* === 快捷入口 === */
.quick-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 12px 0;
}
.quick-action {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: #f7f8fa;
  border-radius: 10px;
  cursor: pointer;
}
.quick-action .icon { font-size: 28px; }
.quick-action .text { font-size: 12px; color: #646566; }

/* === 我的页 === */
.mine-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  background: linear-gradient(135deg, #1989fa 0%, #0d6edb 100%);
  border-radius: 0 0 16px 16px;
  color: #fff;
}
.mine-header .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.mine-header .name { font-size: 17px; font-weight: 500; }
.mine-header .role { font-size: 12px; opacity: 0.8; margin-top: 2px; }

.van-nav-bar {
  background: #1989fa !important;
}
.van-nav-bar__title, .van-nav-bar .van-icon {
  color: #fff !important;
}

/* === 审批页 === */
.approval-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #ebedf0;
}
.approval-worker {
  display: flex;
  align-items: center;
  gap: 8px;
}
.approval-worker .worker-name {
  font-size: 15px;
  font-weight: 500;
  color: #323233;
}
.approval-worker .worker-company {
  font-size: 12px;
  color: #969799;
  margin-top: 1px;
}
.approval-date {
  font-size: 13px;
  color: #969799;
}
.approval-contact {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  font-size: 13px;
  color: #1989fa;
}
.approval-contact a {
  color: #1989fa;
  text-decoration: none;
}
.approval-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid #ebedf0;
  margin-top: 8px;
}

/* === 数据管理页（管理员） === */
.admin-page {
  padding-bottom: 90px;
}
.filter-card .van-cell {
  padding: 10px 0;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  position: relative;
}
.sum-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
}
.sum-num {
  font-size: 16px;
  font-weight: 600;
  color: #1989fa;
}
.sum-label {
  font-size: 11px;
  color: #969799;
}
.sum-sub {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12px;
  color: #969799;
  border-top: 1px dashed #ebedf0;
  padding-top: 8px;
}
.record-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.record-item .record-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
}
.record-date {
  font-size: 13px;
  color: #969799;
}
.record-worker {
  font-size: 15px;
  font-weight: 500;
  color: #323233;
  flex: 1;
}
.record-entries {
  font-size: 13px;
  color: #646566;
  line-height: 1.6;
}
.record-foot {
  font-size: 12px;
  color: #969799;
  margin-top: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.cost-chip {
  background: #fff7e8;
  color: #ff976a;
  padding: 1px 8px;
  border-radius: 8px;
  font-size: 11px;
}
.record-total {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  margin-top: 6px;
  border-top: 1px solid #ebedf0;
  font-size: 13px;
  color: #323233;
}
.record-total .amount {
  font-weight: 600;
  color: #ee0a24;
}
.export-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 50px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid #ebedf0;
  z-index: 100;
}

/* === 管理员首页 === */
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.admin-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
}
.admin-stat .stat-num {
  font-size: 18px;
  font-weight: 600;
  color: #1989fa;
}
.admin-stat .stat-label {
  font-size: 11px;
  color: #969799;
}
.admin-sub-row {
  text-align: center;
  font-size: 12px;
  color: #969799;
  border-top: 1px dashed #ebedf0;
  padding-top: 8px;
  margin-top: 4px;
}
.proj-row {
  padding: 10px 0;
  border-bottom: 1px solid #f2f3f5;
}
.proj-row:last-child { border-bottom: none; }
.proj-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.proj-name {
  font-size: 14px;
  font-weight: 500;
  color: #323233;
}
.proj-status {
  font-size: 11px;
  color: #07c160;
  background: #e6f7e6;
  padding: 1px 8px;
  border-radius: 4px;
}
.proj-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #969799;
}
.proj-amount {
  font-weight: 600;
  color: #ee0a24;
}
.activity-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid #f2f3f5;
  font-size: 13px;
  color: #646566;
}
.activity-row:last-child { border-bottom: none; }
.activity-time {
  font-size: 12px;
  color: #969799;
  width: 40px;
  flex-shrink: 0;
}
.activity-worker {
  font-weight: 500;
  color: #323233;
  width: 32px;
  flex-shrink: 0;
}
.activity-action {
  font-size: 12px;
  color: #1989fa;
  flex-shrink: 0;
}
.activity-detail {
  flex: 1;
  text-align: right;
  font-size: 12px;
  color: #969799;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === 成本预算对比 === */
.budget-total-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 4px;
}
.budget-total-cell {
  text-align: center;
}
.budget-label {
  font-size: 11px;
  color: #969799;
}
.budget-val {
  font-size: 16px;
  font-weight: 600;
  color: #323233;
  margin-top: 2px;
}
.budget-split {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.budget-split-item .split-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 12px;
}
.split-tag {
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.split-tag.labor {
  background: #e8f3ff;
  color: #1989fa;
}
.split-tag.cost {
  background: #fff7e8;
  color: #ff976a;
}
.split-amt {
  color: #969799;
}

/* === 项目进度条 === */
.proj-block {
  padding: 12px 0;
  border-bottom: 1px solid #f2f3f5;
}
.proj-block:last-child { border-bottom: none; }
.proj-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.proj-progress-label {
  font-size: 12px;
  color: #969799;
  flex-shrink: 0;
  width: 32px;
}
.proj-progress-bar {
  flex: 1;
}

/* === 人均效率表 === */
.eff-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.eff-row {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f2f3f5;
  font-size: 13px;
}
.eff-row:last-child { border-bottom: none; }
.eff-header {
  font-size: 11px;
  color: #969799;
  font-weight: 500;
}
.eff-name {
  flex: 1;
  font-weight: 500;
  color: #323233;
}
.eff-val {
  flex: 1;
  text-align: center;
  color: #646566;
}
.eff-header .eff-val {
  color: #969799;
}
.eff-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

/* === 项目需求页（负责人提需求） === */
.proj-req-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #646566;
  line-height: 1.6;
}
.proj-req-tip .van-icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.proj-req-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}
.proj-req-unit {
  font-size: 12px;
  color: #969799;
}
.proj-req-item {
  padding: 12px 0;
  border-bottom: 1px solid #f2f3f5;
}
.proj-req-item:last-child {
  border-bottom: none;
}
.proj-req-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.proj-req-name {
  font-size: 15px;
  font-weight: 500;
  color: #323233;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proj-req-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  font-size: 12px;
  color: #969799;
}
.proj-req-code {
  color: #1989fa;
  font-family: monospace;
}
.proj-req-budget {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  padding: 8px 10px;
  background: #f7f8fa;
  border-radius: 6px;
}
.proj-req-budget-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.proj-req-budget-item .label {
  font-size: 11px;
  color: #969799;
}
.proj-req-budget-item .val {
  font-size: 14px;
  font-weight: 600;
  color: #323233;
}
.assign-proj-code {
  font-family: monospace;
  color: #1989fa;
  margin-right: 4px;
}

/* === 项目需求卡片（管理员确认立项） === */
.req-item {
  padding: 12px 0;
  border-bottom: 1px solid #f2f3f5;
}
.req-item:last-child {
  border-bottom: none;
}
.req-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.req-item-name {
  font-size: 15px;
  font-weight: 500;
  color: #323233;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.req-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  font-size: 12px;
  color: #969799;
}
.req-item-code {
  color: #1989fa;
  font-family: monospace;
}
.req-item-budget {
  margin-top: 8px;
  font-size: 13px;
  color: #646566;
}
.req-item-budget b {
  color: #323233;
}
.req-item-remark {
  margin-top: 4px;
  font-size: 12px;
  color: #969799;
  background: #f7f8fa;
  padding: 6px 8px;
  border-radius: 4px;
}
.req-item-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

/* ==================== GPS 电子围栏打卡 ==================== */
.clock-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #1989fa, #53a8ff);
  color: #fff;
}
.clock-summary .label {
  font-size: 13px;
  opacity: 0.85;
}
.clock-summary-main .value {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
}
.clock-summary-sub {
  text-align: right;
  font-size: 12px;
  opacity: 0.9;
  line-height: 1.8;
}

.fence-card .fence-info {
  background: #f7f8fa;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.fence-row {
  display: flex;
  font-size: 13px;
  line-height: 1.9;
}
.fence-row .label {
  width: 64px;
  color: #969799;
  flex-shrink: 0;
}
.fence-row .val {
  color: #323233;
  flex: 1;
}
.mono {
  font-family: monospace;
  font-size: 12px;
}

.fence-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: #f7f8fa;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 13px;
}
.fence-status .in {
  color: #07c160;
  font-weight: 600;
}
.fence-status .out {
  color: #ee0a24;
  font-weight: 600;
}
.fence-status .dist {
  color: #646566;
}
.fence-status .ts {
  color: #969799;
  font-size: 12px;
  width: 100%;
}

.fence-position {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #646566;
  margin-bottom: 10px;
}
.sim-tag,
.loc-sim-tag {
  background: #fff3d9;
  color: #ff976a;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: 500;
}
.fence-position .acc {
  color: #969799;
}

.demo-sim {
  margin-top: 12px;
  border: 1px dashed #ffc46b;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fffbf2;
}
.sim-title {
  font-size: 12px;
  color: #ff976a;
  margin-bottom: 8px;
  font-weight: 500;
}
.sim-btns {
  display: flex;
  gap: 10px;
}
.sim-hint {
  margin-top: 8px;
  font-size: 11px;
  color: #969799;
  line-height: 1.5;
}

.clocking-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #e8f3ff;
  border-radius: 8px;
  padding: 12px;
}
.clocking-title {
  font-size: 14px;
  font-weight: 600;
  color: #1989fa;
}
.clocking-sub {
  font-size: 12px;
  color: #646566;
  margin-top: 2px;
}

.clock-rec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f2f3f5;
}
.clock-rec-item:last-child {
  border-bottom: none;
}
.clock-rec-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff3d9;
  color: #ff976a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.clock-rec-icon.done {
  background: #e8f8ee;
  color: #07c160;
}
.clock-rec-info {
  flex: 1;
}
.clock-rec-name {
  font-size: 14px;
  color: #323233;
  font-weight: 500;
}
.clock-rec-name .code {
  font-size: 11px;
  color: #969799;
  font-family: monospace;
  margin-left: 4px;
}
.clock-rec-meta {
  font-size: 12px;
  color: #646566;
  margin-top: 2px;
}
.clock-rec-meta .dist {
  color: #969799;
}

/* ==================== 地点定位选点（负责人提需求） ==================== */
.loc-selector {
  padding: 10px 16px;
}
.loc-selector-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.loc-label {
  font-size: 14px;
  color: #323233;
}
.loc-required {
  color: #ee0a24;
  font-style: normal;
}
.loc-hint {
  font-size: 11px;
  color: #969799;
}
.loc-coord {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #e8f8ee;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  color: #07c160;
  margin-bottom: 8px;
}
.loc-clear {
  margin-left: auto;
  font-size: 12px;
  color: #969799;
}
.loc-error {
  background: #fff1f0;
  color: #ee0a24;
  font-size: 12px;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.loc-btns {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}
.loc-manual {
  background: #f7f8fa;
  border-radius: 6px;
  margin-bottom: 4px;
}
.proj-req-fence {
  font-size: 11px;
  color: #ff976a;
}
.proj-req-hint {
  font-size: 12px;
  color: #ee0a24;
  text-align: center;
  margin-top: 8px;
}

/* ==================== 地图选点弹窗（Leaflet + 高德瓦片） ==================== */
.loc-btns {
  flex-wrap: wrap;
}
.map-picker {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 46px; /* 给 van-popup close 按钮留位 */
}
.map-picker-search {
  position: relative;
  flex-shrink: 0;
}
.map-search-res {
  position: absolute;
  top: 54px;
  left: 12px;
  right: 12px;
  z-index: 1200;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  max-height: 300px;
  overflow-y: auto;
}
.map-search-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #f2f3f5;
}
.map-search-item:last-child { border-bottom: none; }
.map-search-item:active { background: #f7f8fa; }
.map-search-info { flex: 1; min-width: 0; }
.map-search-name { font-size: 14px; color: #323233; }
.map-search-addr {
  font-size: 11px;
  color: #969799;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-picker-body {
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 1;
}
.map-picker-body .leaflet-container {
  width: 100%;
  height: 100%;
  background: #e8eef5;
}
.map-picker-bottom {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #f2f3f5;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  z-index: 1100;
}
.map-pick-info {
  background: #e8f8ee;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
}
.map-pick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.map-pick-coord { font-size: 13px; color: #07c160; font-weight: 500; }
.map-pick-tag {
  font-size: 10px;
  background: #07c160;
  color: #fff;
  padding: 1px 6px;
  border-radius: 8px;
}
.map-pick-addr {
  font-size: 12px;
  color: #323233;
  margin-top: 4px;
  line-height: 1.5;
}
.map-pick-hint {
  font-size: 11px;
  color: #969799;
  margin-top: 3px;
}
.map-pick-btns {
  display: flex;
  gap: 8px;
  align-items: center;
}
.map-pick-btns .van-button { flex: 1; }
.map-layer-active {
  color: #1989fa !important;
  border-color: #1989fa !important;
  background: #ecf5ff !important;
}

/* 选点 pin 标记 */
.map-pin-wrap { background: none; border: none; }
.map-pin {
  position: relative;
  width: 30px;
  height: 42px;
  background: #1989fa;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(25, 137, 250, 0.4);
}
.map-pin::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 9px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
}
.map-pin-dot {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 6px;
  height: 6px;
  background: #1989fa;
  border-radius: 50%;
  z-index: 2;
}

/* ==================== 腾讯地图（生产引擎） ==================== */
/* 腾讯地图缩放控件位置微调 */
.map-picker-body .qq-maps-zoom-controls {
  right: 8px !important;
  bottom: 12px !important;
}
/* 定位来源徽标（打卡页） */
.pos-tag-wx {
  background: #e8f8ee;
  color: #07c160;
}
.pos-tag-browser {
  background: #e8f3ff;
  color: #1989fa;
}

/* ==================== 负责人预算执行情况 ==================== */
.budget-summary {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.budget-cell {
  flex: 1;
  background: #f7f8fa;
  border-radius: 8px;
  padding: 10px 6px;
  text-align: center;
}
.budget-cell .num {
  font-size: 15px;
  font-weight: 600;
  color: #323233;
  line-height: 1.3;
}
.budget-cell .num.warn { color: #ee0a24; }
.budget-cell .num.success { color: #07c160; }
.budget-cell .label {
  font-size: 12px;
  color: #969799;
  margin-top: 4px;
}

.budget-progress-wrap {
  margin-bottom: 12px;
}
.budget-progress-label,
.budget-prog-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #646566;
  margin-bottom: 6px;
}
.budget-hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #646566;
  border-top: 1px solid #f2f3f5;
  padding-top: 10px;
}
.budget-hours-row b { font-weight: 600; }
.budget-hours-row b.warn { color: #ee0a24; }
.budget-hours-row b.success { color: #07c160; }

.budget-proj-item {
  background: #f7f8fa;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}
.budget-proj-item:last-child { margin-bottom: 0; }
.budget-proj-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.budget-proj-name {
  font-size: 14px;
  font-weight: 600;
  color: #323233;
}
.budget-proj-code {
  font-size: 11px;
  color: #969799;
  font-family: monospace;
}
.budget-proj-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.budget-proj-amount {
  font-size: 12px;
  color: #646566;
}
.budget-proj-progress {
  margin-bottom: 8px;
}
.budget-proj-hours {
  font-size: 11px;
  color: #969799;
}

/* ===== 成员与角色管理 ===== */
.member-tip {
  background: #f7f8fa;
}
.member-tip-line {
  font-size: 13px;
  color: #646566;
  line-height: 1.9;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.member-tip-note {
  margin-top: 8px;
  font-size: 11px;
  color: #969799;
  background: #fff;
  border: 1px dashed #dcdee0;
  border-radius: 8px;
  padding: 6px 8px;
  line-height: 1.6;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}
.member-row:last-child {
  border-bottom: none;
}
.member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1989fa;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.member-info {
  flex: 1;
  min-width: 0;
}
.member-name {
  font-size: 14px;
  font-weight: 600;
  color: #323233;
  display: flex;
  align-items: center;
  gap: 6px;
}
.member-self {
  font-size: 10px;
  color: #1989fa;
  background: rgba(25, 137, 250, 0.1);
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 500;
}
.member-company {
  font-size: 11px;
  color: #969799;
  margin-top: 2px;
}
.role-badge {
  color: #fff;
  font-size: 11px;
  border-radius: 10px;
  padding: 2px 8px;
  flex-shrink: 0;
}
