﻿.workflow-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    /*  border-radius: var(--wm-radius);*/
    overflow: hidden;
    border: 2px solid color-mix(in srgb, var(--wm-workflow-colour), black 15%);
}

.workflow-dashboard-card {
    height: 100%;
}

    .workflow-dashboard-card .workflow-card-body {
        gap: .5rem;
    }
        .workflow-dashboard-card .workflow-card-body > :first-child {
            flex: 1;
            min-height: 0;
        }

.workflow-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--wm-workflow-colour);
    /* white on every area colour; the one exception is the active / in-progress card (yellow), whose class sets the dark ink */
    color: var(--wm-workflow-ink, #fff);
}

.workflow-card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.assigned-user {
    font-size: 1rem;
    font-weight: 600;
}

.workflow-card-header-content {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.workflow-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: .35rem;
    background: color-mix(in srgb, var(--wm-workflow-colour), white 75%);
}

.workflow-card-item-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-gutter: stable;
    position: relative; /* containing block for the fade overlays */
    overscroll-behavior-y: contain;
}

.workflow-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0.65rem 1rem;
    margin-bottom: 1rem;
}

.workflow-detail {
    display: contents;
}

.workflow-detail-label {
    color: var(--bs-secondary-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: right;
    margin-left: 1rem;
    align-self: center;
}

.workflow-detail-value {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

    .workflow-detail-value .text-muted {
        font-style: italic;
        opacity: 0.75;
    }

.workflow-card-actions {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bs-border-color);
    text-align: center;
}

.item-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2rem;
    padding: 0 0.5rem;
    border-radius: 999px;
    color: black;
    background: var(--bs-secondary-bg);
    background: white;
    font-weight: 600;
}



