/* 매출 관리 페이지 전용 스타일 */

.payment-summary {
  margin-bottom: 30px;
}

.payment-summary .stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat-deposit {
  border-left: 4px solid #10b981;
}

.stat-withdrawal {
  border-left: 4px solid #ef4444;
}

.stat-net {
  border-left: 4px solid #3b82f6;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 10px;
}

.stat-value {
  display: block;
  font-size: 24px;
  font-weight: bold;
  color: #1f2937;
}

.payment-filters {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.filter-controls {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 15px;
}

.filter-controls .form-group {
  flex: 1;
  min-width: 150px;
}

.filter-controls .form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #4b5563;
}

.filter-controls input[type="date"],
.filter-controls select {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-size: 14px;
}

.payment-list {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.auto-refresh {
  display: flex;
  align-items: center;
}

.auto-refresh label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}

.table-wrapper {
  overflow-x: auto;
}

#paymentsTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

#paymentsTable thead {
  background: #f3f4f6;
}

#paymentsTable th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
}

#paymentsTable tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s;
}

#paymentsTable tbody tr:hover {
  background-color: #f9fafb;
}

#paymentsTable td {
  padding: 12px;
  color: #1f2937;
  white-space: nowrap;
}

.transaction-deposit {
  color: #10b981;
  font-weight: 600;
}

.transaction-withdrawal {
  color: #ef4444;
  font-weight: 600;
}

.amount {
  font-weight: 600;
  font-size: 15px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.pagination button {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
  background: #f3f4f6;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination button.active {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.recent-sms {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sms-container {
  margin-top: 15px;
  max-height: 400px;
  overflow-y: auto;
}

.sms-item {
  background: #f9fafb;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 4px solid #3b82f6;
}

.sms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.sms-time {
  font-size: 12px;
  color: #6b7280;
}

.sms-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.sms-badge.deposit {
  background: #d1fae5;
  color: #065f46;
}

.sms-badge.withdrawal {
  background: #fee2e2;
  color: #991b1b;
}

.sms-content {
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 13px;
  color: #374151;
  background: white;
  padding: 10px;
  border-radius: 5px;
}

.no-data {
  text-align: center;
  padding: 40px;
  color: #9ca3af;
}

/* 새로운 데이터 애니메이션 */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.new-payment {
  animation: slideIn 0.3s ease-out;
}

/* 반응형 */
@media (max-width: 768px) {
  .filter-controls {
    flex-direction: column;
  }

  .filter-controls .form-group {
    width: 100%;
  }

  #paymentsTable {
    font-size: 12px;
  }

  #paymentsTable th,
  #paymentsTable td {
    padding: 8px;
  }

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