/* EXECUTE AND CONFIRM EXECUTE VIEW */

.masterdata-table-actions {
    line-height: 2.5em;
    margin-bottom: 1em;
}

.masterdata-table-actions .btn-group > a.btn {
    height: 2.7em;
    line-height: 1.8em;
}

.masterdata-table {
    margin: 1em 0;
}

.masterdata-table thead > tr > th {
    background: #0070D2 !important;
    color: white;
}

.masterdata-table tbody > tr > td {
    line-height: 2.5em;
    padding: 0.8em 0.8em 0 0.8em;
}

.masterdata-table tbody > tr > td .row-number {
    opacity:0.3;
    line-height: 2.5em;
}

.masterdata-table tbody > tr > td.empty-data {
    padding-bottom: 1em;
    background: white;
    font-style: italic;
}

.masterdata-table tbody > tr > td.change-preview li.old-value {
    color: #f6013d;
}

.masterdata-table tbody > tr > td.change-preview li.new-value {
    color: #59AD2F;
}

.masterdata-table tbody > tr > td.change-preview li.update-code i.fa-chevron-right {
    color: #0070D2;
}

pre.code {
    /* overflow: hidden; */
    white-space: pre-wrap;
    word-wrap: normal;
}

.mainContent > .block > .header > a  {
    margin-left: 1em;
}

.mainContent > .block > .header > a > .label {
    font-size: 1em;
    margin-right: 0.3em;
}

/* EDIT VIEW */

ul.nav.nav-tabs.full-width {
    border-bottom: none;
}

ul.nav.nav-tabs.full-width > li {
    margin-top: 1em;
    margin-bottom: 0px;
    width: 50%;
    display: inline-block;
    text-align: center;
    border-radius: 0;
}

ul.nav.nav-tabs.full-width > li > a {
    text-shadow: none;
    font-weight: bold;
}

ul.nav.nav-tabs.full-width > li > a:hover {
    background: rgba(245,222,179,0.2) !important;
    color: #0070D2 !important;
}

ul.nav.nav-tabs.full-width > li > a.active {
    background-color: white !important;
    border-bottom: 3px solid #0070D2 !important;
    color:#0070D2 !important;
}

/* VISUAL EDITOR VIEW */

.code-blocs-templates {
    height: 0;
    overflow: hidden;
}

.visual-editor {
    box-shadow: 0 1px 2px #CCC;
    position: relative;
}

.visual-editor.loading .code-bloc {
    opacity:0.3;
}

.visual-editor .lds-ring {
    display: none;
}

.visual-editor.loading .lds-ring {
    display: inline-block;
}

.visual-editor .code-bloc {
    position: relative;
    padding: 1em;
    margin: 0;
    border-bottom: 1px solid #DDD;
}

.visual-editor .code-bloc.condition {
    padding: 2em 0;
}

.visual-editor:not(.readonly) .code-bloc:hover {
    background: #f1fcff;
}

.visual-editor:not(.readonly) .code-bloc:hover:not(:last-of-type) {
    border-bottom: 1px solid #0070D2;
}

.visual-editor .code-bloc:last-of-type {
    border-bottom: 1px solid transparent;
}

.visual-editor .code-bloc h2 {
    color: #0070D2;
    font-size: 1em;
    border-bottom: 1px solid #0070D2;
    margin: 0 -0.7em 0.5em -0.7em;
    text-indent: 0.5em;
    font-style: italic;
    text-transform: uppercase;
    font-weight: bold;
}

.visual-editor .code-bloc.if .action-performed {
    line-height:2.5em;
}
.visual-editor .code-bloc.comment .input-group-addon {
    background: #fe2e9a;
}
.visual-editor .code-bloc.assignment .input-group-addon {
    background: #ffa500;
}
.visual-editor .code-bloc.if .input-group-addon {
    background: #008800;    
}

.visual-editor .code-bloc > .remove-code-bloc,
.visual-editor .code-bloc > .move-code-bloc {
    display: none;
    background: #D00;
    color: white;
    width: 2em;
    height: 1.6em;
    position: absolute;
    right: 1em;
    top: 0;
    text-align: center;
    line-height: 1.6em;
    border-radius: 0 0 0.5em 0.5em;
    z-index: 1;
}

.visual-editor .code-bloc > .move-code-bloc {
    background: #0070D2;
    color: white;
}

.visual-editor .code-bloc > .move-code-bloc.down {
    right: 6.2em;
    border-radius: 0 0 0 0.5em;
    border-right: 1px solid white;
}
.visual-editor .code-bloc > .move-code-bloc.up {
    right: 4em;
    border-radius: 0 0 0.5em 0;
}

.visual-editor .code-bloc:hover > .remove-code-bloc,
.visual-editor .code-bloc:hover > .move-code-bloc {
    display: block;
}

.visual-editor .code-bloc:first-of-type > .move-code-bloc.up,
.visual-editor .code-bloc:last-of-type > .move-code-bloc.down {
    opacity: 0.3;
    background: #333;
}

