.time-cost-page .tool-intro { max-width: 860px; }
.time-cost-page .time-cost-toolbar,
.time-cost-page .time-cost-add-row,
.time-cost-page .time-cost-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.time-cost-page .time-cost-toolbar { align-items: end; }
.time-cost-page .time-cost-toolbar .field { min-width: 150px; flex: 1 1 150px; }
.time-cost-page .time-cost-add-row .field:first-child { flex: 2 1 220px; }
.time-cost-page .time-cost-add-row .field { flex: 1 1 150px; }
.time-cost-page .time-cost-card { margin-block: 18px; }
.time-cost-page .time-cost-table { width: 100%; min-width: 680px; }
.time-cost-page .time-cost-table th,
.time-cost-page .time-cost-table td { vertical-align: middle; }
.time-cost-page .time-cost-table .amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.time-cost-page .time-cost-table .source { color: var(--muted, #5c6b82); font-size: .9rem; white-space: nowrap; }
.time-cost-page .time-cost-table .exclude-row { opacity: .56; }
.time-cost-page .time-cost-table .row-check { width: 44px; text-align: center; }
.time-cost-page .time-cost-table .row-check input { width: 20px; height: 20px; }
.time-cost-page .time-cost-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.time-cost-page .time-cost-summary .metric-card { min-height: 0; }
.time-cost-page .time-cost-summary strong { display: block; margin-top: 4px; font-size: 1.35rem; }
.time-cost-page .time-cost-condition { margin: 14px 0; padding: 12px 14px; border-left: 4px solid #2d6cdf; background: #f2f6ff; }
.time-cost-page .time-cost-statement-table { width: 100%; min-width: 680px; }
.time-cost-page .time-cost-statement-table td:last-child,
.time-cost-page .time-cost-statement-table th:last-child { text-align: right; white-space: nowrap; }
.time-cost-page .time-cost-empty { padding: 18px 0; color: var(--muted, #5c6b82); }
.time-cost-page .time-cost-file { max-width: 100%; }
.time-cost-page .time-cost-status { min-height: 1.5em; }
@media (max-width: 640px) {
  .time-cost-page .time-cost-summary { grid-template-columns: 1fr; }
  .time-cost-page .time-cost-toolbar,
  .time-cost-page .time-cost-add-row,
  .time-cost-page .time-cost-actions { align-items: stretch; }
  .time-cost-page .time-cost-toolbar .field,
  .time-cost-page .time-cost-add-row .field { min-width: 0; width: 100%; }
  .time-cost-page .time-cost-actions .button { flex: 1 1 auto; }
}
@media print {
  .site-header, .site-footer, .tool-intro, .time-cost-controls,
  .time-cost-source, .time-cost-status, .time-cost-actions,
  .time-cost-page > .explanation { display: none !important; }
  .time-cost-page, .time-cost-page .tool-card-wide { max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; }
  .time-cost-page .time-cost-statement { display: block !important; }
  .time-cost-page .time-cost-statement-table { min-width: 0; }
}
