.form-horizontal {
    position: relative;
    min-height: 200px;
}

.forms-loader-container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.forms-loader {
    border: 10px solid #ddd;
    border-top: 10px solid #554d7c;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    position: relative;
    top: 50%;
    margin: -30px auto;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.form-lookup-popup {
    position: absolute;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 9;
    width: auto;
}

.form-lookup-popup .list-group-item {
    cursor: pointer;
}

.form-lookup-popup .list-group-item.bg-primary {
    color: white;
}

.form-group {
    position: relative;
    flex: 1;
}

.control-label svg {
    margin-left: 5px;
}

.control-label .form-required {
    color: #ed2b2b;
}

.form-group .form-tip {
    position: absolute;
    right: 15px;
    top: 5px;
}

.form-fileupload .dz-items {
    overflow-y: auto;
    overflow-x: hidden;
    color: #000;
}

.form-fileupload .dz-items .dz-item:hover {
    background-color: #eee rgba(0, 0, 0, 0.1);
    border-color: #eee rgba(0, 0, 0, 0.1);
}

.form-fileupload .dz-items .dz-item .dz-remove {
    color: red;
    cursor: pointer;
    font-size: 16px;
}

.form-fileupload input {
    display: none;
}

/* SINGLE MODE */

.form-fileupload.single .dz-items {
    padding: 0;
    height: 32px;
    overflow: hidden;
}

.form-fileupload.single button:not([style*="display: none"])+.dz-items {
    display: none;
}

.form-fileupload.single .dz-items {
    display: table;
    table-layout: fixed;
    width: 100%;
}

.form-fileupload.single .dz-items .dz-item {
    display: table-row;
}

.form-fileupload.single .dz-items .dz-item .dz-preview,
.form-fileupload.single .dz-items .dz-item .dz-detail,
.form-fileupload.single .dz-items .dz-item .dz-remove {
    display: table-cell;
    line-height: 32px;
}

.form-fileupload.single .dz-items .dz-item .dz-preview,
.form-fileupload.single .dz-items .dz-item .dz-remove {
    width: 32px;
    height: 32px;
}

.form-fileupload.single .dz-items .dz-item .dz-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-fileupload.single .dz-items .dz-item .dz-detail {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 16px;
}

.form-fileupload.single .dz-items .dz-item .dz-size {
    display: none;
}

/* MULTIPLE MODE */

.form-fileupload.multiple .dz-items {
    padding: 15px;
}

.form-fileupload.multiple .dz-items .dz-item {
    position: relative;
    float: left;
    cursor: default;
    user-select: none;
    overflow: hidden;
    padding: 15px 15px 5px 15px;
    border: 1px solid transparent;
    font-size: .8em;
}

.form-fileupload.multiple .dz-items .dz-item .dz-preview {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    width: 120px;
    height: 120px;
}

.form-fileupload.multiple .dz-items .dz-item .dz-preview>img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.form-fileupload.multiple .dz-items .dz-item .dz-size {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #999 rgba(255, 255, 255, 0.6);
    padding: 2px 5px;
}

.form-fileupload.multiple .dz-items .dz-item .dz-detail {
    float: left;
    width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 22px;
    vertical-align: middle;
}

.form-dropzone {
    display: flex;
    border: 2px dashed #ddd;
    color: #ccc;
    width: 100%;
    cursor: pointer;
    transition: all .5s;
}

.form-dropzone.drag {
    background-color: rgba(255, 0, 0, 0.3);
    color: #000;
}

.form-dropzone .form-dropzone-words {
    align-self: center;
    width: 100%;
    text-align: center;
    margin: 15px;
}

.form-fileupload.single .dz-items .dz-item .dz-remove {}

.form-fileupload.multiple .dz-items .dz-item .dz-remove {
    float: right;
}

.form-fileupload .dz-items .dz-item .dz-remove:hover {
    color: #b20000
}

.itemlist-template,
.itemlist-newitems,
.itemlist-newitem {
    position: relative;
}

.itemlist-newitems,
.itemlist-item {
    box-sizing: border-box;
}

.itemlist-newitem-add,
.itemlist-item-rm {
    float: right;
    width: 60px;
    padding: 0;
}

.itemlist-newitem-add button,
.itemlist-item-rm button {
    width: 60px;
    margin: 0;
}

/* HTML5 Datepicker Fix */

.input-group.date>.input-group-append>span>svg {
    margin-left: 0;
}

.input-group>input[type="date"].form-control {
    position: initial;
}

.form-control.is-different,
.form-control.is-changed,
.custom-control input[type="checkbox"].is-different+label::before {
    border-color: #3995ff;
}

.custom-control input[type="checkbox"].is-different+label,
.custom-control input[type="checkbox"].is-changed+label {
    color: #1077ec;
}

/* make the native arrow invisible and stretch it over the whole field so you can click anywhere in the input field to trigger the native datepicker*/

.forms-container .form-page input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 36px;
    color: transparent;
    background: transparent;
    cursor: pointer;
}

