/* 大板鲫 · 运营管理控制台（独立后台 v7.8） */
* { box-sizing: border-box; }
body.cv-body { margin: 0; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; background: #f0f4f2; color: #234; }
a { color: #1fa87a; text-decoration: none; }

.cv-top { position: fixed; top: 0; left: 0; right: 0; height: 54px; background: #134e3a; color: #fff;
  display: flex; align-items: center; gap: 14px; padding: 0 18px; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.cv-top .brand { font-size: 17px; font-weight: bold; display: flex; align-items: center; gap: 8px; }
.cv-top .brand img { width: 30px; height: 30px; border-radius: 8px; }
.cv-top .brand small { font-weight: normal; opacity: .75; font-size: 12px; }
.cv-top .spacer { flex: 1; }
.cv-top a { color: #bfe8d6; font-size: 13px; padding: 5px 10px; border-radius: 8px; }
.cv-top a:hover { background: rgba(255,255,255,.12); color: #fff; }

.cv-side { position: fixed; top: 54px; bottom: 0; left: 0; width: 190px; background: #fff; border-right: 1px solid #e0eae5; padding: 14px 10px; overflow-y: auto; }
.cv-nav { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 11px 14px; border-radius: 10px;
  font-size: 14px; color: #345; cursor: pointer; margin-bottom: 4px; }
.cv-nav:hover { background: #f0f7f3; }
.cv-nav.active { background: #e2f4ea; color: #134e3a; font-weight: bold; }
.cv-nav .sub { float: right; font-size: 11px; color: #e67e22; }

.cv-main { margin: 54px 0 0 190px; padding: 20px 24px 40px; }
.cv-page { display: none; }
.cv-page.active { display: block; }
.cv-page h3 { margin: 0 0 14px; color: #134e3a; font-size: 18px; }

/* 统计卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.stat-card { background: #fff; border: 1px solid #e3ede8; border-radius: 14px; padding: 16px 18px; }
.stat-card .num { font-size: 26px; font-weight: bold; color: #134e3a; margin-top: 4px; }
.stat-card .lbl { font-size: 13px; color: #789; }
.stat-card.warn .num { color: #e67e22; }
.stat-card.money .num { color: #c0392b; }

/* 工具条/按钮 */
.bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.bar input, .bar select { padding: 8px 10px; border: 1px solid #cfe3da; border-radius: 8px; font-size: 13px; }
.btn { border: 1px solid #cfe3da; background: #fff; color: #146c52; padding: 8px 16px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.btn:hover { background: #f0f7f3; }
.btn.primary { background: #1fa87a; border-color: #1fa87a; color: #fff; }
.btn.primary:hover { background: #178f68; }
.btn.danger { background: #ffebee; border-color: #f5c6c0; color: #c62828; }
.btn.danger:hover { background: #c62828; color: #fff; }
.btn.mini { padding: 4px 10px; font-size: 12px; }

/* 池塘管理布局 */
.pond-layout { display: flex; gap: 16px; align-items: flex-start; }
.pond-list { width: 300px; flex-shrink: 0; background: #fff; border: 1px solid #e3ede8; border-radius: 14px; padding: 10px; max-height: 72vh; overflow-y: auto; }
.pond-item { padding: 10px 12px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.pond-item:hover { background: #f4faf7; }
.pond-item.on { background: #e2f4ea; border-color: #b7e2cd; }
.pond-item .nm { font-weight: bold; color: #134e3a; font-size: 14px; }
.pond-item .mt { font-size: 12px; color: #8aa596; margin-top: 2px; }
.pond-detail { flex: 1; min-width: 0; }
.panel { background: #fff; border: 1px solid #e3ede8; border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; }
.panel h4 { margin: 0 0 12px; color: #134e3a; font-size: 15px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 14px; }
.form-grid label { font-size: 12px; color: #678; display: flex; flex-direction: column; gap: 4px; }
.form-grid input, .form-grid select, .form-grid textarea { padding: 8px 10px; border: 1px solid #cfe3da; border-radius: 8px; font-size: 13px; width: 100%; }
.form-grid .full { grid-column: 1 / -1; }

/* 鱼种行（同 v7.7 风格） */
.gf-row { display: flex; align-items: center; gap: 6px; background: #f8fbf9; border: 1px solid #e3ede8; border-radius: 10px; padding: 7px 10px; margin: 6px 0; font-size: 13px; }
.gf-name { min-width: 70px; color: #134e3a; font-weight: bold; }
.gf-row select, .gf-row input { padding: 5px 6px; border: 1px solid #cfe3da; border-radius: 6px; font-size: 13px; }
.gf-d { width: 60px; }
.gf-s, .gf-k { width: 70px; }

/* 表格 */
table.cv-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-size: 13px; }
.cv-table th { background: #f0f7f3; color: #146c52; text-align: left; padding: 10px 12px; font-weight: bold; }
.cv-table td { padding: 9px 12px; border-top: 1px solid #eef4f1; vertical-align: middle; }
.cv-table input, .cv-table select { padding: 6px 8px; border: 1px solid #cfe3da; border-radius: 6px; font-size: 13px; width: 100%; }
.cv-table .nowrap { white-space: nowrap; }

/* 状态徽章 */
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; }
.b-signed { background: #e8f5e9; color: #2e7d32; }
.b-unsigned { background: #f5f5f5; color: #757575; }
.b-pending { background: #fff3e0; color: #e67e22; }
.b-off { background: #ffebee; color: #c62828; }
.st { padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.st-paid { background: #fff3e0; color: #e67e22; }
.st-redeemed { background: #e8f5e9; color: #2e7d32; }
.st-delivered { background: #e3f2fd; color: #1565c0; }
.st-pending { background: #f5f5f5; color: #757575; }
.st-cancelled { background: #ffebee; color: #c62828; }

/* 兑换单/客诉行 */
.ex-row { background: #fff; border: 1px solid #e3ede8; border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.ex-main { font-size: 14px; color: #134e3a; padding-bottom: 4px; }
.ex-act { margin-top: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.muted { color: #8aa596; font-size: 12px; }
.hint { color: #8aa596; font-size: 13px; padding: 8px 0; }
.sum-cards { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.sum-card { background: #fff; border: 1px solid #dceee5; border-radius: 10px; padding: 8px 12px; font-size: 13px; color: #146c52; }
.sum-card b { font-size: 16px; color: #134e3a; }
.sum-card.pay { background: #fff8ee; border-color: #f2ddb8; color: #a05a10; }
.sum-card.pay b { color: #e67e22; }
.ex-code { font-size: 26px; letter-spacing: 5px; color: #134e3a; font-weight: bold; margin-bottom: 6px; }
.ex-detail { background: #f2fbf7; border: 2px dashed #1fa87a; border-radius: 14px; padding: 16px; margin: 10px 0; text-align: center; }

#toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: rgba(20, 60, 45, .92);
  color: #fff; padding: 10px 22px; border-radius: 22px; font-size: 14px; z-index: 99; }
.hidden { display: none !important; }

/* v7.36 弹层（申请签约身份认证） */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; z-index: 200;
}
.modal { width: 420px; max-width: 92vw; max-height: 86vh; overflow: auto; background: #fff; border-radius: 14px; padding: 20px; }
.modal-title { font-size: 17px; font-weight: 700; color: #14306b; margin-bottom: 8px; }
.m-input {
  width: 100%; box-sizing: border-box;
  background: #f4f9f5; border: none; border-radius: 8px;
  padding: 10px 12px; font-size: 14px; margin-bottom: 10px;
}
.modal-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.modal-btns button { border: none; border-radius: 8px; padding: 8px 16px; font-size: 14px; cursor: pointer; }
.btn-plain { background: #eef3f0; color: #5a6b62; }
.btn-primary { background: #1fa87a; color: #fff; }
/* 重复名警示 */
.dup-warn { color: #e2543e; font-weight: 700; }
.cl-cred { font-size: 12px; color: #44554c; line-height: 1.6; }
.cl-cred b { color: #14306b; }
/* v7.37 员工身份标识 */
.cv-user { font-size: 13px; color: #ffe9a8; padding: 5px 10px; }

/* v7.62 垂钓订单中心 CRM */
.oc-badge {
  display: inline-block; background: #e2543e; color: #fff;
  font-size: 12px; font-weight: 700; border-radius: 999px;
  padding: 2px 10px; margin-left: 8px; vertical-align: middle;
  animation: ocPulse 1s ease-in-out infinite alternate;
}
@keyframes ocPulse { from { transform: scale(1); } to { transform: scale(1.12); } }
.oc-row { cursor: pointer; transition: background .15s; }
.oc-row:hover { background: #f2f8f4; }
.oc-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.oc-table th, .oc-table td { border-bottom: 1px solid #e6efe9; padding: 6px 8px; text-align: left; }
.oc-table th { color: #5a6b62; font-weight: 600; background: #f4f9f5; }

/* v7.63 ERP 订单表格视图 */
.oc-grid { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.oc-grid th {
  position: sticky; top: 0; z-index: 2;
  background: #f0f6f2; color: #44554c; font-weight: 600; text-align: left;
  padding: 8px 10px; border-bottom: 2px solid #d8e6dd; white-space: nowrap;
}
.oc-grid td {
  padding: 7px 10px; border-bottom: 1px solid #edf3ef;
  white-space: nowrap; max-width: 220px; overflow: hidden;
}
.oc-grid td.ellipsis { text-overflow: ellipsis; }
.oc-grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
.oc-grid td.mono { font-family: Consolas, monospace; font-weight: 700; color: #14306b; }
.oc-grid td.nowrap { white-space: nowrap; }
.oc-grid .oc-tr { cursor: pointer; }
.oc-grid .oc-tr:nth-child(even) { background: #fafcfb; }
.oc-grid .oc-tr:hover { background: #e8f4ec; }
.oc-pager {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px 2px; font-size: 13px; flex-wrap: wrap;
}
.oc-pg-group { display: inline-flex; gap: 4px; align-items: center; }
.oc-pg {
  border: 1px solid #d8e6dd; background: #fff; color: #2c3e36;
  border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer;
}
.oc-pg:hover:not([disabled]) { background: #eef7f1; border-color: #9cc9ae; }
.oc-pg.cur { background: #1fa87a; color: #fff; border-color: #1fa87a; font-weight: 700; }
.oc-pg[disabled] { opacity: .4; cursor: default; }
.oc-pager select {
  border: 1px solid #d8e6dd; border-radius: 6px; padding: 4px 6px; font-size: 12px; background: #fff;
}

/* v7.64 池塘管理页签 */
.pt-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  border-bottom: 2px solid #d8e6dd; margin-bottom: 12px;
}
.pt-tab {
  border: none; background: transparent; cursor: pointer;
  padding: 9px 16px; font-size: 14px; font-weight: 600; color: #5a6b62;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.pt-tab:hover { color: #1fa87a; }
.pt-tab.on { color: #1fa87a; border-bottom-color: #1fa87a; }
