:root {
  --brand: #12695c;
  --brand-2: #1d8a74;
  --bg: #f4f7f6;
  --card: #ffffff;
  --text: #1b2321;
  --muted: #6b7b78;
  --line: #e7ecea;
  --ok: #2e8b57;
  --warn: #c47f00;
  --danger: #c0392b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 40, 34, 0.04), 0 8px 24px rgba(18, 40, 34, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 15px;
  color: inherit;
}

.hidden {
  display: none !important;
}

/* ---------------- 登录 ---------------- */

.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #0e5b50 0%, #1d8a74 60%, #2aa189 100%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  padding: 30px 28px 26px;
  box-shadow: 0 20px 60px rgba(0, 30, 24, 0.28);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 19px;
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.auth-sub {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 22px;
}

.tabs {
  display: flex;
  gap: 6px;
  background: #eef3f1;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 18px;
}

.tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 500;
}

.tabs button.on {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

/* ---------------- 表单 ---------------- */

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 5px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfc;
  outline: none;
  transition: border-color 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-2);
  background: #fff;
}

.field textarea {
  min-height: 74px;
  resize: vertical;
}

.field .hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 16px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: var(--text);
  transition: opacity 0.15s, background 0.15s;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 4px 12px rgba(18, 105, 92, 0.25);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--muted);
  background: #fff;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 13px;
  border-radius: 8px;
  font-weight: 500;
}

.btn-danger {
  color: var(--danger);
  border-color: #f1d5d1;
  background: #fdf6f5;
}

.btn-block {
  width: 100%;
  padding: 11px;
}

.btn-link {
  border: 0;
  background: none;
  color: var(--brand);
  padding: 2px 4px;
  cursor: pointer;
  font-size: 13px;
}

/* ---------------- 布局 ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}

.topbar .who {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8f0ee;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 10px 8px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.nav a.on {
  background: #e8f1ee;
  color: var(--brand);
  font-weight: 600;
}

.nav a .dot {
  display: inline-block;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  background: #e2694a;
  color: #fff;
  border-radius: 8px;
  font-size: 11px;
  margin-left: 4px;
  padding: 0 4px;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 18px 60px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 21px;
  font-weight: 700;
  margin: 0;
}

.page-desc {
  color: var(--muted);
  font-size: 13px;
}

.page-head .spacer {
  flex: 1;
}

/* ---------------- 卡片 ---------------- */

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

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}

.card-title .right {
  margin-left: auto;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}

.card-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.stat .k {
  font-size: 12px;
  color: var(--muted);
}

.stat .v {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-top: 2px;
}

.stat .v small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 2px;
}

.banner {
  background: #fff8e8;
  border: 1px solid #f3e2bf;
  color: #7a5a12;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.banner .txt {
  flex: 1;
  min-width: 0;
  line-height: 1.6;
}

.banner a {
  color: var(--brand);
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
}

/* ---------------- 快捷入口 ---------------- */

.quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quick a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: block;
  transition: border-color 0.15s, transform 0.15s;
}

.quick a:hover {
  border-color: #bfd8d2;
  transform: translateY(-1px);
}

.quick .qb {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #e8f1ee;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 8px;
}

.quick .qt {
  font-weight: 600;
  font-size: 14px;
}

.quick .qd {
  font-size: 12px;
  color: var(--muted);
}

/* ---------------- 标签 & 胶囊 ---------------- */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
  background: #eef2f1;
  color: var(--muted);
  white-space: nowrap;
}

.tag-green {
  background: #e6f4ee;
  color: #1c7a52;
}

.tag-orange {
  background: #fdf0e2;
  color: #b06a08;
}

.tag-red {
  background: #fcebe8;
  color: #b43a2b;
}

.tag-blue {
  background: #e8f0f7;
  color: #2b6a9b;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.chip {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
}

.chip.on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

/* ---------------- 列表 ---------------- */

.list {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.row:last-child {
  border-bottom: 0;
}

.row-main {
  flex: 1;
  min-width: 0;
}

.row-title {
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.row-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
  word-break: break-all;
}

.row-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}

.row-muted {
  opacity: 0.72;
}

.row-muted .row-title {
  color: #5d6a68;
}

.item-link {
  display: block;
}

.item-link:hover .row-title {
  color: var(--brand);
}

/* ---------------- 表格 ---------------- */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.data th,
table.data td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.data th {
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
  background: #fafbfb;
}

table.data td.num,
table.data th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

table.data tr:last-child td {
  border-bottom: 0;
}

table.data tr.total td {
  font-weight: 700;
  background: #f7faf9;
}

/* ---------------- 条形图 ---------------- */

.bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 150px 1fr 70px;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}

.bar-track {
  height: 10px;
  background: #eff3f2;
  border-radius: 6px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.bar-val {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* ---------------- 空态 ---------------- */

.empty {
  text-align: center;
  padding: 36px 12px;
  color: var(--muted);
  font-size: 14px;
}

.empty strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 6px;
}

/* ---------------- 打卡 ---------------- */

.loc-box {
  border: 1px dashed #cfe0db;
  border-radius: 12px;
  padding: 12px;
  background: #f8fbfa;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.loc-num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.loc-num small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.photo-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.photo-preview {
  width: 104px;
  height: 104px;
  border-radius: 10px;
  border: 1px dashed #c9dbd6;
  background: #f7faf9 center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  overflow: hidden;
}

.photo-preview.has {
  border-style: solid;
  border-color: var(--line);
}

.photo-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
}