/* adjust increase/decrease button */

.forms-container .form-page input[type="date"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* adjust clear button */

.forms-container .form-page input[type="date"]::-webkit-clear-button {
    z-index: 1;
    cursor: pointer;
}

svg:not(:root).forms-icon {
    overflow: visible;
    display: inline-block;
    font-size: inherit;
    font-size: 1rem;
    height: 1em;
    overflow: visible;
    vertical-align: -.125em;
    width: 1em;
}

.form-multi-text {
    border: 1px solid #ced4da;
    border-radius: .25rem;
    width: 100%;
}

.form-multi-text input.form-control {
    border: none;
}

.form-multi-text input.form-control:focus {
    border: none;
    box-shadow: none;
}

.form-multi-text .input-mt-items {
    width: 100%;
}

.form-multi-text .input-mt-items::after {
    content: "";
    display: table;
    clear: both;
}

.form-multi-text .input-mt-item {
    float: left;
    border: 1px solid #ddd;
    background-color: #eaeaea;
    border-radius: .25rem;
    margin: .2rem;
}

.form-multi-text .input-mt-item:hover {
    background-color: #e0e0e0;
}

.form-multi-text .input-mt-item>span {
    float: left;
    padding: 0.1rem 0.5rem;
}

.form-multi-text .input-mt-item>.input-mt-item-rm {
    cursor: pointer;
    float: right;
    padding: 0.1rem 0.5rem;
}

.form-multi-text .input-mt-item>.input-mt-item-rm:hover {
    color: red;
}

/* The container must be positioned relative: */

.custom-select {
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
    padding: 0;
    background-color: transparent;
}

.custom-select select {
    display: none;
    /*hide original SELECT element: */
}

.custom-select>div.select-value {
    padding: .375rem 1.75rem .375rem .90rem;
}

.select-selected {
    background-color: white;
}

/* Style the arrow inside the select element: */

.select-selected:after {
    position: absolute;
    content: "";
    top: 14px;
    right: 10px;
    width: 0;
    height: 0;
}

/* Point the arrow upwards when the select box is open (active): */

.select-selected.select-arrow-active:after {
    top: 7px;
}

/* style the items (options), including the selected item: */

.select-items .select-item {
    position: relative;
    padding: .245rem 1.75rem .245rem .90rem;
    cursor: pointer;
    user-select: none;
}

.custom-select .select-value img,
.select-items .select-item img,
.select-items .select-item span,
.form-field>img {
    line-height: 30px;
    margin-right: 5px;
    vertical-align: middle;
}

.custom-select .select-value img,
.select-items .select-item img,
.form-field>img {
    width: 16px;
}

.form-field .btn {
    margin: 0;
}

.form-field .btn.btn-disabled {
    opacity: .65;
}

.select-items div {
    background-repeat: no-repeat;
    background-position: middle left;
    background-size: 16px 16px;
}

/* Style items (options): */

.select-items {
    position: absolute;
    background-color: white;
    border: 1px solid #999;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
}

/* Hide the items when the select box is closed: */

.select-hide {
    display: none;
}

.select-items div:hover {
    background-color: dodgerblue !important;
    color: white !important;
}