/* @TODO: Should be managed with dynamic css */
/*
.formatA4{
    max-width: 24cm;
    width: 24cm;
    min-height: 37.74cm;

    padding: 2.53cm ;
}
/**/

.row [class^='col']{
/*    display: grid; /**/
}

        
.ebea-single-row.collectable [data-id^='advanced_search_container_searchFilters']:first-child, 
#advanced_search_container-searchFilters-draggable [data-id^='advanced_search_container']:first-child [data-id$='logicalOperator']:first-child{
    opacity: 0;
}

.e-rowcell .badge{
    vertical-align: middle;
}

.flagkit{
    margin: 0 4px 2px 0;
    width: 16px;
}

/* TinyMCE */

#tinymce p{
    font-size: 14px;
    line-height: 1.2rem;
    margin: 0 !important;
}

/* */

form textarea{
    min-height: 200px;
}

.form-content.placeholder{
    min-height: 80px;
}

/* CK Editor */

.document-editor{
    min-height: 700px;
}

.document-editor__editable{
    margin: 0 auto;
}

/* Sortable */

.draggable.shareable{
    display: table;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    box-sizing: unset;
    margin: 5px 0;
    padding: 10px 20px;
    height: 100%;
}

.ebea-single-row.draggable.shareable{
    min-width: 250px;
}

.column-wrapper > .ebea-single-row.draggable.shareable{
    display: block;
}

.draggable > .column-wrapper > .ebea-single-row.draggable.shareable{
    max-width: 300px;
}

:not(.draggable) > .column-wrapper{
    flex-grow: 1 !important;
    margin-bottom: 20px;
}

/* EJ2 Component */

.color-box{
    margin:auto;
    width:0;
    padding:10px;
    border: 1px solid #999;
}

.e-rowcell .default-grid-object-cell:not(:last-child):after{
    content: ",";
}

/* Form */

.toggle-password{
    right: 10px;
    position: absolute;
    top: 12px;
}

.form-group {
    position: relative;
}

form select.selectize{
    visibility: hidden !important;
    display: block;
    height: 40px !important;
    max-height: 40px !important;
}

.selectize-input{
    -webkit-box-shadow: none;
    box-shadow: none;
}

.selectize-control.multi .selectize-input [data-value],
.selectize-control.multi .selectize-input [data-value].active
{
    text-shadow: 0 1px 0 rgba(0, 51, 83, 0.3);
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    background-color: #6c757d !important;
    border: 1px #ccc !important;
    /*
    background-image: -moz-linear-gradient(top, #1da7ee, #178ee9);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#1da7ee), to(#178ee9));
    background-image: -webkit-linear-gradient(top, #1da7ee, #178ee9);
    background-image: -o-linear-gradient(top, #1da7ee, #178ee9);
    background-image: linear-gradient(to bottom, #1da7ee, #178ee9);
    /**/
    background-image: none;
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff1da7ee', endColorstr='#ff178ee9', GradientType=0);
    -webkit-box-shadow: 0 1px 0 rgba(0,0,0,0.2), inset 0 1px rgba(255,255,255,0.03);
    box-shadow: 0 1px 0 rgba(0,0,0,0.2), inset 0 1px rgba(255,255,255,0.03);
}

.create-btn{
    padding: 0 5px;
}

.ebea-form-widget{
    position: relative;
}

.ebea-form-widget input[type="file"] {
    opacity: 0;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    z-index: 100;
}

.ebea-form-widget .remove-button{
    position: absolute;
    right: -5px;
    top: -5px;
}

.flatpickr-wrapper{
    width: 100%;
}

.file-path.validate{
    display: block;
    background: none;
}

.d-none{
    display: none;
}

.inline > label{
    display: block;
}

.inline .form-check{
    display: inline-block;
    margin-bottom: 20px;
    padding: 0.25rem 1.25rem 0 0;
}

/* Selectize */

.selectize-dropdown {
    padding: 5px;
}

