/* ===== 施工管家 企业微信版 - 基础样式 ===== */
:root {
  --primary: #1677ff;
  --primary-light: #e6f4ff;
  --success: #52c41a;
  --warning: #faad14;
  --danger: #ff4d4f;
  --bg: #f5f5f5;
  --card-bg: #ffffff;
  --text: #333333;
  --text-secondary: #999999;
  --border: #e8e8e8;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  max-width: 100vw;
  overflow-x: hidden;
}

/* ===== 售后修补子流程 ===== */
.repair-section { border-left: 4px solid #722ed1; }
.repair-section-title { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.repair-section-title h3 { margin:0; }
.repair-record { margin-top:12px; padding:12px; border:1px solid #e6d8ff; border-radius:8px; background:#faf7ff; }
.repair-record-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.repair-record-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 12px; margin-top:8px; font-size:12px; color:var(--text-secondary); }
.repair-inline-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.repair-inline-actions textarea { width:100%; min-height:56px; border:1px solid var(--border); border-radius:6px; padding:8px; font:inherit; }
.repair-inline-actions select { flex:1 1 180px; min-width:0; }
.repair-task-card { border-left:4px solid #722ed1; }
.repair-free-node { margin:10px 0; padding:12px; border:1px solid #b7eb8f; border-radius:8px; background:#f6ffed; }
.repair-free-photos { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.repair-badge-submitted,.repair-badge-pending_admin_review,.repair-badge-pending_final_review { background:#fff7e6; color:#d46b08; }
.repair-badge-approved,.repair-badge-dispatched,.repair-badge-constructing { background:#e6f4ff; color:#1677ff; }
.repair-badge-pending_dealer_confirm { background:#f6ffed; color:#389e0d; }
.repair-badge-completed_free,.repair-badge-completed_charge { background:#f6ffed; color:#237804; }
.repair-badge-reviewer_rejected,.repair-badge-admin_rejected { background:#fff1f0; color:#cf1322; }

/* ===== 页面切换 ===== */
.page {
  display: none;
  min-height: 100vh;
  padding-bottom: 20px;
}
.page.active { display: block; }

/* ===== 头部 ===== */
.header {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.header-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.header-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.header-title { font-size: 16px; font-weight: 600; white-space: nowrap; }
.header-title-sm { font-size: 14px; font-weight: 500; white-space: nowrap; }
.header-user { font-size: 14px; opacity: 0.9; display: inline-flex; align-items: center; white-space: nowrap; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
.header-role, .btn-account, .btn-logout { flex-shrink: 0; white-space: nowrap; }

/* ===== 登录页 ===== */
.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, #0958d9 100%);
}
.login-logo { font-size: 64px; margin-bottom: 16px; }
.login-title { font-size: 28px; color: #fff; margin-bottom: 8px; }
.login-subtitle { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: 32px; }
.login-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 32px 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
}
.login-status { text-align: center; padding: 20px 0; }
.login-hint { font-size: 12px; color: var(--text-secondary); text-align: center; margin-top: 12px; }

/* ===== 统计卡片 ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 12px 16px;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 4px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s;
}
.stat-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
  background: var(--primary-light);
}
.stat-card:active { transform: scale(0.97); }
.stat-num { font-size: 24px; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 11px; color: var(--text-secondary); margin-top: 4px; white-space: nowrap; }
.stat-total .stat-num { color: var(--primary); }
.stat-pending .stat-num { color: var(--warning); }
.stat-active .stat-num { color: var(--primary); }
.stat-cancelled .stat-num { color: var(--danger); }
.stat-done .stat-num { color: var(--success); }

/* ===== 操作栏 ===== */
.action-bar {
  padding: 8px 16px 12px;
}
.filter-tabs {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-flow: row;
  width: 100%;
  max-width: 100%;
  gap: 8px 6px;
  margin-top: 10px;
  padding-bottom: 4px;
  overflow: visible !important;
  white-space: normal !important;
}
.filter-tab {
  display: block;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 4px;
  border-radius: 20px;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tab.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 500;
}

/* ===== 工单列表 ===== */
.order-list { padding: 0 16px; }
.order-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s;
  border-left: 3px solid var(--border);
}
.order-card:active { transform: scale(0.98); }
.order-card.status-submitted { border-left-color: var(--warning); }
.order-card.status-approved { border-left-color: var(--primary); }
.order-card.status-dispatched { border-left-color: #722ed1; }
.order-card.status-constructing { border-left-color: #13c2c2; }
.order-card.status-paused { border-left-color: #fa8c16; }
.order-card.status-pending_acceptance { border-left-color: #eb2f96; }
.order-card.status-completed { border-left-color: var(--success); }
.order-card.status-rejected { border-left-color: var(--danger); }
.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.order-card-title { font-size: 15px; font-weight: 600; flex: 1; }
.order-card-no { font-size: 12px; color: var(--text-secondary); }
.order-card-body { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.order-card-body span { margin-right: 12px; }
.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.checkin-thumb { width:54px; height:54px; object-fit:cover; border-radius:6px; border:1px solid #e6eef9; flex:0 0 auto; }
.order-card-time { font-size: 12px; color: var(--text-secondary); }
/* v334：待确认列表顶部提示条 + 卡片「去签字」按钮 */
.order-list-banner {
  background: #fff7e6; border: 1px solid #ffd591; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 12px; font-size: 13px; color: #874d00;
  display: flex; align-items: flex-start; gap: 8px; line-height: 1.5;
}
.order-list-banner-dot { width: 8px; height: 8px; border-radius: 50%; background: #fa8c16; margin-top: 5px; flex-shrink: 0; }
.order-card-action { margin-top: 8px; text-align: right; }
.order-card-action .btn-mini { font-size: 13px; padding: 6px 14px; }

/* ===== 考勤日历 ===== */
.cal-nav { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.cal-nav-btn { background:var(--card-bg,#fff); border:1px solid var(--border,#e6eef9); color:var(--primary,#2b6cff); border-radius:18px; padding:6px 12px; font-size:13px; cursor:pointer; }
.cal-title { font-size:16px; font-weight:700; }
.cal-legend { display:flex; gap:16px; flex-wrap:wrap; font-size:12px; color:var(--text-secondary); margin-bottom:8px; }
.cal-legend span { display:inline-flex; align-items:center; gap:5px; }
.cal-dot { width:10px; height:10px; border-radius:50%; display:inline-block; }
.cal-dot-green { background:#22c55e; }
.cal-dot-red { background:#ef4444; }
.cal-table { width:100%; border-collapse:collapse; background:var(--card-bg,#fff); border-radius:12px; overflow:hidden; box-shadow:0 1px 4px rgba(0,0,0,.06); }
.cal-table th { font-size:12px; color:var(--text-secondary); font-weight:600; padding:8px 0; background:var(--bg,#f5f7fa); }
.cal-table td { height:46px; text-align:center; vertical-align:middle; border:1px solid var(--border,#eef2f7); position:relative; font-size:14px; }
.cal-cell { cursor:pointer; transition:background .15s; }
.cal-cell:hover { background:rgba(43,108,255,.06); }
.cal-daynum { display:block; }
.cal-cell.cal-future { color:#c2c9d6; cursor:default; }
.cal-empty { background:var(--bg,#fafbfc); }

.cal-tip { font-size:12px; color:var(--text-secondary); margin-top:10px; line-height:1.6; }

/* ===== 打卡详情弹窗 ===== */
.att-detail { display:flex; flex-direction:column; gap:12px; }
.att-row { background:var(--card-bg,#fff); border-radius:12px; padding:14px; box-shadow:0 1px 4px rgba(0,0,0,.06); border-left:4px solid #cbd5e1; }
.att-row-ok { border-left-color:#22c55e; }
.att-row-bad { border-left-color:#ef4444; }
.att-row-missing { border-left-color:#cbd5e1; }
.att-row-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.att-badge { font-size:13px; font-weight:700; padding:3px 10px; border-radius:12px; }
.att-badge-morning { background:#e8f0ff; color:#2b6cff; }
.att-badge-evening { background:#fff1e6; color:#f08000; }
.att-time { font-size:12px; color:var(--text-secondary); }
.att-warn { font-size:12px; color:#ef4444; background:#fef2f2; border-radius:8px; padding:6px 10px; margin-bottom:8px; }
.att-info { display:flex; gap:8px; font-size:13px; padding:3px 0; }
.att-k { flex:0 0 64px; color:var(--text-secondary); }
.att-v { flex:1; word-break:break-all; }
.att-photo-wrap { margin-top:8px; }
.att-photo { width:100%; max-height:240px; object-fit:cover; border-radius:8px; border:1px solid var(--border,#e6eef9); cursor:pointer; }
.att-no-photo { font-size:12px; color:var(--text-secondary); background:var(--bg,#f5f7fa); border-radius:8px; padding:18px; text-align:center; }
.att-no-card { font-size:14px; color:#ef4444; background:#fef2f2; border-radius:8px; padding:14px; text-align:center; font-weight:600; }


/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
}
.btn:active { opacity: 0.8; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-sm { padding: 4px 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-back { background: transparent; color: #fff; border: none; font-size: 14px; padding: 4px 8px; outline: none; }

/* ===== 表单 ===== */
.form-container { padding: 16px; }
.form-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.form-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.form-group { margin-bottom: 14px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group .required { color: var(--danger); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: var(--card-bg);
  color: var(--text);
  transition: border-color 0.2s;
}
.form-group input[readonly] {
  background: var(--bg);
  color: var(--text-secondary);
  cursor: not-allowed;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}
.form-group textarea { min-height: 80px; resize: vertical; }

/* 可施工开关（账号编辑表单） */
.form-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 14px;
}
.form-switch .fs-text { display: flex; flex-direction: column; gap: 2px; }
.form-switch .fs-title { font-size: 13px; font-weight: 500; color: var(--text); }
.form-switch .fs-sub { font-size: 11px; color: var(--text-secondary); }
.form-switch input {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  width: 46px;
  height: 26px;
  flex: none;
  background: #d0d5dd;
  border-radius: 13px;
  outline: none;
  cursor: pointer;
  transition: background .2s;
}
.form-switch input::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.form-switch input:checked { background: var(--primary, #1677ff); }
.form-switch input:checked::after { transform: translateX(20px); }

/* 三列布局 */
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 480px) {
  .form-row-3 {
    grid-template-columns: 1fr;
  }
  .form-row-3 .form-group-sm:last-child {
    grid-column: 1 / -1;
  }
}

.form-group-sm { margin-bottom: 0; }
.form-group-sm label {
  font-size: 11px;
  margin-bottom: 3px;
}

/* ===== 工地信息确认表 ===== */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.si-sub {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin: 16px 0 8px;
  padding-left: 8px;
  border-left: 3px solid var(--primary);
}
.si-sub2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 12px 0 6px;
}
.si-radio-row, .si-check-row {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.si-radio-row.si-cols-1 { grid-template-columns: 1fr; }
.si-radio-row.si-cols-2 { grid-template-columns: repeat(2, 1fr); }
.si-radio-row.si-cols-3 { grid-template-columns: repeat(3, 1fr); }
.si-radio-row.si-cols-4 { grid-template-columns: repeat(4, 1fr); }
.si-check-row.si-cols-1 { grid-template-columns: 1fr; }
.si-check-row.si-cols-2 { grid-template-columns: repeat(2, 1fr); }
.si-check-row.si-cols-3 { grid-template-columns: repeat(3, 1fr); }
.si-check-row.si-cols-4 { grid-template-columns: repeat(4, 1fr); }
.si-radio, .si-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  font-size: 13px;
  cursor: pointer;
  min-width: 0;
}
/* 单选卡片（工地确认表统一排版）：竖向居中、固定最小高度、主文字加粗 + 括号内补充文字弱化 */
.si-radio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  padding: 9px 6px;
  min-height: 50px;
  border-radius: 8px;
}
.si-radio input { margin: 0; accent-color: var(--primary); }
.si-radio:has(input:checked) {
  border-color: var(--primary);
  background: #eef3ff;
}
.si-opt { display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.si-opt-main { font-size: 14px; font-weight: 700; color: var(--text); }
.si-opt-sub { font-size: 11px; color: var(--text-secondary); font-weight: 400; margin-top: 2px; }

@media (max-width: 480px) {
  .form-row-2 { grid-template-columns: 1fr; }
  .si-radio-row.si-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .si-radio-row .si-opt-sub { font-size: 10px; }
}
.form-group-sm input {
  padding: 7px 8px;
  font-size: 13px;
  min-width: 0;
}
.form-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

/* ===== 待派工(approved)步骤指引条（v251 方案A） ===== */
.dispatch-step-guide { border-left: 4px solid var(--primary); }
.step-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.step-item.active { color: var(--primary); font-weight: 600; }
.step-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  color: #fff;
}
.step-item.active .step-dot { background: var(--primary); }
.step-arrow { color: var(--border); flex-shrink: 0; }
.step-guide-hint {
  margin: 0;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  color: #ad6800;
  border-radius: 6px;
  padding: 10px;
  line-height: 1.5;
}

/* ===== 产品选择器 ===== */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  background: var(--card-bg);
  color: var(--text);
  transition: all 0.2s;
  user-select: none;
}
.product-chip:active { transform: scale(0.95); }
.product-chip.selected {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 500;
}
.product-chip-check { font-size: 14px; }

/* 产品详情卡片 */
.product-detail-card {
  background: var(--bg);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid var(--border);
}
.product-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.product-detail-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.product-detail-remove {
  font-size: 12px;
  color: var(--danger);
  cursor: pointer;
  padding: 2px 8px;
  border: 1px solid var(--danger);
  border-radius: 4px;
}
.product-detail-fields { }
.product-detail-fields .form-row-2 { align-items: start; }
.product-detail-fields .form-group-sm {
  display: flex;
  flex-direction: column;
}
.product-detail-fields .form-group-sm select,
.product-detail-fields .form-group-sm input {
  height: 36px;
  box-sizing: border-box;
  padding: 7px 8px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  margin: 0;
}

/* 施工产品分组折叠 */
.product-group {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.product-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  background: var(--bg);
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
}
.product-group-head .arrow { transition: transform .2s; color: var(--text-secondary); }
.product-group.expanded .product-group-head .arrow { transform: rotate(180deg); }
.product-group-body { display: none; padding: 12px 14px; }
.product-group.expanded .product-group-body { display: block; }
.product-group .badge.count {
  font-size: 11px;
  font-weight: 400;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 10px;
  padding: 1px 8px;
  margin-left: 4px;
}
.product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

/* 特殊定制 / 其他 模块 */
.product-custom-block,
.product-other-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 12px 0 10px;
  background: var(--card-bg);
  overflow: hidden;
}
.product-other-block {
  padding: 12px 14px;
}
/* 特殊定制折叠 */
.product-custom-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
}
.product-custom-head .arrow {
  transition: transform .2s;
  color: var(--text-secondary);
  font-size: 12px;
}
.product-custom-block.expanded .product-custom-head .arrow {
  transform: rotate(180deg);
}
.product-custom-body {
  display: none;
  padding: 0 14px 12px;
}
.product-custom-block.expanded .product-custom-body {
  display: block;
}
.product-custom-body .form-hint {
  margin-top: 0;
}
.product-group-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.custom-empty {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  padding: 18px 0;
}
.custom-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: var(--bg);
}
.custom-row .row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.custom-row .row-title { font-weight: 500; font-size: 13px; }
.btn-add-row {
  width: 100%;
  padding: 9px;
  border: 1px dashed var(--primary);
  color: var(--primary);
  background: var(--card-bg);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.btn-delete {
  font-size: 12px;
  color: var(--danger);
  background: transparent;
  border: 1px solid var(--danger);
  padding: 3px 10px;
  border-radius: 12px;
  cursor: pointer;
}
#f-other-products {
  width: 100%;
  min-height: 64px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  resize: vertical;
}

/* 详情回显：分组产品 */
.prod-block { margin-top: 6px; }
.prod-group { margin-top: 10px; }
.prod-group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}
.prod-other-text {
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
}
.prod-total {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* 总面积显示 */
.total-area-display {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  padding: 8px 12px;
  background: var(--primary-light);
  border-radius: 6px;
  text-align: center;
}

/* ===== 经销商确认条款 ===== */
.confirm-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.confirm-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  background: var(--bg);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.6;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}
.confirm-item:hover { border-color: var(--border); }
.confirm-checkbox {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.confirm-text {
  color: var(--text);
  flex: 1;
}

/* ===== 大按钮 ===== */
.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
}

/* ===== 工单详情 ===== */
/* v371：详情页三层容器（蓝色表头 / Tab 区 / 内容区）宽度对齐。
   原写法 .detail-content{padding:16px} 会让 Tab 区比表头窄 32px，
   叠加 .detail-panels{padding:12px} 后卡片再窄 24px，造成三层比例失衡。 */
.detail-content { padding: 0; }
.detail-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05), 0 1px 6px rgba(17, 24, 39, 0.04);
}
.detail-card h3 {
  font-size: 15px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--primary);
}
.feedback-sub-title {
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 6px;
  color: var(--text);
}
.feedback-summary-card .feedback-sub-title:first-of-type { margin-top: 0; }
.material-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.material-table th, .material-table td { border: 1px solid var(--border); padding: 6px 8px; font-size: 13px; }
.material-table th { background: var(--bg); font-weight: 500; }
.material-table td:not(:first-child) { text-align: center; }
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
}
.detail-row .label { color: var(--text-secondary); flex: 0 0 auto; }
.detail-row .value { font-weight: 500; text-align: right; flex: 1 1 auto; min-width: 0; word-break: break-word; }

/* ===== 工作流时间线 ===== */
.timeline { padding: 8px 0; }
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  position: relative;
}
.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  background: var(--border);
  color: #fff;
}
.timeline-dot.done { background: var(--success); }
.timeline-dot.active { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
.timeline-info { flex: 1; min-width: 0; }
.timeline-title { font-size: 14px; font-weight: 500; }
.timeline-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.timeline-line {
  position: absolute;
  left: 11px;
  top: 32px;
  bottom: -8px;
  width: 2px;
  background: var(--border);
}
.timeline-line.done { background: var(--success); }

/* v156：工作流进度-到场施工 点击展开 4 个施工阶段 */
.timeline-item.tl-arrival .timeline-title { color: var(--primary); }
.tl-arrival-toggle { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.tl-arrival-chevron {
  display: inline-block;
  font-size: 12px;
  color: var(--text-secondary);
  transition: transform .2s ease;
}
.tl-arrival-chevron.open { transform: rotate(90deg); }
.timeline-arrival-body {
  margin: 4px 0 6px 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: var(--card-bg);
}

/* ===== 施工节点 ===== */
.node-list { display: flex; flex-direction: column; gap: 10px; }
.node-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.node-item:active { background: var(--border); }
.node-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.node-icon.pending { background: var(--border); }
.node-icon.done { background: #f6ffed; }
.node-info { flex: 1; }
.node-name { font-size: 14px; font-weight: 500; }
.node-status { font-size: 12px; color: var(--text-secondary); }
.node-section-hint { margin:-4px 0 12px; color:var(--text-secondary); font-size:12px; line-height:1.6; }
.node-review-status { margin-top:5px; font-size:12px; line-height:1.5; }
.node-review-status.passed { color:#389e0d; }
.node-review-status.rejected { color:#cf1322; }
.base-review-panel { margin:0 0 14px; padding:14px; border:1px solid #b7d6ff; border-radius:10px; background:#f4f9ff; }
.base-review-title { font-size:14px; font-weight:700; color:#1d4f91; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.base-review-hint { margin:8px 0 10px; color:var(--text-secondary); font-size:14px; line-height:1.6; }
.base-review-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; font-size:12px; color:#44546a; margin-bottom:10px; }
.base-review-grid div { padding:7px; background:#fff; border-radius:6px; border:1px solid #e6eef9; line-height:1.45; }
.base-review-panel textarea { width:100%; min-height:64px; box-sizing:border-box; border:1px solid #b7d6ff; border-radius:7px; padding:9px; font:inherit; resize:vertical; }
.base-review-actions { display:flex; gap:8px; }
.base-review-actions .btn { flex:1; }
.base-review-badge { display:inline-block; border-radius:12px; padding:2px 8px; font-size:11px; font-weight:500; }
.base-review-badge.pending { background:#fff7e6; color:#d46b08; }
.base-review-badge.passed { background:#f6ffed; color:#389e0d; }
.base-review-badge.rejected { background:#fff1f0; color:#cf1322; }
.action-gate-hint { margin:10px 0 0; padding:8px 10px; border-radius:6px; background:#fff7e6; color:#ad6800; font-size:12px; line-height:1.5; }
.btn[disabled] { opacity:.52; cursor:not-allowed; box-shadow:none; }
@media (max-width:380px) { .base-review-grid { grid-template-columns:1fr; } }

/* 节点2 逐项复核（嵌入基层检查节点内部） */
.node-item.has-review { flex-direction: column; align-items: stretch; gap: 10px; }
.node-item.has-review .node-item-header { display: flex; align-items: center; gap: 12px; width: 100%; }
.node-item.has-review .node-info { flex: 1; }
.base-review-embed { width: 100%; }
.base-review-panel { margin:0; padding:12px; border:1px solid #b7d6ff; border-radius:10px; background:#f4f9ff; }
.base-review-title { font-size:14px; font-weight:700; color:#1d4f91; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.base-review-hint { margin:6px 0 10px; color:var(--text-secondary); font-size:12px; line-height:1.5; }
.base-review-actions { display:flex; gap:8px; margin-top:10px; }
.base-review-actions .btn { flex:1; }
.base-review-actions .btn:disabled { opacity:.45; cursor:not-allowed; background:#b7d6ff; border-color:#b7d6ff; }
.review-item { padding:10px 12px; background:#fff; border:1px solid #e6eef9; border-radius:8px; margin-bottom:8px; }
.review-item-main { display:flex; flex-direction:column; align-items:flex-start; gap:3px; }
.review-item-label { font-size:13px; font-weight:500; color:#1f2d3d; }
.review-item-value { font-size:15px; font-weight:600; color:#1f2d3d; word-break:break-all; line-height:1.45; }
.review-item-value.empty { color:#bbb; font-weight:400; }
.review-item-actions { display:flex; gap:8px; margin-top:10px; }
.review-btn { flex:1; padding:8px 0; border:1px solid #d0d5dd; border-radius:7px; background:#fff; font:inherit; font-size:13px; color:#475467; cursor:pointer; }
.review-btn.passed { background:#f6ffed; border-color:#95de64; color:#389e0d; font-weight:600; }
.review-btn.failed { background:#fff1f0; border-color:#ffa39e; color:#cf1322; font-weight:600; }
.review-item-detail { margin-top:10px; padding-top:10px; border-top:1px dashed #e6eef9; }
.review-photos { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:6px; }
.review-thumb { width:56px; height:56px; object-fit:cover; border-radius:6px; border:1px solid #e6eef9; }
/* 基层复核拍照即传：照片上传中的占位块 */
.review-thumb-uploading { width:56px; height:56px; display:flex; align-items:center; justify-content:center; font-size:11px; color:#8aa4c4; background:#f2f7fd; border:1px dashed #b7d6ff; border-radius:6px; box-sizing:border-box; }
.review-detail-actions { margin-bottom:6px; }
.btn-mini { padding:5px 12px; border:1px solid #b7d6ff; border-radius:6px; background:#fff; color:#1d4f91; font:inherit; font-size:12px; cursor:pointer; }
.review-item-detail textarea { width:100%; min-height:54px; box-sizing:border-box; border:1px solid #b7d6ff; border-radius:7px; padding:8px; font:inherit; resize:vertical; }

/* 面积复核（已并入基层检查项目卡片，外层由 .review-item 提供边框，此处仅做内部分组） */
.area-review-item { border-left:4px solid #2f7dcd; }
.area-review-section { background:transparent; border:none; border-radius:0; padding:0; margin-bottom:0; }
.area-review-summary { margin-bottom:10px; }
.area-review-actual-wrap { margin-top:10px; }
.area-review-actual-wrap .form-group { margin-bottom:0; }
.area-review-actual-wrap .form-group label { font-size:13px; color:#5a6c86; }
.area-review-actual-wrap .form-group input { background:#fff; }
.area-review-lines { margin-top:6px; display:flex; flex-direction:column; gap:4px; }
.area-review-line { display:flex; justify-content:space-between; font-size:12px; color:#44546a; }
.area-review-diff { display:block; margin-top:4px; font-size:12px; font-weight:600; }
.area-review-diff.plus { color:#389e0d; }
.area-review-diff.minus { color:#cf1322; }
.area-review-diff.zero { color:#8c8c8c; }
.br-area-review { margin-top:8px; padding:10px; background:#f4f9ff; border:1px solid #b7d6ff; border-radius:8px; }
.br-area-row { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; margin-bottom:6px; font-size:13px; }
.br-area-label { color:#5a6c86; flex-shrink:0; }
.br-area-value { color:#1f2d3d; font-weight:500; text-align:right; word-break:break-all; }
.area-diff-plus { color:#389e0d; }
.area-diff-minus { color:#cf1322; }
.area-diff-zero { color:#8c8c8c; }
.br-area-photos { display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; }

/* 基层检查复核异议确认面板 */
.base-review-confirm-card { background:#fff7e6; border-color:#ffd591; }
.base-review-confirm-card h3 { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.brc-items { display:flex; flex-direction:column; gap:8px; margin:10px 0; }
.brc-item { padding:10px 12px; background:#fff; border:1px solid #ffd591; border-radius:8px; }
.brc-item-title { font-size:13px; font-weight:600; color:#cf1322; }
.brc-item-comment { margin-top:5px; font-size:12px; color:#44546a; line-height:1.5; white-space:pre-wrap; }
.brc-photos { display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.brc-thumb { width:56px; height:56px; object-fit:cover; border-radius:6px; border:1px solid #e6eef9; cursor:pointer; }
.brc-record { margin-top:10px; padding:10px; background:#fff; border:1px solid #ffd591; border-radius:8px; }
.brc-empty { margin:8px 0; color:#999; font-size:12px; }
.brc-actions { margin-top:10px; }
.brc-actions textarea { width:100%; min-height:54px; box-sizing:border-box; border:1px solid #ffd591; border-radius:7px; padding:8px; font:inherit; resize:vertical; margin-bottom:8px; }
.brc-btns { display:flex; gap:8px; }
.brc-btns .btn { flex:1; }

.node-photos {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.node-photo {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.photo-wrap {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 60px;
}
.photo-fallback {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 60px;
  height: 60px;
  border-radius: 4px;
  background: #f2f2f2;
  color: #999;
  font-size: 11px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--border);
  padding: 2px;
  box-sizing: border-box;
}
.photo-wrap.photo-failed img { display: none; }
.photo-wrap.photo-failed .photo-fallback { display: inline-flex; }

/* ===== 签名画布 ===== */
.sign-canvas {
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: #fafafa;
  width: 100%;
  touch-action: none;
  cursor: crosshair;
}

/* ===== 操作面板 ===== */
.action-panel {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
  box-shadow: var(--shadow);
}
.action-panel h3 { font-size: 16px; margin-bottom: 16px; }
.action-panel .btn { margin-top: 12px; }

/* 协作人员多选（复选框列表，兼容企业微信 X5） */
.assistant-options {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  max-height: 180px;
  overflow-y: auto;
  padding: 4px 0;
}
.assistant-option {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.assistant-option:last-child { border-bottom: none; }
.assistant-option:active { background: rgba(24, 144, 255, 0.08); }
.assistant-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  flex-shrink: 0;
  accent-color: var(--primary);
}
.assistant-option small {
  color: var(--text-secondary);
  margin-left: 4px;
}

/* ===== 标签 ===== */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}
.badge-role { background: rgba(255,255,255,0.2); color: #fff; font-size: 14px; padding: 4px 10px; }
.badge-status {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
}
.badge-submitted { background: #fff7e6; color: #d48806; }
.badge-approved { background: var(--primary-light); color: var(--primary); }
.badge-dispatched { background: #f9f0ff; color: #722ed1; }
.badge-assist { background: #e6f7ff; color: #0958d9; margin-left: 4px; padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.badge-constructing { background: #e6fffb; color: #13c2c2; }
.badge-paused { background: #fff7e6; color: #d46b08; }
.badge-pending_acceptance { background: #fff0f6; color: #eb2f96; }
/* v332：经销商「现场打样双签待签字」红点提示，与“待确认”语义呼应 */
.badge-cosign-pending { background: #fff1f0; color: #cf1322; border: 1px solid #ffa39e; font-weight: 600; }
.badge-completed { background: #f6ffed; color: var(--success); }
.badge-rejected { background: #fff1f0; color: var(--danger); }

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.toast.show { opacity: 1; }

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }

/* ===== 照片预览 ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.photo-item {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-add {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  background: #fafafa;
}
.photo-add:active { background: var(--border); }
.photo-upload { display: none; }

/* ===== 面积表格 ===== */
.area-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.area-table th, .area-table td {
  border: 1px solid var(--border);
  padding: 8px;
  font-size: 13px;
  text-align: center;
}
.area-table th { background: var(--bg); font-weight: 500; }
.area-table input { width: 80px; text-align: center; border: 1px solid var(--border); border-radius: 4px; padding: 4px; font-size: 13px; }
.area-table input[type="checkbox"] { width: auto; cursor: pointer; }
.area-table input:disabled { background: var(--bg); color: var(--text-secondary); opacity: 0.5; }
.area-table tr.unchecked td { color: var(--text-secondary); background: var(--bg); }
.area-table td:first-child { text-align: left; padding-left: 8px; }
.area-total { font-weight: 700; color: var(--primary); }
/* v455：面积表拆成「常规 / 超高·异形顶」两列后共 4 列，手机窄屏下收紧内边距与字号 */
.area-table.area-split th, .area-table.area-split td { padding: 6px 4px; font-size: 12px; }
.area-table.area-split td:first-child { padding-left: 6px; }

/* ===== 加载动画 ===== */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 确认对话框 ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
}
.modal-box h3 { margin-bottom: 12px; }
.modal-box .btn { margin-top: 16px; }

/* ===== 基层检查复核 / 到场工艺确认 独立弹窗（抽屉式）===== */
.base-review-modal { display: none; }
.base-review-modal.show { display: flex; }
.craft-confirm-modal { display: none; }
.craft-confirm-modal.show { display: flex; }
.modal-drawer {
  background: var(--card-bg);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: drawer-up .22s ease;
}
@keyframes drawer-up { from { transform: translateY(20px); opacity: .5; } to { transform: none; opacity: 1; } }
.base-review-drawer .modal-header { background: #f5f9ff; }
.base-review-drawer .modal-title { font-size: 16px; font-weight: 600; color: #1f2d3d; }
.base-review-drawer .modal-close {
  border: none; background: transparent; font-size: 18px; line-height: 1;
  color: #64748b; cursor: pointer; padding: 4px 8px; border-radius: 6px;
}
.base-review-drawer .modal-close:active { background: #e6eef9; }
.btn-review-open {
  margin-top: 10px;
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
}
.btn-review-open:active { opacity: .85; }

/* ===== 我的账号弹窗（.modal 结构）===== */
.modal {
  background: var(--card-bg);
  border-radius: 12px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { margin: 0; font-size: 16px; }
.modal-body {
  padding: 16px 18px;
  overflow-y: auto;
}
.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
}
.modal-footer .btn { margin: 0; }
.modal-close {
  border: none; background: transparent; font-size: 20px; line-height: 1;
  color: var(--text-secondary); cursor: pointer; padding: 4px 8px; border-radius: 6px;
}
.modal-close:active { background: rgba(0,0,0,0.06); }
.form-divider {
  margin: 18px 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}
.form-msg {
  margin-top: 12px;
  font-size: 13px;
  min-height: 18px;
}
.form-msg.error { color: #ff4d4f; }
.form-msg.success { color: #52c41a; }
.btn-account {
  font-size: 14px;
  padding: 5px 12px;
  background: #f0f5ff;
  color: #1677ff;
  border: 1px solid #adc6ff;
}
.btn-account:hover { background: #e6f0ff; }
.btn-icon {
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 2px 6px;
  margin: 0;
}
.btn-icon:hover { color: #333; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-ghost:hover { background: rgba(0,0,0,0.04); }

.badge-external {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-external-sm {
  display: inline-block;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff3e0;
  color: #e65100;
  font-weight: 500;
  margin-left: 6px;
  vertical-align: middle;
}

.btn-logout {
  font-size: 14px;
  padding: 5px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  margin-left: 8px;
}

.btn-logout:hover {
  background: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger);
}

/* ===== 登录 Tab ===== */
.login-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.login-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.login-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* ===== 账号管理 ===== */
.user-table {
  table-layout: fixed;
}
.user-table th,
.user-table td {
  font-size: 13px;
  padding: 10px 6px;
}
.user-table th {
  font-weight: 600;
  font-size: 12px;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}
.user-table td {
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  line-height: 1.4;
}
.user-actions {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}
.user-actions .btn-sm {
  font-size: 11px;
  padding: 3px 8px;
  white-space: nowrap;
  border-radius: 4px;
}
.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-danger:hover {
  background: #ff7875;
  color: #fff;
}

/* ===== 今日打卡（水印相机式小卡片布局） ===== */
.checkin-modal {
  max-width: 400px;
  padding: 16px;
  /* v450：拍照区放大为正方形后内容变高，这里兜底保证「提交/取消」始终可达 */
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.checkin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.checkin-header h3 { margin: 0; font-size: 16px; }
.checkin-close {
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0 4px;
}
.checkin-close:active { opacity: 0.6; }

/* 拍照区（含叠加小卡片） */
.checkin-capture {
  position: relative;
  width: 100%;
  /* v450：由 4/3 放大为正方形——拍照窗口更大，也给底部水印信息卡留出空间；
     max-height 兜底，避免小屏上把弹窗撑得过高。 */
  aspect-ratio: 1 / 1;
  max-height: 46vh;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  margin-bottom: 12px;
}
.checkin-capture-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* v450：底部固定预留水印信息卡（时间/天气/地址/坐标）高度，
     这样地址换行变长时也不会盖住「点击拍照」CTA。3 行地址约 122px，留 124px。 */
  padding: 0 16px 124px;
  /* v449：原为 rgba(255,255,255,.75) + 14px，在深色底上过于黯淡、看不出"可以点" */
  color: #fff;
  font-size: 14px;
  text-align: center;
}
.checkin-capture-icon { font-size: 46px; line-height: 1; }
/* v449：拍照主提示加重为药丸式 CTA，明确"这里可点" */
.checkin-capture-cta {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
  padding: 9px 22px;
  border: 1.5px solid rgba(255,255,255,.85);
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  text-shadow: 0 1px 3px rgba(0,0,0,.55);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.checkin-capture-hint { font-size: 12.5px; color: rgba(255,255,255,.82); }
.checkin-capture-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.checkin-overlay-cards { position: absolute; inset: 0; pointer-events: none; }

.checkin-oc-time {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 11px;
  line-height: 1.35;
  backdrop-filter: blur(2px);
}
.checkin-oc-time-d { font-weight: 600; }

.checkin-oc-refresh {
  position: absolute;
  top: 10px; right: 10px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(2px);
}
.checkin-oc-refresh:active { opacity: 0.7; }

.checkin-oc-info {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.6;
  backdrop-filter: blur(2px);
}
.checkin-oc-row { display: flex; gap: 6px; align-items: flex-start; }
.checkin-oc-row > span:first-child { flex: none; }
.checkin-oc-row > span:last-child { flex: 1; word-break: break-all; }
.checkin-oc-addr { pointer-events: auto; cursor: pointer; border-radius: 4px; }
.checkin-oc-addr:active { background: rgba(255,255,255,0.15); }
/* 定位精度：正常绿色，偏低黄色，过低红色 */
.checkin-oc-coord-ok { color: #b9f6ca; }
.checkin-oc-coord-low { color: #ffe082; }
.checkin-oc-coord-bad { color: #ff8a80; font-weight: 600; }
/* v450：地址最长 3 行，保证底部信息卡高度可控（否则超长地址会把卡片顶高、盖住 CTA） */
#oc-address {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* 低精度拦截弹窗图标动效 */
#lowAccModal .modal-box { animation: pop .2s ease; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* 紧凑输入 */
.checkin-field { margin-bottom: 10px; }
.checkin-field label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.checkin-select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--border-color, #d9d9d9);
  border-radius: 8px;
  background: #fff;
  color: var(--text-primary, #333);
  -webkit-appearance: none;
  appearance: none;
}

.checkin-records-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkin-record-item {
  background: var(--bg);
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
}

/* ===== 响应式 ===== */
@media (min-width: 768px) {
  body { max-width: 480px; margin: 0 auto; }
}

/* ===== 数据看板 ===== */
.dashboard-content {
  padding: 16px;
}

.dashboard-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.dashboard-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 工地状态概览卡片 */
.site-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.site-stat-card {
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  border: 1px solid var(--border);
}

.site-stat-card .count {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.site-stat-card .label {
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

.site-stat-not_started { background: #fffbe6; border-color: #ffe58f; }
.site-stat-not_started .count { color: #d48806; }

.site-stat-in_progress { background: #e6f7ff; border-color: #91d5ff; }
.site-stat-in_progress .count { color: #1677ff; }

.site-stat-pending { background: #fff0f6; border-color: #ffadd2; }
.site-stat-pending .count { color: #eb2f96; }

.site-stat-completed { background: #f6ffed; border-color: #b7eb8f; }
.site-stat-completed .count { color: #52c41a; }

/* 师傅状态表 */
.worker-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.worker-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 13px;
}

.worker-table th {
  background: var(--bg);
  padding: 10px 8px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  border-bottom: 2px solid var(--border);
}

.worker-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

.worker-table tr:last-child td {
  border-bottom: none;
}

.worker-table .worker-name {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.worker-table .site-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.worker-table .site-item {
  padding: 4px 8px;
  background: var(--bg);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.5;
}

.worker-table .site-item .addr {
  color: var(--text-secondary);
  font-size: 11px;
}

.worker-table .progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.worker-table .progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  min-width: 40px;
}

.worker-table .progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}

.worker-table .progress-text {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* 进度条颜色 */
.progress-submitted { background: #faad14; }
.progress-approved { background: #1677ff; }
.progress-dispatched { background: #722ed1; }
.progress-constructing { background: #13c2c2; }
.progress-pending_acceptance { background: #eb2f96; }

.worker-table .no-orders {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 12px;
}

/* 看板统计行 */
.dashboard-summary {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.dashboard-summary-item {
  flex: 1;
  background: var(--bg);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.dashboard-summary-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.dashboard-summary-item:active {
  transform: translateY(0);
}

.dashboard-summary-item.active {
  background: #e6f7ff !important;
  box-shadow: 0 0 0 2px #1677ff40;
}
.dashboard-summary-item.active[style*="#52c41a"] {
  background: #f6ffed !important;
  box-shadow: 0 0 0 2px #52c41a40;
}
.dashboard-summary-item.active[style*="#ff4d4f"] {
  background: #fff1f0 !important;
  box-shadow: 0 0 0 2px #ff4d4f40;
}

.dashboard-summary-item .num {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

/* 审单员工地记录：两排纯字段胶囊标签，左对齐 */
.reviewer-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}
.reviewer-tag-row-first { margin-bottom: 8px; }
.reviewer-tag {
  padding: 7px 18px;
  border-radius: 999px;
  background: #e8eef5;
  color: #33415c;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.reviewer-tag.active {
  background: #bcdcff;
  color: #0a4a8f;
  font-weight: 600;
  box-shadow: 0 0 0 1px #8fc1ff;
}

/* 审单员工地记录筛选栏 */
.reviewer-filter-row { display: flex; gap: 8px; flex-wrap: nowrap; }
.reviewer-filter-row .filter-text,
.reviewer-filter-row .filter-select {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  color: var(--text);
}
.reviewer-filter-row .filter-select { appearance: auto; }
.reviewer-filter-row .btn { flex: 0 0 auto; }

/* 已收费 / 提成 徽章 */
.badge-charge { background: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; }
.badge-commission { background: #f9f0ff; color: #722ed1; border: 1px solid #d3adf7; }
.badge-paid { background: #e6f7ff; color: #0958d9; border: 1px solid #91d5ff; }
.badge-unpaid { background: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; }
.badge-cancelled { background: #f5f5f5; color: #8c8c8c; border: 1px solid #d9d9d9; }

/* 工单卡片右上角多徽章布局 */
.order-card-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

/* 状态明细条 */
.status-detail-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-detail-chip {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-detail-chip .chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-detail-chip .chip-count {
  font-weight: 700;
}

/* ===== 施工监理工地卡片 ===== */
.site-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}

.site-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 8px;
}

.site-card-address {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.site-addr-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.site-addr-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-card-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: 6px;
}

.site-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.site-info-label {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.site-info-value {
  color: var(--text);
  font-weight: 500;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

.site-card-people {
  margin-bottom: 10px;
}

.site-people-title {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 600;
}

.site-people-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.site-person {
  font-size: 11px;
  padding: 3px 8px;
  background: #f0f5ff;
  border-radius: 12px;
  color: #2f54eb;
  border: 1px solid #d6e4ff;
}

.site-card-progress {
  padding-top: 4px;
}

.site-card-progress .progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-card-progress .progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.site-card-progress .progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.site-card-progress .progress-text {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ===== 施工督查出勤看板 ===== */
.att-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.att-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}
.att-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.att-dot.att-present,
.att-status.att-present {
  background: var(--success);
}
.att-dot.att-absent,
.att-status.att-absent {
  background: var(--danger);
}
.att-main {
  flex: 1 1 auto;
  min-width: 0;
}
.att-name {
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.att-role {
  font-size: 11px;
  color: #fff;
  background: var(--primary);
  border-radius: 10px;
  padding: 1px 8px;
  font-weight: 400;
}
.att-detail {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.5;
  word-break: break-all;
}
.att-status {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.supervisor-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
}
.sup-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.sup-tab.active {
  background: var(--primary);
  color: #fff;
}
.supervisor-order-list {
  padding: 0 !important;
}

/* ===== 数据看板多视角 Tab ===== */
.dash-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.dash-tab {
  padding: 7px 4px;
  border-radius: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  background: #f0f2f5;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s;
}
.dash-tab.active {
  background: var(--primary);
  color: #fff;
}
@media (max-width: 380px) {
  .dash-tab { font-size: 12px; padding: 7px 2px; }
}
#dash-body { padding: 12px; }

/* 筛选栏 */
.dash-filter-bar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.filter-row:last-child { margin-bottom: 0; }
.filter-row select, .filter-row input[type="text"], .filter-row input[type="date"] {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  min-width: 0;
}
.filter-row input[type="text"] { flex: 1; }
.filter-status { flex: 1 1 30%; }
.filter-worker { flex: 1 1 30%; }
.filter-dealer { flex: 1 1 30%; }
.filter-row-date { justify-content: space-between; }
.filter-row-date .filter-date { flex: 1 1 38%; min-width: 110px; }
.filter-row-date .filter-label { flex-shrink: 0; white-space: nowrap; }
.filter-label { font-size: 12px; color: var(--text-secondary); }

.dash-section-note {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  padding: 0 2px;
}

/* 预警 */
.warn-box {
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #fffbe6;
  border: 1px solid #ffe58f;
}
.warn-item { font-size: 12px; line-height: 1.6; }
.warn-danger { color: #cf1322; }
.warn-warning { color: #d48806; }

/* 师傅卡片 */
.worker-cards { display: flex; flex-direction: column; gap: 12px; }
.worker-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--bg);
}
.worker-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.worker-name { font-size: 15px; font-weight: 600; }
.worker-metrics {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.worker-metrics b { color: var(--text); font-size: 14px; }
.ck-dot { font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.ck-ok { background: #f6ffed; color: #52c41a; }
.ck-no { background: #fff1f0; color: #ff4d4f; }

/* 今日动态 */
.summary-4, .summary-3 {
  display: grid;
  gap: 10px;
  margin-bottom: 4px;
}
.summary-4 { grid-template-columns: repeat(4, 1fr); }
.summary-3 { grid-template-columns: repeat(3, 1fr); }
.sum-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 8px;
  text-align: center;
}
.sum-card .num { font-size: 24px; font-weight: 700; color: var(--primary); }
.sum-card div:last-child { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
@media (max-width: 480px) {
  .summary-4 { grid-template-columns: repeat(2, 1fr); }
  .summary-3 { grid-template-columns: repeat(3, 1fr); }
}

/* 区域分布 */
.region-list { display: flex; flex-direction: column; gap: 10px; }
.region-row {
  display: grid;
  grid-template-columns: 80px 1fr 36px;
  align-items: center;
  gap: 2px 8px;
}
.region-name { font-size: 13px; font-weight: 500; }
.region-bar-wrap { background: #f0f2f5; border-radius: 4px; height: 12px; overflow: hidden; grid-column: 2; }
.region-bar { height: 100%; background: var(--primary); border-radius: 4px; }
.region-num { text-align: right; font-size: 13px; font-weight: 600; }
.region-detail { grid-column: 1 / -1; font-size: 11px; color: var(--text-secondary); }

/* ===== 首页：分区标签框架 ===== */
.home-content { padding: 12px; }
/* home-user-card（原管理员端顶部蓝色用户信息条：头像/姓名/角色/日期）已随改版移除 */
.home-section-title {
  font-size: 14px; font-weight: 600; color: var(--text-primary, #1f2937);
  margin: 4px 2px 10px;
}
.home-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.home-grid-3 { grid-template-columns: repeat(3, 1fr); }
.home-card {
  position: relative;
  background: #fff; border: 1px solid var(--border, #e5e7eb); border-radius: 14px;
  padding: 18px 12px; text-align: center; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.home-card:active { transform: scale(0.97); }
.home-card-icon { font-size: 30px; margin-bottom: 8px; }
.home-card-label { font-size: 15px; font-weight: 600; color: #111827; }
.home-card-sub { font-size: 12px; color: var(--text-secondary, #6b7280); margin-top: 4px; }
.home-grid-3 .home-card-icon { font-size: 26px; }
.home-grid-3 .home-card-label { font-size: 13px; }

.home-todo-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.home-todo {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px; padding: 12px 14px; cursor: pointer;
}
.home-todo-icon { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.home-todo-label { flex: 1; font-size: 14px; color: #374151; }
.home-todo-value { font-size: 18px; font-weight: 700; }

.home-account-bar {
  margin-top: 20px;
  padding: 0 4px 12px;
}
.home-account-bar .btn-account-bottom {
  width: 100%;
  background: #fff;
  color: var(--danger, #ef4444);
  border: 1px solid var(--danger, #ef4444);
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  border-radius: 10px;
}
.home-account-bar .btn-account-bottom:active {
  background: #f3f4f6;
}

/* ===== 数据看板总览：维度分组 ===== */
.dash-group { margin-bottom: 16px; }
.dash-group-title {
  font-size: 14px; font-weight: 600; color: #374151;
  margin: 0 0 10px; padding-left: 2px;
}
.dash-metric-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.dash-metric {
  background: #fff; border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px; padding: 14px 8px; text-align: center;
}
.dash-metric-num { font-size: 26px; font-weight: 800; line-height: 1.1; }
.dash-metric-label { font-size: 12px; color: var(--text-secondary, #6b7280); margin-top: 6px; }
.home-stat-grid-6 {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  margin-top: 10px;
}
.home-stat-6 {
  background: #fff; border: 1px solid var(--border, #e5e7eb);
  border-top-width: 3px;
  border-radius: 10px; padding: 14px 4px 12px; text-align: center;
  transition: transform .12s ease, box-shadow .12s ease;
}
.home-stat-6:active { transform: scale(.97); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.home-stat-6-num { font-size: 22px; font-weight: 800; line-height: 1; }
.home-stat-6-label { font-size: 11px; color: var(--text-secondary, #6b7280); margin-top: 6px; font-weight: 500; letter-spacing: .5px; }
@media (max-width: 480px) {
  .home-stat-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .dash-metric-row { grid-template-columns: repeat(2, 1fr); }
}

/* 人员视角二级筛选标签 */
.worker-sub-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 12px; border-radius: 16px; font-size: 13px;
  background: #fff; color: var(--text-secondary, #6b7280);
  border: 1px solid var(--border, #e5e7eb); cursor: pointer; white-space: nowrap;
}
.filter-chip.active {
  background: var(--primary, #3b82f6); color: #fff; border-color: var(--primary, #3b82f6);
}
#worker-selector { flex-wrap: wrap; gap: 8px; }

/* 工地围栏中心点核对 */
.site-coordinate-row .value { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; text-align: right; }
.site-coordinate-modal { max-width: 360px; }
.site-coordinate-modal h3 { margin: 0 0 10px; }
.site-coordinate-modal label { display: block; font-size: 13px; color: #475569; margin: 12px 0 5px; }
.site-coordinate-modal input, .site-coordinate-modal select { width: 100%; box-sizing: border-box; border: 1px solid #dbe3ef; border-radius: 8px; padding: 10px; font-size: 14px; background:#fff; }
.site-coordinate-manual { display:grid; grid-template-columns:1fr 1fr; column-gap:8px; }
.site-coordinate-manual label:nth-of-type(3), .site-coordinate-manual select { grid-column:1 / -1; }
.site-coordinate-help { margin: 0; color: #64748b; font-size: 13px; line-height: 1.55; }
.site-coordinate-current { margin: 12px 0; padding: 10px; border-radius: 8px; background: #eff6ff; color: #1d4ed8; font-size: 13px; line-height: 1.55; }
.geofence-reject-modal { max-width: 330px; text-align: center; }
.geofence-reject-icon { font-size: 38px; margin-top: 4px; }
.geofence-reject-modal h3 { margin: 7px 0; color: #b45309; }
.geofence-reject-modal p { font-size: 13px; line-height: 1.55; color: #64748b; margin: 0 0 10px; }
.geofence-distance { font-size: 30px; font-weight: 800; color: #dc2626; line-height: 1.2; }
.geofence-rule { font-size: 13px; color: #92400e; margin-top: 4px; }
.geofence-coords { text-align: left; margin: 12px 0; padding: 9px; border-radius: 8px; background: #f8fafc; color: #475569; font-size: 11px; line-height: 1.6; word-break: break-all; }

/* 打卡页顶部粉色气泡提示（坐标未核验/不在打卡范围内） */
.checkin-geofence-tip {
  margin: 0 0 12px;
  filter: drop-shadow(0 4px 10px rgba(220, 38, 38, 0.12));
}
.checkin-geofence-tip-inner {
  background: linear-gradient(180deg, #fff5f5 0%, #fee2e2 100%);
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.checkin-geofence-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}
.checkin-geofence-text { flex: 1; min-width: 0; }
.checkin-geofence-title {
  font-size: 15px;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 4px;
}
.checkin-geofence-subtitle {
  font-size: 13px;
  color: #7f1d1d;
  line-height: 1.5;
}
.checkin-geofence-arrow {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #fee2e2;
  margin: -1px auto 0;
}

/* ===== 管理员数据看板 · 新版总览（5 模块）===== */
/* 顶部蓝色导航栏 */
.app-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 12px;
  background: #2563eb;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.app-navbar .nav-back {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.app-navbar .nav-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}
.app-navbar .nav-action {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
}
.app-navbar .nav-action:active { background: rgba(255, 255, 255, 0.3); }

/* 看板容器 */
.dash-overview { display: flex; flex-direction: column; gap: 16px; }
.dash-section { margin: 0; }
.dash-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2d3d;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dash-section-title::before {
  content: '';
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: #2563eb;
}
.dash-warning-section .dash-section-title { color: #ea580c; }
.dash-warning-section .dash-section-title::before { background: #fb923c; }

.dash-card-grid { display: grid; gap: 10px; }
.dash-warning-grid { grid-template-columns: repeat(4, 1fr); }
.dash-order-grid { grid-template-columns: repeat(3, 1fr); }
.dash-people-grid { grid-template-columns: repeat(4, 1fr); }

.dash-stat-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-top: 3px solid transparent;
  border-radius: 12px;
  padding: 14px 6px 12px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.12s, box-shadow 0.12s;
}
.dash-stat-card:active { transform: scale(0.98); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1); }
.dash-stat-num {
  font-size: 26px;
  font-weight: 700;
  color: #1f2d3d;
  line-height: 1.15;
}
.dash-stat-label {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

/* 异常预警：浅橙色警示卡片 */
.dash-warning-card {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-top: 3px solid #fb923c;
}
.dash-warning-card .dash-stat-num { color: #ea580c; }

/* 工单概览：浅蓝色顶部装饰线条 */
.dash-order-card { border-top: 3px solid #bcdcff; }

/* 人员概览：紫色顶部装饰线条 */
.dash-people-card { border-top: 3px solid #a78bfa; }

/* 今日工单趋势 */
.dash-trend-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.dash-trend-svg { width: 100%; height: auto; display: block; }

/* ===== 人员概览 · 师傅独立列表页 ===== */
.dash-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 2px 10px;
}
.dash-detail-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #1f2d3d;
}
.btn-back {
  flex: 0 0 auto;
  border: none;
  background: #f1f5f9;
  color: #475569;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-back:active { background: #e2e8f0; }

.worker-list-wrap { padding-top: 2px; }
.worker-list { display: flex; flex-direction: column; gap: 10px; }
.worker-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.worker-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.worker-card-name { font-size: 15px; font-weight: 700; color: #1f2d3d; }
.worker-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}
.worker-orders {
  margin-top: 8px;
  border-top: 1px dashed #eef2f7;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.worker-order-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #475569;
}
.worker-order-item .wo-title { font-weight: 600; color: #1f2d3d; }
.worker-order-item .wo-no { color: #94a3b8; font-size: 11px; }
.worker-order-item .wo-addr { color: #64748b; }
.worker-orders-empty {
  margin-top: 8px;
  border-top: 1px dashed #eef2f7;
  padding-top: 10px;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
}
.dash-section-subnote {
  margin: 6px 0 2px;
  font-size: 12px;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 6px 10px;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}
.badge-onduty { background: #dcfce7; color: #16a34a; }
.badge-idle { background: #e0f2fe; color: #0284c7; }
.badge-nomorning { background: #fee2e2; color: #dc2626; }

@media (max-width: 380px) {
  .dash-warning-grid, .dash-people-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-order-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-stat-num { font-size: 22px; }
}

/* ===== 用料记录弹窗（提交验收后填写）===== */
.material-hint {
  color: var(--text-secondary, #888);
  font-size: 12px;
  margin-bottom: 10px;
}
.material-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 8px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #eee;
}
.material-row .material-product {
  flex: 1.4;
  min-width: 0;
  padding: 8px 6px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  color: var(--text, #333);
}
.material-row .material-qty {
  flex: 0.9;
  min-width: 0;
  padding: 8px 6px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  color: var(--text, #333);
}
.material-row .material-unit {
  flex: 0 0 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary, #1677ff);
  white-space: nowrap;
}
.material-row .material-del {
  flex: 0 0 auto;
}
.material-row select:disabled,
.material-row input:disabled {
  background: #f5f5f5;
  color: #666;
  -webkit-text-fill-color: #666;
}

/* ===== 经销商验收后调研问卷（滑块评分弹窗）===== */
.survey-modal .survey-box {
  width: 700px;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
}
.survey-head {
  padding: 24px 28px 16px;
  border-bottom: 1px solid #f0f0f0;
  flex: 0 0 auto;
}
.survey-head h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #1D2129;
}
.survey-anon-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #4E5969;
  background: #F0F7FF;
  border: 1px solid #E0EEFF;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0;
}
.survey-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 28px 12px;
  -webkit-overflow-scrolling: touch;
}
.survey-foot {
  flex: 0 0 auto;
  padding: 16px 28px 24px;
  border-top: 1px solid #f0f0f0;
}
.survey-foot .btn { margin-top: 0; }
.survey-item {
  margin-bottom: 24px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background .15s ease;
}
.survey-item:hover { background: #F7F8FA; }
.survey-q {
  font-size: 15px;
  font-weight: 400;
  color: #4E5969;
  margin-bottom: 12px;
  line-height: 1.5;
}
.survey-slider-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
/* 外层容器承接点击/触摸热区（含上下留白），内部轨道仅 8px 视觉高度 */
.survey-slider {
  flex: 1;
  min-width: 0;
  padding: 6px 0;
  cursor: pointer;
}
.survey-slider .slider-track {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: #E5E6EB;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.survey-slider .slider-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #FEE7E7 0%, #FFF3CD 50%, #D4EDDA 100%);
  pointer-events: none;
  transition: width 0.08s linear;
}
.survey-slider .slider-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #36CFC9;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: left 0.08s linear;
}
.survey-slider .slider-thumb:hover { transform: translate(-50%, -50%) scale(1.18); }
/* 刻度数字置于轨道下方，分散排布，不叠在彩条上 */
.survey-slider .slider-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 2px;
}
.survey-slider .slider-scale .scale-num {
  width: 14px;
  text-align: center;
  font-size: 11px;
  color: #C9CDD4;
  cursor: pointer;
  transition: color .15s ease, font-weight .15s ease;
}
.survey-slider .slider-scale .scale-num.on { color: #36CFC9; font-weight: 700; }
.slider-value {
  flex: 0 0 auto;
  min-width: 56px;
  padding-top: 2px;
  text-align: right;
  font-size: 13px;
  color: #86909C;
  white-space: nowrap;
}
/* 底部进度条 */
.survey-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.survey-progress-bar {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: #E5E6EB;
  overflow: hidden;
}
.survey-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: #36CFC9;
  transition: width .2s ease;
}
.survey-progress-text {
  flex: 0 0 auto;
  font-size: 13px;
  color: #86909C;
  white-space: nowrap;
}
body.survey-lock { overflow: hidden; }

/* ===== 服务评分报表 ===== */
.survey-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.survey-stat {
  flex: 1 1 calc(33% - 8px);
  min-width: 80px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}
.survey-stat b {
  display: block;
  font-size: 20px;
  color: #1677ff;
}
.survey-stat span {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

/* 施工师傅服务评分表格 */
.survey-worker-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
  margin-top: 6px;
}
.survey-worker-table th,
.survey-worker-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
  word-break: break-word;
}
.survey-worker-table thead th {
  background: var(--bg, #f5f7fa);
  font-weight: 600;
  color: var(--text-primary);
}
.survey-worker-table .col-name { text-align: left; width: 28%; }
.survey-worker-table .col-count { width: 18%; }
.survey-worker-table .col-avg { width: 27%; }
.survey-worker-table .col-q1 { width: 27%; }
.survey-worker-table tbody tr:nth-child(even) { background: rgba(0, 0, 0, .02); }

/* 提交按钮：未完成置灰不可点 */
#btn-survey-submit:disabled {
  opacity: 1;
  background: #C9CDD4;
  border-color: #C9CDD4;
  color: #fff;
  cursor: not-allowed;
}

/* ===== 新建工单分步向导 ===== */
/* v382：4 个步骤合并为单行等分，布局与样式对齐详情页 Tab（白底横条 + 激活项底部蓝线） */
.create-stepbar {
  display: flex;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.step-pill {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 11px 4px;
  border-bottom: 2.5px solid transparent;
  background: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
  transition: color .18s ease, border-color .18s ease;
}
.step-pill.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.step-pill.done {
  color: #3b6d11;
}
.create-progress {
  font-size: 12px;
  color: #5f5e5a;
  margin-bottom: 12px;
}
.create-step { display: none; }
.create-step.active { display: block; }
.wizard-nav {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.wizard-nav .btn { flex: 1; }

/* 工地信息确认表折叠子分组 */
.col {
  margin-bottom: 10px;
  border: 0.5px solid #d3d1c7;
  border-radius: 10px;
  overflow: hidden;
}
.col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #2c2c2a;
  background: #f1efe8;
  cursor: pointer;
}
.col-head .cnt {
  font-size: 11px;
  color: #5f5e5a;
  font-weight: 400;
  margin-left: 6px;
}
.col-body { padding: 10px 12px; }
.chev { display: inline-block; margin-right: 4px; }

/* 工地信息确认表 · 模块标签与备注（v199 模块一/模块二） */
.col-head.archive { background: #eef4ff; color: #1d4ed8; }
.col-head.gate { background: #fdecea; color: #b42318; }
.col-tag { font-size: 11px; font-weight: 500; padding: 1px 8px; border-radius: 10px; margin-left: 6px; }
.col-tag.archive { background: #dbeafe; color: #1d4ed8; }
.col-tag.gate { background: #fbd5d0; color: #b42318; }
.gate-note {
  font-size: 12px; line-height: 1.55; color: #92400e;
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px;
  padding: 10px 12px; margin: 4px 0 8px;
}
.si-sub-tag { font-size: 11px; font-weight: 500; padding: 1px 8px; border-radius: 10px; margin-left: 6px; }
.si-sub-tag.archive { background: #eef4ff; color: #1d4ed8; }
.si-sub-tag.gate { background: #fdecea; color: #b42318; }

/* 校验未填红框提示 */
.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
  border-color: #e24b4a !important;
  background: #fef2f2;
}

/* ===== 工单详情页 Tab 分段（v146 风格统一 / v371 宽度对齐 + 视觉优化） ===== */
.detail-tabs { display:flex; background:var(--card-bg); border-bottom:1px solid var(--border); position:sticky; top:0; z-index:5; box-shadow:0 1px 3px rgba(17,24,39,0.04); }
.detail-tab { flex:1; text-align:center; padding:12px 0; font-size:13.5px; color:var(--text-secondary); cursor:pointer; border-bottom:2.5px solid transparent; user-select:none; transition:color .18s ease, border-color .18s ease, background .18s ease; }
.detail-tab:active { background:rgba(22,119,255,0.06); }
.detail-tab.active { color:var(--primary); font-weight:600; border-bottom-color:var(--primary); }
/* v372：内容卡片与表头 / Tab 区等宽（左右 0），仅保留上下间距。
   卡片自身 padding 16px，使卡内文字与表头文字左右对齐。 */
.detail-panels { padding:12px 0; }
.detail-panel { display:none; }
.detail-panel.active { display:block; animation:detailPanelIn .2s ease-out; }
@keyframes detailPanelIn { from { opacity:0; transform:translateY(3px); } to { opacity:1; transform:none; } }

/* ===== 施工节点阶段分组折叠 ===== */
.node-groups { display:flex; flex-direction:column; gap:10px; margin-top:8px; }
.node-group { border:1px solid var(--border); border-radius:8px; overflow:hidden; background:var(--card-bg); }
.node-group-header { display:flex; align-items:center; justify-content:space-between; padding:11px 12px; background:#fafafa; cursor:pointer; user-select:none; }
.node-group-title { font-size:13px; font-weight:500; }
.node-group-meta { display:flex; align-items:center; gap:6px; color:var(--text-secondary); font-size:12px; }
.node-group-chevron { display:inline-block; transition:transform .2s; }
.node-group-chevron.open { transform:rotate(180deg); }
.node-group-body { padding:4px 8px; display:flex; flex-direction:column; gap:10px; }

/* ===== 打卡完成度引导 ===== */
.checkin-steps { display:flex; align-items:center; padding:14px 14px 4px; }
.ck-step { display:flex; flex-direction:column; align-items:center; gap:4px; }
.ck-step-dot { width:22px; height:22px; border-radius:50%; border:1px solid var(--border); color:var(--text-secondary); font-size:12px; display:flex; align-items:center; justify-content:center; background:var(--card-bg); }
.ck-step.done .ck-step-dot { background:var(--success); border-color:var(--success); color:#fff; }
.ck-step-label { font-size:11px; color:var(--text-secondary); }
.ck-step-line { flex:1; height:2px; background:var(--border); margin:0 4px; }
.ck-step-line.done { background:var(--success); }
.checkin-progress { height:4px; background:var(--border); border-radius:2px; overflow:hidden; margin:8px 14px 4px; }
.checkin-progress-bar { height:100%; width:0; background:var(--success); transition:width .25s; }
.btn-disabled, .btn:disabled { opacity:.5; cursor:not-allowed; }

/* ===== 财务统计汇总表格（v191：5 列标准汇总表，整行可点击） ===== */
.finance-table-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg, #fff);
  max-height: 62vh;
  overflow: auto;
}
.finance-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.finance-table th, .finance-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 13px;
  white-space: normal;
  word-break: break-word;
  vertical-align: top;
}
.finance-table thead th {
  position: sticky;
  top: 0;
  background: var(--bg, #f5f7fa);
  font-weight: 600;
  z-index: 2;
  border-bottom: 2px solid var(--border);
}
.finance-table th.col-title { width: 32%; }
.finance-table th.col-applicant { width: 16%; }
.finance-table th.col-area { width: 16%; }
.finance-table th.col-charge { width: 18%; }
.finance-table th.col-commission { width: 18%; }
.finance-table tbody tr { cursor: pointer; }
.finance-table tbody tr:hover { background: var(--primary-light, #e6f4ff); }
.finance-table td.col-title { padding: 0; vertical-align: middle; }
.fin-title-cell {
  line-height: 1.45;
  padding: 10px 12px;
  white-space: normal;
  word-break: break-word;
}
.finance-table .col-amount { color: var(--primary); font-weight: 600; }
.finance-table .text-warning { color: var(--warning); }
.text-warning { color: var(--warning); }

/* 财务统计分页 */
.pager { display: flex; justify-content: center; margin-top: 12px; }
.pager-inner { display: flex; align-items: center; gap: 14px; }
.pager-btn { padding: 6px 16px; border: 1px solid var(--border); border-radius: 6px; background: var(--card-bg, #fff); cursor: pointer; font-size: 13px; }
.pager-btn:disabled { opacity: .5; cursor: not-allowed; }
.pager-info { font-size: 13px; color: var(--text-secondary); }

/* 工地详情弹窗（点击表格行唤起） */
.fin-detail-overlay {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(0, 0, 0, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.fin-detail-modal {
  width: 100%; max-width: 420px;
  background: var(--card-bg, #fff);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  max-height: 82vh;
}
.fin-detail-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.fin-detail-head h3 { margin: 0; font-size: 16px; }
.fin-detail-close { border: none; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--text-secondary); }
.fin-detail-body { padding: 4px 16px; overflow: auto; }
.fin-detail-body .detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.fin-detail-body .detail-row:last-child { border-bottom: none; }
.fin-detail-body .detail-row .label { color: var(--text-secondary); flex: 0 0 96px; }
.fin-detail-body .detail-row .value { text-align: right; word-break: break-all; flex: 1; }
.fin-detail-foot { padding: 12px 16px; border-top: 1px solid var(--border); }

/* ===== 工地信息确认表（v154）：经销商确认 / 施工人员复核 三列 ===== */
.si-review-hint { font-size: 11px; color: var(--text-secondary); font-weight: 400; margin-left: 6px; }
.si-row { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 8px; }
.si-row .label { grid-column: 1; }
.si-row .value { grid-column: 2; text-align: left; }
.si-row .si-review-cell { grid-column: 3; text-align: right; white-space: nowrap; }
.si-review { display: inline-block; border-radius: 10px; padding: 2px 8px; font-size: 11px; font-weight: 500; }
.si-review.passed { background: #f6ffed; color: #389e0d; }
.si-review.failed { background: #fff1f0; color: #cf1322; }
.si-review.pending { background: #f5f5f5; color: #8c8c8c; }
.si-review-action { border:0; cursor:pointer; font-family:inherit; }
.si-review-action:active { transform:scale(.97); }
.site-review-entry { margin-top:14px; padding:12px; border-top:1px dashed var(--border); display:flex; align-items:center; justify-content:space-between; gap:10px; }
.site-review-entry-text { display:flex; flex-direction:column; gap:4px; font-size:12px; color:var(--text-secondary); line-height:1.5; }
.site-review-entry-text strong { color:var(--text-primary); font-size:13px; }
.site-review-entry .btn { white-space:nowrap; flex-shrink:0; }
.base-review-overview { margin-top:12px; padding:10px; border:1px dashed #91caff; border-radius:8px; background:#fff; }
.base-review-overview-title { font-size:13px; font-weight:600; color:#1f2d3d; }
.base-review-overview-hint { font-size:12px; color:var(--text-secondary); line-height:1.5; margin:5px 0 8px; }
@media (max-width: 420px) { .site-review-entry { align-items:flex-start; flex-direction:column; } .site-review-entry .btn { width:100%; } }

/* ===== 需求三：施工工序横向流程（拍照留痕 + 状态管理） ===== */
/* ===== 施工工序竖向时间线（蓝白 SaaS 风格，需求三-改造） ===== */
.vt-timeline { margin-top: 8px; }
.vt-item { display: flex; gap: 12px; align-items: stretch; margin-bottom: 0; }
.vt-axis {
  flex: 0 0 26px;
  display: flex; flex-direction: column; align-items: center;
}
.vt-dot {
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%;
  margin-top: 13px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-style: normal; font-weight: 700; line-height: 1;
  background: #fff; border: 2px solid #c8c8c8; color: #fff;
}
.vt-dot i { color: #fff; font-style: normal; }
.vt-line { flex: 1 1 auto; width: 2px; min-height: 18px; margin: 3px 0 14px; background: #e2e2e2; }
.vt-item.pending .vt-dot { border-color: #c8c8c8; background: #fff; }
.vt-item.pending .vt-line { background: #e2e2e2; }
.vt-item.active .vt-dot { border-color: #1677ff; background: #1677ff; }
.vt-item.active .vt-line { background: #1677ff; }
.vt-item.done .vt-dot { border-color: #1677ff; background: #1677ff; }
.vt-item.done .vt-line { background: #1677ff; }
.vt-item.rectify .vt-dot { border-color: #f5222d; background: #f5222d; }
.vt-item.rectify .vt-line { background: #f5222d; }

/* 节点卡片整体随确认状态变色：已确认蓝、待整改红 */
.vt-item.done .vt-card { background: #f0f7ff; border-color: #1677ff; }
.vt-item.active .vt-card { background: #f0f7ff; border-color: #1677ff; }
.vt-item.rectify .vt-card { background: #fff5f5; border-color: #ff4d4f; }

.vt-card {
  flex: 1 1 auto; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(20,60,120,0.06);
}
.vt-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vt-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.vt-status {
  flex: 0 0 auto; font-size: 11px; padding: 2px 9px; border-radius: 10px; font-weight: 500; white-space: nowrap;
}
.vt-status.pending { background: #f5f5f5; color: #8c8c8c; }
.vt-status.active { background: #e6f4ff; color: #1677ff; }
.vt-status.done { background: #e6f4ff; color: #1677ff; }
.vt-status.rectify { background: #fff1f0; color: #f5222d; border: 1px solid #ffa39e; }
.vt-release-badge { display:inline-block; margin-top:8px; padding:4px 9px; border-radius:12px; background:#f5f5f5; color:#595959; font-size:12px; font-weight:600; }
.vt-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 7px; font-size: 12px; color: var(--text-secondary); }
.vt-notes {
  margin-top: 8px; padding: 8px 10px; background: #fafcff; border: 1px solid #eef3fb;
  border-radius: 8px; font-size: 12px; color: #44566c; line-height: 1.6;
}
.vt-photos { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.vt-photos .photo-wrap, .vt-photos .node-photo { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 6px; object-fit: cover; }
.vt-photos .photo-fallback { flex: 0 0 64px; width: 64px; height: 64px; }
.vt-no-photo { margin-top: 8px; font-size: 12px; color: #b0b8c4; padding: 8px 10px; background: #fafafa; border: 1px dashed var(--border); border-radius: 8px; }
.vt-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vt-actions .btn-mini { flex: 0 0 auto; }

/* ===== 施工节点时间线 · 基层复核结果摘要 ===== */
.vt-base-review-summary { margin-top: 8px; padding: 8px 10px; background: #fafcff; border: 1px solid #eef3fb; border-radius: 8px; }
.vt-base-badge { display: inline-block; margin-bottom: 6px; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.vt-base-badge.passed { background: #e6f7ee; color: #0a9d55; }
.vt-base-badge.failed { background: #fff3e6; color: #e6a319; }
.vt-base-review-item { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 4px; }
.vt-br-result { font-weight: 700; min-width: 20px; }
.vt-br-result.passed { color: #0a9d55; }
.vt-br-result.failed { color: #e6a319; }
.vt-br-label { color: #44566c; flex: 1; }
.vt-br-photos { color: #8a94a6; font-size: 11px; }
.vt-br-photos.clickable { cursor: pointer; color: #1677ff; }
.vt-br-photos.disabled { opacity: 0.45; cursor: not-allowed; }
.vt-base-review-notes .vt-base-review-item { align-items: flex-start; }

/* 工序头部照片图标（对齐基层检查条目式交互） */
.vt-photo-icon-slot { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.vt-node-photo-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 15px;
  background: #f3f7fd;
  border: 1px solid #dde6f3;
  user-select: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.vt-node-photo-icon.clickable { cursor: pointer; color: #1677ff; }
.vt-node-photo-icon.clickable:hover { background: #e6f0fd; transform: translateY(-1px); }
.vt-node-photo-icon.clickable:active { transform: translateY(0); }
.vt-node-photo-icon.disabled { opacity: 0.35; cursor: not-allowed; filter: grayscale(0.5); }
.vt-node-photo-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ff5722;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.18);
  line-height: 1;
}
.node-item-name-row { display: flex; align-items: center; gap: 8px; }

.btn-mini-primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.btn-mini-primary:disabled { background: #b7d6ff; border-color: #b7d6ff; color: #fff; cursor: not-allowed; }
.btn-mini-primary:active { transform: scale(.97); }

/* ===== 需求二：基层复核结果可视化卡 ===== */
.base-review-result-card .br-reason { line-height: 1.6; }
.br-photos-title { font-size: 12px; color: var(--text-secondary); margin: 10px 0 6px; }
.br-result-photos {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px; border: 1px dashed var(--border); border-radius: 8px; background: #fafafa;
}
.br-result-photos .photo-wrap,
.br-result-photos .node-photo { width: 64px; height: 64px; }
.br-result-photos .photo-fallback { width: 64px; height: 64px; }
.br-no-photo { color: var(--text-secondary); font-size: 12px; padding: 4px 0; }

/* 逐项复核照片：对照检查项展示 */
.br-items { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.br-item { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: #fff; }
.br-item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.br-item-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.br-item-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 500; flex: 0 0 auto; }
.br-item-badge.passed { background: #f6ffed; color: #389e0d; }
.br-item-badge.rejected { background: #fff1f0; color: #cf1322; }
.br-item-note { font-size: 12px; color: var(--text-secondary); margin-top: 4px; line-height: 1.5; }

.phone-link { color: var(--primary, #1677ff); text-decoration: none; font-weight: 600; }
.phone-link::before { content: '☎ '; font-size: 12px; }
.phone-link:active { opacity: .7; }

/* 施工地址独立两行：标签在上，地址可完整折行，定位入口始终固定在右侧。 */
.site-address-block { padding: 8px 0 10px; border-bottom: 1px solid var(--border); }
.site-address-label { color: var(--text-secondary); font-size: 13px; line-height: 1.35; margin-bottom: 6px; }
.site-address-content { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.site-address-full { flex: 1 1 auto; min-width: 0; color: var(--text-primary); font-size: 13px; font-weight: 500; line-height: 1.55; text-align: left; overflow-wrap: anywhere; word-break: break-word; }
.amap-location-link { flex: 0 0 auto; margin-top: 1px; color: var(--primary, #1677ff); font-size: 12px; font-weight: 600; line-height: 1.55; text-decoration: none; white-space: nowrap; }
.amap-location-link:active { opacity: .7; }

/* 工地信息确认表：复核照片直接陈列在对应检查项下方（与表单值、复核结果合并，不再单列照片板块） */
.si-item-photos {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 6px 0 2px 0; padding: 6px 8px;
  border: 1px dashed var(--border); border-radius: 8px; background: #fafafa;
}
.si-item-photos .photo-wrap,
.si-item-photos .node-photo { width: 56px; height: 56px; }
.si-item-photos .photo-fallback { width: 56px; height: 56px; }

/* 复核照片默认收起，点击检查项整行展开 */
.si-row-wrap { cursor: pointer; }
.si-row-wrap .si-row-toggle { transition: background .15s; }
.si-row-wrap:active .si-row-toggle { background: #f5f7fa; }
.si-chevron { display: inline-block; margin-left: 6px; color: var(--text-secondary); font-size: 11px; transition: transform .15s; }
.si-chevron.open { transform: rotate(90deg); }

/* ===== 施工产品选择弹窗 ===== */
#product-modal .modal-box { max-width: 440px; max-height: 82vh; display: flex; flex-direction: column; }
#product-modal .modal-head { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 500; margin-bottom: 12px; }
#product-modal .modal-close { font-size: 20px; cursor: pointer; color: var(--text-secondary); line-height: 1; padding: 0 4px; }
#product-modal .modal-body { overflow-y: auto; padding-right: 4px; }
#product-modal .modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
#product-modal .product-group { margin-bottom: 8px; }
#product-modal .product-group-body { padding: 8px 0; }

/* 已选产品表格 */
.selected-tags { margin-top: 12px; }
.selected-product-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border: 1px solid #E2E8F0; border-radius: 8px; overflow: hidden; }
.selected-product-table thead { background: #F1F5F9; }
.selected-product-table th, .selected-product-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid #E2E8F0; }
.selected-product-table th { font-weight: 600; color: #334155; }
.selected-product-table td { color: #475569; }
.selected-product-table tr:last-child td { border-bottom: none; }
.sel-tag-x { cursor: pointer; color: #EF4444; font-size: 12px; }

/* ===== 师傅端 4 Tab 移动端壳 ===== */
.header-user { font-size: 13px; color: var(--text-secondary); margin-right: 8px; }
.w-shell { display: flex; flex-direction: column; min-height: calc(100vh - 56px); }
.w-screens { padding-bottom: 4px; }
.w-screen { display: none; }
.w-screen.active { display: block; }
.w-bottom-nav {
  position: sticky; bottom: 0; display: flex; background: var(--card-bg);
  border-top: 1px solid var(--border);
  margin: 0 -12px -12px; padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
  z-index: 20;
}
.w-bottom-tab { flex: 1; text-align: center; padding: 7px 0 9px; font-size: 12px; color: var(--text-secondary); cursor: pointer; }
.w-bottom-tab .bi { font-size: 20px; display: block; line-height: 1.15; }
.w-bottom-tab.active { color: var(--primary); font-weight: 600; }
.w-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.w-quick-card { background: var(--card-bg); border-radius: var(--radius); padding: 18px 10px; text-align: center; box-shadow: var(--shadow); cursor: pointer; }
.w-quick-card:active { transform: scale(0.97); }
.w-quick-card .qi { font-size: 30px; }
.w-quick-card .ql { font-size: 13px; margin-top: 8px; color: var(--text); }
.w-msg-item { background: var(--card-bg); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow); cursor: pointer; }
.w-msg-item .mt { font-size: 14px; font-weight: 600; color: var(--text); }
.w-msg-item .md { font-size: 12px; color: var(--text-secondary); margin-top: 4px; line-height: 1.5; }
.w-msg-item .mt2 { font-size: 11px; color: #b0b8c4; margin-top: 5px; }
.w-msg-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-right: 6px; vertical-align: middle; }
.w-msg-dot.amber { background: var(--warning); }
.w-msg-dot.green { background: var(--success); }

/* 全端口消息中心卡片：已读高亮 / 未读灰色 + 跳转鉴权（v344） */
.w-msg-list { padding-top: 8px; }
.w-msg-card { background: var(--card-bg); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow); cursor: pointer; position: relative; }
.w-msg-card:active { background: #f2f5f9; }
/* 未读：灰色（muted） */
.w-msg-card.is-unread { background: #f4f5f7; border-left: 3px solid #c4ccd6; }
.w-msg-card.is-unread .w-msg-title { color: #8a93a3; }
.w-msg-card.is-unread .w-msg-summary { color: #a8b0bd; }
/* 已读：高亮（primary 描边 + 强调） */
.w-msg-card.is-read { background: var(--card-bg); border-left: 3px solid var(--primary); box-shadow: 0 0 0 1px rgba(22,119,255,.12), var(--shadow); }
.w-msg-card.is-read .w-msg-title { color: var(--text); }
.w-msg-state { font-size: 11px; padding: 1px 7px; border-radius: 10px; flex: 0 0 auto; line-height: 1.5; }
.w-msg-state.unread { background: #eceef1; color: #8a93a3; }
.w-msg-state.read { background: #e6f4ea; color: #2f9e44; }
.w-msg-top { display: flex; align-items: center; gap: 6px; }
.w-msg-icon { font-size: 16px; flex: 0 0 auto; }
.w-msg-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4f; display: inline-block; flex: 0 0 auto; }
.w-msg-title { font-size: 14px; font-weight: 600; color: var(--text); flex: 1; }
.w-msg-time { font-size: 11px; color: #b0b8c4; flex: 0 0 auto; }
.w-msg-site { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }
.w-msg-order { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.w-msg-order-no { color: #1677ff; cursor: pointer; font-weight: 600; }
.w-msg-order-no:hover { text-decoration: none; }
.w-msg-summary { font-size: 12px; color: var(--text-secondary); margin-top: 6px; line-height: 1.5; word-break: break-word; }
.w-gi-badge { position: absolute; top: 8px; right: 10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff4d4f; color: #fff; font-size: 11px; line-height: 18px; text-align: center; display: none; }
.w-grid-item { position: relative; }
.w-profile-top { background: linear-gradient(135deg, var(--primary), #0958d9); color: #fff; border-radius: 12px; padding: 18px; display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.w-profile-top .av { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.w-profile-top .nm { font-size: 17px; font-weight: 600; }
.w-profile-top .rl { font-size: 12px; opacity: .9; margin-top: 3px; }
.w-plist .row { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 14px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.w-plist .row:last-child { border-bottom: none; }
.w-plist .row .ar { color: #c0c8d4; }
.picker-row { padding: 12px 10px; border-bottom: 1px solid var(--border); cursor: pointer; }
.picker-row:active { background: #f5f7fa; }
.picker-row .picker-title { font-size: 14px; font-weight: 500; color: var(--text); }
.picker-row .picker-sub { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }

/* 派工弹窗：师傅忙闲联动提示 */
.dispatch-load-hint { font-size: 12px; color: var(--text-secondary); margin-top: 6px; line-height: 1.6; }
.dispatch-load-hint .load-busy { color: var(--danger); font-weight: 600; }
.dispatch-load-hint .load-free { color: var(--success); font-weight: 600; }
.dispatch-load-hint b { color: var(--text); }

/* ===== 方案C：到场工艺确认弹窗 ===== */
.craft-confirm-tip { margin: 4px 0 14px; font-size: 13px; }
.craft-row {
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.craft-row:last-child { border-bottom: none; }
.craft-row-top { display: flex; align-items: center; gap: 8px; }
.craft-row-no {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.craft-row-top .craft-prod-select { flex: 1; }
.craft-row-del {
  flex: 0 0 auto; width: 28px; height: 28px; border: none; border-radius: 6px;
  background: #fff1f0; color: #d4380d; font-size: 14px; cursor: pointer; flex-shrink: 0;
}
.craft-row-del:hover { background: #ffccc7; }
.craft-row .form-control {
  width: 100%; padding: 9px 10px; font-size: 14px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text);
  margin-top: 8px;
}
.craft-row-sub { display: flex; align-items: center; gap: 8px; }
.craft-row-sub .craft-craft-select { flex: 1; }
.craft-row-sub .craft-craft-custom { margin-top: 0; }
.craft-prod-select, .craft-craft-select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px;
}
.craft-add-row { margin-top: 14px; border: 1px dashed var(--border); }

/* ===== v253：操作区重构样式 ===== */
.operation-card { border: 1px solid var(--border); background: #fff; }
.operation-card .btn-warning { margin-bottom: 0; }
.operation-card .reassign-sub .form-group { margin-bottom: 10px; }
.operation-card .reassign-sub .form-group label { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; display: block; }
.operation-card .reassign-sub select,
.operation-card .reassign-sub input { width: 100%; padding: 8px 10px; font-size: 14px; border: 1px solid var(--border); border-radius: 6px; }
.eta-locked-card { border-left: 4px solid var(--border); background: #fafafa; }
.eta-locked-body { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 13px; padding: 4px 0; }
.eta-lock-icon { font-size: 20px; flex-shrink: 0; }
.dealer-confirm-action { border: 1px solid #ffd591; background: #fffbe6; }


/* ===== 施工工艺库管理 ===== */
.craft-card {
  display: flex; gap: 12px; align-items: center;
  background: var(--card-bg, #fff); border-radius: 12px; padding: 12px;
  margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.craft-poster {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: 8px; overflow: hidden;
  background: #f0f0f0; display: flex; align-items: center; justify-content: center;
}
.craft-poster img { width: 100%; height: 100%; object-fit: cover; }
.craft-info { flex: 1; min-width: 0; }
.craft-name { font-weight: 600; font-size: 15px; }
.craft-meta { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.craft-steps { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.craft-ops { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; }
.craft-step-row { display: flex; gap: 8px; align-items: center; }
.craft-step-row .craft-step-input { flex: 1; }

/* ===== 师傅端首页 v3（与其他端口格式对齐） ===== */
.section-title-left {
  font-size: 16px; font-weight: 700; color: var(--text, #1f2937);
  text-align: left; padding: 4px 16px; margin: 18px 0 10px;
}
.w-home-wrap { padding-bottom: 24px; }
.w-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 16px; }
.w-grid-item {
  background: var(--card-bg, #fff); border-radius: 14px; padding: 14px 6px;
  text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.05); cursor: pointer;
}
.w-gi-icon { font-size: 26px; margin-bottom: 6px; }
.w-gi-label { font-size: 14px; font-weight: 600; color: var(--text, #1f2937); }
.w-gi-sub { font-size: 11px; color: var(--text-secondary, #6b7280); margin-top: 3px; line-height: 1.3; }
.w-todo-list { padding: 0 16px; }
.w-todo-item {
  display: flex; align-items: center; background: var(--card-bg, #fff);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05); cursor: pointer;
}
.w-td-dot { width: 8px; height: 8px; border-radius: 50%; margin-right: 12px; flex-shrink: 0; }
.w-td-dot.blue { background: var(--primary, #4e6ef2); }
.w-td-dot.green { background: var(--success, #22c55e); }
.w-td-name { flex: 1; font-size: 14px; color: var(--text, #1f2937); }
.w-td-count { font-size: 16px; font-weight: 700; color: var(--primary, #4e6ef2); margin-right: 6px; }
.w-td-loading { font-size: 13px; color: var(--text-secondary, #6b7280); }
.w-account-bar { margin: 18px 16px 0; }
.w-account-btn {
  width: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--danger, #ef4444);
  background: #fff; color: var(--danger, #ef4444); font-size: 16px; font-weight: 600;
  text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.05); cursor: pointer;
}
.w-sub-header { display: flex; align-items: center; gap: 8px; padding: 12px 16px 6px; }
.w-sub-title { font-size: 17px; font-weight: 700; color: var(--text, #1f2937); }
.w-back-btn {
  border: none; background: transparent; color: var(--primary, #4e6ef2);
  font-size: 15px; cursor: pointer; padding: 4px 2px; font-weight: 600;
}
.w-todo-row {
  display: flex; align-items: center; background: var(--card-bg, #fff);
  border-radius: 12px; padding: 13px 14px; margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05); cursor: pointer;
}
.w-todo-row .w-td-count { color: var(--text, #1f2937); }
.w-td-arrow { color: var(--text-secondary, #6b7280); font-size: 18px; margin-left: 4px; }

/* ===== 工艺素材库 UI ===== */
.mat-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.mat-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.mat-filter-btn { border: 1px solid var(--border, #e5e7eb); background: #fff; color: var(--text-secondary, #6b7280); border-radius: 999px; padding: 5px 13px; font-size: 13px; cursor: pointer; }
.mat-filter-btn.active { background: var(--primary, #4e6ef2); color: #fff; border-color: var(--primary, #4e6ef2); }
.mat-count { font-size: 12px; color: var(--text-secondary, #6b7280); margin-bottom: 10px; }
.mat-card { display: flex; align-items: center; gap: 10px; background: var(--card-bg, #fff); border: 1px solid var(--border, #eef1f5); border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.mat-card-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.mat-poster { width: 56px; height: 56px; border-radius: 8px; flex: 0 0 56px; overflow: hidden; background: #f3f4f6; display: flex; align-items: center; justify-content: center; }
.mat-poster img { width: 100%; height: 100%; object-fit: cover; }
.mat-steps { font-size: 12px; color: var(--text-secondary, #6b7280); margin-top: 2px; }
.mat-info { min-width: 0; flex: 1; }
.mat-name { font-size: 14px; font-weight: 600; color: var(--text, #111827); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mat-meta { display: flex; gap: 6px; margin-top: 4px; align-items: center; }
.mat-card-script { flex: 1; font-size: 13px; color: var(--text-secondary, #374151); background: var(--bg, #f8fafc); border-radius: 8px; padding: 8px 10px; max-height: 56px; overflow: hidden; }
.mat-ops { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.mat-badge-type { background: #eef2ff; color: #3730a3; border: 1px solid #e0e7ff; }
.mat-badge-on { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.mat-badge-off { background: #f3f4f6; color: #9ca3af; border: 1px solid #e5e7eb; }
.mat-select-item { display: flex; align-items: center; gap: 10px; background: var(--card-bg, #fff); border: 1px solid var(--border, #eef1f5); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.mat-select-thumb { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; flex: 0 0 44px; background: #f3f4f6; }
.mat-select-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mat-select-info { display: flex; flex-direction: column; min-width: 0; }
.mat-select-name { font-size: 14px; font-weight: 600; color: var(--text, #111827); }
.mat-select-type { font-size: 12px; color: var(--text-secondary, #6b7280); }
.mat-sec-title { font-size: 14px; font-weight: 600; color: var(--text, #111827); margin: 6px 0 8px; }
.mat-poster-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mat-poster-grid img { width: 100%; border-radius: 10px; border: 1px solid var(--border, #eef1f5); background: #f3f4f6; }
.mat-poster-sm { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; flex: 0 0 56px; background: #f3f4f6; }
.mat-poster-sm img { width: 100%; height: 100%; object-fit: cover; }
.mat-bind-card { display: flex; align-items: center; gap: 10px; background: var(--card-bg, #fff); border: 1px solid var(--border, #eef1f5); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.mat-bind-info { min-width: 0; }
.mat-script-card { background: var(--bg, #f8fafc); border: 1px solid var(--border, #eef1f5); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font-size: 13px; color: #374151; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.mat-thumbs { display: flex; gap: 6px; flex: 0 0 auto; }
.mat-thumb { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: #f3f4f6; display: flex; align-items: center; justify-content: center; }
.mat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mat-noimg { font-size: 11px; color: #9ca3af; text-align: center; line-height: 1.2; padding: 4px; }
.mat-bind-list { display: flex; flex-direction: column; gap: 10px; }
.mat-bind-card-v2 { background: var(--card-bg, #fff); border: 1px solid var(--border, #eef1f5); border-radius: 12px; padding: 12px; }
.mat-bind-header { font-size: 14px; font-weight: 600; color: var(--text, #111827); margin-bottom: 8px; }
.mat-bind-images { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 10px; }
.mat-bind-images img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; border: 1px solid var(--border, #eef1f5); background: #f3f4f6; cursor: pointer; }

/* ===== v291 工艺与产品（子 Tab / 标签 / 三步选择）===== */
.cpm-tabs {
  display: flex; gap: 6px; background: var(--bg, #f8fafc);
  border: 1px solid var(--border, #eef1f5); border-radius: 10px; padding: 4px;
}
.cpm-tab {
  flex: 1; border: none; background: transparent; color: var(--text-secondary, #6b7280);
  font-size: 13px; padding: 8px 6px; border-radius: 8px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cpm-tab.active { background: var(--primary, #4e6ef2); color: #fff; font-weight: 600; }
.mat-tag {
  display: inline-block; font-size: 11px; line-height: 1.5; padding: 1px 7px;
  border-radius: 999px; background: #eef2ff; color: #3730a3; border: 1px solid #e0e7ff;
}
/* 三步选择：产品类型 + 产品名称 同行，窄屏自动换行 */
.craft-row-top { flex-wrap: wrap; }
.craft-row-top .craft-ptype-select { flex: 1 1 130px; min-width: 130px; }
.craft-row-top .craft-prod-select { flex: 1 1 130px; min-width: 130px; }
.craft-ptype-select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px;
}
.mat-placeholder-sm { aspect-ratio: 1/1; border-radius: 10px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #9ca3af; }
.mat-bind-script-label { font-size: 12px; color: var(--text-secondary, #6b7280); margin-bottom: 6px; }
.mat-script-edit textarea { font-size: 13px; }
.selected-tag { display: inline-flex; align-items: center; gap: 4px; background: #eef2ff; color: #3730a3; border-radius: 999px; padding: 4px 10px; font-size: 12px; margin: 0 6px 6px 0; }
.selected-tag button { border: none; background: transparent; color: #3730a3; cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }

/* ===== 基层检查项多图预览弹窗 ===== */
.review-photo-gallery { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.review-photo-gallery .rpg-close { position: absolute; top: 8px; right: 12px; font-size: 24px; cursor: pointer; z-index: 1002; padding: 10px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.review-photo-gallery .rpg-main { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; touch-action: pan-y; }
.review-photo-gallery .rpg-img { max-width: 95vw; max-height: 72vh; object-fit: contain; transition: transform 0.2s ease; cursor: zoom-in; }
.review-photo-gallery .rpg-status { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; pointer-events: none; }
.review-photo-gallery .rpg-loading { font-size: 14px; color: #fff; background: rgba(0,0,0,0.5); padding: 8px 14px; border-radius: 20px; }
.review-photo-gallery .rpg-error { text-align: center; color: #fff; }
.review-photo-gallery .rpg-error-icon { font-size: 32px; margin-bottom: 8px; }
.review-photo-gallery .rpg-close-btn { margin-top: 14px; padding: 6px 16px; background: #fff; color: #222; border: none; border-radius: 6px; font-size: 13px; cursor: pointer; pointer-events: auto; }
.review-photo-gallery.rpg-loading-only { display: flex; align-items: center; justify-content: center; }
.review-photo-gallery .rpg-counter { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); font-size: 13px; background: rgba(0,0,0,0.45); padding: 4px 12px; border-radius: 12px; color: #fff; }
.review-photo-gallery .rpg-arrow { position: absolute; top: 50%; transform: translateY(-50%); font-size: 32px; color: #fff; cursor: pointer; z-index: 1001; padding: 8px 14px; background: rgba(0,0,0,0.35); border-radius: 50%; line-height: 1; user-select: none; visibility: hidden; }
.review-photo-gallery .rpg-arrow-left { left: 10px; }
.review-photo-gallery .rpg-arrow-right { right: 10px; }
.review-photo-gallery .rpg-thumbbar { height: 84px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; overflow-x: auto; background: rgba(0,0,0,0.55); -webkit-overflow-scrolling: touch; }
.review-photo-gallery .rpg-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; cursor: pointer; flex-shrink: 0; background: #333; border: 2px solid transparent; }
.review-photo-gallery .rpg-thumb.active { border-color: #fff; }
@media (max-width: 380px) {
  .review-photo-gallery .rpg-arrow { padding: 6px 10px; font-size: 26px; }
  .review-photo-gallery .rpg-thumb { width: 52px; height: 52px; }
}

/* ===== v288 工序模板管理（施工督查 / 管理员）===== */
.ntpl-summary { background: var(--card-bg, #fff); border: 1px solid var(--border, #eef1f5); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--text, #111827); margin-bottom: 12px; }
.ntpl-summary-warn { margin-top: 6px; font-size: 12px; color: #cf1322; }
.ntpl-stage { margin-bottom: 16px; }
.ntpl-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ntpl-stage-title { font-size: 15px; font-weight: 700; color: var(--text, #111827); }
.ntpl-stage-count { font-size: 12px; color: var(--text-secondary, #6b7280); background: var(--bg, #f8fafc); border-radius: 999px; padding: 2px 10px; }
.ntpl-stage-desc { font-size: 12px; color: var(--text-secondary, #6b7280); margin: 4px 0 8px; }
.ntpl-row { background: var(--card-bg, #fff); border: 1px solid var(--border, #eef1f5); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.ntpl-row-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ntpl-idx { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: var(--primary, #4e6ef2); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.ntpl-name { font-size: 14px; font-weight: 600; color: var(--text, #111827); }
.ntpl-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.ntpl-badge { font-size: 11px; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.ntpl-badge-fix { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }
.ntpl-badge-flex { background: #fff7e6; color: #d46b08; border: 1px solid #ffd591; }
.ntpl-badge-fixed { background: #e6f4ff; color: #0958d9; border: 1px solid #91caff; }
.ntpl-badge-opt { background: #f6ffed; color: #389e0d; border: 1px solid #b7eb8f; }
.ntpl-badge-none { background: #fafafa; color: #bfbfbf; border: 1px solid #f0f0f0; }
.ntpl-hint { font-size: 12px; color: var(--text-secondary, #6b7280); background: var(--bg, #f8fafc); border-radius: 8px; padding: 8px 10px; margin-top: 8px; }
.ntpl-poster { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; }
.ntpl-poster-thumb { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 8px; overflow: hidden; background: #f3f4f6; display: flex; align-items: center; justify-content: center; }
.ntpl-poster-thumb img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.ntpl-noimg { font-size: 11px; color: #9ca3af; text-align: center; padding: 0 4px; }
.ntpl-poster-body { flex: 1; min-width: 0; }
.ntpl-poster-meta { font-size: 12px; color: var(--text-secondary, #6b7280); word-break: break-all; }
.ntpl-poster-missing { color: #cf1322; }
.ntpl-poster-ops { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* ===== v288 施工工序三阶段 + 灵活工序菜单 + 节点产品海报 ===== */
.vt-stage { margin-bottom: 14px; }
.vt-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; background: var(--bg, #f8fafc); border-radius: 8px; }
.vt-stage-title { font-size: 14px; font-weight: 700; color: var(--text, #111827); }
.vt-stage-progress { font-size: 12px; color: var(--text-secondary, #6b7280); }
/* v408：启用开关（下沉到每道工序卡片头部）；v503：阶段顶部另有「选用工序」面板，两者共用 .vt-flex-chip */
.vt-flex-chip { border: 1px solid #d9d9d9; background: #fff; color: #595959; border-radius: 999px; padding: 2px 9px; font-size: 11px; line-height: 1.5; white-space: nowrap; cursor: pointer; }
.vt-flex-chip.on { background: #e6f4ff; border-color: #91caff; color: #0958d9; font-weight: 600; }
.vt-flex-chip.readonly { cursor: default; }
.vt-flex-chip:disabled { opacity: 0.65; cursor: not-allowed; }
/* v503：恢复「选用工序」面板（施工中阶段顶部集中勾选；v408 曾删除，原「未启用工序」折叠分组已移除）
   v504：标题副文案改红色小字，删除原提示语行（.vt-pick-hint 已移除）；面板仅施工人员可操作时渲染 */
.vt-pick-menu { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--border, #e5e7eb); border-radius: 10px; background: #fafafa; }
.vt-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vt-pick-title { font-size: 13.5px; font-weight: 700; color: var(--text, #111827); }
.vt-pick-sub { margin-left: 2px; font-size: 11px; font-weight: 400; color: #cf1322; }
.vt-pick-count { font-size: 12px; color: var(--text-secondary, #6b7280); white-space: nowrap; }
.vt-pick-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vt-poster-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--text-secondary, #6b7280); margin-top: 6px; }
.vt-poster-warn { color: #cf1322; }
.vt-poster-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.vt-poster-tag { background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d; border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.vt-poster-empty { color: #d46b08; }
/* v497：节点产品/工艺海报改为「一行三张」等宽网格，并让海报按原比例完整显示（不再裁成方形小块） */
.vt-poster-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; align-items: start; }
.vt-poster-img-wrap { border-radius: 8px; overflow: hidden; border: 1px solid #e5e7eb; background: #f9fafb; cursor: pointer; }
.vt-poster-img-wrap img { width: 100%; height: auto; display: block; }

/* ===== v292 工艺管理只展示工艺海报（单图放大，去掉产品海报位）===== */
.mat-thumb:only-child { width: 64px; height: 64px; }
.mat-thumb:only-child .mat-noimg { font-size: 12px; }

/* ===== v303 工序「水印相机」拍照：连拍缩略图条 ===== */
.proccam-tip { font-size: 12px; color: #6b7280; margin: 0 0 8px; line-height: 1.5; }
.proccam-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.proccam-thumb { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid #eef1f5; }
.proccam-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proccam-del { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border: none; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; line-height: 18px; padding: 0; cursor: pointer; }
.proccam-del:hover { background: rgba(220,38,38,.85); }

/* v304：工序拍照水印相机 - 施工区域选择器 */
.proccam-area { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.proccam-area-opt {
  flex: 0 1 auto;
  padding: 6px 11px;
  border: 1px solid #d9dee5;
  background: #f7f9fc;
  color: #374151;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: all .15s;
}
.proccam-area-opt:hover { border-color: #3a7bd5; }
.proccam-area-opt.selected {
  background: #3a7bd5;
  border-color: #3a7bd5;
  color: #fff;
  font-weight: 600;
}
.proccam-notes {
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #d9dee5;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

/* ========== 防伪查询记录（按产品上传防伪码查询结果截图） ========== */
.af-block {
  margin-top: 8px;
  padding: 10px 12px;
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
}
.af-title {
  font-size: 13px;
  font-weight: 600;
  color: #2b3a4d;
  margin-bottom: 8px;
}
.af-hint {
  font-weight: 400;
  color: #8a97a8;
  font-size: 11px;
  margin-left: 4px;
}
.af-row {
  padding: 8px 0;
  border-top: 1px dashed #e2e8f0;
}
.af-row:first-of-type { border-top: none; }
.af-name {
  font-size: 13px;
  color: #34465c;
  margin-bottom: 6px;
}
.af-imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.af-img-wrap {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dde3ec;
  cursor: pointer;
  background: #fff;
}
.af-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.af-empty {
  font-size: 12px;
  color: #9aa6b5;
  margin-bottom: 6px;
}
.af-tip {
  font-size: 12px;
  color: #8a97a8;
  margin: 0 0 10px;
  line-height: 1.5;
}
.af-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.af-prev-item {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #dde3ec;
}
.af-prev-item img { width: 100%; height: 100%; object-fit: cover; }
#antiFakeFile { width: 100%; margin-top: 6px; }

/* ===== v327：现场打样(node 8) 双签会签 UI ===== */
.cosign-block {
  margin-top: 10px;
  padding: 16px 14px; /* v493：上下内边距加大，内容不贴边 */
  background: #f7faff;
  border: 1px solid #d6e4ff;
  border-radius: 10px;
}
.cosign-title {
  font-size: 12px;
  font-weight: 600;
  color: #1a6fc4;
  margin-bottom: 8px;
}
.cosign-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cosign-chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 14px;
  border: 1px solid #d0d7e2;
}
.cosign-chip.ok { background: #e7f8ee; color: #1a9c54; border-color: #b6e6c8; }
.cosign-chip.wait { background: #fff6e6; color: #b9770b; border-color: #f0d9a8; }
.cosign-banner {
  margin-top: 10px; /* v493：与下方红色小字拉开间距 */
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 8px;
}
.cosign-banner.pending { background: #fff4e5; color: #b9770b; border: 1px solid #f3d9a8; }
.cosign-banner.done { background: #e7f8ee; color: #1a9c54; border-color: #b6e6c8; }
/* v493：红框内「红色小字」提示 —— 无背景无边框，字号比黄色提示框小 2 号，左对齐 */
.cosign-tip-red {
  margin: 12px 0 0;
  font-size: 10px;
  line-height: 1.7;
  color: #cf1322;
  font-weight: 500;
  text-align: left;
}
/* v493：蓝色主按钮所在行 —— 与上方红字留足空白，移动端点击不拥挤 */
.cosign-action-row {
  margin-top: 14px;
  display: flex;
  justify-content: flex-start;
}
/* v334：会签卡片待签字高亮 + 跳转后脉冲高亮 */
.cosign-block-pending {
  background: #fff2f0 !important; border-color: #ff4d4f !important;
  box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.08) !important;
}
.cosign-pulse { animation: cosignPulse 1.2s ease-in-out 2; }
@keyframes cosignPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.25); }
  50% { box-shadow: 0 0 0 10px rgba(255, 77, 79, 0); }
}
/* v519：从「今日待办」直达处理区时的定位高亮（蓝色脉冲，2.6s 后自动褪去） */
.todo-anchor-pulse {
  animation: todoAnchorPulse 1.3s ease-in-out 2;
  border-radius: 10px;
}
@keyframes todoAnchorPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
  50% { box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.28); }
}
.node-cosign-dealer {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
/* v493：纵向堆叠变体（黄框提示 → 红色小字 → 签字按钮），用于「到场施工」折叠内的节点卡 */
.node-cosign-dealer-stack {
  flex-direction: column;
  align-items: stretch;
}
.node-cosign-dealer-stack .cosign-banner { margin-top: 0; }
.node-cosign-dealer-stack .btn-mini { align-self: flex-start; margin-top: 14px; }
/* 签字画板弹窗 */
.cosign-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.cosign-modal {
  width: 92%;
  max-width: 520px;
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.cosign-modal-title { font-size: 16px; font-weight: 700; color: #1f2d3d; }
.cosign-modal-hint { font-size: 12px; color: #8a94a6; margin: 6px 0 10px; }
.cosign-canvas {
  width: 100%;
  height: 180px;
  background: #fbfcfe;
  border: 1px dashed #c3ccda;
  border-radius: 10px;
  touch-action: none;
}
.cosign-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
/* v484：向谁收款，就以谁为确认主体 —— 打样签字 / 完工验收前「已与业主确认」提示，避免后续纠纷 */
.owner-remind {
  width: 100%;
  box-sizing: border-box;
  margin: 10px 0;
  padding: 9px 12px;
  background: #fff7e6;
  border: 1px solid #ffd591;
  border-left: 4px solid #fa8c16;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: #874d00;
}

/* v328：验收反馈单核算方式 / 原因 / 门店协同 */
#fb-accept-section .form-hint {
  font-weight: 600;
  color: var(--info, #2b6cb0);
}
#fb-reason-text {
  width: 100%;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid #d6dce6;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
}
#fb-reason-tag {
  width: 100%;
  padding: 8px;
  border: 1px solid #d6dce6;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  box-sizing: border-box;
}
#fb-wh-total {
  color: var(--primary, #1677ff);
}

/* ===== v337：提交验收·反馈单 新表单样式 ===== */
.fb-meta { color: var(--text-secondary); font-size: 12px; margin: 0 0 12px; }

/* v459：反馈单里每个板块已经有一层 .ant-collapse 外框 —— 去掉 .fb-module 与内层 .pm-panel 的框，
   消除「框套框」的杂乱感，并把这些内边距还给内容（窄屏下能多出约 70px 可用宽度） */
.fb-module {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 8px;
  box-shadow: none;
}
.fb-module .pm-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 14px;
}
.fb-module .pm-panel:last-child { margin-bottom: 0; }
.fb-module .pm-panel-head { padding-bottom: 8px; margin-bottom: 10px; }
/* v459：反馈单弹层与弹窗——手机窄屏下把外层留白压到最小、弹窗放宽，尽量吃满屏幕宽度 */
.fb-overlay { padding: 10px; }
.fb-modal { padding: 16px; max-width: 520px; max-height: 92vh; overflow-y: auto; }
.fb-module-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.fb-module-title { font-size: 14px; font-weight: 600; color: var(--text); }

/* v462：反馈单上下分区 —— 上面「✏️ 填写」区（可折叠面板），下面「📋 施工结果」区（灰底容器 + 白色只读子卡片），
   用区块标题 + 底色/边框差异做明显的层级区分 */
/* v515：「📋 施工结果」区已从反馈单弹窗移出（→ 页面主区域施工节点板块），以下容器样式改由页面汇总卡复用 */
.fb-zone-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  letter-spacing: .5px; margin: 0 0 8px;
}
.fb-result-zone {
  margin-top: 14px;
  background: #f7f8fa;
  border: 1px solid #e5e6eb;
  border-radius: 10px;
  padding: 10px;
}
.fb-result-zone .fb-zone-head { color: var(--text); margin: 2px 2px 8px; }
.fb-result-item {
  background: #fff;
  border: 1px solid #eceef1;
  border-radius: 8px;
  padding: 10px 10px 8px;
  margin-bottom: 8px;
}
.fb-result-item:last-child { margin-bottom: 0; }
/* v515：页面主区域「施工结果汇总」卡容器（沿用原结果区的灰底 + 白色子卡片观感） */
.fb-sum-zone {
  background: #f7f8fa;
  border: 1px solid #e5e6eb;
  border-radius: 10px;
  padding: 10px;
}
.fb-sum-item {
  background: #fff;
  border: 1px solid #eceef1;
  border-radius: 8px;
  padding: 10px 10px 8px;
  margin-bottom: 8px;
}
.fb-sum-item:last-child { margin-bottom: 0; }
.fb-sum-title {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 8px;
}
.fb-sum-tip { font-size: 11.5px; font-weight: 400; color: var(--text-secondary); }
/* v515：弹窗内「① 录入产品」面板中的已录清单小标题 */
.fb-sub-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  margin: 14px 0 8px; padding-top: 10px; border-top: 1px dashed var(--border);
}
/* v515：弹窗内「② 确认协同与用料」的填写进度提示（只答「填没填」，不含结果数据） */
.fb-fill-progress {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
  margin-top: 10px; font-size: 12px; color: var(--text-secondary);
}
.fb-fill-progress .fb-prog-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); margin-right: 4px; vertical-align: middle;
}
.fb-fill-progress .fb-prog-dot.off { background: #d9d9d9; }
.fb-result-title {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 8px;
}
/* v456：反馈单「下一步」引导弹窗（协同施工 → 核实工时 → 登记用料）
   v460：弹窗改为完整录入，工时/用料直接在弹窗内编辑，故需要最大高度 + 滚动 */
.fb-wiz-box { max-width: 380px; max-height: 86vh; overflow-y: auto; }
.fb-wiz-steps { display: flex; gap: 6px; margin: 2px 0 14px; flex-wrap: wrap; }
.fb-wiz-dot {
  font-size: 11.5px; color: var(--text-secondary); background: var(--bg);
  border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.fb-wiz-dot.on { color: #fff; background: var(--primary); font-weight: 500; }
.fb-wiz-q { font-size: 15px; font-weight: 600; margin: 0 0 6px; color: var(--text); }
.fb-wiz-hint { font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; margin: 0 0 14px; }

/* v460：弹窗内的工时编辑区 */
.fb-wiz-list { margin: 8px 0 10px; }
.fb-wiz-list .wh-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.fb-wiz-list .wh-row input[type="text"],
.fb-wiz-list .wh-row input[type="number"] {
  height: 34px; box-sizing: border-box; padding: 0 8px;
  border: 1px solid var(--border); border-radius: 6px; font-size: 13px; min-width: 0;
}
.fb-wiz-list .wh-row input[type="text"] { flex: 1 1 auto; }
.fb-wiz-list .wh-row input[type="number"] { flex: 0 0 78px; }
.fb-wiz-list .wh-unit { font-size: 12px; color: var(--text-secondary); flex: 0 0 auto; }
.fb-wiz-total { font-size: 13px; color: var(--text-secondary); text-align: right; margin: 0 0 10px; }
.fb-wiz-total b { color: var(--primary); font-size: 15px; }
/* v460：弹窗内的用料录入行（v461：第一行 系列+产品 两个下拉，第二行 数量+单位） */
.fb-wiz-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.fb-wiz-row select, .fb-wiz-row input[type="number"] {
  height: 36px; box-sizing: border-box; padding: 0 8px;
  border: 1px solid var(--border); border-radius: 6px; font-size: 13px; min-width: 0;
}
.fb-wiz-row select { flex: 1 1 0; }
.fb-wiz-row input[type="number"] { flex: 1 1 0; width: 0; }

/* v460：反馈单「已选清单」下方的门店协同只读行 */
.fb-coop-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 10px; margin-top: 10px;
  background: #f7fafc; border: 1px solid var(--border); border-radius: 8px;
}
.fb-coop-label { font-size: 13px; color: var(--text-secondary); }
.fb-coop-value { font-size: 13px; font-weight: 600; color: var(--text); text-align: right; }
.fb-coop-value.pending { color: var(--text-secondary); font-weight: 400; }
.required { color: var(--danger); margin-left: 2px; }

/* 折叠面板（Ant Design 风格） */
.ant-collapse { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ant-collapse-header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; background: #fafafa; user-select: none; flex-wrap: wrap; }
.ant-collapse-arrow { display: inline-block; color: var(--text-secondary); font-size: 12px; transition: transform .2s; }
.ant-collapse-body { padding: 12px; }

/* ⓘ 提示气泡 */
.tip-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--text-secondary); color: #fff; font-size: 11px; line-height: 1;
  cursor: help; position: relative; flex: 0 0 auto;
}
.tip-icon[data-tip]:hover::after,
.tip-icon[data-tip]:focus::after,
.tip-icon[data-tip]:active::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: 135%; transform: translateX(-50%);
  background: #333; color: #fff; padding: 6px 10px; border-radius: 6px;
  font-size: 12px; line-height: 1.5; white-space: normal;
  width: max-content; max-width: 240px; z-index: 60; box-shadow: var(--shadow-lg);
}

/* 单行明细行（v441：表格式，去卡片，虚线分割；错误态才红描边+浅红底；行高压到 ~28px） */
.fb-product-row, .fb-custom-row, .fb-material-row {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  background: transparent; border: none; border-radius: 0;
  padding: 4px 0; margin-bottom: 0;
  border-bottom: 1px dashed var(--border);
}
.fb-product-row:last-child, .fb-custom-row:last-child, .fb-material-row:last-child { border-bottom: none; }
.fb-product-row.row-error, .fb-custom-row.row-error, .fb-material-row.row-error { background: #fff1f0; box-shadow: inset 0 0 0 1px #ffccc7; border-bottom-color: #ffccc7; }
.fb-product-row > select, .fb-product-row > input,
.fb-custom-row > select, .fb-custom-row > input,
.fb-material-row > select, .fb-material-row > input {
  height: 28px; box-sizing: border-box; min-width: 0; font-size: 13px;
}
/* 栅格比例统一：主下拉 1.2 / 次下拉 1.2 / 数字 0.7 */
.fb-cat, .fb-craft, .fb-ctype, .fb-cmat, .fb-cspec, .fb-mat-product { flex: 1.2; }
.fb-area, .fb-carea, .fb-mat-qty { flex: 0.7; }
/* v455：产品行新增「超高/异形顶面积」第二个面积录入，一行放不下 4 个控件 → 自动折成两行：
   第一行 类别 + 工艺 + ✕；第二行 常规面积 + 超高·异形顶面积。
   （只作用于 .fb-product-row，特殊定制项 / 用料记录行不受影响） */
.fb-product-row .fb-cat, .fb-product-row .fb-craft { flex: 1 1 40%; }
.fb-product-row .fb-area, .fb-product-row .fb-area-high { flex: 1 1 40%; }
.fb-mat-unit { color: var(--text-secondary); font-size: 13px; flex: 0 0 auto; min-width: 18px; }
/* 行尾 24px ✕ icon（不占栅格） */
.btn-mini.fb-row-del { flex: 0 0 24px; width: 24px; height: 24px; padding: 0; font-size: 14px; line-height: 1; border: none; border-radius: 6px; background: transparent; color: var(--text-secondary); box-shadow: none; }
.btn-mini.fb-row-del:active { background: #f0f0f0; color: var(--danger); }
.fb-row-err, .inline-error { color: #ff4d4f; font-size: 12px; margin-top: 2px; line-height: 1.5; flex-basis: 100%; }

/* 核算方式：分段选择器（v441：压到 32px，灰轨道 + 白选中块） */
.fb-seg { display: flex; background: #ECECEC; border-radius: 16px; padding: 2px; height: 32px; box-sizing: border-box; }
.fb-seg-item { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 13px; color: #666; border-radius: 14px; padding: 0; cursor: pointer; min-width: 0; transition: background .15s, color .15s; }
.fb-seg-item input { display: none; }
.fb-seg-item.active { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* v474：实际收费·收费方式胶囊单选（不铺满整行，居中排列；选中绿底白字，与「确认实际收费」按钮同色系） */
.charge-method-caps { display: flex; gap: 10px; padding: 2px 0; }
.charge-method-caps .charge-cap-item { flex: 1; height: 44px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; text-align: center; margin-bottom: 0; font-size: 14px; color: #666; background: #fff; border: 1px solid #E5E6EB; border-radius: 10px; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.charge-cap-item:hover { background: #f2f3f5; }
.charge-cap-item input { display: none; }
.charge-cap-item.active { background: #1677ff; color: #fff; font-weight: 600; border-color: #1677ff; box-shadow: 0 2px 6px rgba(22, 119, 255, .35); }

/* v474：协同施工备注（仅反馈单确认店内协同施工时显示，非必填提示） */
.charge-coop-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0; padding: 16px 20px; background: #fff7e6; border: 1px solid #ffd591; border-radius: 8px; color: #874d00; font-size: 14px; line-height: 1.5; text-align: center; }

/* 工时折叠头部合计摘要 */
.fb-wh-sum { margin-left: auto; font-size: 12px; color: var(--text-secondary); font-weight: 400; flex: 0 0 auto; }
.fb-wh-sum #fb-wh-total { color: var(--primary, #1677ff); font-weight: 500; }

/* 模块标题栏：聚合摘要 + 添加入口（只留标题栏，去掉底部虚线按钮） */
.fb-head-sum { margin-left: auto; font-size: 12px; color: var(--text-secondary); font-weight: 400; flex: 0 0 auto; }
.fb-head-add { margin-left: 8px; color: var(--primary, #1677ff); font-size: 12px; cursor: pointer; font-weight: 400; flex: 0 0 auto; }
.fb-head-add:active { opacity: .6; }

/* 工时 */
.wh-row { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; flex-wrap: wrap; }
.wh-row input { height: 28px; box-sizing: border-box; }
.wh-unit { color: var(--text-secondary); font-size: 12px; flex: 0 0 auto; }
.btn-mini.wh-del { flex: 0 0 24px; width: 24px; height: 24px; padding: 0; font-size: 14px; line-height: 1; border: none; border-radius: 6px; background: transparent; color: var(--text-secondary); box-shadow: none; }
.btn-mini.wh-del:active { background: #f0f0f0; color: var(--danger); }
.fb-wh-total-line { margin-top: 8px; font-weight: 600; font-size: 13px; }

/* 用料记录行（v441：单行表格式，与上方模块栅格对齐） */
.fb-mat-product { min-width: 120px; }
.fb-mat-qty { width: auto; }

/* 底部按钮 */
.fb-footer { display: flex; gap: 10px; margin-top: 12px; }
.fb-footer .btn { margin-top: 0; flex: 1; }
.btn-ghost { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:active { background: #f5f5f5; }

/* ===== 人员管理：降低信息密度，姓名/账号层级清晰 ===== */
.user-name { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.35; }
.user-sub { font-size: 12px; color: var(--text-secondary); line-height: 1.45; }
.user-site-cell { vertical-align: middle; }
.user-table td { padding-top: 10px; padding-bottom: 10px; vertical-align: middle; }

/* 紧凑型开关（表格内「打卡关联工地」） */
.form-switch-compact { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.form-switch-compact > input[type=checkbox] { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.fsc-track { position: relative; display: inline-block; width: 38px; height: 22px; background: #d0d5dd; border-radius: 11px; transition: background .2s; flex: none; }
.fsc-thumb { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.form-switch-compact > input:checked + .fsc-track { background: var(--primary, #1677ff); }
.form-switch-compact > input:checked + .fsc-track .fsc-thumb { transform: translateX(16px); }
.fsc-label { font-size: 12px; color: var(--text); white-space: nowrap; }

/* 打卡弹窗：免关联工地提示 */
.checkin-field-nosite .checkin-nosite-tip { font-size: 12px; color: var(--primary, #1677ff); background: var(--primary-light, #e6f4ff); border: 1px solid #bae0ff; border-radius: 8px; padding: 8px 10px; }

/* v362：人员管理列表——停用账号行弱化 */
.user-row-inactive { opacity: 0.72; background: #fafafa; }
.user-row-inactive .user-name { color: var(--text-secondary); }
.user-row-inactive .badge { opacity: 0.8; }

/* ===== v373：全站页面内容区与表头左右对齐（统一通栏） =====
   规则：页面级内容容器的左右内边距归零，使内容卡片与蓝色表头等宽；
   容器内的「裸元素」（无背景的标题 / 进度文字）单独补回 16px 左右内边距，
   保证其文字仍与表头文字（header padding 16px）落在同一条竖直线上。 */
.stats-bar,
.action-bar,
.order-list,
.form-container,
.dashboard-content,
.home-content {
  padding-left: 0;
  padding-right: 0;
}

.home-section-title {
  margin-left: 0;
  margin-right: 0;
  padding-left: 16px;
  padding-right: 16px;
}
/* v382：.create-stepbar 已改为白底横条 Tab，需要通栏，故不再补 16px（不列入此处） */
.create-progress {
  padding-left: 16px;
  padding-right: 16px;
}

/* 分段控件是圆角浮层，贴边会破坏轮廓，因此保留 16px 外边距，与表头文字同一条边距线 */
.supervisor-tabs {
  margin-left: 16px;
  margin-right: 16px;
}

/* v373 补充：容器内无背景的标题 / 按钮条同样补 16px，与表头文字同一条边距线 */
.home-account-bar,
.dash-group-title,
.dash-section-title {
  padding-left: 16px;
  padding-right: 16px;
}

/* ===== v374：师傅端 4 Tab 壳补齐（与表头对齐） =====
   师傅端首页的功能网格 / 待办列表原为 padding:0 16px，归零后卡片与表头等宽；
   底部导航原本用负 margin 抵消 .home-content 的 12px 内边距，该内边距已归零，故同步取消左右负 margin。 */
.w-grid,
.w-todo-list {
  padding-left: 0;
  padding-right: 0;
}
.w-bottom-nav {
  margin-left: 0;
  margin-right: 0;
}

/* ===== v386：审单员统一操作面板（状态提示 + 取消施工 融合为一个协调面板） ===== */
.op-status-row { display: flex; align-items: flex-start; gap: 10px; }
.op-status-icon {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: #f6ffed; color: #389e0d; border: 1px solid #b7eb8f;
  font-size: 13px; font-weight: 700; line-height: 20px; text-align: center;
}
.op-status-body { flex: 1; min-width: 0; }
.op-status-title {
  font-size: 14px; font-weight: 500; color: var(--text);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.5;
}
.op-status-sub { font-size: 12px; color: var(--text-secondary); margin-top: 4px; line-height: 1.55; }
.op-status-divider { height: 1px; background: var(--border); margin: 12px 0; }

/* 「待复核」状态徽章补色（原先只有 .badge-status 基础样式、无专属配色） */
.badge-pending_admin_review { background: #fff7e6; color: #d48806; }

/* ===== v388：管理员复核面板——三个操作按钮压成单行等分 ===== */
.review-btn-row { display: flex; gap: 8px; }
.review-btn-row .btn {
  flex: 1 1 0;
  min-width: 0;
  /* v452：复核行由 3 个按钮（监理派工 / 直接派工 / 驳回）减为 2 个（复核通过 / 驳回），
     去掉原先为挤下 3 个按钮而加的左右 4px 压缩内边距，恢复默认内边距、排版更舒展 */
  white-space: nowrap;
}

/* ===== v390：施工人员「施工操作流程」三步面板（并入「🔧 操作」卡内） ===== */
.ops-step { padding: 2px 0; }
.ops-step-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ops-step-no {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
}
.ops-step-title { font-size: 14px; font-weight: 600; color: var(--text); }
.ops-step-tag {
  margin-left: auto; font-size: 11px; padding: 1px 8px; border-radius: 10px;
  background: #f0f2f5; color: var(--text-secondary); white-space: nowrap;
}
.ops-step-tag.tag-todo { background: #fff7e6; color: #d48806; }
.ops-step-tag.tag-done { background: #f6ffed; color: #389e0d; }
.ops-step-tag.tag-lock { background: #f0f2f5; color: #8c8c8c; }
.ops-step-tag.tag-info { background: #e6f4ff; color: #1677ff; }
.ops-step-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.55; margin: 0 0 8px; }
.ops-step-eta { font-size: 13px; color: var(--primary); font-weight: 500; margin: 0 0 8px; }
.ops-step-divider { height: 1px; background: #eeeeee; margin: 14px 0; }
.ops-step-locked { opacity: .6; }
.ops-step-locked .ops-step-no { background: #f0f2f5; color: #8c8c8c; }
.ops-step-ok .ops-step-no { background: #f6ffed; color: #389e0d; }
/* 第一步「确认到场」作为主操作突出显示 */
.ops-step-focus {
  background: #f5f9ff; border: 1px solid #d6e8ff; border-radius: 10px;
  padding: 12px; margin-bottom: 2px;
}
.ops-step-focus .ops-step-no { background: var(--primary); color: #fff; }

/* ===== v522：工地应急操作折叠面板（.ops-fold-*）已整体下线 =====
   管理员已取消派工权限（无应急操作场景），施工监理的人员变动统一收敛到「👷 派工管理」卡，
   故删除 .ops-fold-head / .ops-fold-title / .ops-fold-arrow / .ops-fold-body / .ops-fold-hint。
   保留下方 .ops-tabs / .ops-tab / .ops-tab-panel / .ops-panel-* —— 由派工管理卡继续使用。 */
/* v518：应急操作三选项卡（转派 / 增员 / 撤出）——一次只展开一个面板，替代平铺三块长表单 */
.ops-tabs {
  display: flex; gap: 8px; margin: 12px 0 0;
  border-bottom: 1px solid var(--border); padding-bottom: 8px;
}
.ops-tabs .ops-tab {
  flex: 1; padding: 8px 4px; font-size: 13px; font-weight: 500;
  color: var(--text-secondary); background: #fff;
  border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; white-space: nowrap;
}
.ops-tabs .ops-tab.active {
  color: #fff; background: var(--primary); border-color: var(--primary); font-weight: 600;
}
.ops-tab-panel { margin-top: 12px; }
.ops-panel-title { font-size: 14px; margin: 0 0 8px; font-weight: 600; color: var(--text); }
.ops-panel-hint { font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.6; }
/* v521：「👷 派工管理」统一卡（首次派工 / 转派 / 增员 / 撤出 / 暂停 收于一处） */
.dm-roster {
  margin: 0 0 12px; padding: 10px 12px;
  background: #f7f8fa; border: 1px solid #e5e6eb; border-radius: 8px;
}
.dm-roster-title { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 6px; }
.dm-roster-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 13px; }
.dm-roster-row .dm-role {
  flex: 0 0 auto; min-width: 48px; text-align: center;
  font-size: 11.5px; color: #1677ff; background: #e6f4ff;
  border-radius: 999px; padding: 2px 8px;
}
.dm-roster-row .dm-name { color: var(--text); font-weight: 500; }
.dm-block { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.dm-block:first-of-type { border-top: none; padding-top: 0; }
.dm-hint { font-size: 12px; color: var(--text-secondary); margin: 0 0 10px; }
/* 「已确认的施工工艺」无数据占位 */
.ops-empty-line { font-size: 13px; color: var(--text-secondary); padding: 2px 0; }

/* ===== v395：施工操作三步状态卡片（进行中 / 已完成 / 待解锁） ===== */
.ops-step {
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease;
}
.ops-step:last-of-type { margin-bottom: 0; }

/* 进行中：蓝色高亮 */
.ops-step-active { background: #f5f9ff; border-color: #d6e8ff; }
.ops-step-active .ops-step-no { background: var(--primary); color: #fff; }

/* 已完成：灰色 + 对勾标识 */
.ops-step-done { background: #f7f7f7; border-color: #ebebeb; }
.ops-step-done .ops-step-no { background: #e0e0e0; color: #666666; }
.ops-step-done .ops-step-title { color: var(--text-secondary); }

/* 待解锁：浅灰置灰 + 锁图标 */
.ops-step-locked { background: #fafafa; border-color: #f0f0f0; opacity: .68; }
.ops-step-locked .ops-step-no { background: #eeeeee; color: #9e9e9e; }

/* 进行中状态标签（蓝色） */
.ops-step-tag.tag-active { background: #e6f4ff; color: #1677ff; }

/* ===== v396：「基层检查复核结果」卡内的「已确认的施工工艺」（产品 + 工艺） ===== */
.base-craft-block { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #eeeeee; }
.base-craft-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.base-craft-item {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13.5px; padding: 6px 10px; margin-bottom: 6px;
  background: #f7f9fc; border-radius: 8px;
}
.base-craft-item:last-child { margin-bottom: 0; }
.base-craft-item .bc-product { flex: 0 0 auto; color: var(--text-secondary); }
.base-craft-item .bc-craft { color: var(--primary); font-weight: 600; }

/* ===== v409：「工单复核结果」卡排版规范 =====
   标签列固定宽度右对齐（#666），内容列自适应左对齐（#333）并能自动换行；
   只作用于本卡，通用 .detail-row 的右对齐规则不受影响。 */
.base-review-summary-card .brs-row { gap: 8px; padding: 6px 0; }
.base-review-summary-card .brs-row .label {
  flex: 0 0 94px; text-align: right; color: #666666; line-height: 1.65;
}
/* v417：标签统一带冒号——标签列右对齐，冒号自然对齐成一条竖线，形成整齐的「标签：值」两栏 */
.base-review-summary-card .brs-row .label::after { content: '：'; }
.base-review-summary-card .brs-row .value {
  flex: 1 1 auto; min-width: 0; text-align: left; color: #333333;
  font-weight: 400; line-height: 1.65; word-break: break-word; overflow-wrap: anywhere;
}
.base-review-summary-card .brs-result-problem { color: #F53F3F; font-weight: 500; }
.base-review-summary-card .brs-result-ok { color: #333333; }
.base-review-summary-card .brs-result-pending { color: var(--text-secondary); }
.brs-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #F53F3F; margin-right: 5px; vertical-align: 1px;
}
.base-review-summary-card .brs-fail-box { display: block; }
.brs-fail-toggle {
  display: inline-block; margin-top: 4px; padding: 0; border: none; background: none;
  font-size: 12px; color: var(--primary); cursor: pointer;
}
.base-review-summary-card .brs-craft-col { display: block; }
.brs-empty { color: var(--text-secondary); }
.brs-divider { height: 0; border-top: 1px dashed #eeeeee; margin: 10px 0; }

/* ===== v400：工序节点「使用产品」弹窗内按产品分类折叠分组（复用创建工单 .product-group 形式） ===== */
#mat-select-list .product-group { margin-bottom: 0; }
#mat-select-list .product-group-head { padding: 10px 12px; font-size: 13.5px; }
#mat-select-list .product-group-body { padding: 10px 12px; }
#mat-select-list .product-group .mat-select-list { display: flex; flex-direction: column; gap: 8px; }
.mat-select-summary { font-size: 12px; color: var(--text-secondary); margin: 0 0 8px; }

/* ===== v407：页面说明文字从蓝色表头移至内容区顶部（信息保留，表头回归纯标题） ===== */
.data-page-hint {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 10px;
  padding: 0 2px;
}

/* ===== v408：工单复核结果卡「产品 —— 工艺」连接符 ===== */
.base-craft-item .bc-sep { flex: 0 0 auto; color: #c0c4cc; }

/* ===== v413：基层检查清单分组标题（合格项目在上、不合格项目在下） ===== */
.vt-br-group-title { font-size: 12px; font-weight: 600; margin: 2px 0 7px; }
.vt-br-group-title.passed { color: #389e0d; }

/* ===== v415：经销商端「待确认」状态徽标（需经销商本人处理：基层整改确认 / 现场打样签字） ===== */
.badge-dealer-confirm { background: #fff1f0; color: #cf1322; border: 1px solid #ffa39e; font-weight: 600; }

/* ===== v416：工单列表卡片信息重构（主标题=项目/地址，人员行带角色标签，整体压缩高度） =====
   注意：`.order-card` 是监理端/审单员端/工地视图/师傅端/修补任务共用的通用类，
   本次只给「工单列表」卡片加 `.oc-card` 作用域，避免连带改动其它端的卡片布局。 */
.order-card.oc-card { padding: 12px 14px; margin-bottom: 8px; }
.oc-card .order-card-footer { margin-top: 8px; padding-top: 8px; }
.oc-main { flex: 1; min-width: 0; padding-right: 8px; }
.oc-title {
  font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word;
}
.oc-people { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.oc-person { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.oc-role { font-size: 11px; line-height: 17px; padding: 0 6px; border-radius: 4px; font-weight: 500; white-space: nowrap; }
.oc-role-worker { background: #fff7e6; color: #d46b08; }
.oc-name { font-size: 13px; color: var(--text); }

/* ===== v419：全端统一工单卡片的角色标签与补充行 =====
   提交人（蓝）/ 对接人（青）/ 施工（橙，沿用 v416）/ 追加项如面积·监理（灰） */
.oc-role-submitter { background: #eef4ff; color: #2b6cff; }
.oc-role-contact { background: #e6fffb; color: #0e9c9c; }
.oc-role-extra { background: #f5f5f5; color: #666666; }
.oc-extra-line { font-size: 12px; color: var(--text-secondary); margin-top: 8px; line-height: 1.6; }

/* =========================================================================
 * v421：工地情况 · 分步弹窗录入 + 页内汇总
 * 新建工单第 3 步由「25 项长列表」改为分步弹窗，此处补充弹窗与汇总样式。
 * ======================================================================= */

/* ---------- 页内汇总 ---------- */
.site-flow-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 2px 0 12px;
}
.site-flow-progress { font-size: 12.5px; color: var(--text-secondary); }
.site-flow-head .btn { flex: 0 0 auto; }

.site-empty {
  background: var(--card-bg); border: 1px dashed #d9d9d9; border-radius: var(--radius);
  padding: 26px 16px; text-align: center; color: var(--text-secondary); font-size: 13.5px; line-height: 1.6;
}
.site-empty .site-empty-ico { font-size: 30px; opacity: .55; margin-bottom: 8px; }
.site-empty b { display: block; color: var(--text); font-weight: 500; font-size: 14px; margin-bottom: 5px; }

.site-sec { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px; overflow: hidden; }
.site-sec-head {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; font-size: 14px; font-weight: 500; border-bottom: 1px solid #f0f0f0;
}
.site-sec-no {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.site-sec-body { padding: 2px 0; }

.site-srow {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid #fafafa; cursor: pointer;
}
.site-srow:last-child { border-bottom: none; }
.site-srow:active { background: #fafafa; }
.site-sk {
  flex: 0 0 110px; min-width: 0; font-size: 13.5px; color: #666666;
  text-align: right; line-height: 1.6; word-break: break-all;
}
.site-sv { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text); line-height: 1.6; overflow-wrap: anywhere; }
.site-sedit { flex: 0 0 auto; color: #c0c4cc; font-size: 12px; line-height: 1.6; }
.site-empty-v { color: #c0c4cc; }
.site-ph-cnt { font-size: 12px; color: var(--text-secondary); }

.site-badge { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 12px; }
.site-badge.ok { background: #f6ffed; color: #389e0d; }
.site-badge.bad { background: #fff1f0; color: #cf1322; }
.site-sec-head .site-badge { margin-left: auto; }

/* ---------- 分步弹窗 ---------- */
.site-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 3200; display: none; }
.site-mask.on { display: block; }
.site-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto;
  background: var(--card-bg); border-radius: 16px 16px 0 0;
  height: 88vh; display: flex; flex-direction: column; overflow: hidden;
}
.site-sheet-head { flex: 0 0 auto; padding: 14px 16px 12px; border-bottom: 1px solid #f0f0f0; }
.site-sheet-step { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--primary); font-weight: 500; margin-bottom: 7px; }
.site-sheet-bar { flex: 1; height: 3px; background: #eef2f7; border-radius: 2px; overflow: hidden; }
.site-sheet-bar i { display: block; height: 100%; background: var(--primary); border-radius: 2px; transition: width .25s; }
.site-sheet-x { flex: 0 0 auto; font-size: 20px; line-height: 1; color: var(--text-secondary); padding: 0 2px; cursor: pointer; }
.site-sheet-title { font-size: 16px; font-weight: 500; color: var(--text); }
.site-sheet-desc { font-size: 12.5px; color: var(--text-secondary); margin-top: 5px; line-height: 1.55; }
.site-sheet-body { flex: 1; overflow-y: auto; padding: 14px 16px; -webkit-overflow-scrolling: touch; }
.site-sheet-foot {
  flex: 0 0 auto; display: flex; gap: 10px; background: var(--card-bg);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #f0f0f0;
}
.site-sheet-foot .btn { flex: 1; }

/* ---------- 弹窗内字段 ---------- */
.site-q { margin-bottom: 20px; }
.site-q:last-child { margin-bottom: 6px; }
.site-q-child { border-left: 2px solid #eef2f7; padding-left: 12px; margin-left: 1px; }
.site-q-label { font-size: 14px; font-weight: 500; margin-bottom: 9px; line-height: 1.5; }
.site-q-label .site-req { color: var(--danger); margin-left: 3px; }
.site-q-inline { font-size: 12px; color: var(--text-secondary); font-weight: 400; }
.site-q-sub { font-size: 12px; color: var(--text-secondary); font-weight: 400; margin-top: 3px; }

.site-opts { display: grid; gap: 8px; }
.site-opts.c1 { grid-template-columns: 1fr; }
.site-opts.c2 { grid-template-columns: repeat(2, 1fr); }
.site-opts.c3 { grid-template-columns: repeat(3, 1fr); }
.site-opt {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 5px; padding: 11px 8px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; font-weight: 500; cursor: pointer; background: var(--card-bg); line-height: 1.4;
  min-height: 56px;
}
/* v428：选项主文字 + 括号备注（小字换行），所有项目选项/填写框/选择框统一 56px 行高 */
.site-opt-txt { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.25; gap: 3px; }
.site-opt-main { font-size: 14px; font-weight: 500; color: var(--text); }
.site-opt-sub { font-size: 11px; color: var(--text-secondary); font-weight: 400; }
.site-opt input { margin: 0; accent-color: var(--primary); }
.site-opt.on { border-color: var(--primary); background: #eef3ff; color: var(--primary); }
.site-opt.wide { flex-direction: row; justify-content: flex-start; gap: 8px; padding: 12px 14px; font-weight: 400; }
.site-txt {
  width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px;
  font-size: 14px; font-family: inherit; color: var(--text); background: var(--card-bg);
  min-height: 56px;
}
.site-txt:focus { outline: none; border-color: var(--primary); }
.site-tip {
  margin-top: 9px; background: #fff7e6; border: 1px solid #ffd591; color: #874d00;
  font-size: 12.5px; line-height: 1.6; padding: 9px 11px; border-radius: 8px;
}
.site-tip::before { content: '检查提示：'; font-weight: 500; }
.site-gate-note {
  background: #fff1f0; border: 1px solid #ffccc7; color: #cf1322;
  font-size: 12.5px; line-height: 1.6; padding: 9px 11px; border-radius: 8px; margin-bottom: 16px;
}

/* ---------- 基层检查逐项水印照片 ---------- */
.site-ph-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.site-ph-btn {
  border: 1px solid var(--border); background: var(--card-bg); color: #555555;
  font-size: 12.5px; padding: 7px 12px; border-radius: 8px; font-family: inherit;
}
.site-ph-btn.on { border-color: var(--primary); color: var(--primary); background: #f5f9ff; }
.site-ph-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.site-ph-item { position: relative; display: inline-block; line-height: 0; }
.site-ph-thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; border: 1px solid #e8e8e8; cursor: pointer; }
.site-ph-del {
  position: absolute; top: -6px; right: -6px; width: 16px; height: 16px;
  background: rgba(0,0,0,.62); color: #fff; border-radius: 50%;
  font-size: 12px; line-height: 16px; text-align: center; cursor: pointer;
}
.site-ph-sum { font-size: 12.5px; color: var(--text-secondary); margin-top: 6px; }

/* ---------- 第 4 步确认页 ---------- */
.site-rv-sec {
  font-size: 13px; font-weight: 500; margin: 0 0 8px; padding-left: 8px;
  border-left: 3px solid var(--primary); line-height: 1.3;
}
.site-rv-sec:not(:first-child) { margin-top: 18px; }
.site-rv-line {
  display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid #fafafa; font-size: 13.5px;
}
.site-rv-line:last-child { border-bottom: none; }
.site-rk { flex: 0 0 118px; min-width: 0; color: #666666; text-align: right; }
.site-rv { flex: 1; min-width: 0; color: var(--text); overflow-wrap: anywhere; }
.site-rv.miss { color: #c0c4cc; }

/* ---------- 工单详情：基层检查照片入口 ---------- */
.si-photos-cell { flex: 0 0 auto; display: inline-flex; align-items: center; }
.si-photos-link {
  font-size: 12px; color: var(--primary); background: var(--primary-light);
  border-radius: 4px; padding: 1px 7px; cursor: pointer; margin-left: 6px; white-space: nowrap;
}

/* =========================================================================
 * v423：施工产品选择弹窗 —— 上下双板块（上录入 / 下清单）
 * 视觉基调：白 + 浅灰为主，蓝色只作勾选态、按钮文字与关键高亮；
 *           主按钮改为空心描边，取消大面积实色填充。
 * ======================================================================= */

/* 入口按钮轻量化（表单上的「选择施工产品」） */
#sales-product-section .btn-primary {
  background: #fff; color: var(--primary);
  border: 1px solid var(--primary); box-shadow: none; font-weight: 500;
}
#sales-product-section .btn-primary:active { background: #f5f9ff; }

/* v425：弹窗左右外留白收紧（原 20px），让面板与控件获得更多横向空间 */
#product-modal.modal-overlay { padding: 12px; }
#product-modal .pm-box {
  max-width: 540px; width: 100%; max-height: 86vh;
  padding: 0; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 14px;
}
.pm-box .modal-head {
  flex: 0 0 auto; padding: 14px 16px; border-bottom: 1px solid #f0f0f0;
  font-size: 15px; font-weight: 500;
}
/* v425：压过 v423 前遗留的 `#product-modal .modal-body{padding-right:4px}`，
   否则右侧内边距只有 4px、与左侧 12px 不对称，两列控件也会被挤窄 */
#product-modal .pm-body { padding: 10px; }
.pm-body { flex: 1 1 auto; overflow-y: auto; padding: 10px; background: #fafafa; }
.pm-panel {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 10px; margin-bottom: 10px;
}
.pm-panel:last-child { margin-bottom: 0; }
.pm-panel-head {
  display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 500; color: var(--text);
  padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid #f2f2f2;
}
.pm-panel-no {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%;
  background: #f2f5f9; color: #5a6b7f;
  font-size: 11px; line-height: 18px; text-align: center;
}
.pm-count { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--text-secondary); }

/* ---------- 上板块字段 ---------- */
.pm-field { margin-bottom: 12px; }
.pm-field:last-of-type { margin-bottom: 0; }
.pm-field-2 { display: flex; gap: 8px; }
.pm-field-2 .pm-field { flex: 1; min-width: 0; margin-bottom: 12px; }
/* v523：工艺（选填）+ 色号（选填）+ 施工面积（必填）三列并排；窄屏自动换行为纵向 */
.pm-field-3 { display: flex; gap: 8px; flex-wrap: wrap; }
.pm-field-3 .pm-field { flex: 1 1 30%; min-width: 96px; margin-bottom: 12px; }
@media (max-width: 420px) {
  .pm-field-3 .pm-field { flex: 1 1 100%; }
}
.pm-label { display: block; font-size: 12.5px; color: #666; margin-bottom: 6px; }
.pm-label .required { color: var(--danger); }
.pm-hint { font-size: 12.5px; color: var(--text-secondary); }
/* v424/v425：弹窗内的表单控件（select / input）。
   ⚠️ 这些控件在 `.pm-field` 内、**不在 `.form-group` 内**，所以拿不到全局那条
   `.form-group input, .form-group select { width:100%; padding:10px 12px; border:…; font-size:14px }`，
   结果是：① 按内容宽度显示（并排后两列参差不齐）；② 只有浏览器原生高度（手机上过矮、不可读）。
   这里按 `.form-group` 同口径补齐盒模型，并显式给出高度以保证可读性与触控面积。 */
.pm-field .form-control {
  width: 100%; box-sizing: border-box;
  height: 42px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; line-height: 1.4;
  background: var(--card-bg); color: var(--text);
  transition: border-color .2s;
}

.pm-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-cat {
  font-family: inherit; font-size: 13px; padding: 7px 14px; cursor: pointer;
  background: #fff; color: #555; border: 1px solid var(--border); border-radius: 8px;
  transition: background .15s, border-color .15s, color .15s;
}
.pm-cat:hover { background: #f5f5f5; }
.pm-cat.on { border-color: var(--primary); color: var(--primary); background: #f5f9ff; font-weight: 500; }

.pm-products { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-chip {
  font-family: inherit; font-size: 13px; padding: 7px 14px; cursor: pointer;
  background: #fff; color: #555; border: 1px solid var(--border); border-radius: 8px;
  transition: background .15s, border-color .15s, color .15s;
}
.pm-chip:hover { background: #f5f5f5; }
.pm-chip.on { border-color: var(--primary); color: var(--primary); background: #f5f9ff; font-weight: 500; }

.pm-box .form-control { border-radius: 8px; }
#pm-custom-unit { color: var(--text-secondary); }

/* 主按钮：空心描边，禁用时置灰 */
.pm-add-btn {
  width: 100%; background: #fff; color: var(--primary);
  border: 1px solid var(--primary); border-radius: 8px;
  font-size: 14px; font-weight: 500; padding: 10px; margin-top: 4px; box-shadow: none;
}
.pm-add-btn:active { background: #f5f9ff; }
.pm-add-btn:disabled { background: #fff; color: #c3cddb; border-color: #dfe6ef; }
.pm-confirm {
  background: #fff; color: var(--primary); border: 1px solid var(--primary);
  box-shadow: none; font-weight: 500;
}
.pm-confirm:active { background: #f5f9ff; }
.pm-confirm:disabled { background: #fff; color: #c3cddb; border-color: #dfe6ef; }

/* ---------- 下板块统一清单 ---------- */
.pm-empty { font-size: 12.5px; color: var(--text-secondary); text-align: center; padding: 18px 8px; }
.pm-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pm-table th {
  font-weight: 500; color: #8c8c8c; font-size: 12px; text-align: left;
  padding: 7px 6px; background: #fafafa; border-bottom: 1px solid #f0f0f0; white-space: nowrap;
}
.pm-table td {
  padding: 9px 6px; border-bottom: 1px solid #f5f5f5; color: var(--text);
  word-break: break-word; vertical-align: top;
}
.pm-table tr:last-child td { border-bottom: none; }
.pm-table tbody tr:hover { background: #fafafa; }
.pm-x { cursor: pointer; color: #EF4444; font-size: 12px; white-space: nowrap; }
/* v456：反馈单「已选清单」是 4 列（类别·工艺 / 常规 / 超高异形 / ✕），
   而 .pm-table th 默认 nowrap，窄屏下会横向溢出 —— 这里放开换行，并固定列宽，
   避免数字列被长内容挤到只剩几像素（曾出现「常/规」拆成两行）
   v461：列宽/固定布局**只作用于已选清单表**（.pm-table-prod）。原先写成 `.fb-module .pm-table`
   会误伤同模块下的「施工人员工时」「用料记录」只读表，把它们也压成 34/16/33/17%。
   v462：已选清单移入「施工结果」区，作用域由 .fb-module 改为 .fb-modal（整个反馈单弹窗）。 */
.fb-modal .pm-table th { white-space: normal; }
.fb-modal .pm-table td { word-break: break-word; }
.fb-modal .pm-table.pm-table-prod { table-layout: fixed; }
.fb-modal .pm-table.pm-table-prod th:nth-child(1), .fb-modal .pm-table.pm-table-prod td:nth-child(1) { width: 34%; }
.fb-modal .pm-table.pm-table-prod th:nth-child(2), .fb-modal .pm-table.pm-table-prod td:nth-child(2) { width: 16%; }
.fb-modal .pm-table.pm-table-prod th:nth-child(3), .fb-modal .pm-table.pm-table-prod td:nth-child(3) { width: 33%; }
.fb-modal .pm-table.pm-table-prod th:nth-child(4), .fb-modal .pm-table.pm-table-prod td:nth-child(4) { width: 17%; text-align: right; }
/* ✕ 用紧凑内边距，否则 .btn-mini 默认 5px 12px 会把最后一列撑出横向溢出 */
.fb-modal .pm-table .btn-mini { padding: 5px 7px; }

/* ===== v485：人员出勤看板（施工督查 / 管理员 / 施工监理） =====
   页面由 openDataPage 承载，#ab-root 内为全部内容。
   明细卡左边框颜色随出勤状态变化：正常绿 / 迟到·早退橙 / 未打卡·定位异常红。 */
.ab-filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.ab-dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.ab-chip {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 16px; background: #fff;
  border: 1px solid var(--border, #e5e6eb); color: var(--text-secondary, #666);
  font-size: 13px; cursor: pointer; transition: all .15s; white-space: nowrap;
}
.ab-chip.active { background: #1677ff; border-color: #1677ff; color: #fff; font-weight: 600; }
.ab-chip-date {
  flex: 0 0 auto; min-width: 132px; padding: 5px 10px; border-radius: 16px;
  border: 1px solid var(--border, #e5e6eb); background: #fff;
  font-size: 13px; color: var(--text-secondary, #666); box-sizing: border-box;
}
.ab-chip-date.active { border-color: #1677ff; color: #1677ff; font-weight: 600; }
.ab-row { display: flex; gap: 8px; align-items: center; }
.ab-sel {
  flex: 1 1 0; min-width: 0; height: 36px; padding: 0 8px; border-radius: 8px;
  border: 1px solid var(--border, #e5e6eb); background: #fff; font-size: 13px; color: var(--text);
}
.ab-sel.active { border-color: #1677ff; color: #1677ff; font-weight: 600; }
.ab-search {
  width: 100%; box-sizing: border-box; padding: 9px 12px; border-radius: 8px;
  border: 1px solid var(--border, #e5e6eb); background: #fff; font-size: 13px;
}
.ab-search:focus { outline: none; border-color: #1677ff; }
.ab-stats { display: flex; gap: 8px; margin-bottom: 12px; }
.ab-stat {
  flex: 1 1 0; min-width: 0; background: #fff; border-radius: 10px; padding: 11px 4px 10px;
  text-align: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  border-top: 3px solid transparent; cursor: pointer; transition: box-shadow .15s, transform .1s;
}
.ab-stat:active { transform: scale(.98); }
.ab-stat.on { background: #f0f7ff; box-shadow: 0 2px 8px rgba(22, 119, 255, .2); }
.ab-stat .num { font-size: 22px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ab-stat .lbl { font-size: 12px; color: var(--text-secondary, #666); margin-top: 3px; }
.ab-listhead { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 10px; }
.ab-listhead-title { font-size: 15px; font-weight: 700; color: var(--text); }
.ab-listhead-title em { font-style: normal; font-size: 12px; font-weight: 400; color: var(--text-secondary, #888); margin-left: 4px; }
.ab-export {
  padding: 6px 12px; border-radius: 8px; border: 1px solid #1677ff;
  background: #fff; color: #1677ff; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.ab-export:active { background: #f0f7ff; }
.ab-list { display: flex; flex-direction: column; gap: 10px; }
.ab-card {
  background: #fff; border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06); border-left: 4px solid #cbd5e1; cursor: pointer;
}
.ab-card:active { background: #fafcff; }
.ab-card.s-normal { border-left-color: #52c41a; }
.ab-card.s-late, .ab-card.s-early { border-left-color: #faad14; }
.ab-card.s-absent, .ab-card.s-gps { border-left-color: #ff4d4f; }
.ab-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ab-name { font-size: 15px; font-weight: 700; color: var(--text); }
.ab-role { font-size: 11px; font-weight: 400; color: var(--text-secondary, #888); background: #f2f3f5; border-radius: 4px; padding: 1px 6px; margin-left: 6px; }
.ab-tag { flex: 0 0 auto; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 10px; }
.ab-tag-normal { background: #eaf9e9; color: #3aa83a; }
.ab-tag-late, .ab-tag-early { background: #fff5e6; color: #d48806; }
.ab-tag-absent, .ab-tag-gps { background: #fff1f0; color: #cf1322; }
.ab-site { font-size: 12px; color: var(--text-secondary, #666); margin-top: 6px; word-break: break-all; }
.ab-times { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.ab-time { display: flex; align-items: baseline; gap: 6px; font-size: 12px; }
.ab-time .k { flex: 0 0 30px; color: var(--text-secondary, #999); }
.ab-time .v { flex: 0 0 auto; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.ab-time .a { flex: 1 1 0; min-width: 0; color: var(--text-secondary, #888); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; padding-top: 8px; border-top: 1px dashed #eef1f5; font-size: 12px; }
.ab-dur { font-weight: 700; color: var(--text); }
.ab-remark { color: #cf1322; text-align: right; }
.ab-empty { text-align: center; padding: 36px 0; color: var(--text-secondary, #888); }
.ab-empty .ic { font-size: 34px; margin-bottom: 8px; }
.ab-empty p { margin: 0; font-size: 14px; }
/* 出勤详情 / 导出月报：底部抽屉 + 蒙层 */
.ab-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 3100; }
.ab-drawer {
  position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto;
  max-height: 88vh; overflow: auto; background: #fff; border-radius: 16px 16px 0 0;
  z-index: 3200; padding: 16px 16px 22px; box-sizing: border-box;
}
.ab-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ab-drawer-title { font-size: 16px; font-weight: 700; }
.ab-close { border: none; background: #f2f3f5; border-radius: 8px; padding: 5px 10px; font-size: 13px; cursor: pointer; color: #666; }
.ab-sec { margin-bottom: 14px; }
.ab-sec-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 7px; border-left: 3px solid #1677ff; padding-left: 7px; }
.ab-line { font-size: 13px; display: flex; gap: 8px; padding: 3px 0; align-items: baseline; }
.ab-line .k { flex: 0 0 70px; color: var(--text-secondary, #888); }
.ab-line .v { flex: 1 1 0; min-width: 0; word-break: break-all; }
.ab-photo-item { margin-bottom: 10px; }
.ab-photo-label { font-size: 12px; color: var(--text-secondary, #888); margin-bottom: 4px; }
.ab-field { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-check { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 5px 11px; border-radius: 16px; background: #f5f7fa; cursor: pointer; color: #555; }
.ab-check.on { background: #e6f2ff; color: #1677ff; font-weight: 600; }
.ab-month { width: 100%; box-sizing: border-box; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--border, #e5e6eb); font-size: 14px; }
.ab-actions { display: flex; gap: 10px; margin-top: 18px; }
.ab-actions .btn { flex: 1 1 0; }
