/* ==================== 财务模块样式 ==================== */

/* 统计卡片 */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.stat-icon {
  font-size: 32px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f0f4ff;
}

.stat-income .stat-icon { background: #e8f5e9; }
.stat-expense .stat-icon { background: #ffebee; }
.stat-balance .stat-icon { background: #e3f2fd; }

.stat-info {
  flex: 1;
}

.stat-label {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #333;
}

.stat-income .stat-value { color: #4caf50; }
.stat-expense .stat-value { color: #f44336; }
.stat-balance .stat-value { color: #2196f3; }

/* 金额颜色 */
.text-income { color: #4caf50; font-weight: 600; }
.text-expense { color: #f44336; font-weight: 600; }

/* 筛选栏 */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar select,
.filter-bar input[type="date"],
.filter-bar input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}

.filter-bar input[type="text"] {
  flex: 1;
  min-width: 180px;
}

/* 表格容器 */
.table-container {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: #f8f9fa;
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  color: #666;
  font-weight: 600;
  border-bottom: 2px solid #eee;
}

.data-table td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
}

.data-table tr:hover td {
  background: #f8f9ff;
}

.empty-state {
  text-align: center;
tat-value { color: #2196f3; }

/* 金额颜色 */
.text-income { color: #4caf50; font-weight: 600; }
.text-expense { color: #f44336; font-weight: 600; }

/* 筛选栏 */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar select,
.filter-bar input[type="date"],
.filter-bar input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}

.filter-bar input[type="text"] {
  flex: 1;
  min-width: 180px;
}

/* 表格容器 */
.table-container {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: #f8f9fa;
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  color: #666;
  font-weight: 600;
  border-bottom: 2px solid #eee;
}

.data-table td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
}

.data-table tr:hover td {
  background: #f8f9ff;
}

.empty-state {
  text-align: center;
tat-value { color: #2196f3; }

/* 金额颜色 */
.text-income { color: #4caf50; font-weight: 600; }
.text-expense { color: #f44336; font-weight: 600; }

/* 筛选栏 */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar select,
.filter-bar input[type="date"],
.filter-bar input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}

.filter-bar input[type="text"] {
  flex: 1;
  min-width: 180px;
}

/* 表格容器 */
.table-container {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: #f8f9fa;
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  color: #666;
  font-weight: 600;
  border-bottom: 2px solid #eee;
}

.data-table td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
}

.data-table tr:hover td {
  background: #f8f9ff;
}

.empty-state {
  text-align: center;
tat-value { color: #2196f3; }

/* 金额颜色 */
.text-income { color: #4caf50; font-weight: 600; }
.text-expense { color: #f44336; font-weight: 600; }

/* 筛选栏 */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar select,
.filter-bar input[type="date"],
.filter-bar input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}

.filter-bar input[type="text"] {
  flex: 1;
  min-width: 180px;
}

/* 表格容器 */
.table-container {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: #f8f9fa;
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  color: #666;
  font-weight: 600;
  border-bottom: 2px solid #eee;
}

.data-table td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
}

.data-table tr:hover td {
  background: #f8f9ff;
}

.empty-state {
  text-align: center;
tat-value { color: #2196f3; }

/* 金额颜色 */
.text-income { color: #4caf50; font-weight: 600; }
.text-expense { color: #f44336; font-weight: 600; }

/* 筛选栏 */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar select,
.filter-bar input[type="date"],
.filter-bar input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}

.filter-bar input[type="text"] {
  flex: 1;
  min-width: 180px;
}

/* 表格容器 */
.table-container {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: #f8f9fa;
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  color: #666;
  font-weight: 600;
  border-bottom: 2px solid #eee;
}

.data-table td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
}

.data-table tr:hover td {
  background: #f8f9ff;
}

.empty-state {
  text-align: center;
tat-value { color: #2196f3; }

/* 金额颜色 */
.text-income { color: #4caf50; font-weight: 600; }
.text-expense { color: #f44336; font-weight: 600; }

/* 筛选栏 */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar select,
.filter-bar input[type="date"],
.filter-bar input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}

.filter-bar input[type="text"] {
  flex: 1;
  min-width: 180px;
}

/* 表格容器 */
.table-container {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: #f8f9fa;
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  color: #666;
  font-weight: 600;
  border-bottom: 2px solid #eee;
}

.data-table td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
}

.data-table tr:hover td {
  background: #f8f9ff;
}

.empty-state {
  text-align: center;
tat-value { color: #2196f3; }

/* 金额颜色 */
.text-income { color: #4caf50; font-weight: 600; }
.text-expense { color: #f44336; font-weight: 600; }

/* 筛选栏 */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar select,
.filter-bar input[type="date"],
.filter-bar input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}

.filter-bar input[type="text"] {
  flex: 1;
  min-width: 180px;
}

/* 表格容器 */
.table-container {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: #f8f9fa;
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  color: #666;
  font-weight: 600;
  border-bottom: 2px solid #eee;
}

.data-table td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
}

.data-table tr:hover td {
  background: #f8f9ff;
}

.empty-state {
  text-align: center;
