<div class="ukc-code-file-expand">
<figure class="fh">
<figcaption class="hd">
<span class="nm"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H6v18h12V7z"/><path d="M14 3v4h4"/></svg><span class="pt"><span class="dir">src/jobs/</span>sheet.ts</span></span>
<abbr class="lang" title="TypeScript">TS</abbr>
<span class="meta">21 lines · 418 B</span>
<span class="acts"><a class="raw" href="#">Raw</a><button class="ib" type="button" aria-label="Copy sheet.ts"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="8" y="8" width="12" height="12" rx="1"/><path d="M16 8V4H4v12h4"/></svg></button></span>
</figcaption>
<pre class="src vis"><code><span class="l"><span class="k">export type</span> JobSheet = {</span>
<span class="l"> id: <span class="k">string</span>;</span>
<span class="l"> site: <span class="k">string</span>;</span>
<span class="l"> crew: <span class="k">string</span>[];</span>
<span class="l"> hours: Array<Hours>;</span>
<span class="l"> materials: Array<Material>;</span>
<span class="l"> signedOffBy?: <span class="k">string</span>;</span>
<span class="l"> status: <span class="s">"open"</span> | <span class="s">"signed"</span> | <span class="s">"invoiced"</span>;</span>
<span class="l">};</span></code></pre>
<details class="rest">
<summary><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 9l6 6 6-6"/></svg><span class="more">Show 12 more lines</span><span class="less">Show fewer lines</span></summary>
<pre class="src"><code><span class="l"> </span>
<span class="l"><span class="k">export type</span> Hours = {</span>
<span class="l"> who: <span class="k">string</span>;</span>
<span class="l"> day: <span class="k">string</span>; <span class="c">// ISO date</span></span>
<span class="l"> hours: <span class="k">number</span>;</span>
<span class="l">};</span>
<span class="l"> </span>
<span class="l"><span class="k">export type</span> Material = {</span>
<span class="l"> sku: <span class="k">string</span>;</span>
<span class="l"> qty: <span class="k">number</span>;</span>
<span class="l"> unitCost: <span class="k">number</span>; <span class="c">// in cents</span></span>
<span class="l">};</span></code></pre>
</details>
</figure>
</div>
.ukc-code-file-expand { position: relative; font-family: var(--uk-font-body, system-ui, sans-serif); color: var(--uk-ink); font-size: 15px; line-height: 1.5;
--tint: color-mix(in srgb, var(--uk-accent) 12%, var(--uk-paper));
--tint-strong: color-mix(in srgb, var(--uk-accent) 22%, var(--uk-paper));
--accent-deep: color-mix(in srgb, var(--uk-accent) 72%, black);
--ink-soft: color-mix(in srgb, var(--uk-ink) 8%, var(--uk-paper));
--line-strong: color-mix(in srgb, var(--uk-ink) 32%, var(--uk-paper));
--danger-tint: color-mix(in srgb, var(--uk-danger) 12%, var(--uk-paper));
--high-tint: color-mix(in srgb, var(--uk-highlight) 28%, var(--uk-paper)); }
.ukc-code-file-expand *, .ukc-code-file-expand *::before, .ukc-code-file-expand *::after { box-sizing: border-box; }
.ukc-code-file-expand :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-code-file-expand :where(ul, ol) { padding: 0; list-style: none; }
.ukc-code-file-expand :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-code-file-expand :where(a) { color: inherit; }
.ukc-code-file-expand svg { flex: none; }
.ukc-code-file-expand { container-type: inline-size; inline-size: 100%; }
.ukc-code-file-expand .fh { max-width: 600px; margin: 0; counter-reset: ln; border: var(--uk-border-width) solid var(--uk-line); border-radius: var(--uk-radius-lg); overflow: hidden; background: var(--uk-surface); box-shadow: var(--uk-card-shadow); }
.ukc-code-file-expand .hd { display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 14px; border-bottom: 1px solid var(--uk-line); background: var(--uk-paper); }
.ukc-code-file-expand .nm { display: inline-flex; flex: 1; align-items: center; gap: 8px; min-width: 0; font: 600 13px/1.5 var(--uk-font-mono, ui-monospace, monospace); }
.ukc-code-file-expand .nm svg { color: var(--uk-muted); }
.ukc-code-file-expand .pt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ukc-code-file-expand .dir { color: var(--uk-muted); font-weight: 400; }
.ukc-code-file-expand .lang { flex: none; padding: 0 6px; border: 1px solid color-mix(in srgb, var(--uk-accent) 35%, var(--uk-paper)); border-radius: min(var(--uk-radius-sm), 4px); background: var(--tint); color: color-mix(in srgb, var(--uk-accent) 60%, var(--uk-ink)); font: 700 10.5px/1.6 var(--uk-font-mono, ui-monospace, monospace); letter-spacing: 0.04em; text-decoration: none; }
.ukc-code-file-expand .meta { flex: none; color: var(--uk-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ukc-code-file-expand .acts { display: flex; flex: none; align-items: center; gap: 2px; }
.ukc-code-file-expand .raw { padding: 4px 8px; border-radius: var(--uk-radius-sm); font-size: 12.5px; font-weight: 500; text-decoration: none; transition: background-color var(--uk-motion-duration) var(--uk-motion-ease); }
.ukc-code-file-expand .ib { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: var(--uk-radius-sm); background: none; color: var(--uk-ink); cursor: pointer; transition: background-color var(--uk-motion-duration) var(--uk-motion-ease); }
.ukc-code-file-expand .raw:hover, .ukc-code-file-expand .ib:hover { background: var(--ink-soft); }
.ukc-code-file-expand .raw:focus-visible, .ukc-code-file-expand .ib:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 1px; }
.ukc-code-file-expand .src { margin: 0; overflow-x: auto; font: 12.5px/1.7 var(--uk-font-mono, ui-monospace, monospace); tab-size: 2; }
.ukc-code-file-expand .src code { display: grid; width: max-content; min-width: 100%; font: inherit; }
.ukc-code-file-expand .src .l { min-height: 1.7em; padding: 0 16px; white-space: pre; }
.ukc-code-file-expand .src .l { padding-left: 0; }
.ukc-code-file-expand .src .l::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 5ch; padding-right: 2ch; color: color-mix(in srgb, var(--uk-ink) 40%, var(--uk-surface)); text-align: right; user-select: none; }
.ukc-code-file-expand .vis { padding-top: 10px; }
.ukc-code-file-expand .vis:has(+ .rest:not([open])) { -webkit-mask-image: linear-gradient(black calc(100% - 3.6em), transparent); mask-image: linear-gradient(black calc(100% - 3.6em), transparent); }
.ukc-code-file-expand .rest .src { padding-bottom: 12px; }
.ukc-code-file-expand .rest summary { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-top: 1px dashed var(--line-strong); color: var(--uk-muted); font-size: 12.5px; font-weight: 500; list-style: none; cursor: pointer; transition: color var(--uk-motion-duration) var(--uk-motion-ease), background-color var(--uk-motion-duration) var(--uk-motion-ease); }
.ukc-code-file-expand .rest summary::-webkit-details-marker { display: none; }
.ukc-code-file-expand .rest summary:hover { background: var(--ink-soft); color: var(--uk-ink); }
.ukc-code-file-expand .rest summary:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: -2px; }
.ukc-code-file-expand .rest summary svg { transition: transform var(--uk-motion-duration) var(--uk-motion-ease); }
.ukc-code-file-expand .rest[open] summary svg { transform: rotate(180deg); }
.ukc-code-file-expand .rest .less, .ukc-code-file-expand .rest[open] .more { display: none; }
.ukc-code-file-expand .rest[open] .less { display: inline; }
.ukc-code-file-expand .src .k { color: color-mix(in srgb, var(--uk-accent) 60%, var(--uk-ink)); }
.ukc-code-file-expand .src .s { color: color-mix(in srgb, var(--accent-deep) 60%, var(--uk-ink)); background: var(--tint); }
.ukc-code-file-expand .src .n { color: color-mix(in srgb, var(--accent-deep) 60%, var(--uk-ink)); }
.ukc-code-file-expand .src .c { color: var(--uk-muted); font-style: italic; }
.ukc-code-file-expand .src .f { font-weight: 600; }
@container (max-width: 420px) { .ukc-code-file-expand .meta { display: none; } }