/* ==========================================================================
   H-Beyond CMS · 模块专属视图与业务样式 (Page Views & Modules)
   ========================================================================== */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.metric {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.metric:hover { border-color: #cbd5e1; box-shadow: var(--shadow); }
.metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.metric-value {
  font-size: 26px;
  line-height: 1.2;
  margin: 8px 0 6px;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
}
.metric-foot { font-size: 11px; color: var(--muted); }
.metric-foot .up { color: var(--green); font-weight: 600; }

.notice-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid var(--orange-border);
  background: var(--orange-soft);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.notice-strip .notice-icon, .notice-strip .svg-icon { color: var(--orange); flex-shrink: 0; }
.notice-strip p { margin: 0; flex: 1; font-size: 12px; color: #312e81; }
.notice-strip b { font-weight: 600; }

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}
.grid-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  min-width: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel-head {
  min-height: 48px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fafbfd;
}
.panel-title { font-size: 14px; font-weight: 600; margin: 0; color: var(--ink); }
.panel-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.panel-body { padding: 18px; }
.panel-body.flush { padding: 0; }

.reminder-list { display: flex; flex-direction: column; }
.reminder-row {
  display: grid;
  grid-template-columns: 8px minmax(150px, 1fr) 80px 140px 32px;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-light);
  min-height: 56px;
  transition: background 0.15s ease;
}
.reminder-row:last-child { border-bottom: 0; }
.reminder-row:hover { background: #f8fafc; }

.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.red { background: var(--red); box-shadow: 0 0 0 2px var(--red-soft); }
.status-dot.yellow { background: var(--yellow); box-shadow: 0 0 0 2px var(--yellow-soft); }
.status-dot.green { background: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }
.status-dot.blue { background: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }

.progress-line {
  height: 5px;
  background: #e2e8f0;
  width: 72px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 3px;
  overflow: hidden;
}
.progress-line i { height: 100%; display: block; background: var(--blue); border-radius: 3px; }
.due-text { font-size: 11px; white-space: nowrap; font-weight: 500; }
.due-text.red { color: var(--red); }
.due-text.yellow { color: var(--yellow); }
.due-text.green { color: var(--green); }

.flow-list { padding: 8px 18px 16px; }
.flow-row {
  display: grid;
  grid-template-columns: 86px 1fr 32px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 12px;
}
.flow-row:last-child { border: 0; }
.flow-bar { height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.flow-bar i { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.flow-row:nth-child(2) i { background: #d97706; }
.flow-row:nth-child(3) i { background: var(--orange); }

.activity-list { padding: 6px 18px 14px; }
.activity {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-light);
}
.activity:last-child { border: 0; }
.activity-time { font-size: 11px; color: var(--muted); padding-top: 1px; }
.activity-text { font-size: 12px; color: var(--ink-2); }
.activity-text b { font-weight: 600; color: var(--ink); }
.activity-meta { font-size: 11px; color: var(--muted-light); margin-top: 2px; }

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 14px;
  overflow: auto;
  padding-bottom: 8px;
}
.kanban-col {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}
.kanban-head {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  background: #fafbfd;
}
.kanban-body { padding: 10px; flex: 1; }
.task-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  cursor: grab;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}
.task-card:hover { border-color: #cbd5e1; box-shadow: var(--shadow); transform: translateY(-1px); }
.task-card.dragging { opacity: 0.45; }
.task-card h4 { font-size: 13px; margin: 8px 0 6px; font-weight: 600; color: var(--ink); }
.task-card p { font-size: 11px; color: var(--muted); margin: 0 0 12px; }
.task-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--line-light);
  font-size: 11px;
  color: var(--muted);
}

.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; position: sticky; left: 0; background: var(--paper); z-index: 1; }
.matrix th:first-child { background: #f8fafc; }
.matrix input { accent-color: var(--orange); width: 16px; height: 16px; }

.staff-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.staff-card { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-card); padding: 16px; box-shadow: var(--shadow-sm); }
.staff-top { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.staff-top .avatar { width: 40px; height: 40px; }
.staff-card h3 { margin: 0; font-size: 14px; font-weight: 600; }
.staff-card p { margin: 2px 0 0; font-size: 11px; color: var(--muted); }
.staff-meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line-light); padding-top: 12px; font-size: 11px; }

.import-zone { border: 2px dashed #cbd5e1; background: #f8fafc; border-radius: var(--radius-card); padding: 32px; text-align: center; transition: all 0.2s ease; }
.import-zone:hover { border-color: var(--orange); background: var(--orange-soft); }
.import-zone h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.import-zone p { color: var(--muted); font-size: 12px; margin: 0 0 16px; }
.import-steps { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 12px; }
.import-step { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.import-step b { width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
.import-step.active { color: var(--orange); font-weight: 600; }
.import-step.active b { background: var(--orange); color: #ffffff; border-color: var(--orange); }

.claim-summary { display: flex; gap: 20px; align-items: center; background: #f8fafc; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; }
.claim-summary b { font-size: 22px; font-weight: 700; color: var(--ink); }
.expense-check { width: 16px; height: 16px; accent-color: var(--orange); }

.tax-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #ffffff;
  padding: 18px 22px;
  margin-bottom: 20px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.tax-hero h2 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.tax-hero p { margin: 0; color: #c7d2fe; font-size: 12px; }
.tax-month-switch { display: flex; align-items: center; gap: 10px; }
.tax-month-switch .btn { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); color: #ffffff; }
.tax-month-switch .btn:hover { background: rgba(255, 255, 255, 0.2); }
.tax-month-input { height: 34px; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(0, 0, 0, 0.2); color: #ffffff; padding: 0 10px; border-radius: var(--radius); font-weight: 500; }

.tax-select { min-width: 96px; height: 28px; padding: 0 8px; font-size: 11px; border-radius: var(--radius-pill); border: 0; font-weight: 600; cursor: pointer; transition: all 0.15s ease; }
.tax-select.completed { background: #dcfce7; color: #15803d; }
.tax-select.pending { background: #fef3c7; color: #b45309; }
.tax-select.exempt { background: #e0e7ff; color: #4338ca; }
.tax-select.reported { background: #f3e8ff; color: #7e22ce; }
.tax-note { max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
