/* ===============================
   REPORTES – UI PRO (TABLA + MODAL)
   Pegar al final de dashboard.css
   =============================== */

/* Contenedor tipo "card" para secciones */
.section-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
  border: 1px solid #e5e7eb;
}

/* Barra superior (título + acciones) */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 800;
  color: #0f172a;
}

/* Buscador */
.search-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0 16px;
}

.search-row input[type="text"],
.search-row input[type="search"] {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  outline: none;
}

.search-row input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14,165,233,.18);
}

/* Tabla */
.reportes-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.reportes-table thead th {
  background: #0f4c5c;
  color: #fff;
  padding: 14px 12px;
  font-weight: 800;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 1;
}

.reportes-table thead th:first-child { border-top-left-radius: 12px; }
.reportes-table thead th:last-child  { border-top-right-radius: 12px; }

.reportes-table tbody td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  color: #0f172a;
  vertical-align: middle;
}

.reportes-table tbody tr:hover {
  background: #f8fafc;
}

/* Evidencia miniatura */
.report-thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #f1f5f9;
}

/* Badges de estatus */
.status {
  display: inline-block;
  padding: .35rem .65rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.status.pendiente {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.status.resuelto {
  background: #ecfdf5;
  color: #15803d;
  border-color: #bbf7d0;
}

.status.proceso {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

/* Acciones */
.actions-cell {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

/* Botones icon */
.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.btn-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15,23,42,.10);
}

.btn-icon.view {
  border-color: rgba(14,165,233,.35);
  background: rgba(14,165,233,.08);
}

.btn-icon.edit {
  border-color: rgba(15,76,92,.35);
  background: rgba(15,76,92,.10);
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 999;
}

.modal-overlay.open { display: flex; }

.modal {
  width: 100%;
  max-width: 980px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  overflow: hidden;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-title {
  margin: 0;
  font-weight: 900;
  color: #0f172a;
}

.modal-close {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
}

.modal-body {
  padding: 18px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
}

.modal-image img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #f1f5f9;
}

.modal-info {
  display: grid;
  gap: 10px;
}

.modal-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
}

.modal-row strong { color: #0f172a; }
.modal-row span { color: #334155; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 18px;
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 900px) {
  .modal-grid { grid-template-columns: 1fr; }
  .actions-cell { justify-content: flex-start; }
}
