/* Vehicle history report: the "From Trackara" offer on the customer's quote /
   work order / invoice, the purchase sheet, and the /r/{order} report page.
   Spec: Trackara Pro/spec files/VEHICLE_HISTORY_REPORTS_SPEC.md.
   Flat fills only. Dark variant for the success / already-signed screens. */

.tk-offers { width: 100%; max-width: 420px; margin: 28px auto 0; display: grid; gap: 12px; text-align: left; }
.tk-offers[hidden] { display: none !important; }
.tk-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8a8a8a; }
.tk-eyebrow::after { content: ""; flex: 1; height: 1px; background: #e5e7eb; }
.tk-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 18px; display: grid; gap: 10px; color: #111827; }
.tk-card.tk-feature { border-color: #17afa5; }
.tk-card h3 { margin: 0; font-size: 16px; font-weight: 700; }
.tk-card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #4b5563; }
.tk-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tk-ticks li { position: relative; padding-left: 20px; font-size: 13px; color: #4b5563; }
.tk-ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 8px; height: 4px; border-left: 2px solid #17afa5; border-bottom: 2px solid #17afa5; transform: rotate(-45deg); }
.tk-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tk-price b { font-size: 21px; letter-spacing: -0.02em; }
.tk-price span, .tk-fine { font-size: 12px; color: #6b7280; }
.tk-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; border: 1px solid transparent; }
.tk-btn-primary { background: #17afa5; color: #fff; }
.tk-btn-primary:hover { background: #0d8b82; }
.tk-btn-primary:disabled { opacity: 0.55; cursor: progress; }
.tk-btn-ghost { background: #fff; color: #111827; border-color: #d1d5db; }
.tk-btn:focus-visible { outline: 3px solid rgba(23, 175, 165, 0.35); outline-offset: 2px; }
.tk-included { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #4b5563; }
.tk-included b { color: #111827; }
.tk-check { width: 18px; height: 18px; border-radius: 50%; background: #10b981; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; margin-top: 1px; }
.tk-note { font-size: 13px; padding: 10px 12px; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }

/* Purchase sheet */
.tk-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
.tk-sheet { width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; background: #fff; color: #111827; border-radius: 18px 18px 0 0; padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; text-align: left; }
@media (min-width: 720px) { .tk-backdrop { align-items: center; } .tk-sheet { border-radius: 18px; } }
.tk-grip { width: 40px; height: 5px; border-radius: 3px; background: #d1d5db; justify-self: center; }
.tk-sheet h2 { margin: 0; font-size: 19px; }
.tk-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.tk-row span { color: #6b7280; }
.tk-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #374151; }
.tk-field input { font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #d1d5db; border-radius: 10px; color: #111827; background: #fff; }
.tk-field input.bad { border-color: #ef4444; }
.tk-err { font-size: 12.5px; color: #b91c1c; }
.tk-share { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #374151; }
.tk-share input { width: 18px; height: 18px; accent-color: #17afa5; }
.tk-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #e5e7eb; padding-top: 12px; font-size: 15px; }
.tk-total b { font-size: 20px; }

/* Report page (/r/{order}) */
.tk-report { min-height: 100vh; background: #fafafa; color: #0a0a0a; padding: 0 0 48px; }
.tk-report-top { position: sticky; top: 0; z-index: 5; background: #fafafa; border-bottom: 1px solid #e7e5e4; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tk-report-brand { display: flex; gap: 10px; align-items: center; min-width: 0; }
.tk-report-brand img { width: 32px; height: 32px; border-radius: 9px; }
.tk-report-brand b { display: block; font-size: 15px; }
.tk-report-brand span { display: block; font-size: 12px; color: #8a8a8a; }
.tk-report-body { max-width: 760px; margin: 0 auto; padding: 18px 16px; display: grid; gap: 14px; }
.tk-sample { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-weight: 600; font-size: 13px; padding: 10px 12px; border-radius: 10px; text-align: center; }
.tk-panel { background: #fff; border: 1px solid #e7e5e4; border-radius: 14px; overflow: hidden; }
.tk-panel-head { padding: 12px 16px; border-bottom: 1px solid #e7e5e4; background: #f4f4f5; font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #525252; }
.tk-panel-body { padding: 14px 16px; display: grid; gap: 8px; }
.tk-vehicle h1 { margin: 0; font-size: 21px; letter-spacing: -0.02em; }
.tk-vehicle p { margin: 4px 0 0; font-size: 13px; color: #6b7280; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.tk-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .tk-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tk-tile { background: #fff; border: 1px solid #e7e5e4; border-radius: 12px; padding: 12px 14px; }
.tk-tile span { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #8a8a8a; }
.tk-tile b { display: block; font-size: 17px; margin-top: 4px; }
.tk-ok { color: #047857; } .tk-warn { color: #b45309; } .tk-bad { color: #b91c1c; }
.tk-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; border-bottom: 1px solid #f0efed; }
.tk-line:last-child { border-bottom: 0; }
.tk-line span { color: #525252; }
.tk-processing { display: grid; justify-items: center; gap: 12px; padding: 48px 16px; text-align: center; color: #525252; }
.tk-spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #e7e5e4; border-top-color: #17afa5; animation: tk-spin 0.8s linear infinite; }
@keyframes tk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tk-spinner { animation-duration: 3s; } }

/* Add-ons bought at approval: the customer's Trackara code. */
.tk-code { font: 700 24px 'IBM Plex Mono', Menlo, Consolas, monospace; letter-spacing: 3px; text-align: center; border: 1px dashed #9ca3af; border-radius: 10px; padding: 10px; }
.tk-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.tk-btns .tk-btn { flex: 1 1 auto; text-align: center; text-decoration: none; }
.tk-disclaimer { margin: 10px 0 4px; font-size: 12.5px; line-height: 1.55; color: #374151; }
.tk-disclaimer summary { cursor: pointer; font-weight: 600; color: #111827; padding: 6px 0; }
.tk-disclaimer p, .tk-disclaimer ul { margin: 8px 0; }
.tk-disclaimer ul { padding-left: 18px; }
.tk-disclaimer a { color: inherit; text-decoration: underline; }

/* the app, on signed / paid documents */
.tk-app { display: flex; gap: 10px; align-items: center; }
.tk-app img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.tk-app b { display: block; font-size: 13.5px; }
.tk-app span { display: block; font-size: 12px; color: #8f8f8f; line-height: 1.45; }
