﻿/* ================================
   AUTOCOMPLETE INCI
================================ */

.autocomplete-list {
    position: absolute;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    list-style: none;
    padding: 4px 0;
    margin: 0;
    max-height: 240px;
    overflow-y: auto;
    z-index: 99999;
}

    .autocomplete-list li {
        padding: 8px 14px;
        font-size: 14px;
        cursor: pointer;
        border-bottom: 1px solid #eee;
    }

        .autocomplete-list li:last-child {
            border-bottom: none;
        }

        .autocomplete-list li:hover {
            background-color: #ffe0ec;
        }

/* ================================
   LISTE INCI (list-group)
================================ */

.list-group-item {
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 5px;
    padding-left: 20px;
}

    .list-group-item:hover {
        background-color: #f1f1f1;
    }

.tab-pane .list-group-item {
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Selezione ingrediente */
.list-group-item.selected {
    background-color: #007bff;
    color: white;
}

/* ================================
   PAGINAZIONE
================================ */

.pagination {
    display: flex;
}

    .pagination .page-item {
        list-style: none;
    }

        .pagination .page-item .page-link {
            min-width: 36px;
            height: 36px;
            line-height: 36px;
            padding: 0;
            margin: 0 3px;
            text-align: center;
            border-radius: 50%;
            color: #495057;
            transition: all 0.2s;
        }

            .pagination .page-item .page-link:hover {
                background-color: #0d6efd;
                color: #fff;
            }

        .pagination .page-item.active .page-link {
            background-color: #0d6efd;
            color: #fff;
            border-color: #0d6efd;
        }

.ingredient-list-small {
    font-size: 12px;
    overflow-y: auto;
}

    .ingredient-list-small div {
        padding: 2px 0;
        border-bottom: 1px dashed #eee;
    }

.iconic-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    transition: 0.2s ease;
}

    .iconic-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }

.iconic-left {
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iconic-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.iconic-body {
    flex: 1;
}

.missing-translation {
    text-decoration: underline;
    text-decoration-color: rgba(255, 152, 0, 0.35);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-skip-ink: auto;
    cursor: help;
}

/* CSS globale o nel tuo style sheet */
.table-annex th,
.table-annex td {
    width: 120px; /* o un valore che ti sembra adeguato */
    min-width: 120px; /* forza larghezza minima */
    text-align: center; /* centra i badge */
    white-space: nowrap; /* evita il ritorno a capo per i titoli */
}

    .table-annex td .badge {
        white-space: normal; /* permette al badge di andare a capo se necessario */
        word-break: break-word;
    }

    /* Nasconde la prima colonna (#) */
    .table-annex th:first-child,
    .table-annex td:first-child {
        display: none;
    }


