/* =========================================================
   动能打卡 · 后台管理
   ========================================================= */

/* ---------- 页头（骨架统一用 02-kit.css 的 .pg-head，这里只保留指标行） ---------- */
.dk-meta { display: flex; gap: 18px; font-size: 12.5px; color: #6B7488; flex-wrap: wrap; margin-top: 2px; }
.dk-meta b { color: #2C3242; font-weight: 500; }

/* ---------- 指标卡 ---------- */
.dk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
@media (max-width: 900px) { .dk-stats { grid-template-columns: repeat(2, 1fr); } }
.dk-stat {
  background: #fff; border: 1px solid #E6EBF3; border-radius: 12px;
  padding: 16px 18px; position: relative; overflow: hidden;
}
.dk-stat::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #D8DEE9;
}
.dk-stat.blue::before { background: #1F4E9C; }
.dk-stat.red::before { background: #E60012; }
.dk-stat.green::before { background: #2E9E5B; }
.dk-stat.orange::before { background: #F5A623; }
.dk-st-label { font-size: 12.5px; color: #6B7488; }
.dk-st-num { font-size: 30px; font-weight: 500; line-height: 1.25; color: #1F2431; margin: 2px 0; }
.dk-st-sub { font-size: 11.5px; color: #9AA3B5; }

/* ---------- 日期条 ---------- */
.dk-datebar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: 13px; color: #6B7488;
}
.dk-datebar input, .dk-toolbar input, .dk-toolbar select {
  height: 34px; border: 1px solid #E1E7F0; border-radius: 8px; padding: 0 10px;
  font-size: 13px; background: #fff; color: #2C3242; font-family: inherit; outline: none;
  width: auto; flex: 0 0 auto;
}
.dk-toolbar input[type="date"] { width: 152px; }
.dk-toolbar select { min-width: 96px; padding-right: 6px; }
.dk-datebar input[type="date"] { width: 152px; }
.dk-datebar input:focus, .dk-toolbar input:focus { border-color: #E60012; }
.dk-tip { font-size: 12px; color: #9AA3B5; }

/* ---------- 板块卡 ---------- */
.dk-boards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
@media (max-width: 900px) { .dk-boards { grid-template-columns: 1fr; } }
.dk-bcard {
  background: #fff; border: 1px solid #E6EBF3; border-radius: 12px; padding: 16px 18px;
}
.dk-bc-top { display: flex; justify-content: space-between; font-size: 13px; color: #6B7488; }
.dk-bc-top em { font-style: normal; color: #9AA3B5; }
.dk-bc-num { font-size: 28px; font-weight: 500; color: #1F2431; margin: 6px 0 10px; }
.dk-bcard.good .dk-bc-num { color: #2E9E5B; }
.dk-bcard.mid .dk-bc-num { color: #F5A623; }
.dk-bcard.bad .dk-bc-num { color: #E60012; }
.dk-bc-bar { height: 5px; background: #EEF2F8; border-radius: 5px; overflow: hidden; }
.dk-bc-bar i { display: block; height: 100%; background: #2E9E5B; border-radius: 5px; transition: width .4s; }
.dk-bcard.mid .dk-bc-bar i { background: #F5A623; }
.dk-bcard.bad .dk-bc-bar i { background: #E60012; }
.dk-bc-sub { font-size: 11.5px; color: #9AA3B5; margin-top: 9px; }

/* ---------- 卡片与表格 ---------- */
.dk-card {
  background: #fff; border: 1px solid #E6EBF3; border-radius: 12px;
  margin-bottom: 14px; overflow: hidden;
}
.dk-card-h {
  padding: 14px 18px; font-size: 13.5px; font-weight: 500; color: #2C3242;
  border-bottom: 1px solid #F0F3F8; display: flex; align-items: center; gap: 10px;
}
.dk-sub { font-weight: 400; font-size: 12px; color: #9AA3B5; }
.dk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dk-table th {
  text-align: left; font-weight: 400; font-size: 12px; color: #8A93A6;
  padding: 10px 14px; background: #FAFBFD; border-bottom: 1px solid #F0F3F8;
  white-space: nowrap;
}
.dk-table td { padding: 12px 14px; border-bottom: 1px solid #F5F7FA; color: #2C3242; vertical-align: middle; }
.dk-table tr:last-child td { border-bottom: none; }
.dk-table tr:hover td { background: #FCFDFF; }
.dk-table .num { text-align: right; white-space: nowrap; }
.dk-table tr.dim td { color: #A8B0C0; }
.dk-td-sub { font-size: 11.5px; color: #9AA3B5; margin-top: 2px; }
.dk-mini {
  display: inline-block; font-size: 10.5px; color: #9AA3B5; background: #F2F5FA;
  border-radius: 4px; padding: 1px 5px; margin-left: 6px;
}
.dk-rate { font-weight: 500; }
.dk-rate.ok { color: #2E9E5B; }
.dk-rate.mid { color: #F5A623; }
.dk-rate.low { color: #E60012; }

/* ---------- 异常 ---------- */
.dk-exc { padding: 8px 18px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.dk-exc-item {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px;
  background: #FDF9F0; border: 1px solid #F6E9C8; border-radius: 8px; padding: 7px 11px;
}
.dk-exc-item b { color: #2C3242; font-weight: 500; }
.dk-exc-item span { color: #8A93A6; font-size: 11.5px; }
.dk-exc-item em { font-style: normal; margin-left: auto; color: #B8860B; font-size: 11.5px; }

/* ---------- 工具条 ---------- */
.dk-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }

/* ---------- 小按钮 ---------- */
.dk-btn {
  border: 1px solid #E1E7F0; background: #fff; color: #2C3242; font-size: 12px;
  padding: 4px 10px; border-radius: 6px; cursor: pointer; font-family: inherit;
  margin-left: 4px; transition: .15s;
}
.dk-btn:hover { border-color: #C9D0DC; background: #F8FAFD; }
.dk-btn.ok { color: #fff; background: #2E9E5B; border-color: #2E9E5B; }
.dk-btn.ok:hover { background: #268049; }
.dk-btn.no { color: #E60012; border-color: #F5C2C6; }
.dk-btn.no:hover { background: #FFF1F2; }
.dk-btn.del { color: #8A93A6; }
.dk-btn.del:hover { color: #E60012; border-color: #F5C2C6; }

/* ---------- 照片 ---------- */
.dk-thumb {
  width: 46px; height: 34px; object-fit: cover; border-radius: 5px;
  border: 1px solid #E6EBF3; display: block;
}
.dk-addr { max-width: 280px; font-size: 12px; color: #6B7488; }
.dk-susp {
  font-size: 10.5px; color: #E60012; background: #FFF1F2;
  padding: 1px 6px; border-radius: 4px; margin-left: 4px;
}

/* ---------- 设备管理（防代打卡） ---------- */
.dk-dev-cfg { padding: 6px 18px 2px; }
.dk-dev-line {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px dashed #F0F3F8; font-size: 13px; color: #2C3242;
}
.dk-dev-line:last-child { border-bottom: none; }
.dk-dev-line > span:first-child { color: #4A5366; flex: 1 1 auto; }
.dk-num {
  flex: 0 0 78px; width: 78px; height: 32px; border: 1px solid #E1E7F0; border-radius: 7px;
  text-align: center; font-size: 13px; font-family: inherit; color: #2C3242;
  background: #fff; outline: none;
}
.dk-num:focus { border-color: #E60012; }
.dk-switch2 { position: relative; display: inline-block; width: 42px; height: 24px; flex: 0 0 42px; }
.dk-switch2 input { position: absolute; opacity: 0; width: 0; height: 0; }
.dk-switch2 i {
  position: absolute; inset: 0; background: #DDE3ED; border-radius: 24px;
  transition: .2s; cursor: pointer;
}
.dk-switch2 i::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px; transition: .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.16);
}
.dk-switch2 input:checked + i { background: #E60012; }
.dk-switch2 input:checked + i::after { transform: translateX(18px); }
.dk-actions { padding: 14px 18px 16px; }

.dk-dev { display: flex; align-items: center; gap: 7px; padding: 2px 0; flex-wrap: wrap; }
.dk-dev.off { opacity: .55; }
.dk-dev-code {
  font-family: Menlo, Consolas, monospace; font-size: 11.5px; letter-spacing: .4px;
  color: #fff; background: #2C3242; border-radius: 4px; padding: 1px 6px;
}
.dk-dev-m { font-size: 12px; color: #6B7488; }
.dk-alert {
  display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; color: #8A6B1F;
  background: #FFFDF6; border: 1px solid #F5E7C0; border-radius: 8px;
  padding: 8px 12px; margin: 10px 18px;
}
.dk-alert:last-child { margin-bottom: 16px; }
.dk-alert b { color: #2C3242; font-weight: 500; white-space: nowrap; }

/* ---------- 弹窗表单 ---------- */
.dk-modal h3 { margin: 0 0 16px; font-size: 16px; font-weight: 500; }
.dk-form { max-height: 62vh; overflow-y: auto; padding-right: 4px; }
.dk-form label { display: block; font-size: 12.5px; color: #6B7488; margin: 12px 0 6px; }
.dk-form label small { color: #A8B0C0; }
.dk-form input, .dk-form select, .dk-form textarea {
  width: 100%; height: 36px; border: 1px solid #E1E7F0; border-radius: 8px;
  padding: 0 10px; font-size: 13px; font-family: inherit; color: #2C3242;
  background: #fff; outline: none;
}
.dk-form input:focus, .dk-form select:focus { border-color: #E60012; }
.dk-row2 { display: flex; gap: 10px; }
.dk-row2 > div { flex: 1; }
.dk-search { display: flex; gap: 8px; }
.dk-search input { flex: 1; }
.dk-search button {
  height: 36px; padding: 0 16px; border: 1px solid #E60012; background: #E60012;
  color: #fff; border-radius: 8px; font-size: 13px; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
.dk-results { margin-top: 8px; }
.dk-res {
  padding: 8px 10px; border: 1px solid #F0F3F8; border-radius: 8px;
  margin-bottom: 6px; cursor: pointer; transition: .15s; font-size: 12.5px;
}
.dk-res:hover { border-color: #C9D0DC; background: #FAFBFD; }
.dk-res.on { border-color: #E60012; background: #FFF8F8; }
.dk-res b { display: block; color: #2C3242; font-weight: 500; }
.dk-res span { color: #9AA3B5; font-size: 11.5px; }
.dk-modal-foot {
  display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px;
  padding-top: 16px; border-top: 1px solid #F0F3F8;
}

/* ---------- 参数页 ---------- */
.dk-slots { padding: 6px 18px 4px; }
.dk-slot-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid #F5F7FA; font-size: 13px;
}
.dk-slot-row:last-child { border-bottom: none; }
.dk-sr-name { width: 130px; color: #2C3242; }
.dk-sr-name small { display: block; color: #9AA3B5; font-size: 11.5px; }
.dk-time {
  width: 84px; height: 32px; border: 1px solid #E1E7F0; border-radius: 7px;
  text-align: center; font-size: 13px; font-family: inherit; color: #2C3242; outline: none;
}
.dk-time:focus { border-color: #E60012; }
.dk-switch { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12.5px; color: #6B7488; cursor: pointer; }
.dk-switch input { width: 15px; height: 15px; accent-color: #E60012; }
.dk-actions { padding: 14px 18px; border-top: 1px solid #F0F3F8; }
.dk-kv {
  display: flex; justify-content: space-between; padding: 8px 18px;
  font-size: 13px; color: #6B7488;
}
.dk-kv b { color: #2C3242; font-weight: 500; }

/* ===== KPI 总览页：今日营销打卡汇总卡（数据源为独立打卡页） ===== */
.dko-wrap { display: flex; align-items: center; gap: 28px; padding: 4px 2px; flex-wrap: wrap; }
.dko-hero { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.dko-big { font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.dko-big small { font-size: 16px; font-weight: 500; margin-left: 2px; }
.dko-label { font-size: 12.5px; color: #86909C; line-height: 1.6; }
.dko-label em { font-style: normal; color: #2C3242; font-weight: 500; }
.dko-bars { flex: 1 1 320px; min-width: 240px; display: flex; flex-direction: column; gap: 9px; }
.dko-row { display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
.dko-name { flex: 0 0 108px; color: #6B7488; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dko-bar { flex: 1; height: 7px; background: #EEF2F8; border-radius: 6px; overflow: hidden; }
.dko-bar i { display: block; height: 100%; border-radius: 6px; transition: width .5s ease; }
.dko-num { flex: 0 0 52px; text-align: right; color: #2C3242; font-variant-numeric: tabular-nums; }
.dko-tip {
  margin-top: 14px; padding: 10px 14px; border-radius: 8px;
  background: #FFFDF6; border: 1px solid #F5E7C0; color: #8A6B1F; font-size: 12.5px; line-height: 1.7;
}
@media (max-width: 720px) {
  .dko-wrap { gap: 16px; }
  .dko-big { font-size: 36px; }
  .dko-bars { flex: 1 1 100%; }
}

/* ================= 计划上报弹窗（v1.4 重排版） ================= */
.pf { display: flex; flex-direction: column; max-height: 88vh; }
.pf-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 20px 24px 16px; border-bottom: 1px solid #F0F3F8;
}
.pf-head-t h3 { margin: 0 0 5px; font-size: 17px; font-weight: 600; color: #1D2129; letter-spacing: -.2px; }
.pf-head-t p { margin: 0; font-size: 12.5px; color: #9AA3B5; }
.pf-x {
  flex: 0 0 30px; width: 30px; height: 30px; border: none; border-radius: 8px;
  background: #F5F7FA; color: #86909C; font-size: 17px; line-height: 1; cursor: pointer;
  font-family: inherit; transition: .15s;
}
.pf-x:hover { background: #ECEEF3; color: #2C3242; }

.pf-body { flex: 1; overflow-y: auto; padding: 2px 24px 10px; }
.pf-sec { padding-top: 16px; }
.pf-sec-h {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: #8A93A6; letter-spacing: .2px; margin-bottom: 12px;
}
.pf-sec-h::after { content: ''; flex: 1; height: 1px; background: #F0F3F8; }

.pf-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.pf-field > label { font-size: 12.5px; color: #6B7488; }
.pf-field > label i { font-style: normal; color: #E60012; margin-right: 3px; }

.pf-in {
  width: 100%; height: 40px; box-sizing: border-box;
  border: 1px solid #E4E9F2; border-radius: 9px; padding: 0 12px;
  font-size: 13.5px; font-family: inherit; color: #1D2129; background: #fff;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.pf-in::placeholder { color: #BFC7D5; }
.pf-in:hover { border-color: #CFD8E6; }
.pf-in:focus { border-color: #E60012; box-shadow: 0 0 0 3px rgba(230, 0, 18, .07); }
.pf-in.mono { font-family: Menlo, Consolas, "Courier New", monospace; font-size: 12.5px; }
select.pf-in {
  appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A93A6' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.pf-hint { font-size: 11.5px; color: #A8B0C0; line-height: 1.6; }

.pf-search { display: flex; gap: 8px; }
.pf-search .pf-in { flex: 1; min-width: 0; }
.pf-go {
  flex: 0 0 auto; height: 40px; padding: 0 20px; border: none; border-radius: 9px;
  background: #E60012; color: #fff; font-size: 13.5px; font-family: inherit;
  cursor: pointer; transition: .15s; letter-spacing: .5px;
}
.pf-go:hover { background: #C9000F; }
.pf-go:disabled { background: #F0A6AA; cursor: default; }

.pf-res { margin-top: 10px; }
.pf-res-list {
  border: 1px solid #EEF2F8; border-radius: 10px; overflow: hidden;
  max-height: 188px; overflow-y: auto;
}
.pf-res-item { padding: 10px 14px; border-bottom: 1px solid #F5F7FA; cursor: pointer; transition: .12s; }
.pf-res-item:last-child { border-bottom: none; }
.pf-res-item:hover { background: #FAFBFD; }
.pf-res-item.on { background: #FFF7F7; box-shadow: inset 3px 0 0 #E60012; }
.pf-res-item b { display: block; font-size: 13px; font-weight: 500; color: #1D2129; margin-bottom: 3px; }
.pf-res-item span {
  display: block; font-size: 11.5px; color: #9AA3B5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.pf-picked {
  display: none; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px;
  background: #F8FAFD; border: 1px solid #EAF0F8; border-radius: 10px;
}
.pf-pin {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px;
  background: #FFF1F2; color: #E60012; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.pf-pick-t { flex: 1; min-width: 0; }
.pf-pick-t b {
  display: block; font-size: 13px; font-weight: 500; color: #1D2129; margin-bottom: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pf-pick-t span {
  display: block; font-size: 11.5px; color: #86909C;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pf-pick-c {
  flex: 0 0 auto; font-family: Menlo, Consolas, monospace; font-size: 11px;
  color: #A8B0C0; text-align: right; line-height: 1.6;
}

.pf-time { display: flex; align-items: center; gap: 8px; }
.pf-time .pf-in { flex: 1; text-align: center; padding: 0 6px; min-width: 0; }
.pf-time > span { flex: 0 0 auto; color: #C9D0DC; font-size: 13px; }

.pf-suffix { position: relative; }
.pf-suffix .pf-in { padding-right: 40px; }
.pf-suffix em {
  position: absolute; right: 13px; top: 0; line-height: 40px;
  font-style: normal; font-size: 12px; color: #9AA3B5; pointer-events: none;
}

.pf-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 24px 18px; border-top: 1px solid #F0F3F8; background: #fff;
}
.pf-btn {
  height: 38px; padding: 0 22px; border-radius: 9px; border: 1px solid transparent;
  font-size: 13.5px; font-family: inherit; cursor: pointer; transition: .15s;
}
.pf-btn.ghost { background: #fff; border-color: #E1E7F0; color: #4A5366; }
.pf-btn.ghost:hover { border-color: #C9D0DC; background: #FAFBFD; }
.pf-btn.primary { background: #E60012; color: #fff; min-width: 108px; }
.pf-btn.primary:hover { background: #C9000F; }
.pf-btn.primary:disabled { background: #F0A6AA; cursor: default; }

@media (max-width: 720px) {
  .pf-grid2 { grid-template-columns: 1fr; }
  .pf-body { padding: 2px 16px 8px; }
  .pf-head { padding: 16px 16px 13px; }
  .pf-foot { padding: 12px 16px 16px; }
  .pf-foot .pf-btn { flex: 1; }
  .pf-head-t h3 { font-size: 16px; }
}

/* 原生日期/时间控件的图标弱化，与自定义控件统一 */
.pf-in::-webkit-calendar-picker-indicator { opacity: .38; cursor: pointer; }
.pf-in::-webkit-calendar-picker-indicator:hover { opacity: .75; }
.pf-res-tip { font-size: 11.5px; color: #9AA3B5; margin-bottom: 7px; }
.pf-res-list { max-height: 216px; }

/* 搜索结果：行高稳定，避免截断处露出半行 */
.pf-res-item { padding: 9px 14px; height: 58px; box-sizing: border-box; }
.pf-res-item b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.pf-res-item span { line-height: 1.5; }
.pf-res-list { max-height: 232px; overscroll-behavior: contain; }

/* ================= 打卡推送（企业微信） ================= */
.dk-push-pad { padding: 4px 18px 16px; }
.dk-push-row { display: flex; gap: 10px; align-items: center; }
.dk-push-row .pf-in { flex: 1; min-width: 0; font-size: 12.5px; font-family: Menlo, Consolas, monospace; }
.dk-push-row .pf-btn { flex: 0 0 auto; height: 40px; }
.dk-push-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #DDE3ED; margin-left: auto;
}
.dk-push-dot.on { background: #2E9E5B; box-shadow: 0 0 0 3px rgba(46, 158, 91, .12); }

.dk-push-scenes {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  padding: 4px 18px 14px;
}
.dk-scene {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 11px 13px; border: 1px solid #E6EBF3; border-radius: 10px;
  cursor: pointer; transition: .15s; background: #fff;
}
.dk-scene:hover { border-color: #CFD8E6; background: #FBFCFE; }
.dk-scene.on { border-color: #E60012; background: #FFF9F9; box-shadow: 0 0 0 3px rgba(230, 0, 18, .06); }
.dk-scene b { font-size: 13px; font-weight: 500; color: #2C3242; }
.dk-scene em { font-style: normal; font-size: 11.5px; color: #9AA3B5; line-height: 1.5; }
.dk-scene input { position: absolute; opacity: 0; pointer-events: none; }

.dk-push-inline { display: flex; align-items: center; gap: 6px; }
.dk-push-inline i { font-style: normal; font-size: 12px; color: #9AA3B5; }
.pf-time-in { width: 92px; height: 32px; padding: 0 8px; text-align: center; font-size: 12.5px; }

.dk-push-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.dk-quote-groups {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  padding: 4px 18px 12px;
}
.dk-qg { background: #FAFBFD; border: 1px solid #EEF2F8; border-radius: 10px; padding: 12px 14px; }
.dk-qg-h {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 12px; color: #6B7488; margin-bottom: 9px;
}
.dk-qg-h em { font-style: normal; font-size: 11px; color: #A8B0C0; }
.dk-qg-i {
  font-size: 12.5px; color: #2C3242; line-height: 1.75;
  padding: 4px 0; border-top: 1px dashed #EDF1F7;
}
.dk-qg-i:first-of-type { border-top: none; }
.dk-qg-more { font-size: 11.5px; color: #C1C9D6; margin-top: 4px; }

@media (max-width: 980px) {
  .dk-push-scenes { grid-template-columns: repeat(2, 1fr); }
  .dk-quote-groups { grid-template-columns: 1fr; }
  .dk-push-grid { grid-template-columns: 1fr; }
}

/* 推送记录：摘要单行省略，不撑破表格 */
.dk-push-brief {
  max-width: 380px; font-size: 12px; color: #6B7488;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ================= 打卡流水：删除 / 回收站 ================= */
.dk-table-ck .dk-ck { width: 34px; padding-right: 0; }
.dk-ck input[type="checkbox"] {
  width: 14px; height: 14px; margin: 0; cursor: pointer;
  accent-color: #E60012; vertical-align: middle;
}
.dk-table-ck tr.on td { background: #FFF9F9; }
.btn-danger {
  color: #E60012 !important; border-color: #F5C2C6 !important; background: #FFF7F7 !important;
}
.btn-danger:hover { background: #FFF1F2 !important; }
.dk-thumb-link { font-size: 12px; color: #E60012; }

/* 删除确认弹窗 */
.dk-del { display: flex; flex-direction: column; max-height: 86vh; }
.dk-del-sec {
  font-size: 12px; color: #8A93A6; margin: 14px 0 8px;
}
.dk-del-sec:first-child { margin-top: 4px; }
.dk-del-sec em { font-style: normal; color: #B7BECD; margin-left: 4px; }
.dk-del-list {
  list-style: none; margin: 0; padding: 0;
  border: 1px solid #EEF2F8; border-radius: 10px; overflow: hidden;
  max-height: 150px; overflow-y: auto;
}
.dk-del-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px; border-bottom: 1px solid #F5F7FA; font-size: 12.5px;
}
.dk-del-list li:last-child { border-bottom: none; }
.dk-del-list li b { color: #2C3242; font-weight: 500; }
.dk-del-list li span { color: #9AA3B5; font-size: 11.5px; }
.dk-del-list li.more { color: #A8B0C0; font-size: 11.5px; }

.dk-del-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.dk-del-tag {
  font-size: 12px; color: #6B7488; background: #F5F7FA; border: 1px solid transparent;
  border-radius: 6px; padding: 4px 11px; cursor: pointer; transition: .15s;
}
.dk-del-tag:hover { background: #EEF2F8; }
.dk-del-tag.on { color: #E60012; background: #FFF1F2; border-color: #F5C2C6; }

.dk-del-warn {
  margin-top: 14px; padding: 11px 13px; border-radius: 9px;
  background: #FFFBF0; border: 1px solid #F7E6C4;
  font-size: 12px; color: #8A6B1F; line-height: 1.75;
}
.pf-btn.danger { background: #E60012; color: #fff; min-width: 108px; }
.pf-btn.danger:hover { background: #C9000F; }
.pf-btn.danger:disabled { background: #F0A6AA; cursor: default; }
.pf-btn.danger-ghost { background: #fff; border-color: #F5C2C6; color: #E60012; margin-right: auto; }
.pf-btn.danger-ghost:hover { background: #FFF7F7; }

/* 回收站弹窗 */
.dk-trash { display: flex; flex-direction: column; max-height: 88vh; }
.dk-trash .pf-body { padding: 0 4px 6px; }
.dk-trash .dk-table th:first-child, .dk-trash .dk-table td:first-child { padding-left: 16px; }
.dk-trash .dk-table td { font-size: 12.5px; padding: 10px 12px; }
.dk-trash .dk-addr { max-width: 220px; }
.dk-trash .empty { padding: 40px 0; }

/* 流水表列多，窄屏允许横向滚动，不撑破卡片 */
#r-list .dk-card { overflow-x: auto; }
.dk-table-ck { min-width: 860px; }

/* 流水表：操作列按钮略深一档，便于识别 */
.dk-table-ck .dk-btn.del { color: #6B7488; }
.dk-table-ck { font-size: 12.5px; }
.dk-table-ck th { font-size: 11.5px; }

/* ---------- 打卡任务（自定义表单） ---------- */
.dkt-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.dkt-tip{font-size:12px;color:var(--muted)}
.dkt-list{display:flex;flex-direction:column;gap:12px}
.dkt-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 18px;box-shadow:var(--shadow)}
.dkt-card-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dkt-card-h b{font-size:15px;color:var(--ink)}
.dkt-meta{font-size:12px;color:var(--faint);margin-left:auto}
.dkt-desc{font-size:12.5px;color:var(--muted);margin-top:6px;line-height:1.6}
.dkt-tag{font-size:11px;padding:1px 8px;border-radius:5px;line-height:1.8;white-space:nowrap}
.dkt-tag.on{background:#EBF8F1;color:#1E7A45}
.dkt-tag.off{background:#F2F4F8;color:#8A93A6}
.dkt-prog{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:12px;color:var(--muted)}
.dkt-prog-bar{flex:1;height:6px;background:#F0F3F8;border-radius:4px;overflow:hidden;max-width:340px}
.dkt-prog-bar i{display:block;height:100%;background:var(--red);border-radius:4px}
.dkt-prog b{color:var(--ink)}
.dkt-ops{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px solid var(--line-2)}
.dkt-danger{color:var(--red)!important;border-color:#FAD6D9!important}

/* 编辑表单 */
.dkt-back{margin-bottom:12px}
.dkt-row{display:flex;align-items:flex-start;gap:10px;margin-bottom:14px}
.dkt-row>label{flex:0 0 74px;font-size:13px;color:var(--muted);padding-top:9px}
.dkt-row-3{align-items:center}
.dkt-in{flex:1;height:36px;border:1px solid var(--line);border-radius:8px;padding:0 10px;font-size:13.5px;
  font-family:inherit;color:var(--ink);outline:none;background:#fff;min-width:0}
.dkt-in:focus{border-color:var(--red)}
.dkt-ta{height:70px;padding:8px 10px;line-height:1.6;resize:vertical}
.dkt-row-3 .dkt-in{flex:1}
.dkt-sep{color:var(--faint);font-size:12px;padding-top:9px}
.dkt-chips{display:flex;gap:8px;flex-wrap:wrap;flex:1;padding-top:4px}
.dkt-chip{height:30px;padding:0 12px;border-radius:15px;border:1px solid var(--line);background:#fff;
  color:var(--muted);font-size:12.5px;font-family:inherit;cursor:pointer}
.dkt-chip.on{background:var(--red-light);border-color:var(--red);color:var(--red);font-weight:500}
.dkt-fields{flex:1;display:flex;flex-direction:column;gap:8px}
.dkt-f{display:flex;align-items:center;gap:8px}
.dkt-n{width:18px;font-size:12px;color:var(--faint);text-align:right;flex:0 0 auto}
.dkt-f .dkt-l{flex:2}
.dkt-f .dkt-t{flex:0 0 100px;padding:0 4px}
.dkt-f .dkt-o{flex:1.4}
.dkt-req{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:4px;white-space:nowrap;flex:0 0 auto}
.dkt-x{width:26px;height:26px;border-radius:6px;border:1px solid var(--line);background:#fff;color:var(--faint);
  cursor:pointer;font-size:15px;line-height:1;flex:0 0 auto}
.dkt-x:hover{color:var(--red);border-color:#FAD6D9}
.dkt-add{display:flex;align-items:center;gap:10px;margin-left:84px;margin-top:10px;flex-wrap:wrap}
.dkt-hint{font-size:11.5px;color:var(--faint)}
.dkt-foot{display:flex;justify-content:flex-end;gap:10px;padding:14px 18px;border-top:1px solid var(--line-2)}

/* 提交情况 */
.dkt-desc-full{font-size:13px;color:var(--muted);line-height:1.7;border-bottom:1px solid var(--line-2)}
.dkt-tbl-wrap{overflow-x:auto}
.dkt-tbl{width:100%;border-collapse:collapse;font-size:12.5px}
.dkt-tbl th{text-align:left;font-weight:400;font-size:12px;color:var(--faint);padding:10px 12px;
  background:#FAFBFD;border-bottom:1px solid var(--line-2);white-space:nowrap}
.dkt-tbl td{padding:10px 12px;border-bottom:1px solid var(--line-2);color:var(--ink-2);max-width:260px}
.dkt-tbl td.s{color:var(--ink);font-weight:500;white-space:nowrap}
.dkt-tbl .dkt-time{white-space:nowrap;color:var(--faint);font-variant-numeric:tabular-nums}
.dkt-tbl tr.dkt-undone td{color:#B7BECD}
.dkt-nil{color:#DCE3EF}
.dkt-fwrap{flex:1;min-width:0}
.dkt-row-3 .dkt-in{flex:0 0 150px}
.dkt-row-3 .dkt-sep{padding-top:0;line-height:36px}
