/* Timesheet, the sheet. Portrait Letter by default, A4 under html.a4 (the
   runtime swaps the @page rule). Seven day rows with boxes for in, out,
   break, hours and a note, a total row, and signature lines. Colors only
   through --t-*; static font instances only. */

@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: block; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: block; }
@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/intertight-400.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/intertight-500.woff2") format("woff2"); font-weight: 500; font-display: block; }

@page { size: Letter; margin: 0; }

:root { --t-paper: #ffffff; --t-ink: #1a1a1a; --t-accent: #1f4e79; --t-muted: #5b6b7a; }
html, body { margin: 0; padding: 0; background: #fff; }
[hidden] { display: none !important; }

.sheet {
  width: 8.5in; height: 11in; padding: 0.5in 0.55in 0.6in; box-sizing: border-box; position: relative; overflow: hidden;
  background: var(--t-paper); color: var(--t-ink);
  font: 400 10.5pt/1.45 "Inter Tight", system-ui, sans-serif;
  display: flex; flex-direction: column; gap: 0.3in;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
  --line: color-mix(in srgb, var(--t-muted) 45%, transparent);
}
html.a4 .sheet { width: 210mm; height: 297mm; }

.head { flex: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 0.3in; border-bottom: 2pt solid var(--t-accent); padding-bottom: 0.14in; }
.titles h1 { margin: 0; font: 400 30pt/1 "Newsreader", Georgia, serif; color: var(--t-accent); letter-spacing: -0.01em; }
.titles .biz { margin: 6pt 0 0; font: 500 13pt/1.2 "Newsreader", Georgia, serif; color: var(--t-ink); white-space: nowrap; overflow: hidden; max-width: 3.8in; height: 1.2em; }
.who { flex: none; width: 3in; }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 0.2in; font-size: 9.5pt; padding: 3pt 0; border-bottom: 0.5pt solid var(--line); }
.kv span { color: var(--t-muted); flex: none; }
.kv b { font-weight: 400; color: var(--t-ink); white-space: nowrap; overflow: hidden; text-align: right; min-width: 0; }
.kv .blank { display: block; width: 1.8in; height: 0.16in; }

/* The table: every row the same flex shape. */
.table { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.trow { display: flex; align-items: stretch; border-bottom: 0.5pt solid var(--line); }
.trow.th { height: 0.3in; border-bottom: 1pt solid var(--t-accent); font-size: 7.5pt; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-muted); align-items: flex-end; }
.trow.th .c { padding-bottom: 4pt; }
/* The day rows share the page down to the signature lines: taller rows on Letter, a little shorter on A4. */
.rows { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rows .trow { flex: 1 1 0; min-height: 0.5in; max-height: 0.95in; }
.trow.tf { height: 0.5in; border-bottom: 0; border-top: 1pt solid var(--t-accent); font-weight: 500; }
.c { flex: 1 1 0; min-width: 0; border-left: 0.5pt solid var(--line); padding: 4pt 6pt; display: flex; flex-direction: column; }
.c:first-child { border-left: 0; padding-left: 0; }
.c.day { flex: 0 0 1.35in; }
.c.day b { font-weight: 500; font-size: 9.5pt; }
.c.day i { font-style: normal; font-size: 8.5pt; color: var(--t-muted); margin-top: 2pt; }
.c.nt { flex: 1.6 1 0; }
.trow.tf .c.total { border: 1pt solid var(--t-accent); }

.sigs { flex: none; display: flex; gap: 0.45in; padding-top: 0.2in; }
.sig { flex: 1; }
.sig .line { display: block; height: 0.36in; border-bottom: 0.6pt solid var(--t-ink); }
.sig .under { display: block; margin-top: 4pt; font-size: 7.5pt; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-muted); }

.foot { position: absolute; left: 0.55in; right: 0.55in; bottom: 0.42in; font-size: 7.5pt; color: var(--t-muted); display: flex; justify-content: space-between; align-items: flex-end; }
.ruler { width: 1in; border-top: 0.5pt solid var(--t-muted); font-size: 6.5pt; color: var(--t-muted); text-align: center; line-height: 1.6; }
