.invoice-document { border: 1px solid #b7c9bf; padding: 20px; margin-bottom: 24px; border-radius: 12px; background: #fff; }
.invoice-document dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.invoice-document dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
#invoice-document details { border: 0; padding: 0; }
#invoice-document summary { padding: 0; }
@media (min-width: 900px) {
  .compact-entry:has(#invoice-document details[open]) .source strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (min-width: 900px) {
  #workspace:not([hidden]):has(.invoice-document:not([hidden])) { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  #workspace:not([hidden]):has(.invoice-document:not([hidden])) > :not(.invoice-document):not(#entry-form) { grid-column: 1 / -1; }
}
@media (max-width: 450px) { .invoice-document dl { grid-template-columns: 1fr; gap: 6px; } }


#pt-trainer:has(#pt-document:not([hidden])) #pt-fields strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

#pt-fields label { display: grid; gap: .35rem; }
#pt-fields input { width: 100%; min-width: 0; font: inherit; font-size: 16px; padding: .65rem; border: 1px solid #b7c9bf; border-radius: 6px; }
#pt-report button { white-space: normal; max-width: 100%; margin: .25rem 0; }
@media (min-width: 900px) {
 #pt-workspace:not([hidden]):has(#pt-document:not([hidden])) { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
 #pt-workspace:not([hidden]):has(#pt-document:not([hidden])) > .session-bar { grid-column: 1 / -1; }
}
