/* OpenSSDM — supplementary styles (Tailwind handles most of it) */

/* Validation status badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-pending    { background: #e2e8f0; color: #475569; }
.badge-reviewed   { background: #dbeafe; color: #1d4ed8; }
.badge-approved   { background: #dcfce7; color: #15803d; }
.badge-rejected   { background: #fee2e2; color: #b91c1c; }
.badge-incomplete { background: #fef3c7; color: #b45309; }

/* Confidence chips */
.conf-high   { background: #dcfce7; color: #15803d; }
.conf-medium { background: #fef3c7; color: #b45309; }
.conf-low    { background: #fee2e2; color: #b91c1c; }
.conf-manual { background: #f3e8ff; color: #7e22ce; }

/* HTMX request indicator */
.htmx-request .htmx-spinner { display: inline-block; }
.htmx-spinner { display: none; }

/* MapLibre panel */
#map-container { position: relative; }
#feature-panel {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 20rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  z-index: 10;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

/* Table hover rows */
.data-table tbody tr:hover { background: #f8fafc; }
.data-table th {
  background: #f1f5f9;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}
/* Survey overview table — disable row hover, use column colours instead.
   Selectors use .data-table .survey-col-* to beat .data-table th specificity. */
.data-table.no-row-hover tbody tr:hover { background: inherit; }
.data-table .survey-col-orange { background-color: #fff7ed; }  /* Media & Files */
.data-table .survey-col-rose   { background-color: #fff1f2; }  /* Survey Measurements */
.data-table .survey-col-blue   { background-color: #eff6ff; }  /* Seabed Features */
.data-table .survey-col-stone  { background-color: #f5f5f4; }  /* Shallow Geology */
.data-table .survey-col-green  { background-color: #f0fdf4; }  /* Env & Geotechnical */

/* IOGP compliance cell */
.compliant-yes { color: #15803d; }
.compliant-no  { color: #b91c1c; font-weight: 600; }
