/* Travel Claims page (travel-ui.js). Uses only theme variables, so every colour palette and dark mode work. Loaded after lead-engine.css. */
.ap-pill.bad { background: var(--red-bg); color: var(--red); }
.tc-page { padding-bottom: 12px; }
.tc-tiles { margin-bottom: 16px; }
.tc-tile .tc-num { font-size: 34px; }
.tc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.tc-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tc-chip { appearance: none; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--field-line, var(--line)); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; gap: 7px; min-height: 40px; }
.tc-chip:hover { background: var(--surface-2); }
.tc-chip.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.tc-chip-n { font-size: 12px; font-weight: 800; opacity: .85; }
.tc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tc-actions .btn { min-height: 40px; }
.tc-waiting { border-color: var(--amber); }
.tc-wlist { display: flex; flex-direction: column; gap: 10px; }
.tc-w { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.tc-w-main { flex: 1 1 260px; min-width: 0; }
.tc-w-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.tc-w-top b { color: var(--ink); }
.tc-w-amt { font-weight: 800; color: var(--ink); }
.tc-w-trip { font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; margin-top: 2px; }
.tc-w-act { display: flex; gap: 8px; margin-left: auto; }
.tc-thumb-btn { appearance: none; border: 0; background: transparent; padding: 0; cursor: zoom-in; border-radius: 8px; line-height: 0; }
.tc-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-3); }
.tc-thumb-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tc-empty { padding: 26px 8px; text-align: center; color: var(--ink); }
.tc-empty b { display: block; font-size: 15px; }
.tc-bill-view { text-align: center; }
.tc-bill-view img { max-width: 100%; max-height: 70vh; border-radius: 12px; border: 1px solid var(--line); }
.tc-form .field { margin-top: 12px; }
.tc-form input[type="text"], .tc-form input[type="number"], .tc-form input[type="date"], .tc-form select, .tc-form textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--field-line, var(--line)); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.tc-form textarea { resize: vertical; min-height: 56px; }
.tc-form label { color: var(--ink); font-size: 13px; font-weight: 700; }
.tc-photo-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.tc-pick { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; flex: 1 1 140px; font-size: 14px; font-weight: 700; text-align: center; }
.tc-hidden-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.tc-photo-prev { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.tc-photo-prev img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.tc-prev-side { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; color: var(--ink); }
.tc-pointer .dc-sub { max-width: 640px; }
@media (max-width: 560px) {
  .tc-toolbar { align-items: stretch; }
  .tc-actions { width: 100%; }
  .tc-actions .btn { flex: 1 1 100%; }
  .tc-chip { padding: 8px 12px; }
  .tc-w-act { width: 100%; }
  .tc-w-act .btn { flex: 1 1 0; min-height: 40px; }
}
@media (max-width: 440px) { .le-box:has(.tc-form) { width: 100vw; max-height: 100vh; border-radius: 0; } .le-row2 { grid-template-columns: minmax(0, 1fr); } }

/* the bottom bar of the people who are not the owner now has seven buttons: let the longer names wrap on a phone */
.bottom-nav button { min-width: 0; }
.bottom-nav button span { text-align: center; line-height: 1.15; overflow-wrap: anywhere; }
@media (max-width: 480px) { [data-mode="employee"] .bottom-nav button { font-size: .6rem; padding-left: 1px; padding-right: 1px; } }

/* ---- the claim form: estimated fare, the cap message, the distance from maps, and "Edited" on a claim ---- */
.tc-est { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; overflow-wrap: anywhere; }
.tc-cap { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--red); overflow-wrap: anywhere; }
.tc-form input.tc-over { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.tc-form input.tc-ro { background: var(--surface-2); color: var(--ink); cursor: default; }
.tc-kmnote { margin-top: 6px; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.tc-link { appearance: none; border: 0; background: transparent; padding: 0 0 0 2px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--accent, var(--ink)); text-decoration: underline; cursor: pointer; min-height: 24px; }
.tc-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.tc-wait { opacity: .6; cursor: not-allowed; }
.tc-edited { margin-top: 4px; }
.tc-edited-tag { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--amber-bg); color: var(--amber); }
.tc-w .tc-edited { margin-top: 6px; }
.ap-act .btn + .btn { margin-left: 6px; }

/* ---- the admin's Travel rules card ---- */
.tc-rules { margin-top: 18px; }
.tr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; align-items: start; }
.tr-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tr-block { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.tr-title { display: block; font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.tr-inline { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.tr-inline input[type="number"], .tr-rates input[type="number"] { width: 110px; box-sizing: border-box; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--field-line, var(--line)); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; min-height: 40px; }
.tr-unit { font-size: 13px; color: var(--muted); }
.tr-rates { width: 100%; border-collapse: collapse; }
.tr-rates th { text-align: left; font-weight: 600; font-size: 14px; color: var(--ink); padding: 4px 8px 4px 0; }
.tr-rates td { padding: 4px 0; }
.tr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--field-line, var(--line)); background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 700; cursor: pointer; min-height: 40px; box-sizing: border-box; }
.tr-chip:has(input:checked) { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.tr-chip input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary, var(--ink)); }
.tr-chip:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.tr-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tr-badge { display: inline-block; font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.tr-badge.on { background: var(--green-bg); color: var(--green); }
.tr-badge.off { background: var(--amber-bg); color: var(--amber); }
.tr-result { margin-top: 10px; font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; }
.tr-result.good { color: var(--green); font-weight: 700; }
.tr-result.bad { color: var(--red); font-weight: 700; }
.tr-foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .tr-grid { grid-template-columns: minmax(0, 1fr); } .tr-foot .btn { flex: 1 1 100%; min-height: 44px; } }
