/* ==================== EXTENSÃO INSTITUCIONAL  ==================== */

.status-label {
  padding: 4px 8px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
}

.status-label.pendente { background-color: #d9534f; }
.status-label.andamento { background-color: #f0ad4e; }
.status-label.atendida { background-color: #5cb85c; }

.status-counts {
  margin-top: 8px;
  font-size: 15px;
  color: #0b5f8a;
  text-align: center;
}

tr.status-pendente { background: #fff4f4; }
tr.status-andamento { background: #fff9e6; }
tr.status-atendida { background: #e8ffec; }

.map {
  height: 400px;
  width: 100%;
  border-radius: 10px;
  margin-bottom: 16px;
}

.filter-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.filter-card label {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 140px;
}

.filter-card input,
.filter-card select {
  width: 100%;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  min-width: 800px;
}

@media (max-width: 900px) {
  .map {
    height: 250px;
  }

  .filter-card {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-card label {
    min-width: 100%;
  }

  .filter-card button {
    width: 100%;
  }

  .actions {
    flex-direction: column;
    align-items: stretch !important;
  }

  .actions button {
    width: 100%;
  }

  .modal-content {
    width: 95% !important;
    margin: 10px auto !important;
  }

  .modal-footer {
    flex-direction: column;
    gap: 8px;
  }

  .modal-footer button {
    width: 100%;
  }
}