.baby_food-block .first-block {
    position: relative;
}

.baby_food-block .edit-button,
.baby_food-block .note-button {
    position: absolute;
    bottom: 0.625em;
    background: #f8f9fa;
    color: #6c757d;
    border: 0.0625em solid #dee2e6;
    border-radius: 50%;
    padding: 0.375em;
    cursor: pointer;
    font-size: 0.875em;
    width: 1.375em;
    height: 1.375em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.baby_food-block .edit-button {
    right: 0.625em;
}

.baby_food-block .note-button {
    right: 0.625em;
}

/* #baby_food-block td.td4 {
    font-size: 0.6rem;
    width: 12%;
} */


.toggle-block-button {
    margin-right: 0.5em;
    margin-top: -0.1em;
    flex-shrink: 0;
    background: #fff;
    border-radius: 50%;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 1em;
    padding: 0 0.1em 0.1em 0.1em;
    transition: all 0.2s ease;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 1.75em;
    height: 1.75em;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.toggle-block-button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: #ccc;
}

.toggle-block-button:active {
    transform: translateY(-50%) scale(0.95);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.toggle-block-button.active {
    background-color: #eef1d4;
}


.toggle-birthdate-button {
    left: 0 !important;
    right: auto !important;
    margin-left: 0.5em;
}


.baby-age-display {
    font-size: 0.5em;
    color: #666;
    padding: 0.5em 1.0em;
    background-color: #f8f9fa;
    border-radius: 1.0em;
    border: 1px solid #e9ecef;
    white-space: nowrap;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    z-index: 10;
    position: relative;
    top: -1.0em;
    left: 0.5em;
}

.baby-age-display:hover {
    background-color: #e9ecef;
}

.baby-age-display .age-number {
    font-size: 1.5em;
    color: #333;
}