/* Enhanced styles for the billing report */

/* Analytics details transition */
.analytics-details {
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

/* Report list card styles */
.report-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.report-list-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(102,126,234,0.07);
  border: 1.5px solid #e5e7eb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.report-list-card:hover {
  box-shadow: 0 8px 32px rgba(102,126,234,0.13);
  border-color: #667eea;
}

.report-list-card.expanded {
  border-color: #667eea;
  box-shadow: 0 8px 32px rgba(102,126,234,0.18);
}

.report-list-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  font-size: 1.08rem;
  font-weight: 500;
  background: linear-gradient(90deg, #f8fafc 60%, #e0e7ff 100%);
  border-bottom: 1px solid #f3f4f6;
  gap: 18px;
}

.report-list-summary > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-list-summary .user-badge {
  background: #667eea;
  color: #fff;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 0.98rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.report-list-summary .date-badge {
  color: #667eea;
  font-weight: 700;
  font-size: 1.08rem;
}

.report-list-summary .time-badge {
  color: #6b7280;
  font-size: 0.98rem;
}

.report-list-summary .service-badge {
  background: #e0e7ff;
  color: #3730a3;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.98rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.report-list-summary .chevron {
  margin-left: 12px;
  font-size: 1.2rem;
  color: #667eea;
  transition: transform 0.2s;
}

.report-list-card.expanded .chevron {
  transform: rotate(90deg);
}

/* Report details styles */
.report-list-details {
  padding: 0 28px 22px 28px;
  background: #f9fafb;
  border-radius: 0 0 14px 14px;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.report-detail-meta {
  padding: 18px 0 10px 0;
  font-size: 1.04rem;
  color: #4b5563;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 12px;
}

.report-sections-flex {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.report-section-card {
  flex: 1 1 320px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e0e7ff 100%);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(102,126,234,0.06);
  padding: 18px 20px 14px 20px;
  margin-bottom: 0;
  min-width: 260px;
}

.daily-section-card {
  background: linear-gradient(135deg, #dbeafe 0%, #f0f9ff 100%);
}

.weekly-section-card {
  background: linear-gradient(135deg, #ede9fe 0%, #f3e8ff 100%);
}

.section-header {
  font-size: 1.13rem;
  font-weight: 600;
  color: #3730a3;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-header i {
  color: #667eea;
  font-size: 1.2rem;
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.grid-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 1.04rem;
  padding: 6px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.grid-row:last-child {
  border-bottom: none;
}

.label {
  color: #4b5563;
  font-weight: 500;
}

.value {
  color: #1e293b;
  font-weight: 600;
  font-size: 1.07rem;
}

.report-link {
  color: #667eea;
  font-size: 0.97rem;
  margin-left: 8px;
  text-decoration: underline;
  transition: color 0.2s;
}

.report-link:hover {
  color: #764ba2;
}

/* Responsive styles */
@media (max-width: 700px) {
  .report-list-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 12px;
  }
  
  .report-list-details {
    padding: 0 12px 16px 12px;
  }
  
  .report-sections-flex {
    flex-direction: column;
    gap: 14px;
  }
  
  .report-section-card {
    min-width: 0;
    padding: 14px 10px 10px 10px;
  }
  
  .report-detail-meta {
    flex-direction: column;
    gap: 8px;
  }
}

/* Refresh button styles - simplified */
.refresh-btn {
  background-color: #f3f4f6;
  color: #4f46e5;
  border: 1px solid #4f46e5;
  transition: all 0.2s ease;
}

.refresh-btn:hover {
  background-color: #4f46e5;
  color: white;
}

.refresh-btn i {
  margin-right: 4px;
}

/* Date selector styles */
.date-selector {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.date-selector label {
  font-weight: 500;
  color: #4b5563;
}

.date-selector input[type="date"] {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
}

.date-selector input[type="date"]:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

@media (max-width: 768px) {
  .date-selector {
    flex-direction: column;
    align-items: flex-start;
  }
}