/* e8a.css -- Launch, in the Agents tab (DEC-0000-0140): the launch toolbar, the planned rows
 * and "what's happening". Tokens from core.css, no own hex. The planned rows reuse dbv.css's
 * .dbv-grid classes (sticky header, zebra rows, sortable th); this file adds the launch
 * toolbar and the planned-row inline editors. */

.vl-panel {
  display: flex; flex-direction: column; padding: 8px 12px 10px; gap: 8px;
}

.vl-section-title {
  font-size: calc(var(--ui-fs) * 11 / 13); text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-dim); margin: 6px 0 2px;
}

/* status colours, shared by the planned-row LED and the class row */
.vl-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.vl-st-run .vl-dot, .vl-dot-run       { background: var(--ok); }
.vl-st-attn .vl-dot, .vl-dot-attn     { background: var(--attn); }
.vl-st-err .vl-dot, .vl-dot-err       { background: var(--danger); }
.vl-st-still .vl-dot, .vl-dot-still   { background: var(--text-dim); }
.vl-st-ok .vl-dot, .vl-dot-ok         { background: var(--text-dim); }
.vl-st-idle .vl-dot, .vl-dot-idle     { background: var(--surface2); }
.vl-st-planned .vl-dot, .vl-dot-planned { background: var(--accent); }

/* ---- DE LANCEERREGEL: aantal, rollen, ticket/taak, Plan, Start ------------------------- */
.vl-launchbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vl-launch-lab { display: flex; align-items: center; gap: 4px; font-size: calc(var(--ui-fs) * 12 / 13); color: var(--text-dim); }

.vl-grens-input {
  width: 56px; background: var(--surface2); border: 1px solid var(--rule); border-radius: 3px;
  color: var(--text); font: inherit; padding: 2px 6px;
}

.vl-roles {
  display: flex; flex-wrap: wrap; gap: 2px 10px; max-width: 360px; max-height: 48px; overflow: auto;
  border: 1px solid var(--rule); border-radius: 3px; padding: 3px 8px; background: var(--surface2);
}
.vl-role-item { display: flex; align-items: center; gap: 4px; font-size: calc(var(--ui-fs) * 12 / 13); color: var(--text); white-space: nowrap; }

.vl-taskinput {
  flex: 1 1 200px; min-width: 160px; background: var(--surface2); border: 1px solid var(--rule);
  border-radius: 3px; color: var(--text); font: inherit; padding: 3px 8px;
}
.vl-taskinput:focus { outline: none; border-color: var(--focus); }

.vl-btn {
  background: var(--surface2); color: var(--text); border: 1px solid var(--rule); border-radius: 3px;
  padding: 4px 12px; font: inherit; cursor: pointer;
}
.vl-btn:hover { background: var(--hover); }
.vl-btn:disabled { opacity: .6; cursor: default; }
.vl-btn.vl-launch { background: var(--accent); color: var(--accent-tx); border-color: transparent; font-weight: 600; }
.vl-btn.vl-launch:hover { background: var(--accent-hi); }

.vl-launch-msg { font-size: calc(var(--ui-fs) * 11 / 13); color: var(--text-dim); }
.vl-launch-msg.vl-attn { color: var(--attn); }

/* ---- HET RASTER: dbv.css's .dbv-grid hergebruikt, hier alleen de omgeving ------------- */
.vl-gridwrap { flex: 1 1 auto; min-height: 120px; overflow: auto; border: 1px solid var(--rule); border-radius: 3px; }
.vl-grid { width: 100%; }
.vl-grid thead th.dbv-th-sortable { cursor: pointer; user-select: none; }
.vl-grid thead th.dbv-th-sortable:hover { background: var(--hover); }
.vl-grid .dbv-th-sort { margin-left: 4px; color: var(--accent-hi); }
.vl-grid tbody tr.sel { background: var(--selection); }
.vl-grid tbody tr.vl-row-planned { background: rgba(58,157,67,0.08); }
.vl-grid tbody tr { cursor: pointer; }
.vl-grid td.vl-num { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-dim); font-size: calc(var(--ui-fs) * 11 / 13); }
.vl-grid td .vl-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.vl-grid td.vl-empty { color: var(--text-dim); text-align: center; padding: 16px 0; cursor: default; }

.vl-celledit {
  width: 100%; box-sizing: border-box; background: var(--bg); color: var(--text-strong);
  border: 1px solid var(--rule); border-radius: 2px; padding: 1px 4px; font: inherit;
}
.vl-celledit:focus { outline: none; border-color: var(--accent); }
.vl-engmod { display: flex; gap: 4px; }
.vl-engmod .vl-celledit { min-width: 0; }
.vl-engselect { flex: 0 0 auto; max-width: 40%; }
.vl-modelselect { flex: 1 1 auto; }
.vl-grid td.vl-note { color: var(--text-dim); font-size: calc(var(--ui-fs) * 11 / 13); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- LAAG 1: WAT SPEELT ER (ongewijzigd) ----------------------------------------------- */
.vl-empty { color: var(--text-dim); font-size: calc(var(--ui-fs) * 12 / 13); padding: 4px 0; }
.vl-small { font-size: calc(var(--ui-fs) * 11 / 13); }
.vl-attn { color: var(--attn); }

.vl-klasse {
  display: flex; align-items: flex-start; gap: 8px; padding: 6px 4px; border-radius: 4px;
}
.vl-klasse:hover { background: var(--hover); }
.vl-klasse .vl-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; }
.vl-klasse-mid { flex: 1; min-width: 0; }
.vl-klasse-tekst { color: var(--text); font-size: calc(var(--ui-fs) * 12 / 13); }
.vl-klasse-sub { color: var(--text-dim); font-size: calc(var(--ui-fs) * 11 / 13); }
.vl-klasse-acts { display: flex; gap: 4px; flex: none; }

.vl-actbtn {
  font-size: calc(var(--ui-fs) * 11 / 13); padding: 2px 8px; border-radius: 3px; background: var(--surface2);
  color: var(--text);
}
.vl-actbtn:hover { background: var(--accent); color: var(--accent-tx); }

/* S-0000-0422: the fleet table's cells are text (an id, a task, a model) -- selectable;
 * the sortable header stays a control (above) */
.vl-grid tbody td { -webkit-user-select: text; user-select: text; }
