﻿/* Slab container - fixed grid layout */
.listtile-slab,
.cardtile-slab {
    position: relative;
    height: 200px;
    width: 130px;
    background: rgba(255, 255, 255, 0.08); /* Transparent plastic look */
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    display: grid;
    grid-template-rows: 28px 1fr; /* Fixed header, flexible card area */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1); /* Inner highlight */
    overflow: hidden;
}

.listtile-slab {
    height: 32px;
    width: 80px;
    margin: 0 10px 0 10px;
    align-self: center;
}

/* Slab header - label area */
.slab-header {
    background: var(--label-bg, white);
    border: 2px solid var(--label-border, #e63946);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 0 8px;
    gap: 8px;
}

.slab-company {
    height: 25px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.slab-grade {
    color: var(--label-text, black);
    font-weight: 900;
    font-size: 12px;
}

/* Card window - centers the card image */
.slab-card-window {
    display: grid;
    place-items: center;
    padding: 6px;
    background: rgba(0, 0, 0, 0.02); /* Subtle depth */
}

.cardtile-img-slabbed {
    height: 155px; /* Fits within remaining space */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    image-rendering: auto;
    filter: brightness(1);
    transition: filter 0.2s ease;
}
