/* Compacte werkorderweergave voor Technieker en Onderhoudsman, op elk scherm. */
.work-order-detail.technician-work-order .work-order-hero {
  flex-direction: column;
  align-items: stretch;
  gap: .6rem;
  padding: .75rem;
}
.work-order-detail.technician-work-order .work-order-status-block {
  width: 100%;
  min-width: 0;
  align-items: stretch;
  gap: .4rem;
}
.work-order-detail.technician-work-order .work-order-status-block > .badge {
  align-self: flex-start;
  white-space: normal;
  text-align: left;
}
.work-order-detail.technician-work-order .compact-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: .35rem;
}
.work-order-detail.technician-work-order .compact-detail-actions .btn {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: .4rem;
}
.work-order-detail.technician-work-order .machine-history-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}
.work-order-detail.technician-work-order .machine-history-summary > div {
  min-height: 0;
  padding: .6rem;
}
.work-order-detail.technician-work-order .work-order-grid {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.work-order-detail.technician-work-order .work-order-section {
  padding: .75rem;
  margin-top: .6rem;
}

/* In licht thema geen transparante verlopen boven de pagina-achtergrond. */
html[data-bs-theme="light"] .work-order-detail .work-order-hero,
html[data-bs-theme="light"] .work-order-detail .machine-history-summary > div {
  background: #ffffff;
  color: #212529;
}
html[data-bs-theme="light"] #taskPageTitle { color: #212529; }
html[data-bs-theme="light"] .work-order-detail .text-secondary,
html[data-bs-theme="light"] .work-order-detail .machine-history-summary span {
  color: #495057 !important;
}
html[data-bs-theme="light"] .work-order-detail .summary-danger strong { color: #b02a37; }
html[data-bs-theme="light"] .work-order-detail .summary-warning strong { color: #805500; }
html[data-bs-theme="light"] .work-order-detail .compact-detail-actions .btn-outline-warning {
  --bs-btn-color: #805500;
  --bs-btn-border-color: #805500;
}
