/* SPDX-FileCopyrightText: 2026 David Dalzell */
/* SPDX-License-Identifier: MIT */

/* Operations tab — the always-visible fast-clock bar and the generic
   operations-list row. Active-session rendering lives in session.css;
   dispatcher/consist rendering lives in dispatcher.css. */

.ops-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  background: var(--pico-card-background-color, #f9f9f9);
  border: 1px solid var(--border-subtle);
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
}

.ops-row.car-needs-move {
  border-left: 4px solid var(--badge-orange);
}

#ops-clock-bar {
  position: sticky;
  top: 4.5rem;
  z-index: 500;
  background: var(--rail-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.4rem 1rem;
  margin-bottom: 0.75rem;
}

.fast-clock {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--rail-dark);
  border-radius: 6px;
  padding: 0.2rem 0.6rem 0.2rem 0.7rem;
}

#clock-time {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #e8f5e9;
  min-width: 4.5ch;
}

.clock-btn {
  width: 3rem !important;
  min-width: 3rem !important;
  max-width: 3rem !important;
  padding: 0.15rem 0 !important;
  text-align: center;
  font-size: 0.8rem;
  margin-bottom: 0;
  border-color: rgba(255,255,255,0.3) !important;
  color: rgba(255,255,255,0.8) !important;
  background: transparent !important;
}

/* ── Mobile (≤ 600px) ────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  /* Operations row — thumbnail + info on top, actions span full width below */
  .ops-row {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
  }

  .ops-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 0.25rem;
  }
}