.photo-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.photo-grid .ph {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.photo-grid .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.photo-grid .ph .ph-x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  line-height: 18px;
  padding: 0;
}

.photo-grid .ph-add {
  width: 104px;
  height: 104px;
  border: 1px dashed #c9dbd6;
  border-radius: 10px;
  background: #f7faf9;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}

/* ---------------- 进度、编号、日报 ---------------- */

.code-chip {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--brand);
  background: #eaf4f1;
  border-radius: 6px;
  padding: 1px 6px;
}

.steps {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.step {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12.5px;
  cursor: pointer;
  transition: 0.15s;
}

.step:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
}

.step.past {
  color: #4c635e;
  border-color: #d7e6e1;
  background: #f6faf9;
}

.step.on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.step:disabled {
  cursor: default;
}

.report-card {
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.report-card:last-child {
  border-bottom: 0;
}

.report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.report-date {
  font-weight: 700;
  font-size: 15px;
}

.report-content {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  color: #23302d;
}

.report-meta {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

.report-foot {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.mini {
  font-size: 11.5px;
  color: var(--muted);
}

.modal-wide {
  max-width: 720px;
}

.modal-sm {
  max-width: 420px;
}

/* ---------------- 模态框 ---------------- */

.modal-wrap {
  position: fixed;
  inset: 0;
  background: rgba(12, 28, 24, 0.45);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 20, 16, 0.3);
}

.modal-head {
  padding: 16px 20px 10px;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
}

.modal-head .x {
  margin-left: auto;
  border: 0;
  background: none;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 4px 20px 8px;
  overflow-y: auto;
}

.modal-foot {
  padding: 12px 20px 18px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
  background: #fff;
}

.check-list label.on {
  border-color: var(--brand-2);
  background: #eff8f5;
  color: var(--brand);
}

.check-list input {
  width: auto;
}

/* ---------------- 提示 ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  background: rgba(20, 32, 29, 0.92);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 80;
  max-width: 86vw;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.toast.err {
  background: #a5321f;
}

/* ---------------- 项目详情 ---------------- */

.detail-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.detail-title {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.kv {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 12px;
  font-size: 14px;
}

.kv .k {
  color: var(--muted);
  font-size: 12px;
}

.kv .v {
  word-break: break-all;
}

.subtabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.subtabs button {
  border: 0;
  background: none;
  padding: 10px 2px;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 2px solid transparent;
}

.subtabs button.on {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 600;
}

.thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  cursor: zoom-in;
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 860px) {
  .grid-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kv {
    grid-template-columns: 1fr 1fr;
  }
  .bar-row {
    grid-template-columns: 100px 1fr 56px;
  }
  .topbar-inner {
    padding: 8px 12px;
    gap: 8px;
  }
  .page {
    padding: 14px 12px 40px;
  }
  .topbar .brand span.org {
    display: none;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stat .v {
    font-size: 22px;
  }
  .page-title {
    font-size: 19px;
  }
}

/* 班组批量记工弹窗 */
.batch-wrap {
  z-index: 55;
}

.batch-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.batch-stat {
  display: flex;
  gap: 32px;
}

.batch-stat .k {
  font-size: 12px;
  color: var(--muted);
}

.batch-stat .v {
  font-size: 22px;
  font-weight: 700;
}

.batch-stat small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.batch-form {
  margin-bottom: 6px;
}

.bf-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.bf-label {
  text-align: right;
  font-size: 14px;
  color: #3f4c49;
  white-space: nowrap;
}

.bf-label.req::before {
  content: '*';
  color: #c0392b;
  margin-right: 3px;
}

.bf-row input,
.bf-row select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: var(--text);
}

.batch-table th {
  background: #f4f7f6;
  text-align: left;
  white-space: nowrap;
}

.batch-table td {
  padding: 6px 8px;
  vertical-align: middle;
}

.batch-table input:not([type=checkbox]),
.batch-table select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}

.batch-table input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

/* 顶栏全局项目编号检索 */
.gsearch {
  position: relative;
  flex: 1;
  max-width: 430px;
  min-width: 160px;
  margin-left: 6px;
}

.gsearch-ico {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
  pointer-events: none;
}

.gsearch input {
  width: 100%;
  padding: 8px 10px 8px 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  color: var(--text);
}

.gsearch input:focus {
  outline: none;
  border-color: var(--brand);
}

.gsearch-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 340px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 20, 16, 0.18);
  z-index: 70;
}

.gs-item {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f3f2;
  cursor: pointer;
}

.gs-item:last-child {
  border-bottom: 0;
}

.gs-item:hover {
  background: #f3f8f6;
}

.gs-code {
  font-weight: 700;
  font-size: 13px;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gs-name {
  margin-top: 2px;
  font-size: 13px;
  color: #1b2321;
}

.gs-meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.gs-empty {
  padding: 14px 12px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .gsearch {
    max-width: none;
  }
  .gsearch input {
    font-size: 12px;
  }
}

/* ---------------- 左侧分组导航布局 ---------------- */
.shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 232px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #10584c 0%, #0b453d 100%);
  color: #fff;
  box-shadow: 2px 0 12px rgba(8, 36, 31, 0.12);
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-brand .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fff;
  color: #0d5349;
  font-size: 17px;
}

.side-org {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.side-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.56);
  margin-top: 2px;
}

