/* Boss HQ demo: Time & Miles screen styles. */
.tc-clock {
  display: block;
  margin-bottom: 18px;
}
/* The clock is a full-width dark band in both themes, as in the real app: timer, fields and the accent Clock in button in one row. */
.punch-card {
  background: #1f2a30;
  border-color: #1f2a30;
  color: #e6edf0;
}
.tc .punch-card .punch-top {
  border-bottom: 0;
}
.punch-card .tiny.muted,
.punch-card .field label {
  color: #9fb2bb;
}
.punch-card .tc-static {
  color: #e6edf0;
}
.punch-card .sel,
.punch-card .mini,
.punch-card textarea {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  color: #e6edf0;
}
.punch-card .punch-btn:not(.out) {
  background: var(--accent);
  color: var(--on-accent);
}
@media (min-width: 901px) {
  .punch-card {
    display: flex;
    align-items: stretch;
  }
  .tc .punch-card .punch-top {
    flex: 0 0 200px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .punch-card .punch-timer {
    font-size: 30px;
  }
  .punch-card .card-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    padding: 18px 18px 18px 0;
  }
  .punch-card .card-body .field {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
  }
  .punch-card .card-body .field:last-of-type {
    flex: 2 1 0;
  }
  .punch-card .punch-btn {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    padding: 9px 22px;
    font-size: 14px;
  }
  .punch-card textarea {
    min-height: 36px;
    height: 36px;
    resize: none;
  }
  .punch-card .tc-hint {
    display: none;
  }
}
.tc-fold {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.tc-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.tc-side .card,
.tc > .card {
  margin-bottom: 0;
}
.tc > .card {
  margin-bottom: 18px;
}
.punch-card .punch-top {
  padding: 22px 20px 14px;
  border-bottom: 1px solid var(--hair);
  text-align: center;
}
.punch-timer {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
/* The clock band is dark in both themes, so the digits are near-white and bold, stopped or running, as in the real app (app.css:558 sets the running ground only). */
.punch-card .punch-timer {
  color: #f5f5f5;
  font-weight: 700;
}
.punch-card.on {
  border-color: var(--ok);
}
.punch-btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  margin-top: 4px;
}
.punch-btn.out {
  background: var(--risk);
  color: var(--on-tone);
}
.punch-btn.out:hover {
  background: var(--risk);
  filter: brightness(0.92);
}
.tc-static {
  padding: 8px 0;
  font-size: 13.5px;
  font-weight: 500;
}
.tc-hint {
  margin-top: 6px;
  text-align: center;
}
.tc-why {
  margin: 6px 0 0;
  line-height: 1.4;
  text-align: left;
}
.tc-form .card-head {
  border-bottom: 1px solid var(--hair);
}
.tc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0 16px;
}
.tc-grid .field {
  min-width: 0;
}
.tc-grid .sel {
  width: 100%;
}
.tc-btns {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.tc-err {
  color: var(--risk);
  margin: 4px 0 8px;
}
.tc-sheet .card-head,
.tc-queue .card-head {
  flex-wrap: wrap;
  gap: 8px;
}
.tc-sheet .card-head .right {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}
.tc-tbl td.tc-note {
  min-width: 200px;
  white-space: normal;
}
.tc-tbl td.tc-act {
  white-space: nowrap;
  text-align: right;
}
.tc-tbl td.tc-act .btn {
  margin-left: 2px;
}
.tc-tbl .pill {
  margin: 1px 2px 1px 0;
}
.tc-tbl tr.tc-edit td {
  background: var(--sunk);
  padding: 14px 18px;
  white-space: normal;
}
.tc-tbl tr.tc-edit:hover td {
  background: var(--sunk);
}
.tc-log {
  margin-top: 10px;
}
.tc-pager {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--hair);
}
.tc-flag {
  color: var(--warn);
  font-weight: 600;
}
.tc-banner {
  padding: 10px 16px;
  background: var(--info-bg);
  color: var(--info-fg);
  font-size: 12.5px;
  border-bottom: 1px solid var(--hair);
}
.tc-photo.on {
  color: var(--ok);
  border-color: var(--ok);
}
.tc-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 4px;
  background: var(--sunk);
  border: 1px solid var(--hair);
  border-radius: 3px;
  color: var(--muted);
}
.tc .seg {
  display: flex;
  gap: 0;
}
.tc .seg .btn {
  border-radius: 0;
}
.tc .seg .btn:first-child {
  border-radius: 4px 0 0 4px;
}
.tc .seg .btn:last-child {
  border-radius: 0 4px 4px 0;
}
@media (max-width: 900px) {
  .tc-clock {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .tc-sheet .card-head .right {
    margin-left: 0;
    width: 100%;
  }
  .punch-timer {
    font-size: 34px;
  }
  .tc-tbl td.tc-note {
    min-width: 160px;
  }
  .tc-form .btn {
    min-height: 40px;
  }
}
/* 390 wide: table rows become stacked cards, as the real app's m-row cards do */
@media (max-width: 768px) {
  .tc-tbl,
  .tc-tbl tbody,
  .tc-tbl tr,
  .tc-tbl td {
    display: block;
    width: 100%;
  }
  .tc-tbl thead {
    display: none;
  }
  .tc-tbl tr {
    padding: 10px 14px;
    border-bottom: 1px solid var(--hair);
  }
  .tc-tbl tr:hover td {
    background: transparent;
  }
  .tc-tbl td {
    padding: 3px 0;
    border: 0;
    text-align: left !important;
    white-space: normal;
    min-width: 0 !important;
  }
  .tc-tbl td::before {
    content: attr(data-l);
    display: inline-block;
    min-width: 92px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
  }
  .tc-tbl td[colspan]::before {
    content: none;
  }
  .tc-tbl td.tc-act {
    padding-top: 8px;
  }
  .tc-tbl td.tc-act::before {
    content: none;
  }
  .tc-tbl tr.tc-edit {
    padding: 0;
  }
  .tc-tbl tr.tc-edit td {
    padding: 14px;
  }
  .tc-queue .btn-ok {
    width: 100%;
    min-height: 40px;
  }
}
/* Phone layout: one big clock button, 16px fields, 44px targets */
@media (max-width: 768px) {
  .punch-btn {
    min-height: 56px;
    font-size: 17px;
  }
  .tc input,
  .tc textarea,
  .modal input,
  .modal textarea {
    font-size: 16px;
    min-height: 44px;
  }
  .tc textarea {
    min-height: 88px;
  }
  .tc .btn,
  .tc-sheet .btn,
  .tc-queue .btn,
  .tc-pager .btn {
    min-height: 44px;
    min-width: 44px;
  }
  .tc .seg .btn {
    min-height: 44px;
  }
  .tc-tbl td.tc-act {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .tc-tbl td.tc-act .btn {
    margin-left: 0;
  }
  .tc-btns {
    flex-wrap: wrap;
  }
  .tc-btns .btn {
    flex: 1 1 140px;
  }
  .tc-thumb {
    width: 44px;
    height: 44px;
  }
  .tc-pager {
    flex-wrap: wrap;
  }
}
/* F14D2: times and job names keep one line on the wide table (inv/time.md: In and Out 96px mono); the phone cards stack them instead */
@media (min-width: 769px) {
  .tc-t-sheet td.mono,
  .tc-t-sheet td:nth-child(1),
  .tc-t-sheet td:nth-child(2) {
    white-space: nowrap;
  }
  .tc-t-sheet td.mono {
    min-width: 96px;
  }
}
/* F14D2: the Labor rates toggle is a full 44px target on touch widths */
@media (max-width: 768px) {
  .tc-fold {
    min-height: 44px;
    min-width: 44px;
  }
}
