/* ==== Portal – Report builder ==== */
.report-mock {
  background: #fff;
  border: 1px solid rgba(16, 39, 36, 0.08);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 45px rgba(16, 39, 36, 0.06);
}

.report-mock__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .report-mock__header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.report-mock__eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: #b1745e;
  margin-bottom: 0.25rem;
}

.report-mock__tag {
  font-size: 0.75rem;
  background: #f1f1d9;
  color: #5d2713;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.report-mock__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.report-mock__section {
  border: 1px dashed rgba(16, 39, 36, 0.15);
  border-radius: 20px;
  padding: 1.25rem;
  background: rgba(241, 241, 217, 0.5);
}

.report-mock__section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #102724;
  margin-bottom: 0.75rem;
}

.report-mock__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.report-mock__grid label,
.report-mock__full {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: rgba(16, 39, 36, 0.8);
}

.report-mock__grid input,
.report-mock__section textarea,
.report-mock__table input,
.report-mock__table select {
  border: 1px solid rgba(16, 39, 36, 0.25);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  background: #fff;
  width: 100%;
}

.report-mock__section textarea {
  resize: vertical;
  min-height: 140px;
}

.report-mock__table-wrap {
  overflow-x: auto;
}

.report-mock__table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.report-mock__table th,
.report-mock__table td {
  border: 1px solid rgba(16, 39, 36, 0.1);
  padding: 0.65rem;
  font-size: 0.85rem;
}

.report-mock__section-head {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
  color: rgba(16, 39, 36, 0.75);
}

.report-mock__photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.report-photo-slot {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(16, 39, 36, 0.8);
  position: relative;
}

.report-photo-slot input[type="file"] {
  position: absolute;
  inset: 1.8rem 0.75rem 0.75rem 0.75rem;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.report-photo-frame {
  border: 1px dashed rgba(16, 39, 36, 0.2);
  border-radius: 18px;
  min-height: 180px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.report-photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-photo-placeholder {
  font-size: 0.8rem;
  color: rgba(16, 39, 36, 0.5);
  text-align: center;
  padding: 0 1rem;
}

.report-mock__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.report-mock__btn {
  border-radius: 999px;
  border: 1px solid rgba(16, 39, 36, 0.2);
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  background: transparent;
  color: #102724;
  cursor: pointer;
  transition: all 0.2s ease;
}

.report-mock__btn:hover {
  border-color: #102724;
}

.report-mock__btn-primary {
  background: #102724;
  color: #f1f1d9;
  border-color: #102724;
}

.report-mock__note {
  font-size: 0.8rem;
  color: rgba(16, 39, 36, 0.6);
  margin-top: 0.35rem;
}

.print-hidden {
  display: initial;
}

.report-edit-link {
  border-radius: 999px;
  border: 1px solid rgba(16, 39, 36, 0.2);
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #102724;
  transition: all 0.2s ease;
}

.report-edit-link:hover {
  border-color: #102724;
  background: #102724;
  color: #f1f1d9;
}

.report-download-link {
  border-radius: 999px;
  border: 1px solid rgba(16, 39, 36, 0.15);
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5D2713;
  background: rgba(93, 39, 19, 0.08);
  transition: all 0.2s ease;
}

.report-download-link:hover {
  background: #5D2713;
  color: #fff;
  border-color: #5D2713;
}

.report-admin-tools {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(16, 39, 36, 0.12);
  border-radius: 20px;
  background: rgba(16, 39, 36, 0.04);
}

@media (min-width: 768px) {
  .report-admin-tools {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.report-admin-tools__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(16, 39, 36, 0.7);
  margin-bottom: 0.25rem;
}

.report-admin-tools__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.report-admin-tools__btn {
  border-radius: 999px;
  border: 1px solid rgba(16, 39, 36, 0.3);
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  color: #102724;
  text-decoration: none;
  transition: all 0.2s ease;
}

.report-admin-tools__btn:hover {
  border-color: #102724;
}

.report-admin-tools__btn--primary {
  background: #102724;
  color: #f1f1d9;
  border-color: #102724;
}

.report-inline-edit-btn,
.inspection-add-photo,
.report-inline-save,
.report-inline-cancel {
  border-radius: 999px;
  border: 1px solid rgba(16, 39, 36, 0.25);
  padding: 0.4rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #102724;
  background: transparent;
  transition: all 0.2s ease;
}

.report-inline-save {
  background: #102724;
  color: #f1f1d9;
  border-color: #102724;
}

.report-inline-cancel {
  background: rgba(16, 39, 36, 0.05);
}

.report-inline-edit-btn:hover,
.report-inline-cancel:hover {
  border-color: #102724;
}

.report-inline-editor {
  width: 100%;
  border-top: 1px dashed rgba(16, 39, 36, 0.2);
  padding-top: 1rem;
  margin-top: 1rem;
}

.report-inline-title,
.report-inline-note {
  width: 100%;
  border: 1px solid rgba(16, 39, 36, 0.25);
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
}

.report-inline-note {
  resize: vertical;
}

.report-inline-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.inspection-card {
  border: 1px solid rgba(16, 39, 36, 0.08);
  border-radius: 24px;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 39, 36, 0.06);
}

.inspection-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .inspection-card__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.inspection-card__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(16, 39, 36, 0.5);
  margin-bottom: 0.35rem;
}

.inspection-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #102724;
}

