/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */
#addfieldsform .submit,
.customfieldsdivs:nth-of-type(odd){
    clear: both;
}
.customfieldsdivs > div {
    padding: 10px;
    background-color: #e9e9e9;
    margin: 10px 10px 0 0;
    border-radius: 3px;
    position: relative;
}
.customfieldsdivs > div label{
    width: 100%;
    display: inline-block;
    position: relative;
}
.customfieldsdivs > div input:not([type=button]),
.customfieldsdivs > div select{
    width: 100%;
}
.customfieldsdivs .button.newfield{
    color: #fff;
    border-color: #71ab10;
    background: #81c909;
    box-shadow: 0 1px 0 #71ab10;
}
.customfieldsdivs .button.deleteButtons{
    color: #fff;
    border-color: #ab1010;
    background: #c90909;
    box-shadow: 0 1px 0 #ab1010;
}
.customfieldsdivs .button.newfield:active {
    transform: translate(0, 1px);
    background: #71ab10;
    box-shadow: none;
}
.customfieldsdivs .button.deleteButtons:active {
    transform: translate(50%, 1px);
    background: #ab1010;
    box-shadow: none;
}
.customfieldsdivs > div label::after {
    content: 'i';
    position: absolute;
    right: 0;
    display: inline-block;
    width: 14px;
    height: 14px;
    line-height: 14px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 50%;
    color: #afafaf;
    font-style: italic;
    font-size: 10px;
}
.infoWindow {
    position: absolute;
    right: 0;
    top: 0;
    transform: translate(50%, calc(-100% - 10px));
    background-color: #aaa;
    color: #fff;
    padding: 7px 10px;
    border-radius: 3px;

    display: none;
}
.infoWindow::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 5px 0 5px;
    border-color: #aaaaaa transparent transparent transparent;
    position: absolute;
    bottom: -5px;
    right: 50%;
}
.customfieldsdivs > div label:hover .infoWindow {
    display: inline-block;
}

@media screen and (min-width: 640px){
    .customfieldsdivs > div label{
        width: 40%;
    }
    .customfieldsdivs > div input:not([type=button]),
    .customfieldsdivs > div select{
        width: 40%;
    }
    .customfieldsdivs > div .deleteButtons {
        position: absolute;
        right: 10%;
        top: 50%;
        height: 28px;
        margin-top: -14px;
        transform: translate(50%, 0);
    }
}
@media screen and (min-width: 768px){
    .customfieldsdivs > div label{
        width: 30%;
    }
    .customfieldsdivs > div input:not([type=button]),
    .customfieldsdivs > div select{
        width: 55%;
    }
    .customfieldsdivs > div .deleteButtons {
        right: 7.5%;
    }
}
@media screen and (min-width: 1800px){
    .customfieldsdivs {
        width: 50%;
        float: left;
        margin-bottom: 20px;
    }
    .customfieldsdivs:last-of-type:after {
        clear: both;
    }
}