/*
    Project Specific Stylesheets for epublisher Backend
    last changes:
    Stephan Betke: 28.11.2013
*/

/*
    Project Specific Stylesheets for epublisher Backend
    last changes: 
    Stephan Betke: 05.04.2023
*/

@media (min-width:0px){
    .epublisher .epublisher-menu-sub select {
        margin: 0 10px 0 -3px;
        position: absolute;
        right: 0;
        width: 100px;
    }
    .epublisher-description {
        color: #555;
        font-size: 12px;
    }
    .epublisher-msg-telegram {
        background-image: url(/includes/media/icon_telegram.png);
        background-size: 25px 25px;
        display: block;
        width: 25px;
        height: 25px;
    }
    .epublisher-msg-whatsapp {
        background-image: url(/includes/media/icon_whatsapp.png);
        background-size: 25px 25px;
        display: block;
        width: 25px;
        height: 25px;
    }
    .epublisher-msg-viber {
        background-image: url(/includes/media/icon_viber.png);
        background-size: 25px 25px;
        display: block;
        width: 25px;
        height: 25px;
    }
    .epublisher-msg-threema {
        background-image: url(/includes/media/icon_threema.png);
        background-size: 25px 25px;
        display: block;
        width: 25px;
        height: 25px;
    }
    .epublisher-msg-fbmessenger {
        background-image: url(/includes/media/icon_fbmessenger.png);
        background-size: 25px 25px;
        display: block;
        width: 25px;
        height: 25px;
    }
    .epublisher-msg-signal {
        background-image: url(/includes/media/icon_signal.png);
        background-size: 25px 25px;
        display: block;
        width: 25px;
        height: 25px;
    }
    .epublisher-table-scroll {
        display: flex;
        flex-direction: column-reverse;
        height: 400px;
        overflow-y: scroll;
    }
    .epublisher-table-scroll table {
        box-shadow: none;
        margin: 0;
    }
    .epublisher-subtable-row {
        background-color: inherit !important;
        border-top: 1px solid #bebebe !important;
    }
}

@media screen and (max-width: 1000px) {
    .epublisher .epublisher-menu-sub select {
        margin: 0 0 0 30px;
        position: relative;
        width: 100px;
    }
}

/* Tree Styling
----------------------------------*/
    @media (min-width:0px){
        div.epublisher-tree-box {
            display: inline-block;
            max-width: 200px;
            background-color: #ffffff;
        }
        table.epublisher-tree-table {
            margin: 0;
            line-height: 17px;
            white-space: wrap;
        }
        div.epublisher-tree-child-container {
            display: inline-block;
            min-width: 90%;
            min-height: 40px;
        }
        div.epublisher-tree-bracket {
            display: inline-block;
            border-left: 2px solid black;
            border-right: 2px solid black;
            border-top: 2px solid black;
            width: 100%;
            height: 10px;
        }
        div.epublisher-tree-triangle {
            display: inline-block;
            width: 0;
            height: 0;
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-bottom: 12px solid black;
        }
        div.epublisher-tree-container {
            display: inline-block;
            margin-right: 5px;
            margin-left: 5px;
            vertical-align: top;
            width: max-content;
        }
        div.epublisher-tree-wrapper {
            line-height: 0;
            text-align: center;
            padding: 10px;
            overflow-x: scroll;
            white-space: nowrap;
            box-shadow: 0 2px 10px rgba(174, 174, 174, .5);
        }
        div.epublisher-tree-base {
            position: absolute;
            width: 90vw;
            left: 5vw;
        }
        tr.epublisher-tree-sortable-handle {
            cursor: move;
        }
        div.epublisher-tree-sortable-placeholder {
            display: inline-block;
            margin-right: 5px;
            margin-left: 5px;
            vertical-align: top;
            width: 150px;
            height: 80px;
            background-color: #f2f2f2;
            box-shadow: 0 2px 10px rgba(174, 174, 174, .5);
        }
        div.epublisher-tree-pool {
            line-height: 0;
            padding: 10px;
            overflow-x: scroll;
            white-space: nowrap;
            box-shadow: 0 2px 10px rgba(174, 174, 174, .5);
            margin-top: 40px;
            min-height: 100px;
        }
        div.epublisher-tree-pool div.epublisher-tree-container {
            text-align: center;
        }
        div.epublisher-tree-bottom-box {
            height: 150px;
        }
        span.epublisher-tree-button-counter {
            vertical-align: middle;
            margin-right: 2px;
            cursor: help;
        }

        /* Tree in Dialog Window */
        .epublisher-dialog table.epublisher-tree-table {
            box-shadow: 0 2px 10px rgba(174, 174, 174, .5);
        }
        .epublisher-dialog div.epublisher-tree-child-container {
            min-width: 150px;
            vertical-align: top;
        }
        .epublisher-dialog div.epublisher-tree-pool > div.epublisher-tree-child-container {
            min-width: 90%;
            min-height: 100px;
        }
        .epublisher-dialog div.epublisher-tree-base {
            position: static;
            width: 96vw;
            margin-left: 1vw;
            padding-top: 40px;
        }
        div.epublisher-tree-inline-add td {
            padding: 10px;
        }
        div.epublisher-tree-inline-add a {
            margin: 0 !important;
        }
    }

/* Colored Single Icons
----------------------------------*/
    @media (min-width:0px){
        span.epublisher-single-icon {
            position: relative;
            padding-right: 16px;
        }
        span.epublisher-single-icon > span {
            display: inline-block;
            position: absolute;
            top: 50%;
            left: 50%;
            margin-top: -8px;
            margin-left: -8px;
        }
        .epublisher-icon-color-green {
            filter: invert(45%) sepia(100%) hue-rotate(90deg) saturate(250%);
        }
        .epublisher-icon-color-red {
            filter: invert(40%) sepia(150%) hue-rotate(-70deg) saturate(400%);
        }
        .epublisher-icon-color-yellow {
            filter: invert(70%) sepia(100%) saturate(250%);
        }
    }

/* Module Editor
----------------------------------*/
    @media (min-width: 0px){
        .epublisher-module-add {
            padding: 13px 37.5% 12px 37.5%;
        }
        .epublisher-module-add .ui-icon {
            left: unset;
        }
        .epublisher-module-add .ui-button-text {
            padding-left: 20px;
        }

        .epublisher #epublisher-content div.epublisher-table-flex > table.table-flex-preview {
            width: fit-content;
            flex: 0 0 auto;
        }

        .epublisher #epublisher-content div.epublisher-table-flex > table.table-flex-preview > tbody > tr:nth-child(1) > td {
            width: 310px;
            padding: 0;
            line-height: 0;
        }

        .epublisher #epublisher-content div.epublisher-table-flex > table.table-flex-preview > tbody > tr:nth-child(1) > td > iframe {
            height: 500px;
        }
    }

    @media (max-width: 1115px){
        .epublisher-module-add {
            padding: 13px 29vw 12px 29vw;
        }
    }