/*----------------------------- SLIDER ---------------------------------*/
.slide {
    margin: auto;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.slide > .item-list {
    width: max-content;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
}

.slide > .item-list > .item {
    position: relative;
    margin: 0;
}

.slide > .item-list > .item > .image {
    width: 100%;
    padding-top: 58.33%;
    position: relative;
}

.slide > .item-list > .item > .image > img {
    height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
}

.slide .overlay {
    background-color: rgba(255, 255, 255, 0.8);
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.slide > .item-list > .item .title {
    color: #168187;
    font-size: 1.2em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.slide .item .text {
    text-align: justify;
    overflow: hidden;
}

.slide .button {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translate(0, -50%);
    border-radius: 25%;
    cursor: pointer;
    opacity: 0;
    background: url("/theme/img/slide-button.png"), rgba(255, 255, 255, 0.8);
    background-repeat: no-repeat;
    background-size: cover;
}

.slide:hover .button {
    opacity: 0.8;
}

.slide .button:hover {
    opacity: 1;
}

.slide .button.back {
    left: 2%;
}

.slide .button.next {
    right: 2%;
    background-position-x: 100%;
}

.slide.center .item {
    transform: scale(0.8);
    padding: 2%;
}

.slide.center .item.center {
    transform: scale(1.4);
}

.slide.center .overlay {
    display: none;
}

.slide.center .item.center .overlay {
    display: block;
    font-size: 10px;
}

.slide.center .image {
    background-color: white;
}

.slide.center .image > img {
    opacity: 0.6;
    transition: 500ms;
}

.slide.center .center .image > img {
    opacity: 1;
    transition: 500ms;
}


.slide.vertical .button.back {
    top: 2%;
    left: 50%;
    transform: translate(-50%, 0) rotate(90Deg);
}

.slide.vertical .button.next {
    top: auto;
    bottom: 2%;
    left: 50%;
    transform: translate(-50%, 0) rotate(90Deg);
}

.slide.vertical > .item-list {
    width: 100%;
    flex-direction: column;
}

.slide.vertical > .item-list > .item {
    width: 100%;
}

.thumbnail-slide .slide.left .item > .image {
    overflow: hidden;
}

.thumbnail-slide .slide.left .item > .image > * {
    padding: 5px 10px 5px 0;
}

.thumbnail-slide .slide.right .item > .image > * {
    padding: 5px 0 5px 10px;
}

.thumbnail-slide .slide.top .item > .image > * {
    padding: 0 5px 10px 5px;
}

.thumbnail-slide .slide.bottom .item > .image > * {
    padding: 10px 5px 0 5px;
}

.slide > .item-list > .item > .image > iframe {
    height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
}

.youtube-slide .thumbnail-slide .slide > .item-list > .item > .image > iframe {
    pointer-events: none;
    width: 100%;
}


/*----------------------------- CUSTOM CHECKBOX ---------------------------------*/
.custom-checkbox {
    display: inline-block;
    position: relative;
    padding-left: 30px;
    line-height: 24px;
    height: 24px;
    margin-bottom: 5px;
    cursor: pointer;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

.custom-checkbox .box {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #a9a9a9;
}

.custom-checkbox .circle {
    border-radius: 50%;
}

.custom-checkbox .box.radio {
    border-radius: 50%;
}

.custom-checkbox:hover input ~ .box {
    background-color: #ccc;
}

.custom-checkbox input:checked ~ .box {
    background-color: #2196F3;
}

.custom-checkbox .box:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .box:after {
    display: block;
}

.custom-checkbox .box.check:after {
    left: 50%;
    top: 45%;
    width: 20%;
    height: 40%;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.custom-checkbox .box.radio:after {
    left: 50%;
    top: 50%;
    border: 0;
    border-radius: 50%;
    width: 40%;
    height: 40%;
    background-color: #FFF;
    transform: translate(-50%, -50%);
}
/*----------------------------- MODAL FORM ---------------------------------*/
.modal-form {
    width: 100%;
    height: 100%;
    padding: 20px;
    z-index: 20;
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    left: 0;
    top: 0;
    font-size: 16px;
    display: none;
}

.modal-form .form-close {
    width: 30px;
    height: 30px;
    background-image: url("/theme/img/modal-form-close.png");
    background-repeat: no-repeat;
    background-size: 80%;
    background-position: center;
    background-color: #fafafa;
    border: 1px solid #cccccc;
    border-radius: 3px;
    position: absolute;
    right: 20px;
    cursor: pointer;
}

.modal-form .form-close:hover {
    background-color: #eeeeee;
}

.modal-form .form-content {
    width: 650px;
    padding: 20px;
    background: #FFF;
    margin: 0 auto;
    overflow: hidden;
    overflow-y: auto;
    max-height: 100%;
    position: relative;
    top: 50%;
    transform: translate(0, -50%);
    border-radius: 5px;
}

.modal-form .form-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.modal-form .form-body {
    max-height: 100%;
    overflow-y: auto;
}

.modal-form .form-command {
    text-align: center;
    position: static;
    margin-top: 20px;
}

.modal-form label {
    margin-bottom: 2px;
}

.modal-form input[type=text],
.modal-form input[type=password],
.modal-form textarea,
.modal-form select
{
    margin-bottom: 20px;
    padding: 4px;
    border-radius: 3px;
    border: 1px solid #797979;
}

.modal-form textarea {
    min-height: 3.2em;
}

.modal-form select {
    padding: 7.2px 2px;
}

.modal-form fieldset {
    padding: 10px;
    border: 1px solid #8f8f8f;
    margin: 0 0 20px 0;
    min-height: 30px;
}

.modal-form .form-command .button {
    display: inline-block;
    background-color: #fafafa;
    background-size: 26px 26px;
    background-repeat: no-repeat;
    background-position: 4px;
    margin-right: 10px;
    padding: 7px 6px 4px 34px;
    border: 1px solid #CCC;
    border-radius: 5px;
    cursor: pointer;
}

.modal-form .form-command .button:hover {
    background-color: #eeeeee;
}

.modal-form .form-command .button:last-child {
    margin-right: 0;
}

.modal-form .form-command .button.save {
    background-image: url('/theme/img/button-save.png');
}

.modal-form .form-command .button.cancel {
    background-image: url('/theme/img/button-cancel.png');
}

.modal-form .form-command .button.ok {
    background-image: url('/theme/img/button-ok.png');
}

@media (max-width: 768px) {
    .modal-form {
        overflow-y: auto;
    }

    .modal-form .form-content {
        width: 90%;

    }
}


/*----------------------------- COMMON DIALOG ---------------------------------*/

#common-dialog {
    z-index: 9999;
}

#common-dialog .form-content {
    width: 400px;
}

#common-dialog .form-body {
    min-height: 100px;
}

#common-dialog .button.ok {
    background-image: url('/theme/img/cm-dialog-ok.png');
}

#common-dialog .button.cancel {
    background-image: url('/theme/img/cm-dialog-cancel.png');
}

