.ctl-maximize{
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 1035;    
    width: 100%;
    height: 100%;
    padding: 15px;
    overflow: auto;
    max-width: none;
}

.ctl-maximize:before{
    position: fixed;
    top: 0px;
    left: 0px;    
    content: "";
    background-color: #fff;    
    width: 100%;
    height: 100%;   
    z-index: -1; 
    max-width: none;
}

.ctl-maximize.ctlsignaturefield{
    position:fixed !important;
    text-align-last: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ctl-maximize.ctlsignaturefield iframe{
    height: 80vh;
}

.ctl-wp-studio-form-control-wrapper{
    position:relative;
}

.ctl-upload-file-field-wrapper.mandatory .input-group:after,
.ctl-wp-studio-form-control-wrapper.mandatory:after {
    position: absolute;
    top: 0px;
    color: red;
    font-weight: bold;
    content: '*';
}

.ctl-form-fields-media-preview small{
    margin-bottom: 15px;    
}

.ctl-form-field-media-field-wrapper img.image-preview{
    max-width: 150px;
}

.ctl-form-field-media-field-wrapper div.image-preview{
    display: inline-block;
}

.ctlselectfield select.disabled{
    pointer-events: none;
}

.ctl-wp-studio-form-control-wrapper.ctl-upload-file-field-wrapper.mandatory:after {
    content: ''; 
}

.ctl-upload-file-field-wrapper.mandatory .input-group:after{
    right: -13px;    
}

.ctl-wp-studio-form-control-wrapper.mandatory:after {
    right: 17px;    
}

.ctl-upload-file-field-wrapper.mandatory .ctl-form-fields-action-click-custom-file-input:after {
    right: -10px;
}

.ctl-wp-studio-form-control-wrapper.mandatory{
    padding-right: 30px;
    position: relative;
}

.ctl-wp-studio-form-control-wrapper.is-invalid .invalid-feedback,
.is-invalid .invalid-feedback{
    display: block;
    font-size: 0.8rem;    
}

.ctl-file-upload-drag-drop-area{
    width: 100%;
}

.invalid-feedback p{
    margin-bottom: 2px;
}

.ctl-file-upload-drag-drop-area-content{
    display: block;    
    padding: 30px;
    box-sizing: border-box;
    border: 1px dashed #ced4da;
    background-color: #f1fcff;   
    
    transition: all ease .4s;
    cursor: pointer;
}

.ctl-file-upload-drag-drop-area-content p{
    color: #495057;
    margin: 0px;
}

.ctl-file-upload-drag-drop-area-content p>i{
    font-size: 25px;
}

.ctl-file-upload-drag-drop-area-content-hover,
.ctl-file-upload-drag-drop-area-content:hover{
    background-color: #dbf7ff;
}

.custom-file-label {
    overflow: hidden;
    white-space: nowrap;
}

.custom-control-label.custom-checkbox-fake-label{
    position: absolute;
}

.ctl-form-fields-multiple-files-preview{
    margin: 0px;
    padding: 0px;
    margin-bottom: 15px;
}

.ctl-form-fields-multiple-files-preview li{
    list-style: none;
    margin-bottom: 10px;
}

.ctl-form-fields-multiple-files-preview img{
    width: 100px;
}

.ctl-form-fields-multiple-files-preview .text-filename{
    margin-left: 10px;
}


/********* SWITCH *********/
.switch {
  font-size: 1rem;
  position: relative;
}
.switch input {
  position: absolute;
  height: 1px;
  width: 1px;
  background: none;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  padding: 0;
}
.switch input + label {
  position: relative;
  min-width: calc((2.375rem * .8) * 2);
  border-radius: calc(2.375rem * .8);
  height: calc(2.375rem * .8);
  line-height: calc(2.375rem * .8);
  display: inline-block;
  cursor: pointer;
  outline: none;
  user-select: none;
  vertical-align: middle;
  text-indent: calc(((2.375rem * .8) * 2) + .5rem);
}
.switch input + label::before,
.switch input + label::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: calc((2.375rem * .8) * 2);
  bottom: 0;
  display: block;
}
.switch input + label::before {
  right: 0;
  background-color: #dee2e6;
  border-radius: calc(2.375rem * .8);
  transition: 0.2s all;
}
.switch input + label::after {
  top: 2px;
  left: 2px;
  width: calc((2.375rem * .8) - (2px * 2));
  height: calc((2.375rem * .8) - (2px * 2));
  border-radius: 50%;
  background-color: white;
  transition: 0.2s all;
}
.switch input:checked + label::before {
  background-color: #08d;
}
.switch input:checked + label::after {
  margin-left: calc(2.375rem * .8);
}
.switch input:focus + label::before {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 136, 221, 0.25);
}
.switch input:disabled + label {
  color: #868e96;
  cursor: not-allowed;
}
.switch input:disabled + label::before {
  background-color: #e9ecef;
}
.switch.switch-sm {
  font-size: 0.875rem;
}
.switch.switch-sm input + label {
  min-width: calc((1.9375rem * .8) * 2);
  height: calc(1.9375rem * .8);
  line-height: calc(1.9375rem * .8);
  text-indent: calc(((1.9375rem * .8) * 2) + .5rem);
}
.switch.switch-sm input + label::before {
  width: calc((1.9375rem * .8) * 2);
}
.switch.switch-sm input + label::after {
  width: calc((1.9375rem * .8) - (2px * 2));
  height: calc((1.9375rem * .8) - (2px * 2));
}
.switch.switch-sm input:checked + label::after {
  margin-left: calc(1.9375rem * .8);
}
.switch.switch-lg {
  font-size: 1.25rem;
}
.switch.switch-lg input + label {
  min-width: calc((3rem * .8) * 2);
  height: calc(3rem * .8);
  line-height: calc(3rem * .8);
  text-indent: calc(((3rem * .8) * 2) + .5rem);
}
.switch.switch-lg input + label::before {
  width: calc((3rem * .8) * 2);
}
.switch.switch-lg input + label::after {
  width: calc((3rem * .8) - (2px * 2));
  height: calc((3rem * .8) - (2px * 2));
}
.switch.switch-lg input:checked + label::after {
  margin-left: calc(3rem * .8);
}
.switch + .switch {
  margin-left: 1rem;
}

