.job-report-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(7, 26, 51, 0.12);
  border-radius: 8px;
  background: #fff;
  min-width: 0;
  overflow: hidden;
}

.worker-job-layout {
  align-items: start;
}

.worker-job-main {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.worker-job-sidebar {
  min-width: 0;
}

.worker-main-job-report,
.worker-main-review {
  margin-top: 0;
}

.job-report-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.job-report-form label,
.job-report-form fieldset,
.job-report-form input,
.job-report-form select,
.job-report-form textarea,
.worker-main-review label,
.worker-main-review input,
.worker-main-review select,
.worker-main-review textarea,
.client-action-panel label,
.client-action-panel input,
.client-action-panel select,
.client-action-panel textarea {
  min-width: 0;
  max-width: 100%;
}

.job-report-form .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.job-report-form .form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.job-report-checklist {
  border: 1px solid rgba(7, 26, 51, 0.12);
  border-radius: 8px;
  padding: 0.75rem;
}

.job-report-checklist legend {
  padding: 0 0.35rem;
  font-weight: 700;
}

.job-report-checklist-summary,
.job-report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0;
}

.job-report-tabs a {
  border: 1px solid rgba(7, 26, 51, 0.15);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.job-report-tabs a.active {
  background: #071a33;
  color: #fff;
}

.job-report-photo-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.job-report-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.65rem;
  margin-top: 0.45rem;
}

.job-report-gallery figure,
.job-report-gallery a {
  margin: 0;
  color: inherit;
  text-decoration: none;
}

.job-report-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(7, 26, 51, 0.12);
  background: #f6f8fb;
}

.job-report-gallery figcaption {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: #486175;
}

.admin-job-report-gallery figure {
  padding: 0.45rem;
  border: 1px solid rgba(7, 26, 51, 0.1);
  border-radius: 8px;
}

.job-report-card .actions form {
  display: inline-flex;
}

.client-job-report {
  background: #f8fbff;
}

.photo-placeholder {
  min-height: 84px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(7, 26, 51, 0.22);
  border-radius: 6px;
  background: #f7f9fc;
  color: #607084;
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  .worker-job-layout {
    grid-template-columns: 1fr;
  }

  .worker-job-sidebar {
    order: 2;
  }
}

@media (max-width: 720px) {
  .job-report-panel {
    padding: 0.85rem;
  }

  .job-report-form .form-grid,
  .job-report-form .form-grid.three,
  .worker-main-review .review-check-grid {
    grid-template-columns: 1fr;
  }

  .job-report-photo-sections {
    grid-template-columns: 1fr;
  }
}
