@import url("/image-converter/styles.css?v=1");
/* Time card calculator */
.tc-row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; }
.tc-row + .tc-row { margin-top: 12px; }
.tc-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tc-f .lbl { margin-bottom: 0; }
.tc-grow { flex: 1 1 220px; }
.tc-btns { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.tc-top .sel, .tc-top .in { min-height: 40px; }
.tc-top #sheets { max-width: 240px; }
.tc-nav .tc-navrow { display: flex; align-items: center; gap: 6px; }
.tc-nav .btn { min-width: 40px; font-size: 18px; line-height: 1; padding: 6px 10px; }
.tc-plabel { min-width: 13.5em; text-align: center; font-weight: 650; font-size: 15px; }
#pdate { width: auto; min-width: 10.5em; }
.statusline.bad { color: var(--warn); }
.statusline:empty { display: none; }
#saved { margin: 8px 0 0; }

/* settings */
.tc-set > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.tc-set > summary::-webkit-details-marker { display: none; }
.tc-set > summary h2 { display: inline; margin: 0; }
.tc-set > summary::after { content: "Show"; margin-left: auto; color: var(--accent); font-size: 12px; }
.tc-set[open] > summary::after { content: "Hide"; }
.tc-sum { color: var(--muted); font-size: 12px; }
.tc-set[open] > summary { margin-bottom: 14px; }
.tc-sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px 22px; align-items: start; }
.tc-wide { grid-column: 1 / -1; }
.tc-sgrid .sel, .tc-sgrid .in { min-height: 40px; }
#rules { max-width: 320px; }
.tc-rule { margin: 6px 0 0; font-size: 13px; color: var(--text); max-width: 760px; }
.tc-src { color: var(--muted); font-size: 12px; }
.tc-src a, .tc-hint a, .tc-rule a { color: var(--accent); }
.tc-extra { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; }
.tc-extra:empty { display: none; }
.tc-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.tc-inline .sel { width: auto; }
.tc-num { width: 5.5em !important; text-align: right; }
.tc-tin { width: 7.5em !important; }
.tc-jname { width: 8.5em !important; }
.tc-cur { color: var(--muted); }
.tc-auto { width: auto !important; }
.tc-hint { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.tc-dows { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tc-dow { min-width: 40px; min-height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel-2); color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.tc-dow[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: rgba(149, 214, 0, .08); }
#diffBox { display: grid; gap: 6px; margin-top: 6px; }
#diffBox[hidden], #rate2Box[hidden], #autoCustom[hidden] { display: none; }

/* layout: days + totals */
.tc-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1000px) { .tc-main { grid-template-columns: minmax(0, 1fr) 340px; } .tc-res { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; } }
.tc-leadh { font-size: 12px; color: var(--muted); margin: 0 2px 8px; }

/* a day */
.tc-day { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.tc-day.lead { opacity: .78; border-style: dashed; }
.tc-day.lead + .tc-day:not(.lead) { margin-top: 18px; }
.tc-dh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.tc-dh h3 { margin: 0; font-size: 15px; font-weight: 600; min-width: 6.5em; }
.tc-dh h3 b { color: var(--accent); font-weight: 700; }
.tc-dtot { font-variant-numeric: tabular-nums; }
.tc-dtot b { font-size: 16px; }
.tc-dtot span { color: var(--muted); font-size: 12px; }
.tc-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.tc-b { font-size: 11px; border-radius: 999px; padding: 1px 8px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.tc-b.ot { color: var(--accent); border-color: #3c5410; }
.tc-b.dt { color: #c7a4ff; border-color: #3e2a66; }
.tc-b.ca, .tc-b.loss { color: var(--warn); border-color: #4a3b1f; }
.tc-b.gain { color: var(--good); border-color: #2c4a1f; }
.tc-plist { display: grid; gap: 6px; }
.tc-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.tc-cell { display: inline-flex; flex-direction: column; gap: 1px; }
.tc-t { width: 7.6em; min-height: 44px; font-size: 16px; padding: 8px 10px; font-variant-numeric: tabular-nums; }
.tc-t.bad, .in.bad { border-color: var(--bad); }
.tc-t::placeholder { color: #565c6c; }
.tc-mark { font-size: 11px; color: var(--muted); min-height: 0; line-height: 1.2; }
.tc-mark:empty { display: none; }
.tc-dash { color: var(--muted); font-size: 12px; }
.tc-job { width: auto; min-height: 40px; }
.tc-pair .x, .tc-brk .x { min-width: 36px; min-height: 40px; font-size: 20px; }
.tc-gap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-left: 14px; border-left: 2px solid var(--border); margin-left: 8px; font-size: 12px; color: var(--muted); }
.tc-glen { font-variant-numeric: tabular-nums; min-width: 2.6em; }
.tc-gsel { width: auto; min-height: 36px; padding: 5px 8px; }
.tc-blist { display: grid; gap: 6px; margin-top: 8px; }
.tc-brk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--muted); }
.tc-brk .sel { width: auto; min-height: 40px; }
.tc-bm { width: 4.5em; min-height: 40px; text-align: right; font-size: 16px; }
.tc-note { margin-top: 8px; min-height: 40px; }
.tc-note[hidden] { display: none; }
.tc-flags { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; font-size: 12px; }
.tc-flags:empty { display: none; }
.tc-flags li { color: var(--muted); }
.tc-flags li.warn, .tc-flags li.ca { color: var(--warn); }
.tc-flags li::before { content: "· "; }
.tc-dact { display: flex; flex-wrap: wrap; gap: 2px 4px; margin-top: 8px; }
.tc-a { background: none; border: 0; color: var(--muted); font: inherit; font-size: 12px; padding: 6px 8px; min-height: 32px; border-radius: 6px; cursor: pointer; }
.tc-a:hover, .tc-a:focus-visible { color: var(--accent); background: var(--panel-2); outline: none; }

/* totals */
.tc-res h3 { font-size: 13px; margin: 16px 0 6px; color: var(--text); }
.tc-big { display: flex; flex-wrap: wrap; gap: 10px; }
.tc-stat { flex: 1 1 84px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; min-width: 0; }
.tc-stat .k { font-size: 11px; color: var(--muted); }
.tc-stat b { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; overflow-wrap: anywhere; }
.tc-stat .s { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tc-stat.main { flex-basis: 100%; }
.tc-stat.main b { font-size: 30px; color: var(--accent); }
.tc-stat.hot b { color: var(--accent); }
.tc-stat.pay { flex-basis: 100%; }
.tc-stat.pay b { font-size: 26px; }
.tc-brkline { flex-basis: 100%; margin: 0; }
.tc-tab { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.tc-tab th, .tc-tab td { text-align: left; padding: 5px 6px; border-top: 1px solid var(--border); }
.tc-tab th { color: var(--muted); font-weight: 600; font-size: 11px; }
.tc-tab .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tc-verdict { margin: 8px 0 0; font-weight: 650; color: var(--good); }
.tc-verdict.loss { color: var(--warn); }
.tc-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13px; }
.tc-kv dt { color: var(--muted); }
.tc-kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tc-act { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; }
.tc-file { position: relative; overflow: hidden; display: inline-flex; align-items: center; }
.tc-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tc-file:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.tc-link { background: none; border: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; padding: 0 2px; }
.tc-fine { font-size: 11px; color: var(--muted); margin: 10px 0 0; }
.doors { margin-top: 20px; }

/* phones: a running total along the bottom */
.tc-bar { display: none; }
@media (max-width: 999px) {
  .tc-bar:not(:empty) { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(12, 12, 16, .96); border-top: 1px solid var(--border); text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); }
  body { padding-bottom: 52px; }
}
@media (max-width: 520px) {
  .tc-day { padding: 10px; }
  .tc-t { width: 6.5em; padding: 8px 8px; }
  .tc-plabel { min-width: 0; flex: 1; }
  .tc-nav { flex: 1 1 100%; }
  .tc-gap { padding-left: 8px; margin-left: 4px; }
}

/* print: only the timesheet */
.tc-print { display: none; }
@media print {
  body { background: #fff !important; color: #000; padding: 0; }
  body > *:not(.tc-print) { display: none !important; }
  .tc-print { display: block; font: 10.5px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #000; }
  .tc-print .ph { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #000; padding-bottom: 4px; margin-bottom: 8px; }
  .tc-print .ph b { font-size: 20px; }
  .tc-print .ph span { font-size: 13px; font-weight: 700; }
  .tc-print .kv { display: grid; grid-template-columns: max-content 1fr; gap: 1px 14px; margin: 0 0 10px; }
  .tc-print .kv dt { color: #444; }
  .tc-print .kv dd { margin: 0; }
  .tc-print table { width: 100%; border-collapse: collapse; }
  .tc-print th { text-align: left; background: #eee; font-size: 9.5px; padding: 3px 5px; }
  .tc-print td { padding: 3px 5px; border-bottom: 1px solid #ddd; vertical-align: top; }
  .tc-print .n { text-align: right; white-space: nowrap; }
  .tc-print tr.lead td { color: #666; }
  .tc-print tr.sub td { color: #555; font-size: 9px; border-bottom: 1px solid #ddd; padding-top: 0; }
  .tc-print tr.wk td { font-weight: 700; border-top: 1px solid #888; }
  .tc-print tr { break-inside: avoid; }
  .tc-print .pblocks { display: flex; flex-wrap: wrap; gap: 12px 48px; margin-top: 12px; break-inside: avoid; }
  .tc-print .gp { font-weight: 700; color: #000; }
  .tc-print h3 { font-size: 12px; margin: 0 0 4px; }
  .tc-print .sig { display: flex; gap: 40px; margin-top: 40px; break-inside: avoid; }
  .tc-print .sig div { flex: 1; display: flex; gap: 16px; }
  .tc-print .sig span { border-top: 1px solid #000; padding-top: 3px; font-size: 9px; color: #444; flex: 3; }
  .tc-print .sig span + span { flex: 1; }
  .tc-print .fine { font-size: 8.5px; color: #555; margin: 6px 0 0; }
  @page { margin: 12mm; }
}