.side-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px 18px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.side-link:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.side-link.on {
  background: #fff;
  color: #0d5349;
  font-weight: 600;
}

.side-link.top {
  margin-bottom: 8px;
  font-weight: 600;
}

.side-link .s-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: 0.9;
}

.side-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  flex: 0 0 5px;
}

.side-link.on .side-dot {
  background: #12695c;
}

.side-group {
  margin-top: 2px;
}

.side-group-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: left;
}

.side-group-head:hover {
  color: rgba(255, 255, 255, 0.9);
}

.side-group-head .s-ico-wrap {
  display: flex;
  width: 18px;
  flex: 0 0 18px;
  opacity: 0.85;
}

.side-group-head .s-ico-wrap .s-ico {
  width: 18px;
  height: 18px;
}

.side-group-head .g-title {
  flex: 1;
}

.side-group-head .chev {
  display: flex;
  transition: transform 0.18s ease;
  transform: rotate(90deg);
}

.side-group-head .chev .s-ico {
  width: 12px;
  height: 12px;
  opacity: 0.55;
}

.side-group.collapsed .chev {
  transform: rotate(0deg);
}

.side-children {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 12px;
}

.side-group.collapsed .side-children {
  display: none;
}

.side-children .side-link {
  padding: 9px 12px;
  font-size: 13.5px;
}

.side-children .side-link.on {
  background: #fff;
}

.side-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  padding: 0 5px;
  text-align: center;
  border-radius: 9px;
  background: #e2694a;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.side-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.12);
}

.side-user .avatar {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  flex: 0 0 28px;
}

.side-user-txt {
  flex: 1;
  min-width: 0;
}

.side-user-txt b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-user-txt span {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.58);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-exit {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 11px;
  cursor: pointer;
}

.side-exit:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.main {
  margin-left: 232px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
  cursor: pointer;
  flex: 0 0 34px;
}

.menu-btn .s-ico {
  width: 19px;
  height: 19px;
}

.side-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(7, 28, 24, 0.45);
}

.topbar {
  margin: 0;
}

.topbar-inner {
  max-width: 1280px;
  padding: 10px 24px;
  gap: 14px;
}

