/* Resource allocation and Actuals tracking (Agent D). Kit tokens only; tables follow the house standard in app.css. */
.nowrap { white-space: nowrap; }
.dl-bad { color: var(--destructive); font-weight: 500; }
.dl-indent { padding-left: 16px; }
.dl-h2 { font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap; }
.dl-link { display: inline-flex; align-items: center; gap: 4px; }
.dl-note { margin-top: 8px; }
.dl .tab { white-space: nowrap; }

/* Badge groups stay on one line at natural width */
.dl-badges { display: inline-flex; flex-wrap: nowrap; gap: 4px; white-space: nowrap; }

/* Sections */
.dl-sec-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; min-width: 0; }
.dl-sec-head .t-meta { white-space: nowrap; }

/* Allocation detail and workforce line */
.dl-detail-head > * + * { margin-top: 4px; }
.dl-wf { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.dl-dot { width: 4px; height: 4px; border-radius: var(--radius-full); background: var(--muted-foreground); }

/* Fina flag marker inside a cell-sub */
.dl-flag { display: flex; align-items: center; justify-content: flex-end; gap: 4px; color: var(--destructive); }
.dl-flag .fina-spark { width: 12px; height: 12px; color: var(--destructive); }

/* Dated moves timeline */
.dl-move { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.dl-move-track { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap; }
.dl-box { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; border-radius: var(--radius-md); border: 1px solid var(--border); flex: 1 1 200px; min-width: 0; }
.dl-box.to { border-color: var(--border-brand); }
.dl-box.pending { border: 1px dashed var(--warning); }
.dl-arrow { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted-foreground); }

/* KPI row: 3+3 for actuals */
.dl-kpis-3 .ra-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Actuals filter row: 32px controls left, count right */
.dl-filters { align-items: center; }
.dl-select { width: 280px; }
.dl-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 32px 16px; border: 2px dashed var(--border); border-radius: var(--radius-lg); background: var(--muted); color: var(--muted-foreground); cursor: pointer; }
.dl-drop:hover { border-color: var(--border-brand); color: var(--primary); }
.dl-drop .t-label { color: var(--foreground); }

@media (max-width: 1100px) {
  .dl-move { grid-template-columns: minmax(0, 1fr); }
  .dl-select { width: 220px; }
}
.dl-list { margin: 0; padding-left: 16px; }
.dl-list li + li { margin-top: 4px; }