.flag {
    display: block;
    background-position: center !important;
}

.selectize-dropdown{
    z-index: 5000 !important;
}

/* Preloader */

.entity-table-preloader-frame{
    background:rgba(0, 0, 0, 0.2);
    position:absolute;
    width:100%;
    height:100%;
    z-index:10;
    text-align: center;
    vertical-align: middle;
    display: block;
}

.preloader-wrapper{
    margin: auto;
}

.preloader-wrapper,
.modal-label{
    display: block;
    text-align: center;
    font-weight: bold;
}

.modal.entity-modal label {
    display: inline-block;
}

/* Tables */

.dataTables_processing,
.preloader-background{
}

.dataTables_length, .dataTables_filter {
    display: inline-block;
    width: 50%;
    margin: 20px 0;
}

.table-responsive{
    min-height: 350px;
}

table.dataTable > thead,
table.dataTable > thead > tr > th {
    width: auto !important;
}
table.dataTable,
.e-table.e-tableborder{
    width: 100% !important;
}

.e-rowcell .badge{
    font-size: 13px;
    padding: 5px 10px;
}

/* Preloader */

#page-protector{
    display: BLOCK;
    height: 100%;
    position: FIXED;
    top: 0;
    left: 0;
    width: 100%;
    background: repeating-linear-gradient(  45deg, rgba(0,0,0,0),  rgba(0,0,0,0) 10px,  rgba(255,255,255,0.1) 11px,  rgba(255,255,255,0.1) 20px);
    z-index: 2100;
}

.preloader-background{
    width: 100%;
    height: 100%;
    background: #fff;
}

@keyframes hideContent  {
  from {background-color: #fff;}
  to {background-color: transparent; }
}

@keyframes appearsContent {
  from {background-color: transparent; }
  to {background-color: #fff;}
}

.preloader-frame{
    display: flex;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top:0; 
    z-index: 200;
    background: rgba(150,150,150,0.05);
    border-radius: 5px;
}


.preloader-frame.opaque{
    background-color: #fff;
    /* animation: appearsContent  1s ; */
}

.preloader-frame.opaque.invisible{
     animation: hideContent 1s ;
}


.preloader-inner{
    vertical-align: middle;
    width: 100%;
    display: table;
    height: 100%;
    top: calc(50% - 100px);
}

.modal-content{
    min-height: 200px;
}

div.dataTables_wrapper div.dataTables_processing {
    position: absolute;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100%;
    margin: 0 auto !important;
    text-align: center;
    padding: 0 !important;
    background: #fff;
    z-index: 100;
    display: table;
}

div.dataTables_wrapper div.dataTables_processing .preloader-inner{
    display: absolute;
}


/* Google Map Widget*/

.map.google-map{
    height: 300px;
}

/* Echarts */

.charts{
    width: 100%;
    min-height: 450px;
    display: block;
}


/* Hacck */

#dossier_statements_0 {
    display: none;
}


span.picture-frame{
    display: block;
    margin: auto;
}

span.picture-frame.size-large{
    width: 300px;
    height: 300px;
}

span.picture-frame.size-small{
    width: 100px;
    height: 100px;
}


.page-title-actions button {
    margin: 0 5px;
}

/* Collection Widget */

.row.field-group {
    border-bottom: 1px solid #eee;
    margin: 0px -15px 0px;
    padding: 3px 0px 7px;
    border-radius: 0px;
}

.remove-property.close:hover {
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.4);
    background: #fff !important;
    border: 1px solid #aaa !important;
    color: #999;
}

.remove-property.close {
    position: absolute;
    margin: 0;
    right: -15px;
    top: -17px;
    border-radius: 15px;
    padding: 0px 5px 5px!important;
    text-align: center;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
    background: #fff !important;
    border: 1px solid #ccc !important;
    color: #999;
    opacity: 1;
    z-index: 90;
}

