/* RFIs and SIs linked to Stages tasks (Specs/246): the task window's section, the ticket's block,
 * the pickers and the row chips. */

.tsk-rtl-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.tsk-rtl-row .tsk-linkbtn,
.tsk-rtl-task .tsk-linkbtn {
    text-align: left;
}

.tsk-rtl-pick {
    margin-top: 6px;
    padding: 6px;
    border: 1px solid var(--ras-line);
    border-radius: var(--ras-radius);
    background: var(--ras-surface);
    box-shadow: var(--ras-shadow-modal);
}
.tsk-rtl-pick .ras-input {
    width: 100%;
    margin-bottom: 4px;
}
.tsk-rtl-pick .ras-eyebrow {
    padding: 4px 6px 2px;
}
.tsk-rtl-pick-list {
    max-height: 260px;
    overflow: auto;
    margin-bottom: 4px;
}
.tsk-rtl-option {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 5px 6px;
    border: 0;
    border-radius: var(--ras-radius);
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.tsk-rtl-option[hidden] {
    display: none;
}
.tsk-rtl-option:hover,
.tsk-rtl-option:focus-visible {
    background: var(--ras-paper-2);
}

.tsk-rtl-tasks {
    padding: 8px 10px;
    border: 1px solid var(--ras-line);
    border-radius: var(--ras-radius);
    background: var(--ras-surface);
}
.tsk-rtl-tasks-h {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.tsk-rtl-task {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto 20px;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border-top: 1px solid var(--ras-line-soft);
}
.tsk-rtl-task.is-done .tsk-linkbtn {
    color: var(--ras-muted);
    text-decoration: line-through;
}
.tsk-rtl-note {
    margin-top: 4px;
}

/* Row chips: tsk-sg-chip draws from --c; the colour says where the RFI stands. */
.tsk-rtl-chip.is-waiting {
    --c: var(--ras-warn-strong);
}
.tsk-rtl-chip.is-answered {
    --c: var(--ras-info);
}
.tsk-rtl-chip.is-closed {
    --c: var(--ras-ok);
}
.tsk-rtl-chip.is-void {
    --c: var(--ras-muted);
}