.inspection-card__date {
  font-size: 0.9rem;
  color: rgba(16, 39, 36, 0.7);
}

.inspection-materials {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.inspection-material {
  border: 1px dashed rgba(16, 39, 36, 0.15);
  border-radius: 20px;
  padding: 1rem;
  background: rgba(241, 241, 217, 0.35);
}

.inspection-material__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.inspection-material__header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #102724;
}

.inspection-material__count {
  font-size: 0.8rem;
  color: rgba(16, 39, 36, 0.6);
}

.inspection-material__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.inspection-photo-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(16, 39, 36, 0.1);
}

.inspection-photo-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.inspection-photo-card figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: rgba(16, 39, 36, 0.75);
}

.inspection-empty {
  font-size: 0.85rem;
  color: rgba(16, 39, 36, 0.6);
  margin: 0;
}

/* ==== Portal – Relatório imprimível ==== */
@media print {
  .print\:hidden { display: none !important; }
  .print-hidden { display: none !important; }
  header, nav, .header-client, .footer-client, .wp-block { display: none !important; }
  details > summary { display: none !important; }
  body { background: #fff !important; }
  .report-wrap { page-break-inside: avoid; }
  .report-mock,
  .report-mock__section,
  .report-mock__table,
  .report-mock__table th,
  .report-mock__table td {
    box-shadow: none !important;
    background: #fff !important;
    border-color: rgba(0,0,0,0.2) !important;
  }
  table { page-break-inside: auto; }
  tr { page-break-inside: avoid; page-break-after: auto; }
}

/* ==== FORM RELATÓRIO – CONTRASTE E REPLICADOR DE BUNDLES ==== */
.te-form input[type="text"],
.te-form input[type="number"],
.te-form input[type="url"],
.te-form input[type="file"],
.te-form select,
.te-form textarea{
  color:#0C0C0C;            /* texto bem legível */
  background:#fff;
  border:1px solid rgba(16,39,36,.25);
}
.te-form ::placeholder{ color:#6b7280; } /* cinza médio, visível */
.te-form label{ color:#102724; }

.te-bundles{ margin-top:1rem; }
.te-bundle{
  border:1px solid rgba(16,39,36,.12);
  border-radius:.5rem;
  padding:.75rem;
  margin-bottom:.75rem;
  background:#F8FAF9;
}
.te-bundle h4{ margin:0 0 .5rem 0; font-size:.95rem; color:#102724; }
.te-bundle .grid{ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:.5rem; }
.te-bundle .grid .col-span-2{ grid-column:span 2 / span 2; }
.te-bundle .grid .col-span-3{ grid-column:span 3 / span 3; }
.te-bundle .grid .col-span-6{ grid-column:span 6 / span 6; }

.te-actions .btn,
.te-bundle .btn{
  display:inline-flex; align-items:center; gap:.375rem;
  padding:.5rem .75rem; border-radius:.375rem;
  border:1px solid rgba(16,39,36,.2); background:#fff; cursor:pointer;
}
.te-actions .btn-primary{ background:#5D2713; color:#fff; border-color:#5D2713; }
.te-bundle .btn-remove{ background:#fff0f0; border-color:#e11d48; color:#9f1239; }