/**
 * Global CSS
 */

/* ON/OFF */
#onOffFeEdit label {
    width: 18px !important;
    color: white;
    opacity: 0.5;
}

.feEditOn #onOffFeEdit input[type="checkbox"]:checked + label,
#onOffFeEdit label:hover {
    opacity: 1;
}

#onOffFeEdit input[type="checkbox"] {
    position: absolute;
    left: 999px;
    opacity: 0;
    visibility: hidden;
}

/* FE EDIT BLOCKS */
.feEditBox {
    display: none;
    overflow: hidden;
    clear: both;
}

.outlineFeEdit:hover > .feEditBox,
.feEditOn .feEditBox {
    display: block;
}

.outlineFeEdit {
    position: relative;
    /*overflow: hidden;
    margin: 8px 0;*/
}

/*
.outlineFeEdit > .feEditBox:not(.feEditBoxNew) {
    display: none !important;
}
*/

.feEditOn .outlineFeEdit,
.outlineFeEdit:hover {
    outline: 1px dashed #888;
    outline-offset: -1px;
}

.feEditBox form,
form.tsfe_edit_form {
    display: block;
    margin: 0;
}

.typo3-editPanel .btn-group {
    display: flex;
    position: absolute;
    left: 0;
    top: 0;
}
.feEditBox-tt_content-new .typo3-editPanel .btn-group,
.feEditBox-news-new .typo3-editPanel .btn-group {
    position: static;
}
.feEditBox-pages-edit .typo3-editPanel .btn-group {
    top: -32px;
}
table.body .feEditBox-pages-edit .typo3-editPanel .btn-group {
    top: 0;
    left: inherit;
    right: 0;
}
.colPos0.feEditBox-tt_content-new .typo3-editPanel .btn-group,
.colPos10.feEditBox-tt_content-new .typo3-editPanel .btn-group,
.colPos60.feEditBox-tt_content-new .typo3-editPanel .btn-group,
.colPos70.feEditBox-tt_content-new .typo3-editPanel .btn-group {
    outline: 1px dashed #888;
    outline-offset: -1px;
}
.typo3-editPanel p.fe {
    font-family: arial, helvetica, sans-serif !important;
    display: block !important;
    margin: 0 2px 0 0 !important;
    padding: 0 !important;
    font-size: 1em !important;
    overflow: hidden !important;
    font-weight: normal !important;
    background: none !important;
    text-indent: -9999px;
    border: 1px solid #000 !important;
}

.typo3-editPanel p.fe_newrecordafter {
    display: none !important;
}
.colPos0 .typo3-editPanel p.fe_newrecordafter,
.colPos10 .typo3-editPanel p.fe_newrecordafter,
.colPos60.feEditBox-tt_content-new .typo3-editPanel p.fe_newrecordafter,
.feEditBox-news-new .typo3-editPanel p.fe_newrecordafter,
.colPos70 .typo3-editPanel p.fe_newrecordafter {
    display: block !important;
}

.typo3-editPanel p.fe a {
    display: block;
    width: 35px !important;
    height: 30px !important;
    background: url(../Images/edit_w.png) 50% 50% no-repeat rgba(0, 0, 0, 0.5);
}

.feEditBox-pages-edit .typo3-editPanel p.fe a {
    background-image: url(../Images/edit_page.png)
}

.typo3-editPanel p.fe_newrecordafter a {
    background-image: url(../Images/add_w.png);
}

.typo3-editPanel p.fe a:hover,
.typo3-editPanel p.fe a:focus {
    background-color: rgba(0, 138, 0, 0.5);
}

.typo3-editPanel img {
    display: none !important;
}

/* NO EDIT / NO ADD */
.noEdit > .feEditBox p.fe_edit,
.noAdd > .feEditBox p.fe_newrecordafter {
    display: none !important;
}

/* HIDDEN */
.typo3-editPanel-label,
.typo3-editPanel p.fe_hide,
.typo3-editPanel p.fe_delete,
.typo3-editPanel p.fe_moveup,
.typo3-editPanel p.fe_movedown {
    display: none !important;
}