/* Hotelaria Contas - CSS */

.hotelaria-contas-container {
  padding: 20px;
}

.filters-section {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: flex-end;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.filter-input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  min-width: 150px;
}

.filter-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.totais-section {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.total-card {
  background: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.total-label {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.total-value {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
}

.total-pendente {
  color: #f39c12;
}

.total-pago {
  color: #27ae60;
}

.total-atrasado {
  color: #e74c3c;
}

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

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

.data-table thead {
  background: #34495e;
  color: white;
}

.data-table th {
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tbody tr {
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s;
}

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

.data-table td {
  padding: 12px 15px;
  font-size: 14px;
  color: #2c3e50;
}

.categoria-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #3498db;
  color: white;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pago {
  background: #d4edda;
  color: #155724;
}

.status-pendente {
  background: #fff3cd;
  color: #856404;
}

.status-atrasado {
  background: #f8d7da;
  color: #721c24;
}

.valor-cell {
  font-weight: 600;
  color: #2c3e50;
  text-align: right;
}

.obs-cell {
  color: #7f8c8d;
  font-size: 13px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loading-cell,
.no-data {
  text-align: center;
  padding: 40px 20px;
  color: #95a5a6;
  font-style: italic;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #3498db;
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
}

.btn-secondary {
  background: #95a5a6;
  color: white;
}

.btn-secondary:hover {
  background: #7f8c8d;
}

/* Responsivo */
@media (max-width: 768px) {
  .filters-section {
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
  }

  .filter-input {
    width: 100%;
  }

  .filter-actions {
    width: 100%;
    margin-left: 0;
  }

  .filter-actions button {
    flex: 1;
  }

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

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