.item-list {
    list-style: none;
    margin: 0;
    overflow: auto;
    padding: 0;
}

.item-list>li {
    border-radius: 2px;
    background-color: #f8f9fa;
    border-left: 2px solid #e9ecef;
    color: #495057;
    margin-bottom: 2px;
    padding: 10px;
}

.item-list .handle {
    cursor: move;
    display: inline-block;
    margin: 0 5px;
}

.item-list>li .tools {
    color: #dc3545;
    display: none;
    float: right;
}

.item-list>li:hover .tools {
    display: inline-block;
}

.item-list>li .tools>.fa, .item-list>li .tools>.fab, .item-list>li .tools>.fad, .item-list>li .tools>.fal, .item-list>li .tools>.far, .item-list>li .tools>.fas, .item-list>li .tools>.ion, .item-list>li .tools>.svg-inline--fa {
    cursor: pointer;
    margin-right: 5px;
}


.item-container{
/*    display: none;*/
}
.item-container pre{
    
    text-wrap: wrap;
}

.contentSection{
    position: relative;
    margin-top: 20px;

}

.contentSection.description_text .title{
    border-bottom: 1px solid #2b6ab1;
    color: #2b6ab1;
}

.contentSection .content{
}

.itemImages img{
    max-width: 300px;
    max-height: 260px;
    margin: 1.2em auto;
}

.item-table-title{
    background-color: #2b6ab1;
    color: #fff;
    margin-top: 30px;
    text-align: center;
    font-weight: bold;
    padding: 0.5rem;
    flex: 1 1 auto;
    border: 1px solid #444;
    border-bottom: none;
    position: relative;
}

.table_old .item-table-title{
    border-color: #F00;
}

.item-table-row { 
    position: relative;
    display: flex;
    flex-direction: row;
}

.item-table-row .editable,
.add-item-table-row-container{
    flex: 1 1 70%;
    border: 1px solid #444;
    padding: 0.5rem;
}
.item-table-row .item-value{
    flex: 0 1 30%;
    text-align: center;
}

.item-table-row .editable + .editable{
    border-left: none;
}

.item-table-row + .item-table-row>.editable:not(.title){
    border-top: none;
} 

.item-table-row [data-type=tab1]{
    padding-left: 2rem;
}

.item-table-row [data-type=tab2]{
    padding-left: 2.8rem;
}

.item-table-row [data-type=norow]{
    border: none;
    text-align: center;
}

.item-table-row [data-type=norowleft]{
    border: none;
}
 
.item-table-row [data-type=subtitle] {
    background-color: #e8f1f8;
    font-weight: bold;
}

.item-table-row [data-type=subtitle] + .item-value{
    background-color: #e8f1f8;
    font-weight: bold;
}

.item-text[data-align=left]{
    text-align: left;
} 

.item-text[data-align=center]{
    text-align: center;
} 

.item-text[data-align=right]{
    text-align: right;
} 

.carousel-indicators {
    top: calc(100% - 13px);
}

.carousel-indicators li{
    background-color: #2b6ab1;
}

.carousel-control-next, .carousel-control-prev{
    color: #2b6ab1 !important;
}

.drag-handler {
    opacity: .4;
    cursor: move;
}

.drag-handler:hover, 
.drag-handler:active {
    opacity: 1;
}
/*
.card-tools .btn{
    display: inline-block;
}*/

.on-edit{
    display: none;
}

.edit .on-edit{
    display: block;
}

.edit .card-tools .on-edit{
    display: inline-block;
}

.edit .off-edit{
    display: none;
}


/*
.btn[data-widget="edit-cancel"]{ display:none; }
.btn[data-widget="edit-save"]{display:none; }*/


.btn *{
    pointer-events: none;
}
 
.edit-item-toggle{
    display: none;
}


/*.item-container[data-item-id] .edit-item-toggle{
}

.edit .btn[data-widget="edit-toggle"]{
    display: none;
}

.edit .btn[data-widget="edit-save"]{
    display: inline-block;
}

.edit .btn[data-widget="edit-cancel"]{
    display: inline-block;
}
*/

.contentSection.ui-sortable-placeholder {
    border: 1px dashed rgb(63, 63, 63);
    visibility: visible !important;
}



.contentSection-drag-handler,
.item-table-row-drag-handler{
    position: absolute;
    top: 10px;
    right: calc(100% + 3px);
}

.trash-contentSection{
    position: absolute;
    top: 10px;
    left: calc(100% - 0.5rem)
}

