/* 海创项目工作台 — 补充样式 */
body { -webkit-font-smoothing: antialiased; }

.module-back-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.module-back-btn:hover {
  background: #dbeafe;
  border-color: #60a5fa;
  color: #1e40af;
}

.module-back-btn:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.heartbeat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border: none;
  background: transparent;
  cursor: default;
  line-height: 0;
}

.heartbeat-btn--idle {
  cursor: pointer;
}

.heartbeat-icon {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.15s ease, fill 0.15s ease, stroke 0.15s ease;
}

.heartbeat-btn--idle .heartbeat-icon {
  fill: none;
  stroke: #cbd5e1;
  stroke-width: 1.75;
}

.heartbeat-btn--idle:hover .heartbeat-icon {
  stroke: #f87171;
  transform: scale(1.08);
}

.heartbeat-btn--idle:active .heartbeat-icon {
  fill: #ef4444;
  stroke: #ef4444;
  transform: scale(0.95);
}

.heartbeat-btn--done .heartbeat-icon {
  fill: #ef4444;
  stroke: #ef4444;
  stroke-width: 0;
}

.heartbeat-btn--idle:not(button) {
  cursor: default;
}

.heartbeat-btn--idle:not(button) .heartbeat-icon,
.heartbeat-btn--idle:not(button):hover .heartbeat-icon {
  transform: none;
}

.project-row:hover td:first-child .font-medium,
.clickable-row:hover td:first-child .font-medium,
.clickable-row:hover td:first-child > .font-medium {
  color: #2563eb;
}

.project-row:focus-visible,
.clickable-row:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
}

.opp-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1;
  cursor: grab;
  border-radius: 0.25rem;
  touch-action: none;
  user-select: none;
}

.opp-drag-handle:hover {
  color: #2563eb;
  background: #f1f5f9;
}

.opp-drag-handle:active {
  cursor: grabbing;
}

.opp-sort-ghost {
  opacity: 0.45;
  background: #eff6ff !important;
}

.opp-sort-chosen {
  background: #f8fafc;
}

.opp-sort-drag {
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

/* —— 工作台首页 —— */
.home-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: #334155;
}

.home-status-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.home-section {
  margin-bottom: 1.75rem;
}

.home-section__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.75rem;
  padding-left: 0.125rem;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .home-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-tile {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-tile:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.home-tile--muted {
  border-style: dashed;
  background: #f8fafc;
}

.home-tile--muted:hover {
  border-color: #cbd5e1;
  box-shadow: none;
}

.home-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
}

.home-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  max-width: 1.25rem;
  max-height: 1.25rem;
  flex-shrink: 0;
}

.home-icon--projects { background: #eff6ff; color: #2563eb; }
.home-icon--opportunities { background: #fffbeb; color: #d97706; }
.home-icon--weekly { background: #eef2ff; color: #4f46e5; }
.home-icon--finance { background: #ecfdf5; color: #059669; }
.home-icon--reimbursement { background: #f5f3ff; color: #7c3aed; }
.home-icon--personnel { background: #f1f5f9; color: #475569; }
.home-icon--import { background: #ecfeff; color: #0891b2; }
.home-icon--settings { background: #f1f5f9; color: #64748b; }
.home-icon--archive { background: #f8fafc; color: #64748b; }
.home-icon--site { background: #fff7ed; color: #ea580c; }
.home-icon--after_sales { background: #ecfdf5; color: #059669; }

/* 周报表格：上下两块共用列宽，工作事项加宽 */
.weekly-sheet-table {
  table-layout: fixed;
  min-width: 760px;
}
.weekly-sheet-table .weekly-col-item { width: 24%; }
.weekly-sheet-table .weekly-col-detail { width: 34%; }
.weekly-sheet-table .weekly-col-narrow { width: 12%; }
.weekly-sheet-table .weekly-col-mid { width: 15%; }
.weekly-sheet-table .weekly-col-action { width: 2.5rem; }
.weekly-sheet-table.weekly-sheet-table--6col .weekly-col-item { width: 22%; }
.weekly-sheet-table.weekly-sheet-table--6col .weekly-col-detail { width: 32%; }
.weekly-sheet-table.weekly-sheet-table--6col .weekly-col-narrow { width: 11%; }
.weekly-sheet-table.weekly-sheet-table--6col .weekly-col-mid { width: 13%; }

.home-tile__body {
  min-width: 0;
  flex: 1;
}

.home-tile__title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.home-tile__meta {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
}

.home-tile__meta > * + * {
  margin-top: 0.125rem;
}

.home-tile__meta .text-red-600 { color: #dc2626; }
.home-tile__meta .text-amber-600 { color: #d97706; }
.home-tile__meta .text-amber-700 { color: #b45309; }