.remove-card.close{
    margin: auto ;
}
.remove-card.close i{
    color: #c00;
    font-size: 15px;
    margin: 5px;
}

.image-gallery-field img{
    border: 1px solid rgba(0,0,0,0);
}

.image-gallery-field img:hover{
    border: 1px solid #ccc;
    box-shadow: 1px 2px 4px #ccc;
}


/* UI Scheduler */

.gstc__list-column-row{
    border-bottom: none !important;
}

.gstc-day-less-detail{
    border: none !important;
    overflow: visible !important;
}

.gstc-day-less-detail .gstc-date-top{
    border: none;
    border-left: 1px solid rgba(177,184,189,0.5);
}

.root-row{
    border-top: 1px solid #999;
}

.scheduler-element{
    min-height: 400px;
}


/* Dropzone */

.document-widget .ebea-form-widget{
    border-bottom: 1px dashed #e1e1e1;
    padding: 5px;
    vertical-align: middle;
    display: table;
    width: 100%;
}

.document-widget .ebea-form-widget .document-cell{
    display: table-cell;
    vertical-align: middle;
    padding: 2px 5px;
    max-width: 33%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.files-dropzone{
    margin: 10px;
    padding: 10px 20px;
    text-align: center;
    border: 1px dashed;
}

.files-dropzone i{
    font-size: 24px;
}

.files-dropzone h3{
    font-size: 18px;
}

.dropzone-preview-template{
    display: none;
}

.preview-sm img,
.preview img{
    max-width: 16px;
}

/*
.preview img{
    max-width: 48px;
}
*/
.preview-row-template{
    text-align: left;
}

.preview-row{
    border: 1px solid #ccc;
    padding: 5px;
}

.dz-processing .dz-upload{
    width: 50%;
    background: #eee;
    height: 20px;
}

.dz-success .dz-upload{
    background: #198754;
}

.container-fluid.preview-row-template{
    border-bottom: 1px solid #ccc;
    padding: 5px;
}


.popover-item .additional-info{
    padding: 5px;
    margin: 0 0 0 10px;
    /* display: none; */
}


.ebea-field-group{
    border: 1px solid #ccc;
    padding: 10px;
    margin: 10px 0 20px;
    border-radius: 5px;
}

.ebea-field-group .form-check:not(.ungroup) {
    padding-left: 0;
    position: absolute;
    top: -25px;
    background: #fff;
    display: block;
    padding: 0 15px;
}

.ebea-field-group .form-check.ungroup {
    padding-left: 0rem;
    padding: 10px 0;
}

@media only screen and (max-width: 768px) {
    .page-title-actions{
        text-align: center;
    }

    .page-title-actions .float-right{
        float: none !important;
    }

    .page-title-actions button{
        margin: 5px;
    }
}


/* Reports */

.report-print.zone{
    display: none;
}


/* Advanced search */
[data-id='advanced-search'] .ebea-form-widget:nth-child(1) [data-id$='logicalOperator']{
    opacity: 0;
}

.advanced-search-frame{
    /* border: 1px solid #ccc; */
    padding: 1px 10px;
    margin: 5px 0;
    border-radius: 5px;
}


/* Collapse */
.collapse-header{
    margin: 0
}


/* Icons */


.icon-collapse::before {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    margin-right: 5px;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f107";
}

.icon-collapse.collapsed::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f105";
}


/* Signature */

.pad-wrapper {
    box-shadow: 1px 1px 5px rgb(0, 0, 0, .2);
    text-align: center;
}

.signature-pad {
    width: 400px;
    height: 200px;
    border: 1px solid #ddd;
    margin: 10px 0 0 0;
}

/* Report */

body.report-frame{
    display: table;
    padding: auto;
}

.report-body{
    width: 593px;
}

.report-footer,
.report-footer td,
.report-body,
.report-header{
    padding: 10px 20px;
    border: 1px solid #f1f1f1;
}

