.calorie-table-wrapper {
    margin: 20px 0;
    width: 100%;
}

/* kereső box */
.calorie-search-box {
    margin-bottom: 15px;
}
.calorie-search-box input {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s;
}
.calorie-search-box input:focus {
    outline: none;
    border-color: #F05323;
}

/* görgetés itt történik */
.calorie-table-wrapper .table-responsive {
    max-height: 80vh; /* böngésző magasság ~80%-a, finomhangolható */
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* táblázat */
.calorie-table {
    width: 100%;
    border-collapse: separate; /* sticky-hez megbízhatóbb */
    border-spacing: 0;
    background-color: #fff;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* sticky fejlécek */
.calorie-table thead th {
    position: sticky;
    top: 0; /* ha van fix site header, offsetet kell adni pl. top: 60px */
    z-index: 5;
    background: #F05323;
    color: #fff;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 0 rgba(0,0,0,0.06);
}

/* sorok */
.calorie-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}
.calorie-table tbody tr:hover {
    background-color: #f7f7f7;
}
.calorie-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}
.calorie-table tbody tr:nth-child(even):hover {
    background-color: #f1f1f1;
}
.calorie-table td {
    padding: 10px 8px;
    text-align: left;
}

/* név oszlop */
.calorie-table .food-name {
    min-width: 200px;
    font-weight: 500;
    color: #333;
}
.calorie-table .food-name::first-letter {
    text-transform: uppercase;
}

/* mobil */
@media (max-width: 768px) {
   .calorie-table-wrapper .table-responsive {
        max-height: 70vh;
    }
    .calorie-table {
        font-size: 12px;
    }
    .calorie-table th,
    .calorie-table td {
        padding: 8px 6px;
    }
    .calorie-table .food-name {
        min-width: 150px;
    }
}
@media (max-width: 480px) {
   .calorie-table-wrapper .table-responsive {
        max-height: 60vh;
    }
    .calorie-table {
        font-size: 11px;
    }
    .calorie-table th,
    .calorie-table td {
        padding: 6px 4px;
    }
}


.calorie-table-wrapper .table-responsive {
    position: relative;
    overflow-y: auto;
    overflow-x: auto;
    max-height: 80vh;
    border: 1px solid #ddd;
    border-radius: 6px;
    -webkit-overflow-scrolling: touch;
}

