/* The time slip claim page (tb2/dsp_timeslip_claim.php), in the live time slips page's theme: racetimes.css
   (hero, cards, buttons, the track) under .rt-page, plus these .rt-cl pieces. */

.rt-cl .rt-kicker a { color: inherit; }
.rt-cl .rt-kicker a:hover { color: var(--white); }
.rt-cl .rt-btn-dark { background: var(--black); color: var(--white); }
.rt-cl .rt-btn-dark:hover { background: var(--orange); color: var(--white); }
.rt-cl .rt-btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--gray-border); }
.rt-cl .rt-btn-ghost:hover { border-color: var(--black); color: var(--ink); }
.rt-cl .rt-btns, .rt-cl .rt-cl-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rt-cl .rt-cl-carform { display: flex; gap: 8px; }
.rt-cl .rt-cl-carform input { text-transform: uppercase; }
.rt-cl .rt-cl-carform input::placeholder { text-transform: none; }
.rt-cl .rt-cl-dark .rt-btn-dark { background: var(--orange); }
.rt-cl .rt-cl-dark .rt-btn-dark:hover { background: var(--orange-dark); }

.rt-cl .rt-cl-found { margin: 14px 0 6px; font-size: 15px; }
.rt-cl .rt-cl-found b { font-family: var(--font-mono); }
.rt-cl .rt-cl-note, .rt-cl .rt-cl-hint, .rt-cl .rt-cl-fine { font-size: 13px; color: var(--muted); margin-top: 8px; }
.rt-cl .rt-cl-hint a, .rt-cl .rt-cl-warn a, .rt-cl .rt-cl-ok a { color: var(--orange-dark); font-weight: 700; }
.rt-cl .rt-cl-ok { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #EAF7EE; color: #1E6B36; font-size: 14px; font-weight: 600; }
.rt-cl .rt-cl-warn { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #FDECEC; color: #9B1C1C; font-size: 14px; font-weight: 600; }
.rt-cl .rt-c-claim .rt-cl-fine, .rt-cl .rt-c-claim .rt-cl-hint { color: var(--g3); }

/* the car's runs: one line each, with a small race under it */
.rt-cl .rt-cl-runs { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.rt-cl .rt-cl-run { background: var(--g1); border-radius: 12px; padding: 8px 10px 10px; cursor: pointer; }
.rt-cl .rt-cl-run-top { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.rt-cl .rt-cl-time { font-weight: 800; }
.rt-cl .rt-cl-vs { color: var(--muted); min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-cl .rt-cl-et { font-family: var(--font-mono); font-size: 17px; }
.rt-cl .rt-cl-loss { background: var(--g2); color: var(--g4); }
.rt-cl .rt-cl-more { font-size: 13px; color: var(--muted); margin-top: 6px; text-align: center; }
.rt-cl .rt-tk-mini { padding: 6px 8px; gap: 4px; border-radius: 9px; }
.rt-cl .rt-tk-mini .rt-tk-top { margin: 0; }
.rt-cl .rt-tk-mini .rt-tree i { width: 7px; height: 7px; }
.rt-cl .rt-tk-mini .rt-clock { font-size: 12px; }
.rt-cl .rt-tk-mini .rt-tl { grid-template-columns: 64px minmax(0, 1fr) 58px; gap: 6px; }
.rt-cl .rt-tk-mini .rt-tl-track { height: 20px; }
.rt-cl .rt-tk-mini .rt-car { width: 44px; height: 14px; }
.rt-cl .rt-tk-mini .rt-tl-who b { font-size: 13px; }
.rt-cl .rt-tk-mini .rt-tl-et b { font-size: 13px; }

/* sign in, rides */
.rt-cl .rt-cl-signin { margin-top: 12px; }
.rt-cl .rt-cl-signin p { font-size: 14px; }
.rt-cl .rt-c-claim .rt-cl-signin p { color: var(--g3); }
.rt-cl .rt-cl-label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--g3); margin: 16px 0 8px; }
.rt-cl .rt-cl-rides { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 4px; }
/* each ride is a button that opens the confirm dialog */
.rt-cl .rt-cl-ride { position: relative; display: flex; flex-direction: column; border: 2px solid var(--gray-border); border-radius: 12px; overflow: hidden; background: var(--white); color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s; padding: 0; font: inherit; text-align: left; }
.rt-cl .rt-cl-ride:not(:disabled):hover { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.rt-cl .rt-cl-ride:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.rt-cl .rt-cl-ride-ph { aspect-ratio: 4 / 3; background: var(--g6); display: grid; place-items: center; color: var(--g3); }
.rt-cl .rt-cl-ride-ph img { width: 100%; height: 100%; object-fit: cover; }
.rt-cl .rt-cl-ride-nm { padding: 8px 10px 10px; display: flex; flex-direction: column; line-height: 1.25; }
.rt-cl .rt-cl-ride-nm b { font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: .02em; }
.rt-cl .rt-cl-ride-nm small { font-size: 12px; color: var(--soft); min-height: 15px; }
.rt-cl .rt-cl-ride-slips { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--g3); }
.rt-cl .rt-cl-ride-slips.rt-cl-has { color: var(--orange); }
.rt-cl .rt-cl-ride-off { opacity: .5; cursor: not-allowed; }
.rt-cl .rt-cl-noride p { font-size: 14px; margin-bottom: 10px; }

/* the claim button (in the dialog) and its answer */
.rt-cl .rt-cl-go { width: 100%; height: 52px; font-size: 16px; }
.rt-cl .rt-cl-go:disabled { opacity: .7; }
.rt-cl .rt-cl-msg { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #FDECEC; color: #9B1C1C; font-size: 14px; }
.rt-cl .rt-cl-msg a { color: inherit; font-weight: 700; text-decoration: underline; }

/* the two steps: (1) the car number, (2) the ride; step 2 waits, dimmed, until there is a car to claim */
.rt-cl .rt-cl-one h2 { margin-bottom: 4px; }
.rt-cl .rt-cl-step h2 { gap: 10px; }
.rt-cl .rt-cl-step > p { color: var(--g3); font-size: 14px; margin-bottom: 12px; }
.rt-cl .rt-cl-step-wait { opacity: .55; }
.rt-cl .rt-cl-step-wait > p { margin-bottom: 0; }
.rt-cl .rt-cl-step-found .rt-cl-found { color: var(--white); margin-bottom: 0; }
.rt-cl .rt-cl-step-found .rt-cl-note { color: var(--g3); }
.rt-cl .rt-cl-one .rt-cl-ride { background: var(--g5); color: var(--white); border-color: var(--g6); }
.rt-cl .rt-cl-one .rt-cl-ride-nm small { color: var(--g3); }
.rt-cl .rt-cl-one .rt-cl-noride p { color: var(--g3); }

/* done */
.rt-cl .rt-cl-num { width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--white); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.rt-cl .rt-cl-done { border-color: var(--orange); }
.rt-cl .rt-cl-done-h { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.rt-cl .rt-cl-done-h h2 { margin: 0; }
@media (max-width: 420px) { .rt-cl .rt-cl-rides { grid-template-columns: 1fr 1fr; } }

/* THE CONFIRM DIALOG: the car number and the ride side by side, then Claim */
/* margin: auto centres it; timeslip.css's .ts-page * reset would pin it to the top left */
.rt-cl .rt-cl-dlg { margin: auto; max-height: calc(100vh - 32px); overflow: auto; border: 0; border-radius: 16px; padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--white); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.rt-cl .rt-cl-dlg::backdrop { background: rgba(13,13,13,.6); }
.rt-cl .rt-cl-dlg-in { padding: 20px; }
.rt-cl .rt-cl-dlg h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; letter-spacing: .02em; line-height: 1.1; margin-bottom: 14px; }
.rt-cl .rt-cl-pair { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 12px; background: var(--g1); border-radius: 12px; padding: 12px; }
.rt-cl .rt-cl-pair small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rt-cl .rt-cl-pair b { font-family: var(--font-display); font-weight: 400; font-size: 22px; letter-spacing: .02em; line-height: 1.1; }
.rt-cl .rt-cl-pair-car b { font-size: 30px; color: var(--orange-dark); }
.rt-cl .rt-cl-pair-arrow { font-size: 22px; color: var(--muted); }
.rt-cl .rt-cl-pair-ride { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rt-cl .rt-cl-pair-ride b { display: block; overflow-wrap: anywhere; }
.rt-cl .rt-cl-pair-ride .rt-cl-ride-ph { width: 64px; flex: none; border-radius: 8px; overflow: hidden; }
.rt-cl .rt-cl-dlg .rt-cl-fine { color: var(--muted); margin: 12px 0 0; }
.rt-cl .rt-cl-dlg-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.rt-cl .rt-cl-dlg-btns .rt-btn { width: 100%; font-family: inherit; cursor: pointer; }
@media (max-width: 380px) {
  .rt-cl .rt-cl-pair { grid-template-columns: 1fr; text-align: center; }
  .rt-cl .rt-cl-pair-arrow { transform: rotate(90deg); justify-self: center; }
  .rt-cl .rt-cl-pair-ride { justify-content: center; text-align: left; }
}
