/* ============================================================
   LW RAIL – CIS BASE STYLES (SAFE)
   Applies to board tables themselves, not fullscreen layout chrome.
   ============================================================ */

.lw-ldb-board {
  background: #000;
  color: #fff;
  width: 100%;
  box-sizing: border-box;
}

/* Board header (used on normal pages) */
.lw-ldb-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(#0b1d3a, #08162b);
  border-bottom: 2px solid #f5d000;
  padding: 8px 12px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.lw-ldb-board-location {
  font-weight: 800;
  letter-spacing: 0.3px;
}

.lw-ldb-board-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  opacity: 0.9;
}

.lw-ldb-board-mode {
  font-weight: 700;
}

/* Table */
.lw-ldb-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.lw-ldb-table thead th {
  background: #0b1d3a;
  color: #fff;
  padding: 6px 8px;
  border-bottom: 2px solid #f5d000;
  font-weight: 700;
  text-align: left;
}

.lw-ldb-table td {
  padding: 4px 8px;
  border-bottom: 1px solid rgba(30, 80, 140, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* Row striping */
.lw-ldb-table tbody tr:nth-child(even) {
  background: rgba(8, 22, 43, 0.55);
}

/* Column sizing (balanced for your screenshot) */
.lw-ldb-col-time { width: 92px; }
.lw-ldb-col-plat { width: 72px; text-align: center; }
.lw-ldb-col-exp  { width: 170px; }
.lw-ldb-col-operator { width: 170px; }
.lw-ldb-col-remarks  { width: 30%; }

/* Status colours */
.lw-ldb-status-ontime,
.lw-ldb-status-text {
  font-weight: 800;
}
.lw-ldb-status-ontime { color: #9dff00; }
.lw-ldb-status-delayed { color: #ffb300; font-weight: 900; }
.lw-ldb-status-cancelled { color: #ff5252; font-weight: 900; }

/* Scroll cells (remarks/operator) */
.lw-ldb-scroll-cell { overflow: hidden; position: relative; }
.lw-ldb-scroll-text {
  display: inline-block;
  padding-left: 100%;
  animation: lwrail-marquee 14s linear infinite;
}
@keyframes lwrail-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* "No services" message */
.lw-ldb-no-services {
  padding: 14px;
  opacity: 0.75;
  font-size: 14px;
}

/* Mobile */
@media (max-width: 768px) {
  .lw-ldb-table thead th { font-size: 13px; }
  .lw-ldb-table td { font-size: 13px; padding: 3px 6px; }
}