.report-header{
    margin: 0 50px;
    font-size: 14px;
}
.report-header .inner-frame{
    color: #888;
    padding:0 20px 0px 10px;
    border-bottom: 1px solid #ccc;
}

.report-header img{
    width: 50px;
    margin: auto;
    border: 1px solid #ccc;
}

.report-footer{
    font-size:10px;
    margin: 10px;
}

.report-footer td{
    height: 20px;
}

/* Grid */

.grid .row{
    /* max-height: 50px; /**/
}

/* Read only field */

.form-control.read-only {
    border: 1px dashed #ced4da;
}

/*  */

#impersonate-users select{
    border: 0px;
    background: transparent;
    width: auto !important;
    padding: 0px;
    color: #666;
}

td p{
    margin: 0 .25rem !important;
}

.card-body{
    position: relative;
    min-height: 70px;
}

.card.no-box{
    box-shadow: none !important;
}

.main-form-group-button .btn{
    margin: 0 !important;
}

.main-form-group-button .dropdown-menu{
    padding: 0 !important;
}

.main-form-group-button .dropdown-menu .btn{
    width: 100%;
}


.main-form-group-button .dropdown-menu .btn{
    padding: 5px;
    margin: 0 !important;
    width: 100%;
}

.btn-sm, .btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}


.btn-group-sm .dropdown-toggle {
    padding: 4px 8px 4px 2px;
    border-left: 1px solid rgba(0,0,0,0.3);

}

.document-editor__toolbar.fixed-toolbar {
    position: fixed;
    top: 150px;
    width: 100%;
    display: block;
    z-index: 200;
}

.block.header-label{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#editor_container_background{
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0,0,0,.2);
    display:none; 
}

#editor_container{
    vertical-align: middle;
    display: table;
    margin: auto;
    width: 100%;
    height: 100%;
}

.action-overlay{
    position: absolute;
    display: flex;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    background: rgba(0,0,0,.5);
    transition: all 1s ease-in 100ms;
    text-align: center;
}

.action-overlay:hover{
    opacity: 1;
    transition: all 1s ease-out 100ms;
}

.center-toolbar{
    height: 20px;
    margin: 5px ;
    margin: auto;
    text-align: center;
    vertical-align: middle;
}

.button-circle{
     padding: 7px;
    margin: 5px ;
   border-radius: 15px;
    border: 1px solid #ccc;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    height: 20px;
     transition: all .5s ease-in 100ms;
   
}

.button-circle:hover{
    border: 1px solid #333;
    color: #333;
     transition: all .5s ease-out 100ms;
   
}
.gallery-item{
    display:table; 
    position: relative; 
    margin: 0 20px;
    border: 1px solid #eee;
    border-radius: 5px; 
}

.gallery-item-toolbar{
    display: flex;
    border: 1px solid #f1f1f1;
    background: #f7f7f7;
}

.gallery-item-toolbar .action-button{
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 3px;
}

.gallery-item-toolbar .action-button i{
    width: 16px;
    height: 16px;
    display: block;
    text-align: center;
    margin: auto;
}

.gallery-item-toolbar .left-side{
    justify-content: flex-start;
}
.spacer {
  flex-grow: 1;
  flex-shrink:1;
}
.gallery-item-toolbar .right-side{
    justify-content: flex-end;
}

.gallery-label label{
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    padding: 0;
}

/* Bronx */
.block.header-label p{
    display: inline;
}

.collection-widget.row .ebea-rows{
    display: table;
    width: 100%;
    min-height: 90px;
}

.form-check{
    display: flex;
    vertical-align: middle;
    margin: auto;
    height: 100%;
}

button:focus,
.btn:focus,
input:focus:not(.selectize-input input),
textarea:focus,
select:focus,
.form-control:focus ,
.selectize-input:focus,
.tox.tox-tinymce:focus
.tox-tinymce:focus
{
    box-shadow: 1px 2px 15px rgba(0,0,0,.3) !important;
}