.crumb {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gsearch {
  flex: 1;
  max-width: 470px;
  margin-left: 0;
}

.top-note {
  margin-left: auto;
  font-size: 12px;
  color: #8aa39c;
  white-space: nowrap;
}

.page {
  max-width: 1280px;
  margin: 0;
  padding: 22px 24px 60px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 860px) {
  .sidebar {
    width: 248px;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    z-index: 45;
  }

  body.side-open .sidebar {
    transform: none;
  }

  body.side-open .side-mask {
    display: block;
  }

  .main {
    margin-left: 0;
  }

  .menu-btn {
    display: inline-flex;
  }

  .crumb {
    display: none;
  }

  .top-note {
    display: none;
  }

  .topbar-inner {
    padding: 8px 10px;
    gap: 8px;
  }

  .gsearch {
    max-width: none;
  }

  .page {
    padding: 16px 12px 40px;
  }
}

/* ===== v1.4 项目管理检索表格 / 台账排名 / 系统配置 ===== */
.filter-card { padding: 14px 16px 10px; }
.filter-grid { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(130px, 1fr)) repeat(2, minmax(150px, 1fr)) auto; gap: 10px 12px; align-items: end; }
.filter-grid .fi { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.filter-grid .fi label { font-size: 12px; color: #6b7b78; letter-spacing: .3px; }
.filter-grid input, .filter-grid select { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 13px; color: #21302d; }
.filter-grid input:focus, .filter-grid select:focus { outline: none; border-color: #12695c; box-shadow: 0 0 0 3px rgba(18,105,92,.09); }
.filter-grid .fi-actions { flex-direction: row; gap: 8px; align-items: flex-end; }
.filter-tip { margin-top: 10px; font-size: 12px; color: #7b8a86; border-top: 1px dashed var(--line); padding-top: 9px; }
table.data.project-table { table-layout: fixed; font-size: 12.5px; }
table.data.project-table th { white-space: nowrap; padding: 8px 7px; font-size: 12px; }
table.data.project-table td { vertical-align: top; white-space: normal; padding: 8px 7px; line-height: 1.45; word-break: break-all; }
table.data.project-table td:nth-child(1), table.data.project-table td:nth-child(3), table.data.project-table td:nth-child(5) { white-space: nowrap; }
.project-table .proj-name { color: #12695c; font-weight: 700; text-decoration: none; }
.project-table .proj-name:hover { text-decoration: underline; }
.project-table .proj-ops { white-space: normal; font-size: 12px; }
table.data.ledger-table { table-layout: fixed; font-size: 11.5px; }
table.data.ledger-table th, table.data.ledger-table td { padding: 7px 4px; white-space: normal; word-break: break-all; line-height: 1.4; }
table.data.ledger-table th { font-size: 12px; white-space: nowrap; }
table.data.ledger-table td:nth-child(1), table.data.ledger-table td:nth-child(7), table.data.ledger-table td:nth-child(8), table.data.ledger-table td:nth-child(10) { white-space: nowrap; }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px 2px; font-size: 12px; color: #6b7b78; flex-wrap: wrap; }
.table-foot .pager { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.page-btn { min-width: 30px; padding: 5px 9px; border: 1px solid var(--line); background: #fff; color: #455a55; border-radius: 7px; font-size: 12px; cursor: pointer; }
.page-btn:hover:not(:disabled) { border-color: #12695c; color: #12695c; }
.page-btn.on { background: #12695c; border-color: #12695c; color: #fff; }
.page-btn:disabled { opacity: .45; cursor: default; }
.input-with-btn { display: flex; gap: 8px; align-items: center; }
.input-with-btn input { flex: 1; min-width: 0; }
.geo-msg { line-height: 1.55; }
.rank-table td, .rank-table th { padding-top: 10px; padding-bottom: 10px; }
.rank-no { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; background: #eef2f1; color: #51635f; font-weight: 700; font-size: 12px; }
.rank-no.rank-1 { background: #c79a2e; color: #fff; }
.rank-no.rank-2 { background: #8fa3a0; color: #fff; }
.rank-no.rank-3 { background: #a8754d; color: #fff; }
@media (max-width: 1180px) {
  .filter-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .filter-grid .fi:first-child { grid-column: 1 / -1; }
  .filter-grid .fi-actions { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .filter-grid { grid-template-columns: 1fr 1fr; }
}
/* v1.5 登录验证码、统计图表、匿名吐槽墙 */
.link-btn { border: 0; background: none; color: #17624a; font-size: 12.5px; cursor: pointer; padding: 0; }
.captcha-row { display: flex; gap: 8px; align-items: center; }
.captcha-row input { flex: 1; min-width: 0; }
.captcha-img { width: 104px; height: 38px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; background: #eef4f0; flex: none; }
.captcha-refresh { border: 1px solid var(--line); background: #fff; color: #455a55; border-radius: 7px; font-size: 11.5px; padding: 8px 9px; cursor: pointer; flex: none; }
.chart-duo { display: grid; grid-template-columns: 1.35fr .95fr; gap: 16px; margin-bottom: 16px; }
.chart-panel { border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px 10px; background: #fbfdfc; min-width: 0; }
.chart-title { font-size: 13px; font-weight: 700; color: #33453e; margin-bottom: 4px; }
.chart-scroll { overflow-x: auto; }
.chart-svg { width: 100%; min-width: 500px; height: auto; display: block; }
.pie-wrap { display: flex; align-items: center; gap: 12px; min-height: 252px; }
.pie-svg { width: 210px; flex: none; }
.pie-svg .chart-svg { min-width: 0; }
.pie-legend { flex: 1; min-width: 0; }
.pie-row { display: flex; align-items: center; gap: 7px; font-size: 12px; padding: 4.5px 0; border-bottom: 1px dashed #edf2ef; }
.pie-row:last-child { border-bottom: 0; }
.pie-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.pie-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4f625b; }
.pie-row b { width: 44px; text-align: right; color: #31453c; }
.pie-pct { width: 48px; text-align: right; color: #7b8a83; }
@media (max-width: 980px) {
  .chart-duo { grid-template-columns: 1fr; }
  .pie-svg { width: 180px; }
}
.wall-hero { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; padding: 13px 16px; border-radius: 12px; background: linear-gradient(120deg, #eaf3ee, #f7fbf8); border: 1px solid #dcebe2; }
.wall-hero b { font-size: 15px; color: #175a45; margin-right: 10px; }
.wall-hero span { font-size: 12.5px; color: #5a6e66; }
.wall-hero em { font-style: normal; font-size: 11.5px; color: #7b6a22; background: #fbf4dc; padding: 5px 9px; border-radius: 999px; }
.wall-compose { margin-bottom: 18px; }
.wall-compose textarea { width: 100%; min-height: 96px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font-family: inherit; font-size: 13.5px; line-height: 1.7; color: #263a33; outline: none; }
.wall-compose textarea:focus { border-color: #2f8a6d; box-shadow: 0 0 0 3px rgba(23, 98, 74, .08); }
.wall-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.wall-count { margin-left: auto; font-size: 11px; color: #8a978f; }
.wall-rec-tip { font-size: 11px; color: #b06b2c; }
.wall-preview { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 11px; }
.wall-thumb { position: relative; width: 82px; height: 82px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.wall-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wall-thumb button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(20, 40, 30, .72); color: #fff; font-size: 13px; line-height: 20px; cursor: pointer; padding: 0; }
.wall-audio-box { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.wall-audio-box audio { height: 32px; max-width: 100%; }
.wall-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 11px; border-top: 1px dashed #e5ece8; }
.wall-actions .hint { flex: 1; min-width: 220px; margin: 0; }
.wall-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 4px 8px; }
.wall-list-head b { font-size: 14px; color: #31453c; }
.wall-list-head span { font-size: 11.5px; color: #8a978f; }
.wall-list { display: flex; flex-direction: column; gap: 10px; }
.wall-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 11px; box-shadow: 0 2px 6px rgba(18, 55, 44, .03); }
.wall-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.wall-avatar { width: 34px; height: 34px; border-radius: 10px; background: #17624a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; flex: none; }
.wall-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wall-meta b { font-size: 12.5px; color: #31453c; }
.wall-meta span { font-size: 10.5px; color: #93a099; }
.wall-text { font-size: 13.5px; line-height: 1.8; color: #2b3d35; white-space: pre-wrap; word-break: break-word; }
.wall-imgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 9px; max-width: 620px; }
.wall-imgs img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; border: 1px solid #e6ece8; cursor: zoom-in; }
.wall-audio { margin-top: 10px; height: 34px; max-width: 100%; }
.wall-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed #edf1ef; font-size: 10.5px; color: #9aa69f; }
.wall-pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 0 2px; font-size: 12px; color: #6b7770; flex-wrap: wrap; }
@media (max-width: 640px) {
  .wall-imgs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall-imgs img { height: 118px; }
  .pie-wrap { flex-direction: column; align-items: stretch; }
  .pie-svg { width: 100%; max-width: 220px; margin: 0 auto; }
  .wall-hero em { display: none; }
}

@media (max-width: 1500px) {
  .chart-duo { grid-template-columns: 1fr; }
  .chart-svg { min-width: 0; }
  .pie-wrap { min-height: 0; }
}

/* ---------------- 作业计划排班表 ---------------- */

.plan-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #f2faf7 0%, #ffffff 55%, #f7fbf9 100%);
  border: 1px solid #d8ebe3;
}
.plan-hero strong {
  display: block;
  font-size: 15px;
  color: #175a45;
  margin-bottom: 4px;
}
.plan-hero span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

.plan-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.plan-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
}
.plan-stat .k {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 3px;
}
.plan-stat .v {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.2;
}
.plan-stat .v small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.plan-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.plan-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.plan-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.plan-tab:hover { background: #f1f7f4; color: var(--brand); }
.plan-tab.on { background: #e7f4ef; color: var(--brand); font-weight: 600; }
.plan-search {
  width: 220px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
  outline: none;
  background: #fff;
}
.plan-search:focus { border-color: var(--brand-2); }
.plan-project-filter {
  max-width: 300px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
  background: #fff;
  outline: none;
}
.plan-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.plan-table-card { padding: 0; overflow: hidden; }
.plan-table {
  min-width: 720px;
  table-layout: fixed;
  font-size: 13px;
}
.plan-table th { background: #f7faf8; padding-left: 8px; padding-right: 8px; }
.plan-table td { vertical-align: top; padding: 12px 8px; }
.plan-table .plan-text {
  white-space: normal;
  line-height: 1.65;
  min-width: 0;
  word-break: break-word;
}
.plan-table .plan-note { color: #5d6f67; font-size: 12.5px; }
.plan-table .plan-actions { white-space: normal; }
.plan-table .plan-actions .btn-link { display: block; padding: 1px 0; font-size: 12px; }
.plan-date { font-weight: 700; font-size: 12.5px; margin-bottom: 4px; }
.plan-project { font-size: 12.5px; line-height: 1.5; margin-top: 4px; white-space: normal; word-break: break-word; }
.plan-crew { font-size: 12.5px; font-weight: 600; margin-bottom: 5px; white-space: normal; word-break: break-word; }
.plan-members { display: flex; gap: 3px; flex-wrap: wrap; }
.plan-member { padding: 2px 5px; font-size: 10.5px; }
.plan-empty { padding: 34px 10px; }
.muted { color: var(--muted); }

.wp-modal { max-width: 780px; }
.wp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.wp-field { min-width: 0; }
.wp-field.wp-wide { grid-column: 1 / -1; }
.wp-field label {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 5px;
}
.wp-field label i {
  color: #c0392b;
  font-style: normal;
}
.wp-field input,
.wp-field select,
.wp-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 10px;
  font: inherit;
  font-size: 13px;
  background: #fff;
  color: var(--text);
  outline: none;
  box-sizing: border-box;
}
.wp-field input:focus,
.wp-field select:focus,
.wp-field textarea:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(33, 139, 112, 0.08);
}
.wp-field textarea { min-height: 78px; resize: vertical; }
.wp-field .hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.wp-member-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.wp-member-head label { margin-bottom: 0; }
.wp-member-head span { font-size: 12px; color: var(--brand); }
.wp-member-head .btn-link { margin-left: auto; font-size: 12px; }
.wp-members {
  max-height: 220px;
  overflow-y: auto;
  padding: 2px;
  border: 1px solid #edf3f0;
  border-radius: 10px;
  background: #fbfdfc;
}
.wp-worktype { font-size: 10.5px; color: var(--muted); margin-left: 3px; }

@media (max-width: 900px) {
  .plan-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wp-grid { grid-template-columns: 1fr; }
  .wp-field.wp-wide { grid-column: auto; }
}
@media (max-width: 720px) {
  .plan-toolbar { align-items: stretch; }
  .plan-search, .plan-project-filter { width: 100%; max-width: none; }
  .plan-count { margin-left: 0; }
  .plan-stats { gap: 8px; }
  .plan-stat { padding: 10px 12px; }
  .plan-stat .v { font-size: 20px; }
}


/* ---------------- 员工管理花名册（v1.9 UI 对齐参考表） ---------------- */

.emp-toolbar {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.emp-toolbar-main {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 320px;
  min-width: 0;
  flex-wrap: wrap;
}
.emp-toolbar-main #emp-search {
  flex: 0 0 220px;
  min-width: 170px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.emp-toolbar-main #emp-crew-filter {
  min-width: 130px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #334743;
}
.emp-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
.emp-toolbar-actions .btn-link {
  padding: 0 2px;
  align-self: center;
  white-space: nowrap;
}
.emp-table {
  min-width: 900px;
  font-size: 12.5px;
}
.emp-table th,
.emp-table td {
  padding: 9px 6px;
  white-space: nowrap;
  vertical-align: middle;
}
.emp-table th {
  background: #f7f9f9;
  color: #5c6d69;
  font-weight: 600;
}
.emp-table tbody tr:hover td {
  background: #fbfdfc;
}
.emp-table .emp-id {
  width: 52px;
  text-align: center;
  color: #899894;
  font-variant-numeric: tabular-nums;
}
.emp-table .emp-name {
  font-weight: 600;
  color: #22332f;
}
.emp-table .emp-phone {
  font-variant-numeric: tabular-nums;
  color: #51635f;
}
.emp-table .emp-ops {
  width: 106px;
  white-space: nowrap;
  position: sticky;
  right: 0;
  z-index: 2;
  background: #fff;
  box-shadow: -8px 0 8px -8px rgba(18, 40, 34, 0.28);
}
.emp-table th:last-child {
  position: sticky;
  right: 0;
  z-index: 3;
  background: #f7f9f9;
  box-shadow: -8px 0 8px -8px rgba(18, 40, 34, 0.28);
}
.btn-table {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  margin-right: 5px;
  border: 1px solid #bfd8d2;
  border-radius: 5px;
  background: #fff;
  color: #12695c;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}
.btn-table:hover {
  background: #eef7f4;
  border-color: #12695c;
}
.btn-table.del {
  margin-right: 0;
  border-color: #efc8c1;
  color: #b43a2b;
}
.btn-table.del:hover {
  background: #fdf0ee;
  border-color: #b43a2b;
}
.emp-stars {
  display: inline-flex;
  gap: 1px;
  color: #c9a227;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
.emp-stars .off {
  color: #c7d2cf;
}
@media (max-width: 1200px) {
  .emp-toolbar-main {
    flex-basis: 100%;
  }
  .emp-toolbar-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 760px) {
  .emp-toolbar {
    align-items: stretch;
  }
  .emp-toolbar-main {
    flex-basis: 100%;
    flex-wrap: wrap;
  }
  .emp-toolbar-main #emp-search {
    flex-basis: 100%;
  }
  .emp-toolbar-actions {
    justify-content: flex-start;
  }
}

/* ----- 经营管理模块 ----- */
.biz-card { padding: 0 0 4px; }
.biz-head-actions { display: flex; gap: 8px; align-items: center; }
.biz-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.biz-toolbar-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1 1 480px; }
.biz-toolbar-main input { min-width: 180px; max-width: 320px; }
.biz-toolbar-main select { min-width: 130px; }
.biz-toolbar-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.biz-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.biz-kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.biz-kpi span { display: block; color: var(--muted); font-size: 12px; }
.biz-kpi b { display: block; font-size: 20px; line-height: 1.35; margin-top: 4px; word-break: break-all; }
.biz-kpi em { display: block; color: var(--muted); font-size: 11px; font-style: normal; margin-top: 4px; }
.biz-tabs { display: flex; align-items: center; gap: 4px; padding: 10px 14px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.biz-tab { border: 0; background: transparent; color: var(--muted); padding: 8px 12px 9px; font-size: 13px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.biz-tab.on { color: var(--ink); border-bottom-color: var(--brand); font-weight: 600; }
.biz-panel { padding: 0 0 4px; }
.biz-table { min-width: 880px; font-size: 12.5px; }
.biz-table th, .biz-table td { padding: 9px 8px; }
.biz-table td .row-sub { margin-top: 3px; font-size: 11px; color: var(--muted); }
.biz-actions { white-space: nowrap; }
.biz-actions .btn-table + .btn-table { margin-left: 6px; }
.biz-approval { display: flex; gap: 6px; align-items: baseline; font-size: 11.5px; line-height: 1.7; }
.biz-approval span { color: var(--muted); }
.biz-approval b { font-weight: 600; }
.biz-level { display: inline-block; padding: 2px 7px; border-radius: 5px; background: #eef4f0; color: #17624a; font-size: 12px; }
.biz-profit { color: #17624a; }
.biz-loss { color: #c0392b; }
.biz-mini-summary { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px 0; }
.biz-mini-summary span { background: #f4f8f5; border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; color: var(--muted); font-size: 12px; }
.biz-mini-summary b { color: var(--ink); margin-left: 4px; }
@media (max-width: 1200px) {
  .biz-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .biz-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .biz-toolbar-main { flex: 1 1 100%; }
  .biz-toolbar-main input { max-width: none; }
  .biz-kpi b { font-size: 17px; }
}

.biz-kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.biz-table th:last-child, .biz-table td:last-child {
  position: sticky;
  right: 0;
  background: #fff;
  box-shadow: -8px 0 10px -9px rgba(20, 40, 30, .45);
}
.biz-table th:last-child { z-index: 2; background: #f7faf8; }
.biz-table td:last-child { z-index: 1; }
@media (max-width: 980px) {
  .biz-kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.biz-table { min-width: 720px; }

.biz-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.biz-chart-card { padding: 14px 16px 10px; overflow: hidden; }
.biz-chart-wide { grid-column: 1 / -1; }
.biz-chart-title { font-size: 13px; font-weight: 600; color: #31453c; margin-bottom: 6px; }
@media (max-width: 860px) { .biz-charts { grid-template-columns: 1fr; } .biz-chart-wide { grid-column: auto; } }

.biz-chart-card .pie-svg { width: 166px; }
.biz-chart-card .pie-name { min-width: 34px; }


/* 报销发票附件 */
.invoice-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 8px; align-items: flex-start; }
.invoice-item { position: relative; width: 96px; border: 1px solid #d8e2df; border-radius: 8px; background: #fff; overflow: hidden; }
.invoice-item img { display: block; width: 96px; height: 72px; object-fit: cover; background: #f3f6f5; }
.invoice-pdf { display: flex; align-items: center; justify-content: center; width: 96px; height: 72px; background: #f4f7f6; color: #5d726e; font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.invoice-name { padding: 5px 6px; font-size: 11px; color: #435955; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.invoice-x { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; line-height: 20px; padding: 0; font-size: 14px; }
.reim-inv { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 11px; }
.reim-inv-link { color: #12695c; text-decoration: underline; }
.reim-inv-none { color: #b26a00; }

/* v1.12 车辆设备 / 数据库 / 权限 */
.biz-kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.db-stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 4px; }
.db-stat { background: #f5f8f7; border: 1px solid #e2ebe7; border-radius: 10px; padding: 12px 14px; }
.db-stat span { display: block; color: #6b7b78; font-size: 12px; margin-bottom: 6px; }
.db-stat b { display: block; font-size: 16px; color: #1f3b35; line-height: 1.3; }
.db-stat em { display: block; color: #7c8b87; font-size: 12px; font-style: normal; margin-top: 5px; }
.db-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.db-danger-zone { margin-top: 22px; padding: 14px; border: 1px solid #f1d7d2; border-radius: 10px; background: #fff8f6; }
.db-danger-zone .card-title { margin-bottom: 8px; }
.table-title { font-weight: 700; color: #1f3b35; margin: 18px 0 8px; }
.btn-ghost.danger { color: #c0392b; border-color: #e8c4bc; }
.perm-table th.perm-cell, .perm-table td.perm-cell { text-align: center; vertical-align: middle; }
.perm-check { width: 16px; height: 16px; accent-color: #12695c; cursor: pointer; }
.perm-check:disabled { cursor: default; }
.perm-switch { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; color: #415651; font-size: 13px; line-height: 1.6; }
.perm-switch input { width: 16px; height: 16px; margin-top: 2px; accent-color: #12695c; }
@media (max-width: 1100px) {
  .biz-kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .db-stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .biz-kpis-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .db-stat-row { grid-template-columns: 1fr; }
}

/* 页签在窄屏可横向滚动，避免中文标签折行 */
.subtabs { overflow-x: auto; scrollbar-width: thin; }
.subtabs button { white-space: nowrap; flex: 0 0 auto; }
.db-stat b { word-break: break-all; }

/* 系统配置6个页签在窄屏尽量一屏放下 */
.subtabs-settings { gap: 8px; }
.subtabs-settings button { font-size: 12.5px; padding-left: 0; padding-right: 0; }

/* 车辆费用台账：单元格内的次要说明 */
.cell-sub { font-size: 12px; color: #6b7280; line-height: 1.5; margin-top: 3px; }

/* 投标台账 / 报价单 / 合同打印 */
.quote-meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; margin-bottom: 10px; }
.quote-import-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 10px; padding: 9px 12px; border: 1px solid #e3ece8; border-radius: 8px; background: #f7fbf9; }
.quote-import-bar .hint { margin: 0; }
.quote-edit-table input { width: 100%; border: 1px solid #d7e2de; border-radius: 6px; padding: 6px 7px; font-size: 12.5px; background: #fff; }
.quote-edit-table td { vertical-align: middle; }
.quote-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 4px; }
.quote-total-tip { color: #415651; font-size: 13px; }
.quote-total-tip b { color: #12695c; margin-left: 3px; }
.quote-doc { max-width: 980px; margin: 0 auto; color: #22312d; font-size: 13px; line-height: 1.7; }
.quote-doc h1, .contract-doc h1 { font-family: "SimHei", "Microsoft YaHei", sans-serif; font-size: 25px; letter-spacing: 2px; text-align: center; margin: 8px 0 20px; color: #1f3b35; }
.print-brand { text-align: center; font-size: 13px; letter-spacing: 3px; color: #5d7770; padding-bottom: 8px; border-bottom: 2px solid #12695c; margin-bottom: 14px; }
.quote-head-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 20px; padding: 10px 0 13px; border-bottom: 1px solid #c9dbd5; margin-bottom: 12px; }
.quote-head-grid b { color: #45635b; font-weight: 600; }
.quote-items, .contract-items { width: 100%; border-collapse: collapse; margin: 10px 0 14px; }
.quote-items th, .quote-items td, .contract-items th, .contract-items td { border: 1px solid #9bb3ab; padding: 5px 5px; font-size: 11.5px; vertical-align: middle; }
.quote-items th, .contract-items th { background: #eef5f2; color: #234a3f; text-align: center; font-weight: 600; }
.quote-items td, .contract-items td { word-break: break-word; }
.quote-items .num, .contract-items .num { text-align: right; }
.quote-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; margin-left: auto; width: 52%; padding: 8px 0; border-top: 1px solid #c9dbd5; }
.quote-summary div { display: flex; justify-content: space-between; gap: 12px; }
.quote-summary b { color: #12695c; }
.quote-summary div:last-child { grid-column: 1 / -1; padding-top: 6px; border-top: 1px dashed #c9dbd5; font-size: 15px; }
.quote-note { margin-top: 12px; padding: 9px 11px; background: #f7fbf9; border-left: 3px solid #9fc8bd; color: #48645d; }
.quote-sign { display: flex; justify-content: space-between; gap: 16px; margin-top: 34px; color: #48645d; }
.contract-doc { max-width: 900px; margin: 0 auto; color: #222; font-size: 13px; line-height: 1.9; }
.contract-kicker { text-align: right; color: #5d7770; font-size: 12px; }
.contract-doc h2 { font-family: "SimHei", "Microsoft YaHei", sans-serif; font-size: 14px; margin: 18px 0 6px; color: #1f3b35; }
.contract-parties p { margin: 3px 0; }
.contract-parties { padding: 6px 0 12px; border-bottom: 1px solid #d7e2de; margin-bottom: 12px; }
.contract-sign { display: flex; justify-content: space-between; gap: 24px; margin-top: 38px; color: #333; }
.contract-sign .sign-line { display: inline-block; min-width: 150px; border-bottom: 1px solid #777; margin-left: 4px; }
.print-page { max-width: 1100px; margin: 0 auto; padding: 20px 24px 40px; }
.print-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.print-toolbar-title { color: #415651; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.print-sheet { background: #fff; border: 1px solid #dfe9e5; border-radius: 10px; padding: 34px 42px 42px; box-shadow: 0 8px 26px rgba(21, 61, 51, .06); }
@media (max-width: 720px) {
  .quote-meta-grid { grid-template-columns: 1fr 1fr; }
  .quote-import-bar, .quote-toolbar { align-items: flex-start; flex-direction: column; }
  .print-sheet { padding: 22px 16px; }
}
@media print {
  .sidebar, .topbar, .print-toolbar, .no-print { display: none !important; }
  body { background: #fff !important; }
  .print-page, .print-sheet { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .quote-doc, .contract-doc { max-width: none; }
  .quote-items, .contract-items { page-break-inside: auto; }
  .quote-items tr, .contract-items tr { page-break-inside: avoid; }
}.quote-items, .contract-items { table-layout: fixed; }
.quote-items th:nth-child(1), .quote-items td:nth-child(1) { width: 6% !important; }
.quote-items th:nth-child(2), .quote-items td:nth-child(2) { width: 22% !important; }
.quote-items th:nth-child(3), .quote-items td:nth-child(3) { width: 12% !important; }
.quote-items th:nth-child(4), .quote-items td:nth-child(4) { width: 7% !important; }
.quote-items th:nth-child(5), .quote-items td:nth-child(5) { width: 7% !important; }
.quote-items th:nth-child(6), .quote-items td:nth-child(6) { width: 12% !important; }
.quote-items th:nth-child(7), .quote-items td:nth-child(7) { width: 14% !important; }
.quote-items th:nth-child(8), .quote-items td:nth-child(8) { width: 20% !important; }
.contract-items th:nth-child(1), .contract-items td:nth-child(1) { width: 6% !important; }
.contract-items th:nth-child(2), .contract-items td:nth-child(2) { width: 22% !important; }
.contract-items th:nth-child(3), .contract-items td:nth-child(3) { width: 12% !important; }
.contract-items th:nth-child(4), .contract-items td:nth-child(4) { width: 7% !important; }
.contract-items th:nth-child(5), .contract-items td:nth-child(5) { width: 7% !important; }
.contract-items th:nth-child(6), .contract-items td:nth-child(6) { width: 12% !important; }
.contract-items th:nth-child(7), .contract-items td:nth-child(7) { width: 14% !important; }
.contract-items th:nth-child(8), .contract-items td:nth-child(8) { width: 20% !important; }
.quote-summary span, .quote-summary b { white-space: nowrap; }
.quote-summary { width: 60%; }
/* 报价单编辑表格在窄窗口下保留可用的列宽，超出部分横向滚动 */
.quote-edit-table { min-width: 920px; table-layout: fixed; }
.quote-edit-table th:nth-child(1), .quote-edit-table td:nth-child(1) { width: 44px !important; }
.quote-edit-table th:nth-child(3), .quote-edit-table td:nth-child(3) { width: 110px !important; }
.quote-edit-table th:nth-child(4), .quote-edit-table td:nth-child(4) { width: 74px !important; }
.quote-edit-table th:nth-child(5), .quote-edit-table td:nth-child(5) { width: 84px !important; }
.quote-edit-table th:nth-child(6), .quote-edit-table td:nth-child(6) { width: 96px !important; }
.quote-edit-table th:nth-child(7), .quote-edit-table td:nth-child(7) { width: 100px !important; }
.quote-edit-table th:nth-child(8), .quote-edit-table td:nth-child(8) { width: 130px !important; }
.quote-edit-table th:nth-child(9), .quote-edit-table td:nth-child(9) { width: 44px !important; }
.quote-edit-table td input { width: 100%; min-width: 0; box-sizing: border-box; }
/* v1.18.0 项目全景与结算统计 */
.project-flow .flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}
.flow-step{position:relative;padding:12px 12px 12px 16px;border:1px solid var(--line);border-left:4px solid var(--line);border-radius:10px;background:var(--card,#fff);min-width:0}
.flow-step.done{border-left-color:#1f7a5a}
.flow-step.skip{border-left-color:#c9ced6;background:#fafbfc}
.flow-title{font-size:13px;color:var(--muted);margin-bottom:4px}
.flow-value{font-size:18px;font-weight:700;line-height:1.35;word-break:break-all}
.flow-desc{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.5;word-break:break-word}
.flow-step.skip .flow-value{color:#8a929c;font-weight:600}
@media (max-width:1100px){.project-flow .flow{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.project-flow .flow{grid-template-columns:1fr}}