/* Time card calculator. Loaded after demo.css, getpaid.css and calc.css. */
.tc-set { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.tc-endnote { color: var(--neg); }
.tc-endnote:empty { display: none; }
.tc-daily { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: end; margin-top: 1rem; }
.tc-daily .cl-check { padding-bottom: 0.7rem; }
.tc-dayot { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.875rem; color: var(--muted); width: 13rem; max-width: 100%; }
.tc-dayot input { font: inherit; font-size: 1.125rem; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 0.55rem 0.7rem; width: 100%; font-variant-numeric: tabular-nums; }
.tc-dayot input:disabled { background: var(--bg); color: var(--muted); }
.tc-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.25rem; align-items: start; padding-bottom: 2.5rem; }
.tc-side { position: sticky; top: 1rem; min-width: 0; }
.tc-grid .cf-sheet { margin-bottom: 1.25rem; }
.tc-how { margin-top: 0 !important; }
.tc-acts { margin-top: 1rem !important; }
#tc-msg:empty { display: none; }
.tc-wk { font-size: 1.125rem !important; margin: 1.75rem 0 0 !important; }
.tc-day { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
#tc-days { margin-top: 1rem; }
.tc-wk + .tc-day, #tc-days > .tc-day:first-child { border-top: 1px solid var(--rule); }
.tc-wk + .tc-day { margin-top: 0.75rem; }
.tc-dh { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; margin-bottom: 0.6rem; }
.tc-dh b { font-weight: 500; font-size: 1.0625rem; }
.tc-dd { color: var(--muted); font-size: 0.875rem; }
.tc-dt { margin-left: auto; font-family: "DM Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.tc-shift { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 5.5rem; gap: 0.5rem 0.75rem; align-items: end; }
.tc-shift + .tc-shift { margin-top: 0.6rem; }
.tc-shift label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8125rem; color: var(--muted); min-width: 0; }
.tc-shift input { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 0.5rem 0.65rem; width: 100%; font-variant-numeric: tabular-nums; }
.tc-shift input[aria-invalid="true"] { border-color: var(--neg); }
.tc-x { padding: 0.45rem 0.6rem; font-size: 0.875rem; }
.tc-x[hidden] { display: none; }
.tc-note { margin: 0.5rem 0 0; font-size: 0.8438rem; color: var(--muted); }
.tc-note.neg { color: var(--neg); }
.tc-note:empty { display: none; }
.tc-add { font: inherit; font-size: 0.875rem; background: none; border: 0; padding: 0.35rem 0; margin-top: 0.35rem; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.tc-add:hover { text-decoration-color: var(--ink); }
.tc-side .stats { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin-top: 0 !important; }
.tc-side .stat-v { font-size: 1.5rem; }
.tc-side .gp-out { margin-top: 1.25rem; }
.tc-tbl td:first-child { min-width: 0; }
.tc-conv { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: end; }
.tc-conv + .tc-conv { margin-top: 0.9rem; }
.tc-conv label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.875rem; color: var(--muted); width: 7.5rem; }
.tc-conv input { font: inherit; font-size: 1.0625rem; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 0.5rem 0.65rem; width: 100%; font-variant-numeric: tabular-nums; }
.tc-conv output { padding-bottom: 0.55rem; font-family: "DM Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 0.9375rem; }
.tc-steps { max-width: 30rem; margin: 0 0 1rem; }
.tc-paper { display: none; }
@media (max-width: 899px) {
  .tc-grid { grid-template-columns: 1fr; }
  .tc-side { position: static; }
}
@media (max-width: 599px) {
  .tc-shift { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem 0.5rem; }
  .tc-shift input { padding: 0.5rem 0.5rem; }
  .tc-x { grid-column: 1 / -1; justify-self: start; }
  .tc-side .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .tc-side .stat-v { font-size: 1.375rem; }
  .tc-acts .btn, .tc-acts .gp-btn { flex: 1 1 100%; }
  .tc-dayot { width: 100%; }
}
@media print {
  @page { margin: 0.6in; }
  .tc-screen { display: none !important; }
  .tc-paper { display: block; color: #181715; font-size: 10pt; line-height: 1.3; }
  .tc-ph { display: flex; justify-content: space-between; gap: 1.5rem; align-items: end; padding-bottom: 0.75rem; border-bottom: 2px solid #181715; margin-bottom: 0.75rem; }
  .tc-ph h2 { font-size: 20pt; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 0.2rem; }
  .tc-ph p { margin: 0; font-size: 12pt; }
  .tc-ph dl { margin: 0; }
  .tc-ph dt { color: #6a6964; font-size: 9pt; text-align: right; }
  .tc-ph dd { margin: 0; font-weight: 500; }
  .tc-paper table { width: 100%; font-size: 9.5pt; }
  .tc-paper th { color: #6a6964; border-bottom: 1px solid #181715; padding: 0.3rem 0.4rem; font-size: 9pt; }
  .tc-paper td { border-bottom: 1px solid #e1e1da; padding: 0.2rem 0.4rem; }
  .tc-paper tr { break-inside: avoid; page-break-inside: avoid; }
  .tc-paper thead { display: table-header-group; }
  .tc-pw td { font-weight: 600; border-bottom: 1px solid #181715; padding-top: 0.6rem; }
  .tc-paper .tot td { font-weight: 600; border-top: 1px solid #181715; }
  .tc-psum { width: auto !important; min-width: 18rem; margin: 0.9rem 0 0 auto; break-inside: avoid; }
  .tc-psum td { border: 0; padding: 0.2rem 0; }
  .tc-psum td.r { padding-left: 2rem; }
  .tc-pg td { border-top: 2px solid #181715; font-weight: 600; padding-top: 0.4rem; }
  .tc-pset { margin: 0.9rem 0 0; font-size: 9pt; color: #4a4945; }
  .tc-psign { display: grid; grid-template-columns: 3fr 1fr; gap: 2.25rem 1.5rem; margin-top: 2.25rem; break-inside: avoid; page-break-inside: avoid; }
  .tc-psign span { border-top: 1px solid #181715; padding-top: 0.25rem; font-size: 9pt; color: #6a6964; }
  .tc-made { margin: 1.5rem 0 0; font-size: 8pt; color: #888; }
}
