#rapport {
  width: min(950px, calc(100vw - 24px));
  max-width: 950px;
}
.rapport-day {
  border: 1px solid #dce4e7;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  background: #fafcfc;
}
.day-heading,
.actual-person,
.actual-resource {
  display: grid;
  align-items: end;
  gap: 12px;
  margin: 12px 0;
}
.day-heading {
  grid-template-columns: 1fr auto;
}
.actual-person {
  grid-template-columns: minmax(180px, 2fr) 1fr 1fr 38px;
}
.actual-resource {
  grid-template-columns: minmax(160px, 2fr) 2fr 1fr 1fr;
}
.actual-resource strong {
  align-self: center;
}
.rapport-list,
.billing-project {
  padding: 24px;
  margin-top: 24px;
}
.billing-tabs {
  overflow: auto;
}
.billing-project details {
  border-top: 1px solid #dce4e7;
  padding: 14px 0;
  margin-top: 16px;
}
.billing-project summary {
  cursor: pointer;
  font-weight: 600;
}
.prewrap {
  white-space: pre-wrap;
}
.rapport-list .section-heading {
  flex-wrap: wrap;
  gap: 12px;
}
.rapport-day label {
  min-width: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.actual-resource input:disabled,
.actual-resource select:disabled {
  background: #edf0f2;
  color: #7a8790;
}
@media (max-width: 650px) {
  .actual-person {
    grid-template-columns: 1fr 1fr 38px;
  }
  .actual-person label:first-child {
    grid-column: 1 / -1;
  }
  .actual-resource {
    grid-template-columns: 1fr 1fr;
  }
  .actual-resource strong {
    grid-column: 1 / -1;
  }
  .day-heading {
    grid-template-columns: 1fr;
  }
  .rapport-day {
    padding: 12px;
  }
  .billing-project,
  .rapport-list {
    padding: 16px;
  }
  .actual-resource label {
    font-size: 12px;
  }
}
@media print {
  .rapport-day {
    break-inside: avoid;
    background: white;
  }
  .report-summary {
    border-bottom: 1px solid #ddd;
  }
  .print-only {
    font-size: 12px;
  }
}
.rapport-documents {
  margin: 16px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.rapport-documents h3 {
  margin: 0 0 10px;
}
.rapport-documents label {
  margin: 10px 0;
}
.rapport-attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.rapport-attachment > div {
  flex: 1;
  min-width: 180px;
  overflow-wrap: anywhere;
}
.rapport-attachment small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
