/* CSR Authoring, Outline: the sections the next version is generated from, and how each is written. */
.csr-outline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
}

.csr-outline-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--cai-muted);
}

.csr-outline-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.csr-outline-content[hidden],
.csr-outline-message[hidden],
.csr-outline-message > [hidden],
.csr-outline-content > [hidden],
.csr-authoring-workspace-outline[hidden] {
    display: none;
}

.csr-outline-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.csr-outline-title {
    font-size: 1.0625rem;
    font-weight: 600;
}

.csr-outline-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.csr-outline-actions > [hidden],
.csr-outline-content .csr-banner[hidden],
.csr-outline-check:empty {
    display: none;
}

.csr-outline-check-body {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    font-size: 0.8125rem;
}

.csr-outline-check-reason,
.csr-outline-check-where {
    color: var(--cai-muted);
}

.csr-outline-check-reason {
    margin-left: 0.75rem;
}

.csr-outline-owner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.csr-outline-owner > [hidden] {
    display: none;
}

.csr-outline-owner-warning {
    font-size: 0.75rem;
    color: var(--cai-warn);
}

.csr-outline-subtitle,
.csr-outline-intro {
    font-size: 0.8125rem;
    color: var(--cai-muted);
}

.csr-outline-cell {
    padding: 0.875rem 0;
    line-height: 1.5;
    white-space: normal;
}

.csr-outline-cell-strong {
    font-weight: 600;
}

.csr-outline-cell-codes {
    font-family: var(--csr-mono);
    font-size: 0.75rem;
}

.csr-outline-pill {
    display: inline-block;
    padding: 0.0625rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--csr-none-soft);
    color: var(--csr-none);
}

.csr-outline-pill--quoted {
    background: var(--csr-edit-soft);
    color: var(--csr-edit);
}

.csr-outline-pill--ai-draft {
    background: var(--csr-ai-soft);
    color: var(--csr-ai);
}

/* Every section is shown: the grid scrolls inside a bounded height rather than paging. */
.csr-outline .csr-outline-grid.app-grid-page-grid-shell {
    flex: none;
    height: clamp(20rem, 70vh, 60rem);
}

/* Rows tall enough for the Assign user button. */
.csr-outline .csr-outline-grid {
    --ag-row-height: 56px;
}
