/* Harpoon free tools: time calculator. Scoped to .hp-tool so custom.css
   global input/table rules do not fight it. Brand colours from custom.css. */
.hp-tool { max-width: 960px; margin: 0 auto; padding: 0 0 8px; font-size: 1.7rem; color: #222; }
.hp-tool * { box-sizing: border-box; }
.hp-tool__options { margin-bottom: 16px; font-size: 1.5rem; color: #555; }
.hp-tool__select { font: inherit; padding: 6px 8px; border: 1px solid #d5d5d5; border-radius: 4px; background: #fff; margin-left: 4px; }
.hp-tool__block { margin-bottom: 20px; }
.hp-tool__block-title { font-size: 1.8rem; margin: 0 0 8px; color: #222; }
.hp-tool__table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e4e4e4; border-radius: 6px; overflow: hidden; }
.hp-tool__table th { text-align: left; font-size: 1.3rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #8e8e8e; background: #f7f9fb; padding: 10px 12px; border-bottom: 1px solid #e4e4e4; }
.hp-tool__cell { padding: 8px 12px; border-bottom: 1px solid #eef0f2; vertical-align: middle; }
.hp-tool__cell--hours { font-weight: 700; white-space: nowrap; color: #222; }
.hp-tool__cell--foot { font-weight: 700; background: #f7f9fb; border-bottom: 0; }
.hp-tool__cell--remove { width: 44px; text-align: center; }
.hp-tool__input { width: 100%; font: inherit; font-size: 1.6rem; padding: 8px 10px; border: 1px solid #d5d5d5; border-radius: 4px; background: #fff; color: #222; margin: 0; }
.hp-tool__input:focus { outline: none; border-color: #1bbdf6; box-shadow: 0 0 0 3px rgba(27,189,246,.2); }
.hp-tool__input--label { max-width: 110px; }
.hp-tool__input--time { max-width: 130px; }
.hp-tool__input--break { max-width: 90px; }
.hp-tool__hours { display: block; }
.hp-tool__warning { display: block; font-size: 1.3rem; font-weight: 400; color: #ff5722; white-space: normal; }
.hp-tool__remove { border: 0; background: transparent; color: #8e8e8e; font-size: 2rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
.hp-tool__remove:hover { color: #ff5722; }
.hp-tool__link { border: 0; background: transparent; color: #8e8e8e; font: inherit; font-size: 1.4rem; cursor: pointer; padding: 6px 0; text-decoration: underline; }
.hp-tool__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 20px; }
.hp-tool__btn { font: inherit; font-size: 1.5rem; font-weight: 700; padding: 10px 18px; border-radius: 4px; border: 1px solid #1bbdf6; background: #1bbdf6; color: #fff; cursor: pointer; }
.hp-tool__btn:hover { background: #1ab6ed; }
.hp-tool__btn--secondary { background: #fff; color: #1bbdf6; }
.hp-tool__btn--secondary:hover { background: #f0fbff; }
.hp-tool__totals { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; padding: 16px 20px; background: #34d789; color: #fff; border-radius: 6px; margin-bottom: 20px; }
.hp-tool__totals-label { font-size: 1.5rem; text-transform: uppercase; letter-spacing: .05em; }
.hp-tool__totals-value { font-size: 2.6rem; font-weight: 700; }
.hp-tool__pay { border: 1px solid #e4e4e4; border-radius: 6px; padding: 0 16px 8px; margin-bottom: 12px; background: #fff; }
.hp-tool__pay-summary { cursor: pointer; font-weight: 700; padding: 12px 0; font-size: 1.7rem; color: #222; }
.hp-tool__pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 4px 0 16px; }
.hp-tool__pay-field { display: block; margin: 0; font-weight: 400; }
.hp-tool__pay-label { display: block; font-size: 1.3rem; color: #555; margin-bottom: 4px; }
.hp-tool__pay-results { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 1.6rem; }
.hp-tool__pay-results dt { color: #555; margin: 0; }
.hp-tool__pay-results dd { margin: 0; font-weight: 700; text-align: right; }
.hp-tool__pay-total { color: #34d789; font-size: 2rem; }
.hp-tool__note { font-size: 1.3rem; color: #8e8e8e; margin: 0; }

/* Phone: each row becomes a labelled card */
@media (max-width: 640px) {
  .hp-tool__table thead { display: none; }
  .hp-tool__table, .hp-tool__table tbody, .hp-tool__table tfoot, .hp-tool__table tr, .hp-tool__table td { display: block; width: 100%; }
  .hp-tool__row { padding: 8px 0 4px; border-bottom: 1px solid #e4e4e4; display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
  .hp-tool__cell { border: 0; padding: 4px 10px; }
  .hp-tool__cell::before { content: attr(data-title); display: block; font-size: 1.2rem; color: #8e8e8e; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
  .hp-tool__cell--remove::before { content: none; }
  .hp-tool__cell--hours { grid-column: 1 / 2; }
  .hp-tool__cell--remove { grid-column: 2 / 3; text-align: right; }
  .hp-tool__cell--foot::before { content: none; }
  .hp-tool__table tfoot tr { display: flex !important; justify-content: space-between; padding: 8px 10px; }
  .hp-tool__input--label, .hp-tool__input--time, .hp-tool__input--break { max-width: none; }
}

/* Print: only the tool, black on white */
@media print {
  body * { visibility: hidden; }
  .hp-tool, .hp-tool * { visibility: visible; }
  .hp-tool { position: absolute; left: 0; top: 0; width: 100%; padding: 0; }
  .hp-tool__actions, .hp-tool__remove, .hp-tool__link, .hp-tool__note, .hp-tool__options { display: none !important; }
  .hp-tool__totals { background: none; color: #000; border: 2px solid #000; }
  .hp-tool__input { border: 0; padding: 2px 0; }
  .hp-tool__pay { border: 1px solid #000; }
  .hp-tool__pay-total { color: #000; }
}
