/* Supervisor portal — dashboard, events, PPM */
.sup-page-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1e293b;
}

.sup-page-head h2 {
  margin: 0;
}

.sup-page-head .install-hint {
  margin: 0.25rem 0 0;
  max-width: 42rem;
}

.sup-stat-card {
  background: linear-gradient(160deg, #111827 0%, #0b1220 100%);
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sup-stat-card strong {
  font-size: 1.75rem;
  line-height: 1;
  color: #f8fafc;
}

.sup-stat-card span {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sup-stat-card.accent strong {
  color: #60a5fa;
}

.sup-panel-card {
  border: 1px solid #1e293b;
  border-radius: 16px;
  background: #0b1220;
  overflow: hidden;
}

.sup-panel-card h3 {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid #1e293b;
  background: #111827;
}

.sup-panel-body {
  padding: 0.5rem 0;
}

.sup-filters-card {
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 1rem;
  background: #0b1220;
  margin-bottom: 1rem;
}

.ppm-board-wrap {
  min-height: 120px;
}

.ppm-loading,
.ppm-error {
  padding: 1.5rem;
  text-align: center;
  border: 1px dashed #334155;
  border-radius: 14px;
  background: #0b1220;
  color: #94a3b8;
}

.ppm-error {
  border-color: #b91c1c;
  color: #fca5a5;
  background: #450a0a33;
}

.ppm-toolbar-card {
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 1rem;
  background: #0b1220;
  margin-bottom: 1rem;
}

.ppm-status-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0.65rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #111827;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.ppm-status-banner strong {
  color: #93c5fd;
}

.report-table-wrap {
  overflow-x: auto;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.report-table th,
.report-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #1e293b;
}

.report-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  background: #111827;
}

.report-table tbody tr:hover {
  background: #11182766;
}

.report-table tbody tr:hover {
  background: #11182766;
}

.defect-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.defect-card {
  border: 1px solid #1e293b;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1220;
}

.defect-thumb {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #111827;
}

.defect-no-photo {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  background: #111827;
}

.defect-card-body {
  padding: 0.85rem 1rem 1rem;
}

.defect-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.defect-source {
  font-size: 0.72rem;
  color: #94a3b8;
}

.defect-title {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.defect-meta {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.defect-delete-btn {
  margin-top: 0.65rem;
}

.defect-note {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  color: #e2e8f0;
}

@media (max-width: 900px) {
  .admin-main {
    padding: 1rem;
  }
}
