body {
    color: #333333;
    font-size: 12px;
    font-family: Arial, Helvetica, Sans-serif;
    background: url(/img/bgs/bg_main.png);
    max-width: 1800px;
    margin: 0 auto;
    cursor: default;
}

table {
    empty-cells: show;
}

a {
    color: #222;
    text-decoration: none;
}

a:hover {
    color: #D54E21;
}

a.active {
    color: #D54E21;
}

input,
select,
textarea {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 1px;
}

.link_inpt {
    position: absolute;
    right: 14px;
    bottom: 14px;

}

.textarea .link_inpt {
    bottom: 17px;
}

.nw-table-content.pd .link_inpt {
    bottom: 12px;
}

/* -------------------------------------------------------------------------------------------------------------------------------- */

#top_menu_box {
    width: 100%;
    height: 42px;
    margin: 10px 0;
    border: 1px solid #333333;
    background: -moz-linear-gradient(top, #333333 0%, #111111 100%);
    background: -webkit-linear-gradient(top, #333333 0%, #111111 100%);
    background: -o-linear-gradient(top, #333333 0%, #111111 100%);
    background: -ms-linear-gradient(top, #333333 0%, #111111 100%);
    background: linear-gradient(top, #333333 0%, #111111 100%);
    box-shadow: 0px 5px 10px #AFAEAE;
}

#top_menu_r a {
    float: left;
    margin: 6px;
}

#top_menu>ul {
    z-index: 10000;
    width: 100%;
}

#top_menu a,
#js__tutoriale {
    color: #999999;
    font-weight: bold;
    text-decoration: none;
    line-height: 18px;
    display: block;
    cursor: pointer;
}

#top_menu li:hover>a,
#top_menu li:hover>#js__tutoriale {
    color: #FFFFFF;
}

#top_menu a.current,
#js__tutoriale.current {
    color: #FFFFFF;
}


#top_menu>ul>li {
    float: left;
    position: relative;
    padding: 12px 0;
}

#top_menu>ul>li:last-child a,
#js__tutoriale {
    border-right: none;
}

#top_menu>ul>li>a,
#js__tutoriale {
    border-right: 1px dotted #666666;
    padding: 0 20px;
}

.tutorial-item {
    display: flex;
    align-items: center;
    font-size: 15px;
    margin: 10px;
    margin-left: 15px !important;
    max-width: 450px;
}

.tutorial-item .youtube-logo {
    position: relative;
    background-color: #ff0000;
    width: 45px;
    min-width: 45px;
    height: 30px;
    border-radius: 10px / 17px;
    margin-right: 15px;
}

.tutorial-item .youtube-logo:after {
    content: "";
    position: absolute;
    border-style: solid;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent #fff;
    left: calc(50% + 2px);
    top: 50%;
    transform: translate(-50%, -50%);
}

.tutorial-title {
    font-size: 20px;
    font-weight: bold;
}

.tutorial-items {
    padding: 10px;
    background-color: #F8F8F8;
}

#top_menu>ul>li>ul {
    display: none;
    position: absolute;
    left: -1px;
    top: 100%;
    width: 180px;
    background: #111111;
    opacity: 0.9;
    box-shadow: 0px 5px 10px #AFAEAE;
    z-index: 10000;
}

#top_menu>ul>li>ul>li>a {
    line-height: 30px;
    padding: 0 10px;
    font-size: 95%;
}

#top_menu>ul>li>ul>li>a:hover {
    background: #000000;
}

#top_menu>ul>li:hover>ul {
    display: block;
}

#top_menu>ul::before,
#top_menu>ul::after {
    display: table;
    content: "";
}

#top_menu>ul::after {
    clear: both;
}

#top_buttons {
    margin-bottom: 10px;
}

/* -------------------------------------------------------------------------------------------------------------------------------- */

.nw-table {
    box-shadow: 0px 5px 10px #AFAEAE;
    background-color: #FFFFFF;
    margin-bottom: 20px;
}

