* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

.header h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.periodo {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 5px;
}

.mes {
  font-size: 20px;
  font-weight: bold;
}

/* Seletor de Mês */
.mes-selector {
  margin: 20px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.form-mes {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: flex-end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.form-mes select {
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  background: white;
  color: #333;
  cursor: pointer;
  min-width: 140px;
}

.form-mes select:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

.btn {
  padding: 10px 25px;
  background: #ffd700;
  color: #333;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  background: #ffed4a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn:active {
  transform: translateY(0);
}

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

.card {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #e1e1e1;
}

.card h3 {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card .value {
  font-size: 32px;
  font-weight: bold;
  color: #333;
}

.table-container {
  padding: 0 30px 30px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table thead {
  background: #f8f9fa;
}

.table th {
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #dee2e6;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.table td {
  padding: 15px 12px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
}

.table tbody tr:hover {
  background: #f8f9fa;
}

/* Status colors */
.table tbody tr.completed {
  background-color: #e8f5e9;
}

.table tbody tr.expired {
  background-color: #ffebee;
}

.table tbody tr.pending {
  background-color: #fff8e1;
}

/* Badges */
.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-first_purchase {
  background: #e3f2fd;
  color: #1565c0;
}

.badge-renovation {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-add_licenses {
  background: #f3e5f5;
  color: #7b1fa2;
}

.badge-status-completed {
  background: #c8e6c9;
  color: #1b5e20;
}

.badge-status-expired {
  background: #ffcdd2;
  color: #b71c1c;
}

.badge-status-pending {
  background: #fff9c4;
  color: #f57f17;
}

.cliente {
  display: flex;
  flex-direction: column;
}

.cliente strong {
  color: #333;
  font-weight: 600;
}

.cliente small {
  color: #888;
  font-size: 12px;
}

.table tfoot {
  background: #f8f9fa;
  font-weight: bold;
}

.table tfoot td {
  border-top: 2px solid #dee2e6;
}

.empty {
  padding: 60px 30px;
  text-align: center;
  color: #666;
}

.empty p {
  font-size: 18px;
}

.footer {
  background: #f8f9fa;
  padding: 20px;
  text-align: center;
  color: #666;
  font-size: 12px;
  border-top: 1px solid #e9ecef;
}

/* Responsivo */
@media (max-width: 768px) {
  .table {
    font-size: 12px;
  }
  
  .table th, .table td {
    padding: 10px 8px;
  }
  
  .header h1 {
    font-size: 20px;
  }
  
  .card .value {
    font-size: 24px;
  }
}

/* Botão de impressão */
@media print {
  body {
    background: white;
    padding: 0;
  }
  
  .container {
    box-shadow: none;
  }
}
