﻿.sortable {
    list-style: none;
    margin: 0px;
    padding: 0px;
}

.sortable > .sortable-item {
    margin: 0px;
    padding: 5px;
    position: relative;
}

.sortable > .sortable-item:hover,
.sortable > .sortable-item:focus {
    border: 2px dashed #00adef;
}

.sortable > .sortable-item:active {
    border: 2px dashed red;
}

.sortable > .sortable-item + .sortable-item {
    margin-top: 25px;
}

    .sortable .pagepart-item-actions .glyphicon,
    .sortable .pagepart-item-actions .fa,
    .sortable .pagepart-item-actions .fas,
    .sortable .pagepart-item-actions .fa-regular {
        display: inline-block;
        width: 36px;
        height: 28px;
        line-height: 28px;
        text-align: center;
        margin-left: 10px;
    }

tbody.sortable > .sortable-item .btn > .fa,
tbody.sortable > .sortable-item .btn > .glyphicon,
tbody.sortable > .sortable-item .btn > .fa-regular {
    height: inherit;
    line-height: inherit;
    width: auto;
}

.sortable .fa-sort-alt {
    cursor: move;
}

#sortable-pageparts .fa-sort-alt {
    background-color: #00adef;
    color: white;
}

.sortable .glyphicon-remove,
.sortable .glyphicon-remove:hover {
    background-color: red;
    color: white;
}

.sortable .glyphicon-edit,
.sortable .glyphicon-edit:hover,
.sortable .fa-exchange-alt,
.sortable .fa-exchange-alt:hover,
.sortable .glyphicon-eye-close,
.sortable .glyphicon-eye-close:hover,
.sortable .fa-th,
.sortable .fa-th:hover {
    background-color: orange;
    color: white;
}

.sortable .glyphicon-refresh,
.sortable .glyphicon-refresh:hover,
.sortable .glyphicon-eye-open,
.sortable .glyphicon-eye-open:hover,
.sortable .fa-th.save,
.sortable .fa-th.save:hover {
    background-color: green;
    color: white;
}

.sortable .glyphicon-open {
    background-color: orange;
}

.sortable > .sortable-item > p:first-child {
    margin-bottom: 5px;
}
/*.sortable > .sortable-item > div {
    margin: 5px 0px;
}*/

.sortable-container {
    position: relative;
}

.sortable-container > .sortable-actions {
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 100;
}

.sortable-actions {
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 100;
    width: 36px;
}

.sortable-actions > .action,
.sortable-actions > form > .action {
    display: inline-block;
    width: 36px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    margin-bottom: 5px;
    padding: 0px;
}

.sortable-actions > form {
    display: inline;
}

.sortable-actions > .action + .action {
    margin-top: 5px;
}

/* ordered pages */

.ul-sortable > .sortable-item {
    border: solid 2px #ddd;
    padding: 10px 6px;
    position: relative;
}

.ul-sortable > .sortable-item > .handle {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 50px;
    line-height: 40px;
    text-align: center;
    cursor: move;
}

.ul-sortable > .sortable-item + .sortable-item {
    margin-top: 5px;
}

/* Image carouse */

.sortable > .carousel-item {
    float: left;
    width: 125px;
    margin-right: 15px;
    margin-bottom: 15px;
    position: relative;
}
.sortable > .carousel-item + .carousel-item {
    margin-top: 0;
}
.sortable > .carousel-item img {
    max-height: 80px;
}
.sortable > .carousel-item > .carousel-item-actions {
    position: absolute;
    top: 0;
    right: 0;
}

.sortable > .carousel-item > .pagepart-item-actions > .action > .glyphicon,
.sortable > .carousel-item > .pagepart-item-actions > form > .action > .glyphicon {
    width: 30px;
    height: 20px;
    line-height: 20px;
}