.nw-table-title {
    height: 35px;
    background: #EEEEEE;
    background: -moz-linear-gradient(top, bottom, #EEEEEE, #E0E0E0);
    background: -webkit-linear-gradient(top, bottom, #EEEEEE, #E0E0E0);
    background: -o-linear-gradient(top, bottom, #EEEEEE, #E0E0E0);
    background: -ms-linear-gradient(top, bottom, #EEEEEE, #E0E0E0);
    background: linear-gradient(top, bottom, #EEEEEE, #E0E0E0);
    color: #2C2C2C;
    text-shadow: 0px 1px white;
    font-weight: bold;
    line-height: 34px;
    padding: 0 10px;
}

.nw-table-title::before,
.nw-table-title::after {
    display: table;
    content: "";
}

.nw-table-title::after {
    clear: both;
}

.nw-table-content {
    border-top: 1px solid #FFFFFF;
    border-bottom: 1px solid #EEEEEE;
    background-color: #F8F8F8;
}

.nw-table-footer {
    border-top: 1px solid #FFFFFF;
    padding: 10px;
    background-color: #F8F8F8;
}

.nw-table-footer::before,
.nw-table-footer::after {
    display: table;
    content: "";
}

.nw-table-footer::after {
    clear: both;
}

.nw-list div {
    padding: 5px 2px;
    border-bottom: 1px solid #EEE;
    border-top: 1px solid #FFF;
    line-height: 20px;
}

.nw-list div.head {
    font-weight: bold;
}

.nw-list div:first-child {
    border-top: none;
}

.nw-list div:last-child {
    border-bottom: none;
}

.nw-table table.lst {
    width: 100%;
    border-collapse: separate;
}

.nw-table table.lst thead tr th {
    border-bottom: 1px solid #BDBDBD;
    text-align: left;
    padding: 0 2px;
    padding-bottom: 6px;
    vertical-align: middle;
}

.nw-table table.lst thead tr th a {
    padding-right: 20px;
    background: url('/img/ico/sort_both.png') no-repeat center right;
}

.nw-table table.lst thead tr th a.asc {
    background: url('/img/ico/sort_desc.png') no-repeat center right;
}

.nw-table table.lst thead tr th a.desc {
    background: url('/img/ico/sort_asc.png') no-repeat center right;
}

.nw-table table.lst tbody tr td {
    height: 30px;
    vertical-align: middle;
    border-bottom: 1px solid #DADADA;
    border-top: 1px solid #FFFFFF;
    padding: 2px 2px;

}

.nw-table table.lst tbody tr td {
    overflow: hidden;
    white-space: nowrap;
}

.nw-table table.lst {
    table-layout: fixed;
}

.nw-table table.lst tbody tr:hover td {
    background-color: #EAEAEA !important;
    border-bottom: 1px solid #CACACA;
    border-top: 1px solid #E2E2E2;
}

.nw-table table.lst tbody tr.altrow td {
    background-color: #F0F0F0;
}



/* -------------------------------------------------------------------------------------------------------------------------------- */

.tabs-left {
    position: relative;
    padding-left: 200px
}

.tabs-left.ui-widget-content {
    border: none;
    background: none;
    color: inherit !important;
}

.tabs-left .ui-tabs-nav {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 200px;
    padding: 0;
    border: none;
    border-right: 1px solid #EEEEEE;
    background: #FFFFFF;
}

.tabs-left .ui-tabs-nav li {
    width: 201px;
    border: none;
    overflow: hidden;
    margin: 0;
    background: none;
    border-bottom: 1px solid #EEEEEE;
}

.tabs-left .ui-tabs-nav li.ui-tabs-selected,
.tabs-left .ui-tabs-nav li.ui-state-active {
    background: #F8F8F8;
    margin: 0;
    padding: 0;
}

.tabs-left .ui-tabs-nav li a {
    width: 100%;
    text-align: left;
    padding: 1em 1em;
    font-weight: bold;
}

.tabs-left>div {
    min-height: 35em;
}

/* -------------------------------------------------------------------------------------------------------------------------------- */

form .nw-table-footer {
    text-align: right;
}

form div.input {
    position: relative;
    width: 100%;
    display: block;
    padding: 7px 10px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

form div.submit {
    position: relative;
    width: 100%;
    display: block;
    padding: 7px 10px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}



form .tabs-left div.input,
.ajx_window form div.input,
form .nw-table-form div.input {
    float: left;
    padding: 10px;
    border-bottom: 1px solid #EEEEEE;
    -moz-box-shadow: 0px 1px 0px #FFFFFF;
    /* Firefox 3.6 and earlier */
    -webkit-box-shadow: 0px 1px 0px #FFFFFF;
    /* Safari and Chrome */
    box-shadow: 0px 1px 0px #FFFFFF;
}

form .n2,
form .n3,
form .n4,
form .n5,
form .n6,
form .n7,
form .n8 {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-bottom: 1px solid #EEEEEE;
    -moz-box-shadow: 0px 1px 0px #FFFFFF;
    /* Firefox 3.6 and earlier */
    -webkit-box-shadow: 0px 1px 0px #FFFFFF;
    /* Safari and Chrome */
    box-shadow: 0px 1px 0px #FFFFFF;
}

form .n2 div.input,
form .n3 div.input,
form .n4 div.input,
form .n5 div.input,
form .n6 div.input,
form .n7 div.input,
form .n8 div.input {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
    border-bottom: none;
    -moz-box-shadow: none;
    /* Firefox 3.6 and earlier */
    -webkit-box-shadow: none;
    /* Safari and Chrome */
    box-shadow: none;
}

form .n2 div.input {
    width: 50%;
}

form .n3 div.input {
    width: 33.33%;
}

form .n4 div.input {
    width: 25%;
}

form .n5 div.input {
    width: 20%;
}

form .n6 div.input {
    width: 16.66%;
}

form .n7 div.input {
    width: 12%;
}

form .n8 div.input {
    width: 10%;
}

form .n2 fieldset {
    width: 45%;
    float: left;
    margin-right: 2%;
}

form .n3 fieldset {
    width: 30%;
    float: left;
    margin-right: 1%;
}

form div.input label a {
    font-weight: normal;
    font-size: 90%;
    margin-top: -3px;
}

form div.input label {
    font-weight: bold;
    display: block;
    margin: 1px;
    overflow: hidden;
    white-space: nowrap;
}

form div.input input {
    width: 100%;
    padding: 4px 3px;
    border: 1px solid #D4D4D4;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background: #FFFFFF;
}

form div.input.checkbox input {
    width: inherit;
}

form div.input_checkbox {
    float: left;
    padding: 3px 10px;
    margin-right: 10px;
    border: 1px solid #CCC;
}

form div.input.radio input {
    width: inherit;
}

form div.input.file input {
    padding: 1px 1px;
}

form div.input select {
    width: 100%;
    padding: 3px;
    border: 1px solid #D4D4D4;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background: #FFFFFF;
}

form select[id*="ObjItemListExtraPublished"] option {
    background: #fff;
}

form select[id*="ObjItemListExtraPublished"] option[value='0'] {
    background: #d7d7d7;
}

/* form select[id*="ObjItemListExtraPublished"] option[value='3'],
form select[id*="ObjItemListExtraPublished"] option[value='2'] {
    background: #f4f79d;
} */

form select[id*="ObjItemListExtraPublished"] option[value='1'] {
    background: #ff9435;
}

form select[id*="ObjItemListExtraPublished"] option[value='5'] {
    background: #2cbc63;
}



form div.input textarea {
    width: 100%;
    padding: 3px;
    border: 1px solid #D4D4D4;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background: #FFFFFF;
}

form div.input .ui-multiselect {
    width: 100%;
    padding: 2px 4px;
    padding-top: 4px;
    padding-left: 7px;
    border: 1px solid #D4D4D4;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background: #FFFFFF;
}

form div.input textarea.redactor {
    height: 200px;
}

form div.input .redactor_box {
    margin: 3px 0;
}

form div.input input.req,
form div.input select.req,
form div.input textarea.req {
    border-left: 3px solid #D4D4D4;
}

form div.input.error input,
form div.input.error select,
form div.input.error textarea {
    border-color: #B50009;
}

form div.error-message {
    position: absolute;
    top: 5px;
    right: 10px;
    background: #B50009;
    color: #FFFFFF;
    padding: 5px;
    overflow: hidden;
    white-space: nowrap;
    max-width: 90%;
}

input[type="checkbox"] {
    margin: 2px;
}

input[type="file"] {
    width: auto !important;
}

form div.input.datetime select {
    width: auto !important;
}

/* -------------------------------------------------------------------------------------------------------------------------------- */

.nw-table table {
    width: 100%;
    border-collapse: separate;
    table-layout: fixed;
}

.nw-table table th {
    font-weight: bold;
    padding: 0 2px;
    padding-bottom: 6px;
    vertical-align: middle;
}

.nw-table th a {
    padding-right: 20px;
    background: url('/ico/sort_both.png') no-repeat center right;
}

.nw-table th a.asc {
    background: url('/ico/sort_desc.png') no-repeat center right;
}

.nw-table th a.desc {
    background: url('/ico/sort_asc.png') no-repeat center right;
}

.nw-table table td {
    vertical-align: middle;
    padding: 6px 2px;
    border-top: 1px solid #FFFFFF;
    -moz-box-shadow: 0px -1px 0px #EEEEEE;
    /* Firefox 3.6 and earlier */
    -webkit-box-shadow: 0px -1px 0px #EEEEEE;
    /* Safari and Chrome */
    box-shadow: 0px -1px 0px #EEEEEE;
}

.nw-table table td {
    overflow: hidden;
    white-space: nowrap;
    height: 25px;
}

.nw-table table tr:nth-child(2n+1) td {
    background: url('/img/bgs/d_dots.png');
}

.nw-table table tr:hover td {
    background: url('/img/bgs/c_dots.png') !important;
}

.nw-table table tr.altrow td {
    background-color: #F0F0F0;
}

.nw-table table input,
.nw-table table select {
    width: 90%;
}

/* -------------------------------------------------------------------------------------------------------------------------------- */

.pagination {
    text-align: right;
}

.pagination a,
.pagination .current {
    display: inline-block;
    height: 20px;
    width: 20px;
    line-height: 20px;
    border: 1px solid #DAD9D9;
    text-align: center;
    text-decoration: none;
    color: #646161;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    -khtml-border-radius: 3px;
    border-radius: 3px 3px 3px 3px;
    margin: 0 2px;
}

.pagination a.next,
.pagination a.prev {
    border: none;
    width: 10px;
}

.pagination a.current,
.pagination a:hover,
.pagination .current {
    color: #2a65a0;
}

.pagination a.next:hover,
.pagination a.prev:hover {
    color: #2a65a0;
}

/* -------------------------------------------------------------------------------------------------------------------------------- */


fieldset {
    border: 1px solid #D4D4D4;
    border-radius: 0.2em;
    padding: 10px;
}

fieldset legend {
    padding: 5px;
    font-weight: bold;
}

.admin_permissions .button {
    float: left;
    width: 16.6%;
    margin: 4px 5px;
}

/* -------------------------------------------------------------------------------------------------------------------------------- */


.attachments_box>div:first-child {
    border: 1px dotted #CCCCCC;
}

.attachments_box>div .Attach {
    width: 95px;
    height: 72px;
}

.attachments_box>div .Attach>span {
    color: #F0F0F0;
    font-weight: bold;
    text-shadow: 0 0 5px #333333;
    position: absolute;
    left: 5px;
    top: 5px;
}

.attachments_box>div .Attach>span:before {
    content: "GALLERY";
}

.attachments_box>div:first-child .Attach>span:before {
    content: "MAIN";
}

.attachments_box>div {
    cursor: move;
}

.attachments_box>div:first-child {
    background: url('/ico/star.png') right 3px 3px no-repeat;
}

.transp_black {
    background: #181818;
    color: #CCCCCC;
    border-color: #2B2B2B;
}

.pop_menu {
    display: none;
    position: absolute;
    padding: 5px;
    background-color: #FFFFFF;
    border: 1px solid #CCCCCC;
    margin-top: -20px;
    margin-left: 85px;
}

.hidden {
    display: none !important;
}

.input.ai_input-wrapper-checkbox {
    display: flex;
    align-items: center;
    max-width: fit-content;
    cursor: pointer;
}

.input.ai_input-wrapper-checkbox>* {
    cursor: pointer;
}

.input.ai_input-wrapper-checkbox input {
    width: fit-content !important;
    margin-right: 5px;
}

.ai-module-wrapper .buttons-wrapper {
    padding-left: 10px;
}

.ai-module-wrapper .inputs-wrapper input {
    max-width: calc(100% - 93px);
    margin-right: 10px;
}

.ai-module-wrapper .inputs-wrapper .input {
    max-width: 854px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.ai-module-wrapper .inputs-wrapper .textarea .button {
    margin-left: 10px;
}

.ai-module-wrapper .inputs-wrapper .input label {
    flex: 1 0 100%;
    margin-bottom: 5px;
}

.ai-module-wrapper .buttons-wrapper .button.inactive {
    opacity: .5;
    pointer-events: none;
}

.js__for-iframe {
    background-color: red;
    padding: 50px 20px;
    color: #fff;
    border-radius: 10px;
}

.ai-module-wrapper {
    background: #efefef;
}

.ai-module-wrapper .inputs-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 880px;
}

.textarea-wrapper-gallery {
    max-width: 1140px;
    display: flex;
}

div#gallery_to_drag_images {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    max-height: 601px;
}

div#gallery_to_drag_images .gallery_to_drag_image {
    margin: 10px;

}

div#gallery_to_drag_images .gallery_to_drag_image img {
    max-width: 150px;
}

div#gallery_to_drag_images .gallery_to_drag_file {
    display: flex;
    align-items: center;
    max-width: 150px;
    margin: 10px;
}

div#gallery_to_drag_images .gallery_to_drag_file img {
    width: 40px;
    margin-right: 5px;
}

div#gallery_to_drag_images .gallery_to_drag_file p {
    max-width: 100px;
    word-wrap: break-word;
}