.btn-branch{
    color: #fff !important;
    opacity: .4; 
}

.btn-branch:hover,
.btn-branch:active{
    opacity: 1; 
}

.tab-drag-handler{
    position: absolute;
    left: 5px;
    top: -5px;
}


.trash-item-table-row{
    position: absolute;
    top: 0px;
    margin: 0;
    height: 100%;
    left: calc(100% - 0.3rem);
}



.contentSection.table .ghost-hover{
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: #fffeee;
    display: none;
}

.edit .contentSection.table .on-edit:hover ~ .ghost-hover{
    display: block;
}

.editable{
    cursor: default;
}

.edit .editable{
    cursor: text;
}
/*.edit .editable:hover,
.edit .editable.editing{
    background-color: #fffeee;
    color: #000;
}*/

/*.edit .contentSection:not(.table):hover ,
.edit .item-table-row:hover ,*/
.ui-sortable-helper{
    background-color: #fffeee;
}

.ui-sortable-helper * {
    pointer-events: none;
}

.edit-section-container{
    display: none;
}

.item-container.edit + .edit-section-container{
    display: block;
}


.note-editor .note-editing-area .note-editable sup,
.note-editor .note-editing-area .note-editable sub {
    vertical-align: unset;
}

[contenteditable] {
  outline: 0px solid transparent;
}

.editable{
    white-space: pre-wrap;
}

.editable p{
    padding: 0 !important;
    margin: 0 !important;
}

.nav-item{
    position: relative;
}

.nav-item:only-child{
    display: none;
}


.nav-link{ 
    display: flex; 
}


.modified .btn-save{
    color: #ffc107;
}

#gtx-trans{
    display: none !important;
}

.nav{
    border-bottom: none;    
}

.nav-tabs .nav-link {
    border: 1px solid;
    border-color: #efefef #efefef transparent;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-color: rgba(0,0,0,.125) rgba(0,0,0,.125) #fff;
}

.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover {
    border-color: rgba(0,0,0,.125) rgba(0,0,0,.125) transparent;
}

.nav-container{
    display: flex;
    border-bottom: 1px solid rgba(0,0,0,.125);
}

.add-tab{

}
 


.edit-item-add{
    flex: 1;
}

.nav-container .dropdown-submenu>.dropdown-menu {
    right: 100%;
    left: auto;
    margin-right: -0.275rem;
}


.dropdown-item{
    cursor: pointer;
}

.item-table-row + .add-item-table-row-container{
    border-top: none;
}

.add-item-table-row-container{
    text-align: center;
}

.editable{
    pointer-events: none;
}
.edit .editable{
    pointer-events: auto;
}

.dropdown-header{
    text-align: left;
    font-weight: bold;
    font-size: .6em;
}

.tab-pane:empty{
    min-height: 100px;
}

.carousel-inner:empty:after{
    content: "Nessuna immagine";
    width: 260px;
    height: 260px;
    background-color: #eee;
    color: #333;
    line-height: 260px;
    text-align: center;
    margin: 20px auto;
    border-radius: 10px;
}

.carousel-inner-edit{
    position: relative;
    width: 100%;
    height: 300px;
}

.carousel-inner-edit img{
    width: 60px;
    height: 60px;
}

.carousel-inner-edit .carousel-item{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 10px 5px;
    background-origin: content-box;
    padding: 10px;
    position: relative;
    cursor: pointer;
}

.carousel-inner-edit .carousel-item .add-img{
    font-size: 1.4em;
    margin: 0;
}

.carousel-inner-edit .carousel-item .trash-img{
    position: absolute;
    top: 10px;
    right: 0px;
}

.carousel-control,
.carousel-indicators{
    display: none;
}

.carousel-control.multiple ,
.carousel-indicators.multiple {
    display: flex;
}

.edit .carousel-control,
.edit .carousel-indicators{
    display: none;
}

.carousel-inner .carousel-item.active {
    display: flex;
    min-height: 300px;
    align-items: center;
    justify-content: center;
}

#tavolozza{
    display: none;
    position: absolute;
    padding: 4px;
    border: 1px solid #888;
    background-color: #bbb;
    border-radius: 4px;
    z-index: 10000;
}


.note-btn-group.magic-group,
.note-btn-group.indent-group,
.note-btn-group.align-group{ display:none; }

.magic-group .magic-group,
.indent-group .indent-group,
.align-group .align-group{ display: inline-flex; }