/* 经营总览 - 原型图风格 */
.proto-dashboard .page-head {
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.proto-dashboard .page-head h1 {
  font-size: 19px;
  color: #111827;
  margin-bottom: 3px;
}
.proto-dashboard .page-head p {
  color: #6b7280;
  font-size: 12px;
}

.proto-dashboard .feature-suggest {
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  padding: 9px 12px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 12px;
  font-size: 11px;
  color: #92400e;
}
.proto-dashboard .feature-suggest strong {
  display: block;
  margin-bottom: 2px;
}

.proto-dashboard .stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

/* 6列统计卡片（签单情况） */
.proto-dashboard .stat-grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

.proto-dashboard .stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  position: relative;
}
.proto-dashboard .stat-card .label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 5px;
}
.proto-dashboard .stat-card .value {
  font-size: 22px;
  font-weight: bold;
  color: #111827;
}
.proto-dashboard .stat-card .sub {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 3px;
}
.proto-dashboard .stat-card .icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.proto-dashboard .stat-card.green .icon { background: #d1fae5; color: #059669; }
.proto-dashboard .stat-card.blue .icon { background: #dbeafe; color: #2563eb; }
.proto-dashboard .stat-card.amber .icon { background: #fef3c7; color: #d97706; }
.proto-dashboard .stat-card.red .icon { background: #fee2e2; color: #ef4444; }

.proto-dashboard .progress {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}
.proto-dashboard .progress-bar {
  height: 100%;
  border-radius: 3px;
  background: #059669;
  transition: width 0.3s;
}

.proto-dashboard .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.proto-dashboard .card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  margin-bottom: 14px;
  overflow: hidden;
}
.proto-dashboard .card-head {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.proto-dashboard .card-head h3 {
  font-size: 14px;
  color: #111827;
}
.proto-dashboard .card-body {
  padding: 16px;
}

.proto-dashboard .chart-container {
  position: relative;
  height: 280px;
}

.proto-dashboard .attention-list {
  font-size: 13px;
  color: #6b7280;
  line-height: 2;
}
.proto-dashboard .attention-item {
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.proto-dashboard .attention-item.danger { background: #fef2f2; color: #991b1b; }
.proto-dashboard .attention-item.warning { background: #fffbeb; color: #92400e; }
.proto-dashboard .attention-item.info { background: #eff6ff; color: #1e40af; }

/* 保留原有签单月度图和明细表样式 */
.proto-dashboard .month-sign-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.proto-dashboard .month-sign-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.proto-dashboard .month-sign-card:hover { border-color: #059669; }
.proto-dashboard .month-sign-card.active { border: 2px solid #059669; }
.proto-dashboard .month-sign-card.future { opacity: 0.5; }
.proto-dashboard .month-sign-card strong { display: block; font-size: 14px; color: #111827; }
.proto-dashboard .month-sign-card span { display: block; font-size: 11px; color: #6b7280; margin: 4px 0; }
.proto-dashboard .month-sign-card em { display: block; font-size: 13px; font-weight: bold; color: #059669; font-style: normal; }
.proto-dashboard .month-sign-card small { display: block; font-size: 10px; color: #9ca3af; margin-top: 4px; }

/* ==================== 手机端响应式样式 ==================== */
@media (max-width: 768px) {
  .proto-dashboard .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .proto-dashboard .page-head h1 {
    font-size: 17px;
  }
  .proto-dashboard .page-head p {
    font-size: 11px;
  }

  .proto-dashboard .feature-suggest {
    font-size: 10px;
    padding: 8px 10px;
  }

  /* 统计卡片：4列 → 2列 */
  .proto-dashboard .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  /* 6列统计卡片：6列 → 2列 */
  .proto-dashboard .stat-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .proto-dashboard .stat-card {
    padding: 12px;
  }
  .proto-dashboard .stat-card .value {
    font-size: 18px;
  }
  .proto-dashboard .stat-card .label {
    font-size: 11px;
  }
  .proto-dashboard .stat-card .sub {
    font-size: 10px;
  }
  .proto-dashboard .stat-card .icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
    top: 10px;
    right: 10px;
  }

  /* 两列布局 → 单列 */
  .proto-dashboard .grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .proto-dashboard .card {
    margin-bottom: 12px;
  }
  .proto-dashboard .card-head {
    padding: 10px 12px;
  }
  .proto-dashboard .card-head h3 {
    font-size: 13px;
  }
  .proto-dashboard .card-body {
    padding: 12px;
  }

  .proto-dashboard .chart-container {
    height: 220px;
  }

  .proto-dashboard .attention-list {
    font-size: 12px;
    line-height: 1.8;
  }

  /* 月度签单：6列 → 3列 */
  .proto-dashboard .month-sign-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .proto-dashboard .month-sign-card {
    padding: 10px 8px;
  }
  .proto-dashboard .month-sign-card strong {
    font-size: 12px;
  }
  .proto-dashboard .month-sign-card span {
    font-size: 10px;
  }
  .proto-dashboard .month-sign-card em {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  /* 统计卡片：2列 → 1列 */
  .proto-dashboard .stat-grid {
    grid-template-columns: 1fr;
  }
  /* 6列统计卡片：2列 → 1列 */
  .proto-dashboard .stat-grid-6 {
    grid-template-columns: 1fr;
  }

  /* 月度签单：3列 → 2列 */
  .proto-dashboard .month-sign-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proto-dashboard .stat-card .value {
    font-size: 20px;
  }
}