form .tabs-left div.input.gallery-for-news {
    max-width: 360px;
}

.gallery-img-drag {
    height: 100px;
    width: 150px;
    background-position: center;
    background-size: contain;
}

.translate-news-body-gallery .textarea-wrapper-gallery #gallery_to_drag_images {
    max-height: 750px;
}

.translate-news-body-gallery .textarea-wrapper-gallery #gallery_to_drag_images .gallery_to_drag_image img {
    max-width: 120px;
}

.translate-news-body-gallery .textarea-wrapper-gallery div.input.gallery-for-news {
    padding: 0;
}

.translate-news-body-gallery .textarea-wrapper-gallery div.input.gallery-for-news label {
    margin-left: 10px;
}

@media screen and (max-width: 1460px) {
    .tabs-left.ui-widget-content {
        display: flex;
        flex-direction: column;
        padding-left: 0;
    }

    .tabs-left .ui-tabs-nav {
        position: relative;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #EEEEEE;
        display: flex;
        margin-bottom: 20px;
    }

    .textarea-wrapper-gallery {
        display: flex;
        flex-direction: column-reverse;
        flex-wrap: wrap;
    }

    form .tabs-left div.input.gallery-for-news {
        max-width: 100% !important;
    }

    div#gallery_to_drag_images .gallery_to_drag_image {
        max-width: 130px;
    }

    div#gallery_to_drag_images .gallery_to_drag_image img {
        max-width: 130px !important;
    }

    div#gallery_to_drag_images {
        flex-direction: row !important;
        max-height: unset !important;
    }

    form .n2 div.input {
        width: 100%;
    }

    form .n4 div.input {
        width: 50%;
    }

    .ui-tabs .ui-tabs-panel {
        padding: 1em 0;
    }
}

.translate-news-body-gallery .cke_contents {
    height: 600px !important;
}

.translate-checkbox-wrapper {
    float: left;
    margin-left: 70px;
    margin-top: 27px;
    display: flex;
    align-items: center;
}

.translate-checkbox-wrapper .title-translate {
    font-weight: bold;
    margin-bottom: 2px;
}

.translate-checkbox-wrapper label {
    display: flex;
    align-items: center;
    font-weight: bold;
    margin-left: 10px;
    cursor: pointer;
}

.translate-checkbox-wrapper label.disabeled-label {
    cursor: not-allowed;
    opacity: .5;
    pointer-events: none;
}

.translate-checkbox-wrapper input {
    margin-right: 3px;
}