/* Per lijst-type: enkel de kolombreedtes instellen */
#logging-list { --cols: 1fr 1fr 1fr 1fr 2fr 1fr; }
#parts-list { --cols: 60px 105px 1fr 95px 95px; }
#scanner-set-list { --cols: 60px 105px 1fr 95px 95px 44px; }

/* GENERIC LIST LAYOUT */
.list {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 16px;
}

.list-header {
    padding: 10px;
    border-bottom: 2px solid #ccc;
    font-weight: bold;
    background: var(--gray-light);
}

.list .list-row {
    background: var(--white);
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

	.list-header,
	.list .list-row {
		display: grid;
		grid-template-columns: var(--cols);
		align-items: center;
	}

    .list .list-row:hover {
        background: var(--gray-light);
    }
	.list .list-row.active-row {
		background: var(--gray-light);
	}

    /* Kolommen */
    .list .list-col.img-box {		
        text-align: center;
		width: 105px;
        position: relative;
    }
		.list-body .list-col.img-box {
			align-items: center;
			background: #fcfcfb;
            border: solid 0.5px hsl(from #0b0b0b h s l / 10%);
            border-radius: 4px;
			display: flex;
			height: 50px;
			justify-content: center;
			padding: 2px;
		}

        .list-col.img-box img {
            max-height: 100%;
            max-width: 100%;
        }

        .list-col.img-box .preview {
            display: none;
            position: absolute;
            top: 50%;
            left: 110%;
            transform: translateY(-50%);
            padding: 6px;
            background: white;
            border: 1px solid #ccc;
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            z-index: 20;
        }

        .list-col.img-box .preview img {
            width: 200px;
            height: auto !important;
			max-height: unset !important;
			max-width: unset !important;
        }

        .list-col.img-box:hover .preview {
            display: block;
        }

    .list-col.color-box {
        width: 60px;
        text-align: center;
    }

        .color-box .color-circle {
            border-radius: 50%;
            border: solid 1px #686868;
            height: 20px;
            width: 20px;
            margin: 0 auto;
        }

    .list .list-col.descr  {
        flex: 1;
        padding: 0 10px;
    }

        .list .list-col.descr a {
            font-weight: 500;
            font-size: 13px;
            padding-bottom: 3px;
        }

        .list .list-col.descr .sub-descr {
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 2px;
            padding-left: 8px;
        }

    .list .list-col.qty,
    .list .list-col.qty-alloc {
        width: 95px;
        text-align: center;
    }

        .list-row .list-col.qty-alloc input[type=number] {
            width: 100%;
            text-align: right;
        }

    /* Status classes */
    .list-row.complete {
        background: #e6ffe6;
    }

    .list-row.too_much {
        background: #ffe6e6;
    }

    .list .list-row.on-table {
        background: #e6f4ea;
    }
        .list .list-row.on-table .on-table-btn {
            color: green;
            border-color: green;
        }

    .list button {
        align-items: center;
        background: transparent;
        border: 1px solid #ddd;
        border-radius: 6px;
        box-shadow: none !important;
        color: #000 !important;
        cursor: pointer;
        display: flex;
        height: 32px;
        justify-content: center;
        margin: 0 auto;
        width: 32px;
    }
    .list button:hover {
        background: color-mix(in srgb, transparent 85%, black) !important;
    }