/*
Copyright: (c) 2026 Jörn Menne
Licensed under the Apache License, Version 2.0
See NOTICE file for details.
*/

/* Shared by the list and the detail page: the entry card and the status colours of its border.
   Page-specific parts (hover, focus, widths) stay in list-style.css and detail-style.css. */

:root {
    /* Status "not responsible", not used by the other statuses */
    --status-not-responsible: #6f42c1;
}

/* Entry card */
.entry {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
    align-items: start;
    min-height: 15rem;
    padding: 1rem;

    background-color: #fff;
    border-radius: var(--border-radius);
    border-left: 10px solid var(--gray);
    box-shadow: 1px 1px 3px 1px var(--color-shadow);

    img {
        /* Fills the column, so wide images cannot push the card wider */
        width: 100%;
        height: 10rem;
        object-fit: contain;
        align-self: center;
    }
}

/* Status colors of the card border */
.s0 {
    border-left-color: var(--red);
}

/* In progress and returned share the yellow */
.s1,
.s6 {
    border-left-color: var(--yellow);
}

.s2,
.s5 {
    border-left-color: var(--dark-blue);
}

.s3 {
    border-left-color: var(--status-not-responsible);
}