.visual-editor .code-bloc.condition:not(:first-of-type)::before {
    content: 'AND';
    position: absolute;
    top: -1em;
    left: 0;
    background: white;
    padding: 0.3em;
    color: #0070D2;
    font-style: italic;
    text-transform: uppercase;
    font-weight: bold;
}
.visual-editor .code-bloc:hover .code-bloc.condition:not(:first-of-type)::before {
    background: #f1fcff;
}

.visual-editor .code-bloc .linked-table-field-container .input-group .input-group-addon:last-of-type  {
    min-width: 0;
    padding: 0.4em;
    color: #008800;
    background: transparent;
}

.visual-editor-add-container {
    position: relative;
    background: rgba(0,136,0,0.5);
    padding: 2em 1em 1em 1em;
    border-radius: 0 0 0.5em 0.5em;
    box-shadow: inset 0 -2px 3px #666;
}

.visual-editor-add-container .title .fa.fa-plus {
    background: white;
    color: #0070D2;
    display: block;
    width: 3em;
    height: 1.4em;
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    text-align: center;
    transform: translateX(-50%);
    border-radius: 0 0 1em 1em;
    box-shadow: 0 3px 3px #666;
}

/* CONTENT LOADER */

.lds-ring {
    display: inline-block;
    position: absolute;
    width: 64px;
    height: 64px;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}
.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 51px;
    height: 51px;
    margin: 6px;
    border: 6px solid #0070D2;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #0070D2 transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}
@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* MASTERDATA - FOLDERS */

.masterdata-folders-breadcrumb a.active {
    color: #f68b1f;
}

.masterdata-breadcrumb > .header > a,
.masterdata-folders-breadcrumb > .header > a {
    margin-left: 0.5em;
    position: relative;
    top: -0.1em;
}

.masterdata-folders {
    max-width: 1024px;
    margin: 0 auto;
}
  
.masterdata-folders .folder {
    padding: 0.5em 0 0.5em 1em;
    border-left: 1px dashed #999;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background:rgba(200,200,200,0.1);
    margin-left:3px;
}

.masterdata-folders > .folder {
    border-right: 1px dashed #999;
}

.masterdata-folders .folder > h2 {
    color: #0070D2;
    font-size: 1em;
    border-bottom: 1px solid #0070D2;
    margin: 0 0 0.5em -1em;
    text-indent: 0.5em;
    font-style: italic;
    text-transform: uppercase;
    font-weight: bold;
}

.masterdata-folders .folder.selected > h2 {
    color: #f68b1f;
    border-bottom: 1px solid #f68b1f;
}

.masterdata-folders .script {
    padding: 0.5em 0 0.5em 1em;
}

.masterdata-folders .script:nth-child(even) {
    background: rgba(255,255,255,0.5);
}

.masterdata-folders .script > h2 {
    font-size: 1em;
    margin-bottom: 0;
    position: relative;
}

.masterdata-folders .script > h2 > .fa {
    color: #0070D2;
}

.masterdata-folders .script > h2 > .actions {
    display:none;
}

.masterdata-folders .script > h2 > .last-execution-date,
.masterdata-folders .folder > h2 > .last-execution-date,
.masterdata-folders .script > h2 > .last-preview-date,
.masterdata-folders .folder > h2 > .last-preview-date {
    font-style: italic;
    color: rgba(0,0,0,0.2);
    text-transform: capitalize;
    font-weight: normal;
}

.masterdata-folders .folder.selected > .script > h2 > .actions {
    display: block;
    clear: both;
    position: absolute;
    right: 1em;
    top: -0.35em;
}

.masterdata-folders .folder > .add-new-element {
    border: 1px dashed rgba(200,200,200,0.7);
    border-radius: 4px;
    margin: 0;
    height:0;
    overflow: hidden;
    transition: all 0.2s;
    text-align: right;
    background: rgba(0,0,0,0.05);
    padding: 0;
}

.masterdata-folders .folder.selected {
    border-left: 4px solid #f68b1f;
    border-bottom: 1px solid #f68b1f;
    margin-left:0;
}

.masterdata-folders .folder.hovered {
    border-left: 4px solid #0070D2;
    margin-left:0;
}

.masterdata-folders .folder.selected > .add-new-element {
    height: 3em;
    margin:1em 0 0.5em 0;
    padding: 0.3em 0.6em;
}
.masterdata-folders .folder > .add-new-element > .btn-group > .btn.label {
    pointer-events: none;
}

.masterdata-folders .folder > .add-new-element > .btn-group > .btn,
.masterdata-folders .folder > .script .actions > .btn-group > .btn {
    font-weight: normal;
    margin:0.2em 0;
}

.masterdata-folders .folder > .add-new-element > .btn-group > .btn:not(.btn-default),
.masterdata-folders .folder > .script .actions > .btn-group > .btn:not(.btn-default) {
    color: white;
}

.masterdata-folders .folder > .add-new-element > .btn-group:last-of-type {
    margin-left: 2em;
}