/* The weekly timesheet calculator (owner, 5 Nov 2026, brief ZC; build pack ZC-01): shift cards, breaks, classification intervals,
   the result tables and the print header. It sits on pcalc.css (source fields, result panel, print sheet). */
.ts-views{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;margin:0 0 16px}
.ts-views-l{font-weight:800;margin-right:4px}
.ts-view[aria-pressed="true"]{background:var(--char);color:#fff;border-color:var(--char)}/*dk*/@media (prefers-color-scheme:dark){.ts-view[aria-pressed="true"]{color:#262a31}}/*kd*/
.ts-shift{margin:0 0 16px!important}
.ts-shift[hidden],.ts-break[hidden]{display:none!important}
.ts-shift>legend,.ts-break>legend,.ts-alloc>legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;font-weight:800}
.ts-rm{min-height:36px;padding:.2rem .7rem;font-size:.85rem;font-weight:600}
.ts-grid{display:grid;gap:0 18px}
.ts-grid-shift{grid-template-columns:repeat(4,minmax(0,1fr));align-items:start}
.ts-grid-break{grid-template-columns:repeat(5,minmax(0,1fr))}
.ts-grid-alloc{grid-template-columns:repeat(5,minmax(0,1fr))}
.ts-grid .wide{grid-column:1/-1}
.ts-grid .pc-check{margin-top:1.9rem}
.ts-break,.ts-alloc{margin:6px 0 12px!important;padding:10px 12px 2px!important;border-width:1px!important;background:#fff}/*dk*/@media (prefers-color-scheme:dark){.ts-break,.ts-alloc{background:#262a31}}/*kd*/
.ts-breaks,.ts-allocs{margin:8px 0 0}
.ts-allocs{border-top:1px dashed #6B6B6B;margin-top:14px;padding-top:10px}/*dk*/@media (prefers-color-scheme:dark){.ts-allocs{border-top:1px dashed #b9b6ad}}/*kd*/
.ts-addb,.ts-adda{margin:0 0 14px}
.ts-shift .btn[disabled],.ts-actions .btn[disabled],#ts-add[disabled]{opacity:.5;cursor:not-allowed}
.ts-cat .pc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.ts-rate{margin-top:6px}
.pc-big-s{margin:6px 0 0;color:#C9CDD1}/*dk*/@media (prefers-color-scheme:dark){.pc-big-s{color:#4a4e55}}/*kd*/
.ts-table{margin:14px 0 0}
.ts-cap{margin:0 0 6px;font-weight:800}
.ts-table table{width:100%}
.ts-working{margin:14px 0 0;color:#fff}/*dk*/@media (prefers-color-scheme:dark){.ts-working{color:#262a31}}/*kd*/
.ts-working>summary{cursor:pointer;font-weight:700;color:var(--yellow)}
.ts-working .ts-table{color:var(--char)}
.ts-printhead{display:none}
.ts-h3{margin:1.4rem 0 .5rem;font-size:1.15rem}
.ts-files{margin:0 0 1rem;padding-left:1.2rem}
.ts-files li{margin:.3rem 0}
@media (max-width:900px){
  .ts-grid-shift{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ts-grid-break,.ts-grid-alloc{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ts-grid .pc-check{margin-top:.2rem}
}
@media (max-width:720px){
  .ts-cat .pc-grid{grid-template-columns:minmax(0,1fr)}
  .ts-grid{gap:0 12px}
  .ts-break,.ts-alloc{padding:8px 8px 2px!important}
}
@media print{
  /* Only the result prints: the rest of the page takes no space, so no blank pages follow it. */
  body>*:not(#main){display:none!important}
  #main>*:not(#calc){display:none!important}
  #calc{padding:0!important}
  #calc .wrap>*:not(.ts-printable){display:none!important}
  .ts-printable{position:static!important}
  /* The stamp repeats on every printed page in the page margin (named pages, one per state); the line below also prints it once at the top. */
  @page tsuser{margin:20mm 12mm 14mm;@top-center{content:"USER INPUT: checking worksheet";font:700 10pt sans-serif;color:#000}@bottom-center{content:"Page " counter(page) " of " counter(pages);font:9pt sans-serif;color:#000}}
  @page tssample{margin:20mm 12mm 14mm;@top-center{content:"SAMPLE: illustrative figures, not award rates or client data.";font:700 10pt sans-serif;color:#000}@bottom-center{content:"Page " counter(page) " of " counter(pages);font:9pt sans-serif;color:#000}}
  .ts-printable{page:tsuser}
  .ts-printable.is-sample{page:tssample}
  .ts-printhead{display:block!important;margin:0 0 8px;padding:0 0 3px;border-bottom:1px solid #000;font-weight:700;font-size:.9rem}/*dk*/@media (prefers-color-scheme:dark){.ts-printhead{border-bottom:1px solid #f3efe6}}/*kd*/
  .ts-printable .ts-table table{font-size:.72rem}
  .ts-printable .ts-working>summary{display:none}
  .ts-printable .ts-table{break-inside:avoid;padding:0}
  .ts-printable .pc-sample{border:1px solid #000}/*dk*/@media (prefers-color-scheme:dark){.ts-printable .pc-sample{border:1px solid #f3efe6}}/*kd*/
}
