/*
 * alignvu UI v2.1: Assess > Workflow summary (application/views/align_to/assess_workflow_summary.php; rows from
 * js/modules/assess/workflow_summary/render.js). The time open options, then a grid per feed type; a block per feed
 * pair, a row per workflow.
 */

.app-wfs {
    padding-bottom: 32px;
}

/* the time open options sit on the right, as the period options do on the other screens */
.app-wfs__head {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.app-wfs__grids {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.app-wfs__title {
    margin: 0 0 12px;
    font: 600 18px/24px var(--font-display);
    color: var(--heading-ink);
}

.app-wfs__empty {
    margin: 0;
    padding: 16px 0;
    color: var(--muted);
}

/* headings without .av-num (text, and the share bar counts) sit on the left */
.app-wfs__table thead th:not(.av-num) {
    text-align: left;
}

.app-wfs__table tbody th,
.app-wfs__table tbody td {
    vertical-align: middle;
}

.app-wfs__table tbody th {
    font-weight: 400;
    text-align: left;
    color: var(--table-ink);
}

/* jurisdiction, feeds and workflow fit their text (never wrapped) and sit close together; outstanding and reviewed
   take the rest of the width, with a wider gap between them */
.app-wfs__table th:nth-child(-n+3),
.app-wfs__table tbody tr:first-child > :nth-child(-n+3),
.app-wfs__table tbody tr:not(:first-child) > :first-child {
    width: 1%;
    white-space: nowrap;
    padding-right: 8px;
}

.app-wfs__table th:nth-child(5),
.app-wfs__table tbody tr:first-child > :nth-child(5),
.app-wfs__table tbody tr:not(:first-child) > :nth-child(3) {
    padding-left: 40px;
}

/* a rule between feed pairs (each pair is its own tbody) */
.app-wfs__block + .app-wfs__block tr:first-child > * {
    border-top: 2px solid var(--border);
}

/* the feeds side by side with an arrow between; each product with its vendor under it */
.app-wfs__feed {
    display: inline-block;
    vertical-align: top;
}

.app-wfs__arrow {
    display: inline-block;
    margin: 0 6px;
    vertical-align: top;
}

.app-wfs__product {
    display: block;
    color: var(--heading-ink);
    font-weight: 600;
}

.app-wfs__vendor {
    display: block;
    font: 400 12px/16px var(--font-display);
    color: var(--muted);
}

/* the workflow: its Assess screen (a link) */
.app-wfs__workflow {
    white-space: nowrap;
}

.app-wfs__workflow a {
    color: var(--heading-ink);
    text-decoration: none;
}

.app-wfs__workflow a:hover,
.app-wfs__workflow a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.app-wfs__arrow .av-icon {
    vertical-align: -3px;
    color: var(--muted);
}

.app-wfs__table tr[data-href] {
    cursor: pointer;
}
