/* The orders board and one order. Phones: one lane at a time behind three tabs; from 1024px: three lanes side by side. */
.board__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.board__titles { display: grid; gap: 2px; min-width: 0; }
.live { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.live__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.live--off { color: var(--hot-text); font-weight: 650; }
.sound { gap: 6px; font-size: 15px; }
.sound.is-on { border-color: var(--accent); color: var(--accent-text); }

.pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin: 0 0 2px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; min-height: var(--tap); padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.lanetabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 14px;
  background: var(--soft); border-radius: var(--r); }
.lanetab { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px; min-height: var(--tap); border: 0;
  line-height: 1.2; min-width: 0;
  border-radius: var(--r-sm); background: transparent; color: var(--muted); font-weight: 700; font-size: 15px; cursor: pointer;
  padding: 6px 4px; }
.lanetab[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 7px; border-radius: 99px;
  background: var(--card); color: var(--muted-text); font-size: 13px; font-weight: 750; }
.lanetab[aria-pressed="true"] .count { background: var(--soft); }
.count--hot, .lanetab[aria-pressed="true"] .count--hot { background: var(--hot); color: var(--hot-ink); }

.lanes { display: block; }
.lane { display: none; min-width: 0; }
.lane.is-active { display: block; }
.lane__title { display: none; }
.cards { list-style: none; display: grid; gap: 10px; }

@media (min-width: 1024px) {
  .lanetabs { display: none; }
  .lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .lane, .lane.is-active { display: block; background: var(--soft); border-radius: var(--r-lg); padding: 12px; min-height: 240px; }
  .lane__title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 750; margin: 2px 4px 12px; }
  .lane--new .lane__title .count { background: var(--hot); color: var(--hot-ink); }
}

/* ---------------------------------------------------------------- one card */
.ocard { position: relative; display: grid; gap: 10px; background: var(--card); border-radius: var(--r); padding: 12px;
  box-shadow: var(--shadow); border: 2px solid transparent; min-width: 0; }
.ocard.is-new { border-color: var(--hot); }
.ocard.is-late { border-color: var(--hot-soft); }
.ocard__open { display: grid; gap: 6px; color: var(--ink); text-decoration: none; min-height: var(--tap); border-radius: var(--r-sm); }
.ocard__top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.ocard__no { font-weight: 800; font-size: 17px; }
.ocard__mode { color: var(--muted); font-size: 14px; font-weight: 600; }
.age { margin-inline-start: auto; font-size: 13px; font-weight: 650; color: var(--muted); }
.age--late { color: var(--hot-text); }
.ocard__name { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.price { font-weight: 750; font-size: 17px; }
.price--ask { color: var(--accent-text); font-weight: 700; font-size: 16px; }
.price--big { font-size: 20px; }
.ocard__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ocard__go { width: 100%; }

/* ---------------------------------------------------------------- one order */
.order { display: grid; gap: 14px; max-width: 720px; }
.order__status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.block { background: var(--card); border-radius: var(--r); padding: 14px var(--pad); box-shadow: var(--shadow); display: grid; gap: 10px;
  min-width: 0; }
.block__title { font-size: 16px; font-weight: 750; }
.kvs { display: grid; gap: 8px; margin: 0; }
.kv { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr); gap: 4px 12px; align-items: baseline; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv--total { border-top: 1px dashed var(--line); padding-top: 8px; font-weight: 800; font-size: 18px; }
.kv--total dt { color: var(--ink); font-size: 16px; }
.tel { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 6px 14px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent-text); text-decoration: none; font-weight: 700; }
.tel .icon { width: 18px; height: 18px; }
.lines { list-style: none; display: grid; gap: 8px; }
.line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline;
  padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; padding-bottom: 0; }
.line__qty { font-weight: 800; color: var(--accent-text); }
.line__what { display: grid; gap: 2px; min-width: 0; }
.line__amount { font-weight: 650; white-space: nowrap; }
.paid { display: flex; }
.timeline { list-style: none; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 8px 0 8px 0;
  padding-inline-start: 18px; border-inline-start: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -6px; top: 14px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent); }
.timeline__when { color: var(--muted); font-size: 13px; }
.timeline__what { font-weight: 650; }
.timeline__who { color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- a service order's job columns (S9) */
.jobsteps { list-style: none; display: grid; gap: 6px; }
.jobstep { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 36px;
  padding-block: 3px; padding-inline: 6px 10px; border-radius: var(--r-sm); color: var(--muted); }
.jobstep__dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 13px; font-weight: 800;
  border: 2px solid var(--line); background: var(--card); color: var(--muted-text); }
.jobstep__dot .icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; }
.jobstep__name { font-weight: 600; overflow-wrap: anywhere; }
.jobstep.is-done { color: var(--ink); }
.jobstep.is-done .jobstep__dot { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-text); }
.jobstep.is-current { background: var(--accent-soft); color: var(--accent-text); }
.jobstep.is-current .jobstep__dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.jobstep.is-current .jobstep__name { font-weight: 800; }
.jobs__next { justify-self: start; max-width: 100%; }
@media (max-width: 599px) { .jobs__next { justify-self: stretch; } }

@media (prefers-reduced-motion: no-preference) {
  .live__dot { animation: breathe 2.4s ease-in-out infinite; }
  @keyframes breathe { 50% { opacity: .35; } }
  .ocard.is-new { animation: ring 1.2s ease 3; }
  @keyframes ring { 50% { box-shadow: 0 0 0 6px var(--hot-soft); } }
}
