/* ================= BASE ================= */

body{
    font-family:'Ubuntu Condensed',sans-serif;
    background:#fff;
    margin:20px;
    color:#666;
}

/* ================= BACK ICON ================= */

.back-icon {
    position: absolute;
    top: 20px;
    left: 30px;
    z-index: 0;
}

.back-icon img {
    width: 50px;
    height: 50px;
    display: block;
}

/* ================= BARRE ================= */

.bar{
    display:flex;
    align-items:flex-end;
    gap:16px;
    padding:0 10px 8px;
    margin-bottom:8px;
    overflow-x:auto;
    border-bottom:1px solid #ddd;
}

.bar::-webkit-scrollbar{
    display:none;
}

.bar-categories{
    height:50px;
    padding-left:75px; /* spazio per icona back */
}

.bar-elements{
    height:70px;
    display:none;
}

.bar-materials{
    height:18px;
    display:none;
    font-size: 10px;
}

/* ================= FILTRI ================= */

.filter-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    cursor:pointer;
    opacity:.5;
}

.filter-item.active{
    opacity:1;
}

.filter-item img{
    width:50px;
    height:50px;
    object-fit:cover;
}

.filter-item span{
    font-size:11px;
    margin-top:4px;
    white-space:nowrap;
}

/* ================= CONTROLLI ================= */

#controls{
    display:flex;
    gap:10px;
    align-items:center;
    margin-bottom:12px;
    flex-wrap:wrap;
}

#controls input,
#controls select{
    font-family:inherit;
    font-size:13px;
    padding:4px 6px;
}

#resetBtn{
    cursor:pointer;
    color:#b00000;
}

/* ===== LISTA PRINCIPALE ===== */

#linkList {
    list-style: none;
    padding: 0;
    margin: 0;
}

#linkList > li {
    display: grid;
    grid-template-columns: 25px 10px 10px 1fr 33px 33px 33px;
    gap: 6px;
    padding: 4px 0;
    border-bottom: 1px dotted #ddd;
    font-size: 13px;
    line-height: 1.15;
}

.col-year::before,
.col-qta::before,
.col-price::before{
    content:"·";
    margin-right:4px;
    color:#000;
}

.col-num{
    text-align:right;
}

.col-cctp,
.col-img{
    display:flex;
    align-items:center;
    justify-content:center;
}

.mini-icon{
    width:12px;
    height:12px;
    cursor:pointer;
    opacity:.7;
}

.mini-icon:hover{
    opacity:1;
}

.col-text{
    min-width:0;
}

.nome{
    font-weight:600;
    margin-right:6px;
    white-space:nowrap;
}

.descr{
    font-style:italic;
    color:#888;
}

.col-year,
.col-qta,
.col-price{
    text-align:right;
    font-size:12px;
    white-space:nowrap;
}

.col-price{
    color:#b00000;
    font-weight:600;
}