.ck-content .table table table,
.ck-content .table table tbody,
.ck-content .table table tr,
.ck-content .table table td{
    border: 1px solid #f1f1f1 ;
}

:root {
    --ck-color-mention-background: hsla(220, 100%, 54%, 0.4);
    --ck-color-mention-text: hsl(0, 0%, 15%);
}

.inline-form  .form-check .form-check-input{
    margin: 10px !important;
}

.inline-form:not(.header-row)  label{
   display: none;
}

.ebea-rows > .ebea-single-row:first-child > [data-id$='logicalOperator']{
    opacity: 0;
}

#context-menu-arrow-top{
    height: 0px;
    position: absolute;
    width: 100%;
    margin: 0;
    padding: 0;
    top: -20px;
}

#context-menu-arrow-top:before {
  content: "";
  position:absolute;
  
  /* position tooltip correctly */
  top:0%;
  margin-left:-5px;
 
  /* vertically center */
  left:50%;
  transform:translateX(-50%);
 
  /* the arrow */
  border:10px solid #FFF;
  border-color: transparent transparent black transparent;

}

#context-menu-arrow-top:after {
  content: "";
  position:absolute;
  
  /* position tooltip correctly */
  top:0%;
  margin-left:-5px;
 
  /* vertically center */
  left:50%;
  transform:translateX(-50%);
 
  /* the arrow */
  border:10px solid #FFF;
  border-color: transparent transparent white transparent;

}

.context-menu-nav{
    position: absolute;
    max-width: 350px;
    z-index: 1000;
    border: 1px solid #ccc;
    background: #fefefe;
    border-radius: 10px;
    padding: 10px 5px;
    box-shadow: 1px 2px 9px rgba(0,0,0,.1);
}

.context-menu-text{
    padding: 0px 10px;
}

.context-menu-nav .title{
    font-weight: bold;
    margin: 0 0 5px 0;
    border-bottom: 1px solid #ccc;
}

.context-menu-nav .subtitle{
    margin: 0 0 5px 0;
 }

.context-menu-nav .description{
    font-style: italic ;
    font-size: 11px;
    border-top: 1px solid #ccc;
    margin: 5px 0 2px;
}

.context-menu-ul{
    margin: 0;
    padding: 0;
}

.context-menu-ul li.action{
    margin: 4px 0;
    list-style-type: none;
    cursor: pointer;
}

.context-menu-ul li.inline{
    margin: 4px 0px 4px 4px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: inline-block;
    padding: 5px 9px;
    color: white;
    background: #3f6ad8;
}

.context-menu-ul li.model{
    display: none;
}

.context-menu-ul li.action:hover{
   background: #f1f1f1;
}

.context-menu-ul li.action.inline:hover{
   background: #fff;
   color: #3f6ad8;
}


.form-check-label{ 
  background: #fff !important;
}

    .data-grid.content-wrapper{
        display: inline-block; 
    }
    
    .data-grid.content-wrapper .badge.badge-container {
        width: -moz-fit-content;
        width: fit-content;
    }
    
    .data-grid.content-wrapper .badge {
        font-weight: bold;
        padding: 5px 10px;
        margin: auto;
        box-sizing: border-box;
        overflow: hidden;
        flex-grow: 1;
    }

    .data-grid.content-wrapper .badge.badge-inline,
    .data-grid.content-wrapper .badge.badge-single {
        width: auto;
        overflow: hidden;
        line-height: normal;
        white-space: normal;
        text-overflow: ellipsis;  
    }
    
    .data-grid.content-wrapper .badge.badge-single {
        width: auto;
        display: table;
    }
          
    .data-grid.content-wrapper .badge.badge-inline{
        display: inline-table;
        margin: 1px 2px;    
    }
    
    
.data-grid.content-wrapper{
    min-height: 670px;
    visibility: hidden;
    opacity: 0;
}

 .data-grid.content-wrapper.loaded
{
    max-width: 100%;
    min-height: auto;
    visibility: visible;
    opacity: 1;
    transition: opacity 1.0s, visibility 1.0s;
}

