/* Repair tickets: lists, the ticket page, the customer's status page. Mobile first. Stands on kit.css alone. */

/* list of tickets: the name on top, the status and the one-click button under it on a phone */
.trow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem .75rem; align-items: center; }
.trow .row-main { grid-column: 1 / -1; } .trow .pill { justify-self: start; } .trow form { justify-self: end; }
.trow .row-main > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow.flash { animation: rowflash 1.1s ease-out; }
@keyframes rowflash { from { background: var(--accent-soft); } to { background: transparent; } }

/* ticket form */
.picks { display: flex; flex-wrap: wrap; gap: .45rem; }
.picks label { position: relative; margin: 0; }
.picks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.picks span { display: inline-flex; align-items: center; min-height: 44px; padding: .25rem .9rem; margin: 0; border: 1px solid var(--field-line); border-radius: 99px; background: #fff;
  font-size: .9rem; font-weight: 600; color: var(--text); cursor: pointer; }
.picks input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.picks input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.extras { margin-top: .5rem; } .extras .chip { min-height: 32px; font-size: .8125rem; font-weight: 500; }
.costf input { max-width: 180px; }

/* ticket page */
.lockednote { margin-bottom: 1rem; }
.statusbar .card-h { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.statusbar .chips { margin-bottom: .7rem; } .statusbar > p { margin: 0; }
.statusbar .chip { min-height: 42px; }
.editor { display: grid; gap: 1.1rem; align-items: start; }
.tcode { margin: 0 0 .7rem; } .tcode code { font-size: 1.05rem; letter-spacing: .08em; }
.statusbar .card-h .muted { font-weight: 400; }

/* public pages: the customer's status page (the frame is kit.css) */
.track h1 { font-size: 1.5rem; margin-bottom: .9rem; overflow-wrap: anywhere; }
.now .now-when { font-size: .8125rem; opacity: .8; }
.now-parts { border-color: var(--amber-line); background: var(--amber-soft); color: var(--amber-ink); }
.now-collected, .now-received { border-color: var(--line); background: var(--panel); color: var(--text); }
.now-cancelled { border-color: var(--red-line); background: var(--red-soft); color: var(--red-ink); }
.tsteps { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.tsteps li { position: relative; display: grid; gap: .05rem; padding: 0 0 1rem 2.3rem; min-height: 2.4rem; }
.tsteps li:last-child { padding-bottom: 0; }
.tsteps li::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: -2px; width: 2px; background: var(--line); }
.tsteps li:last-child::before { display: none; }
.tsteps li.s-done::before { background: var(--green); }
.tsteps .dot { position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; color: #fff; }
.tsteps .s-done .dot { border-color: var(--green); background: var(--green); }
.tsteps .s-now .dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); } .tsteps .s-now .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tsteps strong { color: var(--ink); font-size: .95rem; } .tsteps .s-todo strong { color: var(--muted); font-weight: 500; }
.vform { display: flex; gap: .6rem; align-items: flex-end; } .vform label { flex: 1; } .vform input { text-transform: uppercase; letter-spacing: .08em; }

@media (min-width: 620px) {
  .trow { grid-template-columns: minmax(0, 1fr) auto 156px; } .trow .row-main { grid-column: auto; } .trow .pill { justify-self: end; }
}
@media (min-width: 1000px) { .editor { grid-template-columns: minmax(0, 1fr) 280px; } .sharebox { position: sticky; top: calc(var(--top) + 1rem); } }

/* 2026-11-19 round 4: «see a sample» under the code field of a demo */
.sample { margin: 1rem 0 0; } .sample a { display: inline-flex; align-items: center; gap: .3rem; min-height: 40px; font-weight: 600; }
/* One step back after a status change made on the ticket page. */
.undo-line { margin: -.3rem 0 1rem; }

/* 2026-11-19 judges round 4: the current step takes the colour of the status card above it; the expected day; a link that is gone */
.tsteps.st-ready .s-now .dot { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); } .tsteps.st-ready .s-now .dot::after { background: var(--green); }
.tsteps.st-parts .s-now .dot { border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); } .tsteps.st-parts .s-now .dot::after { background: var(--amber); }
.tsteps.st-received .s-now .dot { border-color: var(--ink-2); box-shadow: 0 0 0 4px var(--panel); } .tsteps.st-received .s-now .dot::after { background: var(--ink-2); }
.now .now-due { margin-top: .45rem; } .now .now-due strong { display: inline; font-size: inherit; }