.readonly .switch-label{
    pointer-events: none;
}

.switch-label{
    margin-bottom: 0px;
}

.switch-label.switch-readonly,
.switch-label.switch-disabled{
    pointer-events: none;
}
.switch-label.switch-disabled{
    opacity: .65;
}


/********* BUTTON LOADING **********/

button{
    position: relative;
}

button .spinner-border{
    position: absolute;
    top: 10px;
    left: 8px;
    
    -webkit-transition: all 0.2s ease 0.1s;
    -moz-transition: all 0.2s ease 0.1s;
    -o-transition: all 0.2s ease 0.1s;
    transition: all 0.2s ease 0.1s;   
    
    opacity: 0;     
}

button.loading .spinner-border{
    opacity: 1;
}

button.loading{
    padding-left: 30px;
}

button.closing .spinner-border{
    opacity: 0 !important;
    
    -webkit-transition: all 0.2s ease 0s !important;
    -moz-transition: all 0.2s ease 0s !important;
    -o-transition: all 0.2s ease 0s !important;
    transition: all 0.2s ease 0s !important;      
}

button.closing{
    padding-left: 12px !important;
    
    -webkit-transition: all 0.2s ease 0.2s !important;
    -moz-transition: all 0.2s ease 0.2s !important;
    -o-transition: all 0.2s ease 0.2s !important;
    transition: all 0.2s ease 0.2s !important;       
}

.form-group label{
    word-break: break-word;
}

.form-group .input-group{
    align-items: stretch;
}

/* DRAGGABLE LIST */

.draggable-list-h li{
    display: inline-block;
}
.draggable ul li{
    position: relative;
}

.draggable ul{
    margin-top : 0px;
    margin-bottom : 0px;
    margin-left : 0px;
    margin-right : 0px;
    padding-top : 0px;
    padding-bottom : 0px;
    padding-left : 0px;
    padding-right : 0px;
    -webkit-overflow-scrolling: touch;

    border-radius: .25rem;
    
    background-color: rgba(0,0,0,.125);


    -webkit-transition: all 0.4s ease 0s;
    -moz-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;
}

.draggable-item{
    list-style-image : none;
    list-style-position : outside;
    list-style-type : none;
    margin-top : 0px;
    margin-bottom : 0px;
    margin-left : 0px;
    margin-right : 0px;
    -webkit-transition: all 0.4s ease 0s;
    -moz-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;
    cursor: pointer;
}


