.revenue-dashboard {
  padding: 20px;
}

.useful-dates-section {
  margin-bottom: 30px;
}

.useful-dates-heading {
  font-size: 20px;
  font-weight: 600;
  color: #1b264f;
  margin: 0 0 20px 0;
}

.useful-dates-tiles {
  display: flex;
  gap: 20px;
}

.useful-date-card {
  flex: 1;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  color: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
}

.useful-date-label {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.useful-date-value {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.useful-date-date {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 500;
}

.revenue-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.revenue-period-box {
  margin-bottom: 16px !important;
}

.revenue-period-info {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.revenue-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.revenue-table thead {
  background: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
}

.revenue-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.revenue-table th:last-child,
.revenue-table td:last-child {
  text-align: right;
}

.revenue-table tbody tr {
  border-bottom: 1px solid #e9ecef;
}

.revenue-table tbody tr:hover {
  background: #f8f9fa;
}

.revenue-table td {
  padding: 15px;
  font-size: 14px;
  color: #495057;
  vertical-align: middle;
}

.revenue-table .profit-cell {
  font-weight: 600;
}

.revenue-table .profit-after-tax-cell {
  font-weight: 800;
}

.revenue-table .profit-cell.negative,
.revenue-table .profit-after-tax-cell.negative {
  color: #dc2626;
}

/* Reduce gap between Estimated Tax and Estimated NI columns */
.revenue-table th:nth-child(4),
.revenue-table td:nth-child(4) {
  padding-right: 2px !important;
}

.revenue-table th:nth-child(5),
.revenue-table td:nth-child(5) {
  padding-left: 2px !important;
}

.loading-state,
.error-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 16px;
}

.error-state {
  color: #e74c3c;
}

.loading-state i,
.error-state i {
  margin-right: 8px;
  font-size: 20px;
}

@media (max-width: 768px) {
  .revenue-dashboard {
    padding: 10px;
  }

  .useful-dates-tiles {
    flex-direction: column;
  }
  
  .revenue-table {
    font-size: 12px;
  }
  
  .revenue-table th,
  .revenue-table td {
    padding: 10px 8px;
  }
}