/* Editable zone */


.editable-zone{
    position: relative;
}

.editable-zone label{
    display: none !important;
}

.toggle-state {
    border: 1px solid #f1f1f1;
    border-radius: 5px;
    padding: 10px !important;
}

[data-toggle-text-id] {
    display: block;
}

.disable-toggle-button{
    position:absolute;
    bottom: 12px;
    right: 0;
    top: -12px;
}

.text.editable-zone .disable-toggle-button{
    top: auto;
}

i.disable-toggle-button{
    position: absolute;
    z-index: 2000;
    right: -20px;
}

i.disable-toggle-button[data-target-id]::before{
    border: 1px solid #ccc;
    padding: 5px;
    z-index: 30000;
    box-shadow: 1px 1px 9px #e1e1e1;
    background: #fff;
}

.collection-widget{
}

.nowrap{
    flex-wrap: nowrap !important;
}

[data-toggle-text-id] i{
    display: none !important;
}

[data-toggle-text-id]:hover i{
    display: inline !important;
}

input.toggle-state{
    padding-right: 20px !important;
} 

.card-header.column-header{
    background-color: transparent;
    padding: 0;
}



/* Web editor */

#vvveb-builder #left-panel, #vvveb-builder #right-panel, #vvveb-builder #canvas{
    top: auto !important;
}



.app-container.closed-sidebar {
    --builder-canvas-margin: 80px !important;;
}
.app-container {
    --builder-filemanager-height: 250px;
    --builder-canvas-margin: 300px !important;
    --builder-header-top-height: 35px;
    --builder-bottom-panel-height: 35px;
    --drag-items-tabs-height: 40px;
    -webkit-font-smoothing: subpixel-antialiased;
}
@media (max-width: 992px) {
    .app-container.closed-sidebar {
        --builder-canvas-margin: 0px !important;;
    }
}
#vvveb-builder.preview {
    position: fixed;
    top: 0;
    z-index: 1000;
    left: 0;
    width: 100%;
}

#vvveb-builder #top-panel {
    background: #fff;
   /* width: calc(100% + 30px) !important; */
}

#vvveb-builder:not(.preview) {
    --builder-right-panel-width: 330px !important;
    position: relative !important;
    overflow: hidden !important;
}


#vvveb-builder:not(.preview) #canvas{
    position: relative !important;
    width: calc(100vw - 60px  - (var(--builder-left-panel-width) + var(--builder-right-panel-width) + var(--builder-canvas-margin))) !important;
    overflow: hidden;
}
#vvveb-builder #left-panel, #vvveb-builder #right-panel {
    position: absolute !important;
}

#vvveb-builder #right-panel {
    top: 35px !important;
    right: 0px !important;
}

#vvveb-builder.no-right-panel {
    --builder-right-panel-width: 30px !important;
}
#vvveb-builder #right-panel {
    right: 30px !important;
}

/* DZ UPLOADER */

[data-dz-errormessage] {
    color: #c50005;
    /* font-size: 12px; */
    font-weight: bold;
    margin: 10px 0;
}

/* Chat */

.message-in-progress{
    display: none;
}

.chat-frame .chat-wrapper .column-center{
    flex-grow: 1;
}

.chat-scroll-area{
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    overflow-x: hidden;
}

a.thread-item-btn{
    padding: 0px;
}
a.thread-item-btn:hover{
    border-bottom: 1px dashed #ccc;
}

.was-validated .form-check-input:valid ~ .form-check-label,
 .form-check-input.is-valid ~ .form-check-label {
    color: #333 !important;
}

.placeholder{
    min-height: 40px;
}

form:not(.needs-validation) .js-validation{
    display: none ;
}


.ebea-rows.grid[id*='searchFilters-draggable'] .row.inline-form:first-child .col .row [data-column-index='1'] {
    opacity: 0;
}