#messages-main-content #messages-form #messages-form-buttons-row a.open-timeline
{
    margin-right: 0;
    position:relative;
    display: flex;
    align-items: center;
    padding: 5px;
}

#messages-main-content #messages-form #messages-form-buttons-row a.open-timeline > *
{
    margin-right: 10px;    
}

#messages-main-content #messages-form #messages-form-buttons-row a.open-timeline > *:last-child
{
    margin-right: 0;
}

#messages-main-content #messages-form #messages-form-buttons-row a.open-timeline span
{
    font-size: 14px;
    color: #999;
}

#messages-main-content #messages-form #messages-form-buttons-row a.open-timeline.selected
{
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
}

#messages-form-buttons-row > div:last-child
{
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#timeline
{
    box-shadow: 0px 5px 11px rgba(0,0,0,0.26);
    padding: 10px;
    max-width: 160px;
    width: 160px;
    display:none;
    background: #fff;
    border-radius: 5px;
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
}

#timeline p
{
    font-size: 11px;
    margin-top: 0;
    color: rgb(163, 164, 171);
}

#timeline-row
{
    display: flex;
    margin: -5px;
    flex-wrap: wrap;
}

#timeline-row > div
{
    padding: 5px;
    box-sizing: border-box;
}

#timeline-row input,
#timeline-row select
{
    width: 100%;
    border-radius: 3px;
    border: 1px solid rgb(243, 243, 243);
    padding: 5px 8px;
    box-sizing: border-box;
    font-size: 14px;
}

#timeline-row > div:nth-child(1),
#timeline-row > div:nth-child(2)
{
    width: 50%;
    min-width: 50%;
    max-width: 50%;
    flex: 50%;
}

#timeline-row > div:nth-child(3)
{
    width: 100%;
    flex: 100%;
}

.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default, .ui-button, html .ui-button.ui-state-disabled:hover, html .ui-button.ui-state-disabled:active
{
    background: #fff!important;
    border: 0!important;
}

.ui-widget-header
{
    background: #fff!important;
    border: 0!important;
}

@media all and (max-width: 575px)
{
    #messages-main-content #messages-form #messages-form-buttons-row
    {
        flex-wrap: wrap;
    }

    #messages-main-content #messages-form #messages-form-buttons-row > div
    {
        width: 100%;
        flex: 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    #messages-main-content #messages-form #messages-form-buttons-row > div:last-child
    {
        padding-top: 20px;
    }
    
    #timeline
    {
        right: auto;
        left: 0;
    }
}