/* The timesheet document — used for the on-screen preview and for the PDF. */

.sheet {
  width: 8.5in; min-height: 11in; padding: 0.55in 0.6in 0.75in; background: #fff; color: #18201c;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 22px 54px rgba(23, 36, 29, 0.16); user-select: text; cursor: auto;
}
.sheet.a4 { width: 210mm; min-height: 297mm; }

.rd { font: 400 10pt/1.45 'Plex Sans', -apple-system, sans-serif; color: #18201c; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 28pt; padding-bottom: 14pt; border-bottom: 1.5pt solid #18201c; }
.rd-business { font: 500 17pt/1.2 'Plex Serif', Georgia, serif; letter-spacing: -0.005em; }
.rd-person { margin-top: 2pt; font-weight: 500; }
.rd-lines { margin-top: 3pt; color: #5a6660; font-size: 8.75pt; line-height: 1.55; white-space: pre-line; }
.rd-doc { text-align: right; flex: none; }
.rd-title { font: 400 23pt/1.05 'Plex Serif', Georgia, serif; letter-spacing: -0.01em; }
.rd-meta { display: grid; grid-template-columns: auto auto; justify-content: end; gap: 1.5pt 12pt; margin: 8pt 0 0; font-size: 9pt; }
.rd-meta dt { color: #5a6660; }
.rd-meta dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }

.rd-parties { display: flex; justify-content: space-between; align-items: flex-end; gap: 28pt; padding: 16pt 0 18pt; }
.rd-label { margin-bottom: 3pt; font-size: 8.5pt; color: #5a6660; }
.rd-client { font: 500 13pt/1.25 'Plex Serif', Georgia, serif; }
.rd-summary { display: flex; gap: 24pt; text-align: right; flex: none; }
.rd-summary .rd-label { margin: 2pt 0 0; }
.rd-fig { font: 500 15pt/1.15 'Plex Sans', sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -0.005em; }
.rd-amount .rd-fig { color: #1e6b47; }

.rd-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rd-table th { padding: 0 8pt 5pt 0; border-bottom: 0.75pt solid #18201c; text-align: left; font-size: 8.5pt; font-weight: 500; color: #5a6660; }
.rd-table td { padding: 4pt 8pt 4pt 0; vertical-align: top; }
.rd-table .num { text-align: right; padding-right: 0; white-space: nowrap; }
.rd-day { break-inside: avoid; page-break-inside: avoid; }
.rd-day tr:first-child td { border-top: 0.5pt solid #d3dbd5; padding-top: 6pt; }
.rd-day tr:last-child td { padding-bottom: 6pt; }
.rd-day:first-of-type tr:first-child td { border-top: 0; }
.rd-date { width: 1%; padding-right: 16pt !important; white-space: nowrap; font-weight: 500; }
.rd-date .rd-daytotal { display: block; margin-top: 1pt; font-weight: 400; color: #5a6660; font-size: 8.5pt; }
.rd-time { width: 1%; padding-right: 16pt !important; white-space: nowrap; color: #3b4540; }
.rd-desc { color: #18201c; }
.rd-desc.empty { color: #8a948e; }
.rd-nb { margin-left: 5pt; padding: 0 3pt; border: 0.5pt solid #c6cfc9; border-radius: 3pt; color: #5a6660; font-size: 7.5pt; white-space: nowrap; }
.rd-hours-nb { color: #8a948e; }
.rd-total td { padding: 7pt 0 7pt 0; border-top: 0.75pt solid #18201c; border-bottom: 2.4pt double #18201c; font-weight: 600; }
.rd-subtotal td { padding: 6pt 0 0; color: #5a6660; }
.rd-notes { margin-top: 20pt; padding-top: 10pt; border-top: 0.5pt solid #d3dbd5; font-size: 9pt; color: #3b4540; white-space: pre-line; }
.rd-empty { padding: 36pt 0; text-align: center; color: #5a6660; }

#print-root { display: none; }

@media print {
  html, body { height: auto !important; overflow: visible !important; background: #fff !important; }
  #app { display: none !important; }
  #print-root { display: block !important; }
  #print-root .sheet { width: auto !important; min-height: 0 !important; padding: 0 !important; box-shadow: none !important; }
}
.rd-rates { margin: -4px 0 22px; }
