/* Estilos para o módulo de Hotelaria Financeiro */
.hotelaria-financeiro-container {
  padding: 20px;
  max-width: 100%;
}

.totals-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.total-card {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #1976d2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.total-label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.total-value {
  display: block;
  font-size: 22px;
  font-weight: bold;
  color: #1976d2;
}

.total-value.total-lucro {
  color: #2e7d32;
}

.actions-section {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-report {
  background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(67, 160, 71, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-report:hover {
  background: linear-gradient(135deg, #388e3c 0%, #43a047 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 160, 71, 0.4);
}

.table-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

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

.data-table th {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  color: white;
  padding: 14px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
  font-size: 14px;
}

.data-table tbody tr:hover {
  background: #f5f9ff;
}

.lucro-cell {
  color: #2e7d32;
  font-weight: 600;
}

.badge-margem {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.badge-margem.margem-alta {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #81c784;
}

.badge-margem.margem-media {
  background-color: #fff3e0;
  color: #ef6c00;
  border: 1px solid #ffb74d;
}

.badge-margem.margem-baixa {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ef5350;
}

.no-data {
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 40px;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin: 0 2px;
  border-radius: 6px;
  color: #666;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: #e3f2fd;
  color: #1976d2;
  transform: scale(1.1);
}

/* Estilos do relatório */
.relatorio-container {
  padding: 20px;
}

.relatorio-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #1976d2;
}

.relatorio-header h3 {
  color: #1976d2;
  font-size: 24px;
  margin-bottom: 10px;
}

.relatorio-header p {
  color: #666;
  font-size: 14px;
}

.relatorio-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.relatorio-table th {
  background: #f5f5f5;
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border: 1px solid #ddd;
  font-size: 12px;
}

.relatorio-table td {
  padding: 10px 8px;
  border: 1px solid #ddd;
  font-size: 13px;
}

.relatorio-table tbody tr:hover {
  background: #f9f9f9;
}

.relatorio-total {
  background: #e3f2fd !important;
  font-weight: bold;
}

.relatorio-total td {
  font-size: 14px;
  padding: 14px 8px;
}

.relatorio-footer {
  text-align: center;
  margin-top: 20px;
}

.btn-print {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
  transition: all 0.3s ease;
}

.btn-print:hover {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

/* Responsividade */
@media (max-width: 768px) {
  .totals-section {
    grid-template-columns: 1fr;
  }

  .data-table {
    font-size: 12px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 8px;
  }

  .actions-section {
    flex-direction: column;
  }

  .btn-report {
    width: 100%;
    justify-content: center;
  }
}

/* Impressão */
@media print {
  .relatorio-footer,
  .modal-close,
  .modal-footer {
    display: none !important;
  }

  .relatorio-table {
    page-break-inside: avoid;
  }

  .relatorio-table th {
    background: #f0f0f0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

