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

.rapport-grid label {
  min-width: 0;
}

.rapport-form input,
.rapport-form select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 430px) {
  .rapport-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.rapport-section {
  margin-top: 20px;
  padding: 0;
  overflow: hidden;
}

.rapport-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 900;
}

.rapport-section > summary::-webkit-details-marker {
  display: none;
}

.rapport-section > summary::after {
  content: "⌄";
  color: var(--green2);
  font-size: 18px;
  transition: transform .2s;
}

.rapport-section[open] > summary::after {
  transform: rotate(180deg);
}

.rapport-section > summary strong {
  display: grid;
  place-items: center;
  min-width: 27px;
  height: 27px;
  margin-left: auto;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
}

.rapport-content {
  padding: 0 15px 15px;
  border-top: 1px solid var(--line);
}

.rapport-intro {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.rapport-head-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 10px;
}

.rapport-head-fields input,
.rapport-summary-field textarea,
.rapport-form > label textarea {
  width: 100%;
  min-width: 0;
}

.rapport-employees-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 10px;
}

.rapport-employees-head strong {
  font-size: 12px;
}

.rapport-employees-head .secondary {
  width: 100%;
}

.rapport-employee-rows {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.rapport-employee-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.3fr) minmax(118px, .9fr) repeat(3, minmax(76px, .7fr)) auto;
  gap: 9px;
  align-items: end;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.rapport-employee-row legend {
  padding: 0 5px;
  color: var(--green2);
  font-size: 10px;
  font-weight: 900;
}

.rapport-employee-row label {
  min-width: 0;
  margin: 0;
}

.rapport-employee-row input,
.rapport-employee-row select {
  width: 100%;
  min-width: 0;
}

.rapport-employee-activity {
  grid-column: 1 / -2;
}

.rapport-remove-employee {
  grid-column: -2 / -1;
  border: 1px solid #e3b9b2;
  border-radius: 10px;
  background: #fff6f4;
  color: var(--danger);
  padding: 11px 9px;
  font-size: 10px;
  font-weight: 900;
}

.rapport-status-field {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 15px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.rapport-status-field legend {
  padding: 0 5px;
  font-size: 11px;
  font-weight: 900;
}

.rapport-status-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border-radius: 11px;
  background: #f5f8f7;
}

.rapport-status-field input {
  width: auto;
  margin: 0;
}

.rapport-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: var(--green2);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.rapport-item small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.access-identity {
  min-width: 0;
}

.access-contact {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.access-username {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.access-username span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.access-username code {
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid #bad4cc;
  border-radius: 8px;
  background: #edf6f3;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
  user-select: all;
}

@media (max-width: 620px) {
  .rapport-head-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .rapport-employees-head {
    align-items: stretch;
    flex-direction: column;
  }

  .rapport-employee-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rapport-employee-name,
  .rapport-employee-activity {
    grid-column: 1 / -1;
  }

  .rapport-remove-employee {
    grid-column: 1 / -1;
  }

  .rapport-status-field {
    grid-template-columns: minmax(0, 1fr);
  }

  .access-username {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

.project-refresh{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;min-height:44px;padding:10px 14px}.project-refresh[disabled]{opacity:.65;cursor:wait}.project-refresh-status{font-size:13px;color:var(--muted,#667085);margin:0 0 14px;line-height:1.5}.project-refresh-status:empty{display:none}#jobsView>.page-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}

.project-refresh[hidden],.project-refresh-status[hidden],body:not([data-role="admin"]) .project-refresh,body:not([data-role="admin"]) .project-refresh-status{display:none!important}

/* HRD is part of the order, never the email inbox. */
.hrd-job-notice{display:block;width:fit-content;margin:7px 0;padding:5px 9px;border-radius:9px;background:#e2f3ec;color:#15583e;font-size:.8rem;font-weight:700}
.hrd-job-notice.error{background:#fff0ec;color:#9e3525}
#hrdOrderTools{margin:24px 0;padding:14px;border:1px solid #d9e4df;border-radius:14px;background:#fff}
#hrdOrderTools>summary{cursor:pointer;font-weight:700;line-height:1.5}
#hrdUnassignedOrders{margin-top:22px}#hrdUnassignedOrders>p{font-size:.85rem;color:#5c6e66}
.hrd-own-current time{display:block;margin:5px 0;font-size:.8rem;color:#52665d}
.hrd-own-current details{margin-top:12px}.hrd-own-current details summary{cursor:pointer;font-weight:600}

/* Regional HRD session health belongs to the Auftraggeber only. */
.hrd-session-status{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px;margin:16px 0}.hrd-session-status[hidden]{display:none}.hrd-session-card{border:1px solid #cbd5e1;border-left:4px solid #64748b;border-radius:10px;padding:12px;display:grid;gap:5px;background:#fff}.hrd-session-card strong{font-size:14px}.hrd-session-card span{font-weight:600}.hrd-session-card small,.hrd-session-inline{font-size:12px;color:#475569;line-height:1.5}.hrd-session-card.ready{border-left-color:#15803d}.hrd-session-card.warning{border-left-color:#b45309}.hrd-session-card.paused{border-left-color:#475569}

.daily-overview{margin:0 0 24px;padding:18px;border:1px solid #d5ddd9;border-radius:14px;background:#fff}.daily-overview h2{font-size:1.1rem;margin:0 0 6px}.daily-caption,.daily-overview small{color:#58665e;font-size:.8rem}.daily-checklist{list-style:none;margin:10px 0;padding:0}.daily-checklist>li{border-bottom:1px solid #edf0ee;padding:8px 0}.daily-checklist summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer;font-size:.9rem}.daily-checklist summary>span:first-child{overflow-wrap:anywhere}.daily-checklist p,.daily-open p{font-size:.83rem;margin:8px 0;white-space:pre-wrap}.daily-open{margin-top:12px;padding-top:12px;border-top:1px solid #dce3df}.daily-open>summary,.hrd-old-attempts>summary{cursor:pointer;font-weight:600}.daily-open>details{margin:12px 0}.hrd-old-attempts{padding:12px;background:#f0f5f2;border-radius:8px;margin:12px 0}.hrd-old-attempts p{font-size:.8rem}.daily-overview[hidden]{display:none}

.hrd-job-notice:not(.error){background:#fff5dc;color:#6c4d14}

.hrd-schedule{border:1px solid #c4d5ce;border-radius:12px;padding:16px;margin:14px 0;background:#f4f8f5}.hrd-schedule h4{margin:0 0 10px}.hrd-schedule form{display:grid;gap:12px;margin-top:14px}.hrd-schedule label{display:grid;gap:5px}.hrd-schedule input,.hrd-schedule select,.hrd-schedule textarea{width:100%;min-width:0;box-sizing:border-box;min-height:44px}.hrd-schedule select{white-space:normal}.hrd-schedule small{display:block;line-height:1.5}.hrd-schedule details summary{padding:12px 0;cursor:pointer}
