#the_meds
{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: var(--sz_icons) 1fr;
    grid-gap: calc( 1 * var(--sz_margin));
    position: absolute;
    top: calc(2 * var(--sz_margin));
    left: -1px;
    z-index: 1000;
    height: calc(100% - ((var(--sz_icons) * 0.3) + var(--sz_margin)));
    width: calc(100% - (var(--sz_icons) * 0.3));
    padding: calc(2 * var(--sz_margin));
}
    #the_meds > *
    {
        border:1px dashed red;
    }
#the_meds header
{
    display: grid;
    position: relative;
    grid-template-columns: var(--sz_icons) 1fr repeat(2, var(--sz_icons));
    grid-gap: calc(1 * var(--sz_margin));
}
    #the_meds header > :nth-child(1)
    {
        /* icon */
        background-color: deeppink;
        background-image: url(kidspoints/icon_meds.png);
        background-repeat: no-repeat;
        background-position: center center;
        background-size: 60%;
        border-radius: calc( 2 * var(--sz_margin));
    }
    #the_meds header > :nth-child(3)
    {
        /* close button */
        border-radius: 50%;
        background-color: var(--color_green);
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 2.5em;
    }
    #the_meds header > :nth-child(4)
    {
        /* close button */
        border-radius: 50%;
        background-color: var(--color_blue);
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 2.5em;
    }
#the_meds > *:not(header)
{
    display: none;
}
#the_meds[data-tab="sick"] > .sick,
#the_meds[data-tab="doses"] > .doses,
#the_meds[data-tab="scripts"] > .scripts,
#the_meds[data-tab="symptoms"] > .symptoms,
#the_meds[data-tab="temps"] > .temps,
#the_meds[data-tab="appts"] > .appts
{
    display: block;
    min-height: 0;
    overflow-y: auto;
}
#the_meds .add_item,
#the_meds .close_item
{
    display: none;
}
    #the_meds[data-add="yes"] .add_item
    {
        display: grid;
        position: relative;
        grid-gap: var(--sz_margin);
        min-height: var(--sz_icons);
        border: 1px solid var(--color_gray);
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
        padding: calc(2 * var(--sz_margin));
        margin-top: calc(2 * var(--sz_margin));
        margin-bottom: calc(2 * var(--sz_margin));
        border-radius: calc(3 * var(--sz_margin));
        background-color: var(--color_bg);
    }
        #the_meds[data-add="yes"] header > :nth-child(3)
        {
            background-color: var(--color_green_dk);
        }
        #the_meds[data-add="yes"] .sickness .add_item
        {
            grid-template-columns: 1fr var(--sz_icons);
        }
            #the_meds[data-add="yes"] .sickness .add_item > :nth-child(1)
            {
                display: grid;
                grid-template-columns: 0.3fr 1fr;
            }
                #the_meds[data-add="yes"] .sickness .add_item > :nth-child(1) label
                {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                }
            #the_meds[data-add="yes"] .sickness .add_item > :nth-child(2)
            {
                font-size: 2.5em;
            }

#the_meds[data-add="mark_well"] .close_item
{
    display: grid;
    grid-template-columns: 0.5fr 1fr;
}
    #the_meds[data-add="mark_well"] .close_item > *
    {
        padding: 3px;
        margin-bottom: 3px;
    }
    #the_meds button
    {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: var(--color_blue);
        color: white;
        min-height: var(--sz_icons);
        border: none;
        border-radius: calc(2 * var(--sz_margin));
    }

#the_meds .button_row
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: calc(2 * var(--sz_margin));
}
#the_meds input,
#the_meds select
{
    box-sizing: border-box;
    padding: calc(2 * var(--sz_margin));
    margin-bottom: calc(2 * var(--sz_margin));
}