#common-dialog .button.close {
    background-image: url('/theme/img/cm-dialog-close.png');
}

@media (max-width: 768px) {
    #common-dialog .form-content {
        width: 90%;
    }
}


/*----------------------------- POPUP MENU ---------------------------------*/

.popup_menu {
    position: relative;
}

.popup_menu .list-item {
    display: none;
    position: absolute;
    right: 0;
}

.popup_menu .list-item .panel {
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    border: 1px solid #797979;
    overflow: hidden;
    background-color: rgba(255, 255, 255, .8);
}

.popup_menu .list-item .panel .item {
    padding: 5px 10px;
    border-bottom: 1px solid #cccccc;
    cursor: pointer;
    white-space: nowrap;
}

.popup_menu .list-item .panel .item:last-child {
    border-bottom: none;
}

.popup_menu .list-item .panel .item:hover {
    background-color: rgba(238, 238, 238, 0.8);
}


/*----------------------------- SIDEBAR ---------------------------------*/
#sidebar {
    position: fixed;
    height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
    border-right: 1px solid #797979;
    background-color: white;
    z-index: 999;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
}

#sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#sidebar .toggle {
    background-repeat: no-repeat;
    background-size: contain;
    width: 20px;
    height: 20px;
    cursor: pointer;
    justify-self: flex-end;
    margin-left: auto;
    border-radius: 3px;
}

#sidebar .toggle:hover {
    background-color: white;
}

#sidebar #sidebar-header {
    display: flex;
    padding: 5px;
}

#sidebar #sidebar-close {
    background-image: url("../img/sidebar-close.png");
}

#sidebar #sidebar-list {
    overflow: auto;
    max-height: 100%;
}

#sidebar #sidebar-list .group .title {
    background-image: url("../img/sidebar-group-icon.png");
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: 5px center, 0;
    background-color: #f5f5f5;
    padding: 10px 5px 10px 30px;
    display: flex;
    line-height: 20px;
    font-weight: bold;
}

#sidebar #sidebar-list .group .toggle {
    background-image: url("../img/sidebar-group-close.png");
}

#sidebar #sidebar-list .group.off > .sublist {
    display: none;
    overflow: hidden;
}

#sidebar #sidebar-list .group.off .toggle {
    background-image: url("../img/sidebar-group-open.png");
}

#sidebar #sidebar-list .item {
    background-image: url("../img/sidebar-item.png");
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: 5px center, 0;
    padding: 10px 5px 10px 30px;
}

#sidebar #sidebar-list .item:hover {
    background-color: #eeeeee;
}

#sidebar #sidebar-list .item.selected {
    background-color: #e9dc5b;
}