.meal-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;

    @media(width > 700px) {
        grid-template-columns: 150px 1fr 1fr 1fr;
        align-items: center;
    }
}

.meal-cell {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.meal-date {
    font-weight: 700;
    color: #333;
}

.cell-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    text-transform: uppercase;
    color: #777;
}

.custom-select.is-invalid,
.form-control.is-invalid {
    border-color: #dc3545;
}

.meal-default {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 6px 12px;
}

.edit-default:hover {
    cursor: pointer;
}

/* TOOLTIP */

.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #333;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
}

.info-tooltip .tooltip-content {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    padding: 8px 10px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    border-radius: 6px;
    white-space: normal;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 10;
}

.info-tooltip:hover .tooltip-content,
.info-tooltip:focus .tooltip-content {
    opacity: 1;
}

/* DIALOG */

html:has(dialog[open]) {
    overflow: hidden;
}

.meal-dialog {
    width: 400px;
}

.dialog-footer {
    display: flex;
    margin-top: 15px;
    justify-content: space-between;
}
