form.admin {
    font-family: sans-serif;
    font-size: 14px;
}

form.admin h3 {
    font-size: 20px;
    padding: 20px 30px;
    margin: 0;
    font-weight: normal;
}

form.admin h4 {
    font-size: 16px;
    padding: 10px 30px;
    margin: 20px 0 0 -20px;
    font-weight: normal;
    background-color: #EEE;
    max-width: calc(33.333% - 50px);
}

form.admin fieldset {
    border: 0 none;
    margin: 0;
    padding: 10px 20px 20px 20px;
    background-color: #F7F7F7;
}

form.admin h4.group {
    padding: 10px 20px 10px 30px;
    background-color: #EAEAEA;
    margin: 10px 0 10px -20px;
    width: 30%;
}

/*
form.admin a.translate {
    display: inline-block;
    padding: 7px 15px;
    background-color: #FFF;
    border: 1px solid #CCC;
    cursor: pointer;
}

form.admin a.translate:hover {
    background-color: #1CC664;
    border-color: #1CC664;
    color: #FFF;
}
*/

form.admin .ib {
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
}

/* INFO: final line -> checkboxex & buttons */
form.admin fieldset + div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 30px;
}

form.admin fieldset + div > div:last-child { text-align: right; }
/* <--  */

form.admin button[type=submit],
form.admin a.button,
form.admin a.cancel {
    font-family: sans-serif;
    font-size: 14px;
    line-height: 24px;
    padding: 5px 20px;
    height: 36px;
    text-transform: uppercase;
    /*border-radius: 4px;*/

    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    /*margin: 0 10px;*/
    box-sizing: border-box;

    -webkit-transition: background-color 0.5s ease, border 0.5s ease;
    -moz-transition: background-color 0.5s ease, border 0.5s ease;
    -ms-transition: background-color 0.5s ease, border 0.5s ease; /* IE10 is actually unprefixed */
    -o-transition: background-color 0.5s ease, border 0.5s ease;
    transition: background-color 0.5s ease, border 0.5s ease;
}

form.admin button[type=submit],
form.admin a.button {
    border: 1px solid #1CC664;
    background-color: #1CC664;
    color: #fff;
}

form.admin button[type=submit]:hover,
form.admin a.button:hover {
    background-color: #000;
    border-color: #000;
}

form.admin a.cancel {
    color: #999;
    border: 1px solid transparent;
}

form.admin a.cancel:hover {
    background-color: #EEE;
    color: #000;
    border-radius: 3px;
    border: 1px solid #E1E1E1;
}

/* mobile & tablet */
@media (max-width: 799.999px) {
    form.admin { width: 100vw; }
}

/* tablet & desktop */
@media (min-width: 800px) and (max-width: 1279.999px) {
    /* INFO: .mgPopup > div { margin: 40px; } */
    form.admin { width: calc(100vw - 80px); }
}

/* desktop */
@media (min-width: 1280px) {
	form.admin { width: 1200px; }
}

form.admin input[type=text]:focus, /* will only select text fields */
form.admin input[type=email]:focus, /* will only select text fields */
form.admin input[type=password]:focus, /* will only select password fields */
form.admin textarea:focus,
form.admin select:focus {
    border: 1px solid #1cc664;
    box-shadow: 0px 0px 3px 0 rgba(0,0,0,.1);
}

form.admin input:disabled,
form.admin textarea:disabled,
form.admin select:disabled {
    background-color: #EEE;
    color: #999;
}

form.admin #mgModules {
    display: inline-block;
    vertical-align: top;
    margin-left: 20px;
}

form.admin #mgModules .mgSpace {
    vertical-align: top;
    display: inline-block;
    margin: 3px;
}

form.admin #mgModules .mgItem {
    vertical-align: top;
    padding: 5px 28px 5px 8px;
    /*margin: 2px;*/
    margin: 4px 4px 0 0;
    display: inline-block;
    color: #212121;
    text-decoration: none;
    background-color: #FFF;
    border: 1px solid #DADADA;
    border-radius: 2px;
    position: relative;

    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

form.admin #mgModules .mgItem .mgRemove {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 3px;
    right: 3px;
    cursor: pointer;
}

form.admin #mgModules .mgItem .mgRemove hr {
    border: none;
    width: 14px;
    height: 1px;
    background-color: #8e8e8e;
    position: absolute;
    top: 3px;
    left: 5px;
}

form.admin #mgModules .mgItem .mgRemove hr:first-child {
    transform: rotate(45deg);
}

form.admin #mgModules .mgItem .mgRemove hr:last-child {
    transform: rotate(-45deg);
}

form.admin #mgModules .mgItem .mgRemove:hover hr {
    background-color: #000;
}

form.admin .mgModules button.add {
    text-transform: uppercase;
    font-family: sans-serif;
    font-size: 20px;
    line-height: 26px;
    text-decoration: none;
    padding: 4px 20px;
    display: inline-block;

    color: #fff;
    background-color: #1CC664;
    /*border-radius: 5px;*/
    border: none;
    cursor: pointer;

    vertical-align: top;

    -webkit-transition: background-color 0.5s ease, border 0.5s ease;
    -moz-transition: background-color 0.5s ease, border 0.5s ease;
    -ms-transition: background-color 0.5s ease, border 0.5s ease; /* IE10 is actually unprefixed */
    -o-transition: background-color 0.5s ease, border 0.5s ease;
    transition: background-color 0.5s ease, border 0.5s ease;

    -webkit-appearance: none;
}

form.admin .mgModules button.add:hover { background-color: #000; }
/* *** */

form.admin .mgIcons img {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 5px 5px 0;
    padding: 10px;
    width: 32px;
    height: 32px;
}

form.admin .mgIcons img.current {
    border-color: #999;
    background-color: #FFF;
}

form.admin .mgIcons label > input { display: none; }

form.admin .mgIcons label > input:checked + img {
    border-color: #999;
    background-color: #FFF;
}
/* ???
form.admin button[type=button] {
    width: auto !important;
    white-space: nowrap;

    padding: 5px 18px;

    background-color: #FFF;
    color: #000;
    border: 1px solid #1CC664;

    text-transform: uppercase;
    font-family: sans-serif;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    box-sizing: border-box;

    transition: color 0.5s ease;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

form.admin button[type=button]:hover { color: #1CC664; }
 */

form.admin button.mgUpload {
    width: 48px !important;
    background-color: #FFF;
    border: 1px solid #1CC664;
}

@media (min-width: 800px) {
    .admin .mgPopup > div {
        margin: 40px;
        border-radius: 5px;
    }
}


/* range */
form.admin .mgRange {
    display: inline-block;
    position: relative;
}

form.admin .mgRange::after {
    position: absolute;
    top: 12px;
    right: 12px;
    bottom: 1px;
    content: attr(data-num);
    font-size: 12px;
    background-color: #FFF;
    line-height: 21px;
    padding: 0px 7px;
    max-height: 30px;
}

form.admin .mgRange:not(.ok)::after { color: #EB8080; }

form.admin .mgRange.ok::after { color: #1CC664; }
/* <-- */