#report { border-top: 3px solid var(--company-accent, #1E40AF); padding-top: 1rem; }
#report .brand { color: var(--kh-on-surface); font-weight: 800; }
#report .company-logo { display: block; width: auto; max-width: min(100%, 16rem); height: auto; max-height: 5rem; margin-block: .75rem; }
#report .company-logo[hidden] { display: none; }
.controls,.actions { display:flex;flex-wrap:wrap;gap:1rem;align-items:end;margin-block:1rem; }
.controls label { display:flex;flex-direction:column;gap:.5rem;flex:1 1 12rem; }
#days table { min-width:60rem; }
#report .counts span { flex:1 1 12rem; }
#range,#generated { font-variant-numeric:tabular-nums; }
#share-url { display:block;width:100%;box-sizing:border-box;margin-block:.5rem; }
#share-list { padding-left:1.5rem; }
#share-list li { margin-block:1rem;overflow-wrap:anywhere; }
#share-list p { margin-bottom:.5rem; }
#shares > p > a { display:inline-flex;align-items:center;min-height:var(--kh-size-touch-min); }
#share-result { padding:1rem;border:1px solid var(--kh-outline-variant);border-radius:var(--kh-radius-md);background:var(--kh-surface-container-low); }
#share-result-expiry { font-variant-numeric:tabular-nums; }
@media(max-width:40rem) { #shares .controls > :is(label,button),#share-copy { width:100%;flex-basis:100%; } }
.kh-timesheets #report:empty { display: none; }
.kh-timesheets .recorded-time span { display:block; }
.kh-timesheets .print-label { display:none; }
@page { margin:12mm; }
@media print {
 :root, :root[data-theme], :root:not([data-theme=light]):not([data-theme=dark]) {
  color-scheme:light;
  --kh-surface:#fff; --kh-surface-container-low:#fff; --kh-surface-container-highest:#fff;
  --kh-on-surface:#000; --kh-on-surface-variant:#000; --kh-outline-variant:#777;
  --kh-primary:#000; --kh-exception:#000; --kh-shadow:none;
 }
 html,body { background:white;color:black;font-size:10pt; }
 body:has(.kh-sidebar) { display:block; }
 .kh-timesheets main > :not(#report) { display:none!important; }
 .kh-timesheets #report .scroll { overflow:visible; }
 .kh-timesheets #report table { min-width:0;width:100%;font-size:8pt;table-layout:fixed; }
 .kh-timesheets #report th { min-width:0; }
 .kh-timesheets #report .screen-label { display:none; }
 .kh-timesheets #report .print-label { display:inline; }
 .kh-timesheets #report .summary-table th:first-child { width:22%; }
 .kh-timesheets #report .segment-table th:first-child { width:20%; }
 .kh-timesheets #report .segment-table th:nth-child(2),.kh-timesheets #report .segment-table th:nth-child(3) { width:14%; }
 .kh-timesheets #report .trip-table th:nth-child(3) { width:26%; }
 .kh-timesheets #report .trip-table th:last-child { width:13%; }
 .kh-timesheets #report .recorded-time { font:inherit; }
 .kh-timesheets #report .recorded-time span { white-space:nowrap; }
 .kh-timesheets #report h2,.kh-timesheets #report h3 { break-after:avoid; }
 /* Long crews and days may span sheets; rows and repeated headers stay together. */
 .kh-timesheets #report details > summary { display:none; }
 .kh-timesheets #report :is(th,td) { overflow-wrap:anywhere; }
 .kh-sidebar,.no-print,.skip { display:none!important; }
 body main { max-width:none;padding:0; }
 #report { display:block;border:0;border-top:3px solid var(--company-accent, #1E40AF);box-shadow:none;margin:0;padding:0; }
 #report { print-color-adjust:exact;-webkit-print-color-adjust:exact; }
 #report[hidden] { display:none!important; }
 #report .counts { gap:.3rem; }
 #report .counts span { padding:.4rem;border:1px solid #777;box-shadow:none; }
 #days { overflow:visible; }
 #days table { min-width:0;font-size:8pt;table-layout:fixed; }
 body th,body td { padding:.3rem; }
 thead { display:table-header-group; }
 tr { break-inside:avoid; }
 #days :is(th,td):last-child { display:none; }
 .notice { color:black!important;background:white!important; }
}