.draggable-list-avoid-drag .draggable-item{
    cursor: auto;
}

.draggable-item:hover{
    background-color : rgb(255, 246, 109);
}
.draggable .draggable-list-v{
    min-height : 100px;
    overflow-x: hidden;
    overflow-y: auto;    
}
.draggable .draggable-list-h{
    -webkit-transition: all 0.4s ease 0s;
    -moz-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;
    overflow-x: auto;
    overflow-y: hidden;    
    white-space: nowrap;
}
.draggable-fixed-item{
    position : fixed;
    top : auto;
    bottom : auto;
    left : auto;
    right : auto;
    z-index: 9999;
    -webkit-transition: all 0s linear 0s !important;
    -moz-transition: all 0s linear 0s !important;
    -o-transition: all 0s linear 0s !important;
    transition: all 0s linear 0s !important;
    
    background-color : rgba(255, 239, 0, 0.5);    
    padding: .5rem 1rem;
    border: 1px solid rgba(0,0,0,.125);    
    border-radius: .25rem;    
}

.draggable h3{
    font-size: 18px;
}

.draggable{
    margin: 0px;
}

.draggable-list-hover{
    box-shadow: 0 0 0 0.2rem rgba(38,143,255,.5);
}

.draggable-fixed-item{
    pointer-events: none;
}


.draggable-list-item-deletion .draggable-item-value-extras,
.draggable-list-item-deletion .draggable-item-value,
.draggable-list-item-deletion .draggable-item-label{
    word-wrap: break-word;
}

.draggable-spacing-1{
    padding-right: 25px;
}
.draggable-spacing-2{
    padding-right: 50px;
}

.draggable-item-value-extras,
.draggable-item-value{
    font-size: 10px;
}

.draggable-item-value-extras{
    margin-top: 5px;
}

.draggable-manually-add-items label{
    font-size: 14px;
}

.draggable ul,
.draggable .list-group-item{
    border: 1px solid #ced4da;
}

.draggable .list-group-item{
    margin-left: -1px;
    margin-right: -1px;
}

.draggable .list-group-item:first-child{
    margin-top: -1px;    
}

.draggable .list-group-item:last-child{
    margin-bottom: -1px;    
}

.draggable-sm .list-group-item{
    padding: 5px 15px;
}

.draggable-item-actions{
    position: absolute;
    right: 1.25rem;
    top: 0.8rem;
}

.draggable-sm .draggable-item-label{
    font-size: 14px;
}

.draggable-sm .draggable-item-actions{
    top: 0.2rem;    
}

.draggable-sm .draggable-item-actions i{
    font-size: 14px;
}

.draggable-item-actions i{
    cursor: pointer;
    margin-left: 10px;
}

/* TABLE VALUES */

.table-values-content .row:first-child > .col{
    border-top: 1px solid #dee2e6;  
}

.table-values-content .row .col{
    border-bottom: 1px solid #dee2e6;
}


.table-values-content .col{
    border-right: 1px solid #dee2e6;
    min-width: 50px;
}

.table-values-content .col:first-child{
    border-left: 1px solid #dee2e6;
}

.table-values-content .row-controller,
.table-values-content .col-controller .col input{
    font-weight: bold;
}

.table-values-content .cell-blank{
    background-color: #ffffff;
}

.table-values-content .col{
    padding: 5px 15px;
}

.table-values-content .col:first-child{
    max-width: 90px;
    text-align: center;
}

.table-values-content .row:first-child > .col:first-child{
    border-top-left-radius: .25rem!important;
}

.table-values-content .row:last-child > .col:first-child{
    border-bottom-left-radius: .25rem!important;
}

.table-values-content .row:first-child > .col:last-child{
    border-top-right-radius: .25rem!important;
}

.table-values-content .row:last-child > .col:last-child{
    border-bottom-right-radius: .25rem!important;
}


/* FLOATING LABELS & MANDATORY ON LABELS */

.floating-label label.ctl-form-field-label{
    transition: all ease .4s;    
    transform: translate(13px, 39px);
}

.floating-label.floating-label-normal label.ctl-form-field-label{
    transform: none;
}

.floating-label:not(.floating-label-normal) .ctl-wp-studio-form-control-wrapper{
    z-index: -1;
}

