/* 藏身处制作利润 · 轻量工具表样式（无地图 bundle，配色对齐物品/任务页） */
.cp-tool {
  background: #fff;
  border: 1px solid #e3e9ef;
  border-radius: 12px;
  padding: 18px;
  box-shadow: rgba(15, 23, 42, 0.04) 0 8px 24px;
}
.cp-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 12px;
}
.cp-stations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cp-stations button {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  cursor: pointer;
}
.cp-stations button:hover { border-color: #2563eb; color: #2563eb; }
.cp-stations button.is-active { background: #2563eb; border-color: #2563eb; color: #fff !important; }
.cp-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-left: auto;
}
.cp-fields input[data-search] {
  width: 200px;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  color: #334155;
}
.cp-fields input[data-search]:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.cp-fields label { font-size: 13px; color: #334155; display: flex; align-items: center; gap: 4px; cursor: pointer; }
.cp-fields select {
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  color: #334155;
  background: #fff;
}
.cp-status { font-size: 12px; color: #64748b; margin: 0 0 10px; }

.cp-table-wrap { overflow-x: auto; }
.cp-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #e3e9ef; border-radius: 10px; }
.cp-table th {
  background: #f8fafc;
  color: #17202c;
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid #e3e9ef;
  white-space: nowrap;
}
.cp-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
  font-size: 13px;
  color: #334155;
  vertical-align: top;
}
.cp-table tbody tr:last-child td { border-bottom: none; }
.cp-table tbody tr:hover td { background: #f8fafc; }
.cp-num { text-align: right; white-space: nowrap; }
.cp-profit { color: #15803d; font-weight: 600; }
.cp-loss { color: #dc2626; }
.cp-empty { text-align: center; color: #64748b; padding: 24px; }

.cp-item { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.cp-item i img { border-radius: 4px; display: block; }
.cp-item b { font-weight: 500; color: #334155; }
.cp-item em { font-style: normal; color: #64748b; font-size: 12px; white-space: nowrap; }
.cp-item--reward b { color: #15803d; }

.cp-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 14px; }
.cp-pager button {
  padding: 5px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  cursor: pointer;
}
.cp-pager button:hover { border-color: #2563eb; color: #2563eb; }
.cp-pager span { font-size: 13px; color: #64748b; }

@media (max-width: 900px) {
  .cp-controls { flex-direction: column; align-items: stretch; }
  .cp-fields { margin-left: 0; }
  .cp-fields input[data-search] { width: 100%; }
  .cp-table-wrap { overflow: visible; }
  .cp-table, .cp-table tbody, .cp-table tr, .cp-table td { display: block; }
  .cp-table thead { display: none; }
  .cp-table tr {
    border: 1px solid #e3e9ef;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #fff;
  }
  .cp-table td {
    border: none;
    padding: 5px 0;
    display: flex;
    gap: 8px;
  }
  .cp-table td::before {
    content: attr(data-label);
    flex: 0 0 72px;
    font-size: 12px;
    color: #64748b;
  }
  .cp-table td.cp-num { text-align: left; }
  .cp-table tbody tr:hover td { background: transparent; }
  .cp-item { flex-wrap: wrap; min-width: 0; }
  .cp-item em { white-space: normal; }
  .cp-item b { overflow-wrap: anywhere; }
}
