/* dw5.css — DW5 (2026-10-19): the genuinely new surfaces only — the
 * shared 3D viewer (glb-viewer.js), the plan drawing record (plans.js)
 * and the Timesheets Per category grid / Register additions
 * (timesheets.js; timesheets.css wasn't in the wave's package). Colours
 * through the --ds-* tokens, so Navy re-points them. */

/* ---------- the shared 3D viewer ---------- */
.rk-model-overlay { position: fixed; inset: 0; z-index: 1400; display: flex; flex-direction: column; background: #0f1724; color: #fff; }
.rk-model-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255, 255, 255, .06); border-bottom: 1px solid rgba(255, 255, 255, .12); flex-wrap: wrap; }
.rk-model-title { font-weight: 800; font-size: 15px; margin-right: auto; }
.rk-model-hint { font-size: 12px; opacity: .7; }
.rk-model-bar .btn { color: #fff; border-color: rgba(255, 255, 255, .3); }
.rk-model-x { border: 0; background: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 6px; }
.rk-model-stage { position: relative; flex: 1; min-height: 0; }
.rk-model-mv { width: 100%; height: 100%; background: radial-gradient(circle at 50% 40%, #2a3b55, #0f1724); --poster-color: transparent; }
.rk-model-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; max-width: 560px; margin: auto; font-size: 15px; line-height: 1.5; }
.rk-model-msg.hidden, .rk-model-hint.hidden { display: none; }

/* ---------- plan drawing record ---------- */
body.skin-billdr .pd-rec-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 12px 0; font-size: var(--ds-fs-sm); }
body.skin-billdr .pd-rec-facts dt { color: var(--ds-muted); }
body.skin-billdr .pd-rec-facts dd { margin: 0; word-break: break-word; }
body.skin-billdr .pd-rec-acts { display: flex; gap: 8px; margin: 0; }

/* ---------- Timesheets: Per category grid, Register additions ---------- */
body.skin-billdr #app .ts-cat-table .ts-cat-day { min-width: 58px; }
body.skin-billdr #app .ts-cat-sbtn, body.skin-billdr #app .ts-cat-name { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 0; text-align: left; display: inline-flex; align-items: center; gap: 6px; }
body.skin-billdr #app .ts-cat-chev { display: inline-flex; transition: transform .15s; }
body.skin-billdr #app .ts-cat-chev.open { transform: rotate(90deg); }
body.skin-billdr #app .ts-cat-person td { font-size: var(--ds-fs-xs); color: var(--ds-muted); padding-left: 28px; }
body.skin-billdr #app .ts-cat-tools { margin: 8px 0 0; }
body.skin-billdr #app .ts-tie.ts-tie-bad { color: var(--ds-bad-ink); }
body.skin-billdr #app .ts-cat-chip { display: inline-block; padding: 1px 6px; border-radius: var(--ds-r-pill, 999px); background: var(--ds-fill); font-size: 11px; font-weight: 700; margin: 1px 0; white-space: nowrap; }
body.skin-billdr #app .ts-cat-chip small { font-weight: 500; color: var(--ds-muted); }
body.skin-billdr #app .ts-cat-chip.ts-cat-unc { background: var(--ds-orange-bg, #fff4e5); color: var(--ds-orange-ink, #9a3412); }
body.skin-billdr #app .ts-reg-off td { background: var(--ds-tint); }
body.skin-billdr #app .ts-reg-off-pending td { opacity: .7; }

/* ---------- the client magic link on the project header (clients.js) ---------- */
body.skin-billdr #app .pml { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 0; font-size: var(--ds-fs-sm); }
body.skin-billdr #app .pml:empty { display: none; }
body.skin-billdr #app .pml-k { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ds-ink); }
body.skin-billdr #app .pml-url { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 8px; border-radius: var(--ds-r-sm); background: var(--ds-fill); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
body.skin-billdr #app .pml-danger { color: var(--ds-bad-ink); }
body.skin-billdr #app .pml-meta { font-size: var(--ds-fs-xs); }
body.skin-billdr #app .pml-flash { font-size: var(--ds-fs-xs); color: var(--ds-ok-ink); font-weight: 700; }
body.skin-billdr #app .pml .pml-err { flex-basis: 100%; margin: 0; }