.mandatory-on-label > label.ctl-form-field-label:after{
    content: "*";
    margin-left: 2px;
}

.mandatory-on-label .ctl-wp-studio-form-control-wrapper.mandatory.col{
    padding-right: 15px;
}

.mandatory-on-label .ctl-wp-studio-form-control-wrapper.mandatory:not(.col){
    padding-right: 0px;
}


.mandatory-on-label .ctl-upload-file-field-wrapper.mandatory .input-group:after, 
.mandatory-on-label .ctl-wp-studio-form-control-wrapper.mandatory:after{
    display: none;
}

.ctl-form-field-description{
    display: block;
}

.ctl-form-field-label.col-auto{
    margin-bottom: 0px;
}


.form-control.is-invalid ~ .note-editor.note-frame{
    border-color: #dc3545;
}

/* useful for clipboard beahviour */
.summernote-textarea{
    display: block !important;
    z-index: -1;
    position: fixed;
    top: -120%;
}

.form-group input::-ms-reveal,
.form-group input::-ms-clear {
    display: none;
}

.select2-container--bootstrap4 .select2-selection--multiple{
    max-height: 80px;
    overflow-y: auto;
}

.bootstrap-datetimepicker-widget.dropdown-menu{
    z-index: 1035;
}

.input-group-prepend .select2-container--bootstrap4 .select2-selection{
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

.input-group-append .select2-container--bootstrap4 .select2-selection{
    border-top-left-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
}

.input-group .select2-container--bootstrap4{
    height: 100%;
}

.input-group .select2-container--bootstrap4 .select2-selection{
    height: 100% !important;
}

.select2-container--bootstrap4 .select2-selection--single{
    height: 100% !important;
}

.select2-dropdown.select2-dropdown--above,
.select2-dropdown.select2-dropdown--below{
	width: auto !important;
	max-width: 320px;
    min-width: 100px;
}

.select2-container--bootstrap4 .select2-results__option{
	overflow-x: auto;
    min-width: 280px;
}

/*
.select2-results__option{
	white-space: nowrap;
}
*/

.ctldatafield .post-status{
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    font-size: 12px;
}

.ctl-form-fields-config-fields-container{
    padding: 0px;
    list-style: none;
    min-height: 50px;
}

.ctl-form-fields-config-actions{
    position: absolute;
    right: 0px;    
}

.ctl-form-fields-config-fields-container li .ctl-form-fields-config-field-title,
.ctl-form-fields-config-fields-container li .ctl-form-fields-config-actions i{
    padding: 5px;
}

.ctl-form-fields-config-fields-container li .ctl-form-fields-config-field-title{
    padding-right: 60px;
    width: 100%;
    display: inline-block;
    font-size: 11px;
}

.ctl-form-fields-config-fields-container li .ctl-form-fields-config-actions i{
    cursor: pointer;
}

.select-group{
    position: relative;
    display: -ms-inline-flexbox;
    display: inline-flex;
    vertical-align: middle;
}

.select-group > .select2.select2-container--bootstrap4:not(:last-child) .select2-selection{
	border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
	border-right: none;
}

.select-group > .select2.select2-container--bootstrap4:not(:nth-child(2)) .select2-selection{
	border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0!important;
}

.select2-container--bootstrap4.select2-container--open.select2-container--below .select2-selection{
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.select2-container--bootstrap4.select2-container--focus.select2-container--open .select2-selection{
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.bp-up-to-md .btn-md-hide-label .btn-text{
    display: none;
}

.bp-up-to-sm .btn-sm-hide-label .btn-text{
    display: none;
}

select[readonly].select2-hidden-accessible + .select2-container {
    pointer-events: none;
    touch-action: none;
}

select[readonly].select2-hidden-accessible + .select2-container .select2-selection {
    background: #eee;
    box-shadow: none;
}

select[readonly].select2-hidden-accessible + .select2-container .select2-selection__arrow, select[readonly].select2-hidden-accessible + .select2-container .select2-selection__clear {
    display: none;
}

.ctl-form-input-disabled{
    pointer-events: none;
    touch-action: none;
    background: #eee;
    box-shadow: none;
}

.ctl-signature-iframe-container.ctl-maximize{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.ctl-signature-img-container img,
.ctl-signature-iframe-container iframe{
    border: 1px solid #ced4da;
    background-color: #fff;
}

