/* APP.allocation and APP.actuals (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-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; }
.dl-stack { flex-wrap: wrap; }

/* 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; }

/* Workforce line */
.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); }
@media (max-width: 1100px) { .dl-move { grid-template-columns: minmax(0, 1fr); } }

/* Locked source marker (attendance system) */
.dl-lock { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.dl-lock svg { width: 14px; height: 14px; color: var(--muted-foreground); }

/* Step 2 actions: basis choice, Upload Excel, Pull from ERP */
.dl-alloccard, .dl-upcard, .dl-record { padding: 16px; }
.dl-basis-pick { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.dl-basis-pick .select { width: 260px; max-width: 100%; }
.dl-work { padding: 16px; }

/* Step 3: upload card, upload record, open period strip */
.dl-upacts { margin-top: 16px; align-items: center; }
.dl-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.dl-kv > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dl-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--muted); }
.dl-strip .t-meta { white-space: nowrap; }
.dl-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 16px; }
.dl-empty > svg { width: 24px; height: 24px; }
.dl-last { order: 1; }

/* Round 7: one basis chip (basis, source, approval) in the actuals lines block */
.dl-basis { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--radius-md); white-space: nowrap; }

/* Round 8: step 3 imports and summary totals */
.dl-upacts .dl-basis-pick .select { width: 240px; }
.dl-total td { background: var(--muted); font-weight: 600; }

/* Round 9: import columns line and the assumptions card */
.dl-cols { margin-top: 8px; }
.dl-asm { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.dl-asm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.dl-asm-grid .dl-asm-note { grid-column: 1 / -1; }
.dl-asm-label { align-items: center; gap: 8px; min-width: 0; }
.dl-asm-label label { font-weight: 500; }
.dl-asm-acts { align-items: center; }
.dl-asm-empty { padding: 24px 16px; }
.dl-asm .dl-note { margin-top: 0; }
