.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: '*';
}

.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;
    position: absolute;
    bottom: -1.4rem;
    font-size: 0.8rem;    
}

.form-group{
    margin-bottom: 1.4rem !important;
}

.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;
}


/* 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;
}