:root {
  --mdev-color: #4338ca;
}

:root {
  --mdev-color-hover: #342d94;
}

.mdev a {
    text-decoration: none;
}

.mdev *, 
.mdv-form * {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.mdv-notice, 
.mdv-success, 
.mdv-error,
.mdv-wrapper-block.notice:before {
    background: #b4dbfa;
    padding: 15px 20px;
    color: #000;
    margin-bottom: 20px;
    border-radius: 5px;
}

.mdv-success {
    background: #eaf8db;
}

.mdv-error {
    background: #fce7e4;
}

.mdv-dn {
    display: none;
}

.mdv-tab {
    display: flex;
    margin-bottom: 0;
    border-bottom: 2px solid #e5e7eb;
}

.mdv-tab-label {
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-bottom-color 0.2s;
    white-space: nowrap;
    margin-bottom: -2px;
}

.mdv-tab-label:hover {
    color: var(--mdev-color); 
}

.mdv-tab-label.mdv-tab-active {
    color: var(--mdev-color);
    border-bottom-color: var(--mdev-color); 
}

.mdv-tab-content {
    display: none;
    padding-top: 20px; 
}

.mdv-tab-content.mdv-tab-active {
    display: block;
}

.mdv-table {
    display: table;
    width: 100%;
    height: 100%;
}

.mdv-cell {
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    height: 100%;
}

.mdv-modal {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: #0000008a;
    overflow: auto;
    height: 100%;
    z-index: 99999;
    display: none;
}

.mdv-modal-wrapper {
    width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 30px;
}

.mdv-modal-container {
    background: #FFF;
    padding: 40px;
    border-radius: 10px;
    position: relative;
}

.mdv-modal-content {
    position: relative;
}

.mdv-modal-content:after {
    content: "";
    display: block;
    clear: both;
}

.mdv-modal-close {
    position: absolute;
    right: 5px;
    top: 5px;
    font-size: 22px;
    color: #f25e54;
    border: 0;
    background: none;
    cursor: pointer;
    padding: 0;
    height: 22px;
    width: 22px;
    display: flex;
}

.mdv-modal-close:hover {
    color: #000;
}

.mdv-modal-open {
    overflow: hidden;
}

.mdv-form {
    position: relative;
}

.mdv-fields {
    position: relative;
    margin: 0 -10px 20px;
}

.mdv-form:after, 
.mdv-fields:after,
.mdv-list-item:after {
    content: "";
    display: block;
    clear: both;
}

.mdv-field {
    position: relative;
    margin-bottom: 20px;
    clear: both;
}

.mdv-field:after {
    content: "";
    display: block;
    clear: both;
}

.mdv-field:last-child {
    margin-bottom: 0;
}

.mdv-content {
    position: relative;
    padding: 0 10px;
}      

.mdv-fields.mdv-content {
    padding: 0;
}

.mdv-fields.mdv-content,
.mdv-content .mdv-fields {
    margin: 0;
} 

.mdv-content .mdv-error.err {
    padding: 5px 6px;
    font-size: 12px;
    line-height: 12px;
    margin: 0;
    display: inline-block;
    margin: 5px 5px 0 0;
    display: inline-flex;
    align-items: center;
    position: absolute;
    right: 8px;
    bottom: 3px;
}

.mdv-content.nl.wi > .mdv-icon {
    position: absolute;
    height: 48px;
    width: 48px;
    display: flex;
    align-items: center;
    align-items: center;
    justify-content: center;
}

.mdv-content.nl.wi .mdv-input {
    text-indent: 30px;
}

.mdv-label {
    display: block;
    margin-bottom: 5px;
}

.mdv-required-marker {
    color: #ef4444;
    margin-left: 4px; 
    font-style: normal;
}

.mdv-icon {
    margin-right: 5px;
}

.mdv-input, 
.mdv-button {
    display: block;
    font-size: 100%;
    font-family: inherit;
    font-weight: inherit;
    line-height: inherit;
    width: 100%;
    max-width: inherit !important;
    border: 1px solid;
    background: #FFFFFF;
    outline: none;
    height: 48px;
    border-radius: 5px;
}

.mdv-button.mdv-success {
    background: #009688;
    border-color: #009688;
    margin: 0;
}

a.mdv-button {
    color: #FFF !important;
    text-decoration: none;
}

.mdv-input {
    border-color: #000 !important;
    padding: 12px !important;
}

select.mdv-input {
    padding: 0 7.5px !important;
}

.mdv-input:focus {
    outline: 0;
    border-color: #3F51B5;
    box-shadow: 0 0 0 3px #3f51b52e;
}

.has-error .mdv-input {
    border-color: #F44336;
}

.has-error .mdv-list-item .mdv-input {
    border-color: #000;
}

.mdv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background-color: var(--mdev-color);
    border-color: var(--mdev-color);
    width: auto;
    cursor: pointer;
    color: #FFF;
    padding: 0 20px !important;
    height: 48px;
    position: relative;
}

.mdv-button:hover,
.processing .mdv-button {
    background-color: #342d94;
    border-color: #342d94;
}

.mdv-button:disabled {
    cursor: not-allowed;
}

.mdv-button.ht > i {
    position: absolute;
    left: 0;
    right: 0;
    width: 20px;
    height: 20px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mdv-button.ht > span {
    visibility: hidden;
    opacity: 1;
}

.mdv-checkbox-wrapper, 
.mdv-radio-wrapper {
    display: flex;
    gap: 5px;
}

.mdv-checkbox-wrapper label,
.mdv-radio-wrapper label {
    margin: 5px 0 0;
}

.mdv-option-group > div {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.mdv-option-group > div:last-child {
    margin-bottom: 0;
}

.mdv-option-group label {
    margin-bottom: 0;
}

.mdv-input[type=checkbox],
.mdv-input[type=radio] {
    width: 25px !important;
    height: 25px !important;
    padding: 0 !important;
    text-indent: 0 !important;
    margin: 0 0 !important;
    position: relative;
    background: #FFF;
    text-indent: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    line-height: inherit;
}

.mdv-input[type=radio] {
    border-radius: 100px !important;
}

.mdv-input[type=checkbox]:checked:before,
.mdv-input[type=radio]:checked:before { 
    content: "\f00c" !important;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    line-height: 16px !important;
    float: none !important;
    display: block !important;
    background: none !important;
} 

.mdv-input[type=radio]:checked:before {
    content: "\f111" !important;
}

textarea.mdv-input {
    height: 150px;
}

.mdv-description {
    clear: both;
    z-index: 1;
}

.mdv-description > i {
    margin-left: 5px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mdv-description > div {
    position: absolute;
    background: var(--mdev-color);
    color: #FFF;
    padding: 15px;
    border-radius: 5px;
    margin: -34px 0 0 12px;
    display: none;
}

.mdv-description:hover > i {
    z-index: 2;
}

.mdv-description:hover > div {
    z-index: 1;
}

.mdv-description:hover > i:before {
     color: #FFF;
    border-radius: 10px;
    background: var(--mdev-color);
}
.mdv-description:hover > div {
    display: block;
}

.mdv-description.bottom {
    clear: both;
    padding-top: 3px;
}

.mdv-description.bottom > i {
    display: none;
}

.mdv-description.bottom > div {
    background: none;
    position: initial;
    padding: 0;
    margin: 0;
    display: block !important;
    color: #666;
    font-size: 13px;
}

.mdv-description.top {
    display: inline-block;
}

.mdv-description.side > i {
    float: right;
    position: relative;
}

.mdv-description.side > div {
    margin: -17px 7px 0 0;
    right: 0;
}

.mdv-captcha-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}    
        
.mdv-captcha-refresh {
    padding: 8px;
    background-color: #3F51B5;
    color: white;
    border-radius: 6px;
    transition: background-color 0.15s ease-in-out;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mdv-captcha-challenge {
    font-family: monospace;
    padding: 8px 12px;
    background-color: #e7e9f3;
    border-radius: 6px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    position: absolute;
    right: 55px;
}

.mdv-captcha-refresh:hover {
    background-color: #38427c;
}

.mdv-list-item {
    position: relative;
    margin-bottom: 5px;
}

.mdv-list-item:last-child {
    margin-bottom: 0;
}

.mdv-list-action {
    position: absolute;
    right: -1px;
    bottom: 0;
    height: 48px;
    background: var(--mdev-color);
    border-radius: 0 5px 5px 0;
    border: 1px solid #000;
}

.mdv-list-action i {
    width: 30px;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #FFF;
    font-size: 12px;
}

.mdv-list-action i:first-child {
    border-bottom: 1px solid #000;
}

.mdv-list-action i:hover {
    color: #ddd;
}

.mdv-list-item.has-error .mdv-input {
    border-color: #F44336;
}

.mdv-list-item.has-error .mdv-list-action {
    bottom: 27px;;
}

.mdv-image-preview {
    margin-top: 5px;
}

.mdv-image-preview img {
    max-width: 100%;
    border-radius: 5px;
}

.mdv-confirmation .mdv-fields {
    margin: 0 -10px;
}

.mdv-hidden {
    opacity: 0.5;
}

.mdv-wrapper {
    color: #000;
}

.mdv-wrapper-block {
    border: 1px dashed;
    padding: 35px 20px;
    border-radius: 5px;
    min-height: 100px;
    overflow: hidden;
}

.mdv-wrapper-block > .mdv-list-wrapper {
    padding: 0 10px;
}

.mdv-wrapper-block.hover,
.mdv-wrapper-content.hover {
    border-color: red;
}

.mdv-wrapper-content.hover {
    padding: 30px;
    border: 1px dashed red;
}

.mdv-wrapper-block.notice:before {
    content: "Drag and drop a field here";
    position: absolute;
    top: 5px;
    right: 15px;    
    margin: 0;
    padding: 3px 5px;
    font-size: 12px;
    text-transform: uppercase;
}

.mdv-wrapper-block .mdv-wrapper-content {
    margin: 0 -10px;
}

.mdv-left {
    width: 70%;
}

.mdv-right {
    width: 30%;
}

.mdv-head {
    height: 60px;
    background-color: var(--mdev-color); 
    color: white;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10; 
}

.mdv-head > div {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
}

.mdv-head-title {
    font-weight: bold;
    font-size: 1.25rem;
}

.mdv-head a {
    cursor: pointer;
    color: #FFF;
    padding: 16px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mdv-head a:hover {
    background-color: #342d94;
}

.mdv-head .mdv-left a {
    position: absolute;
    right: 0;
}

.mdv-head .mdv-right {
    justify-content: flex-end;
    gap: 0;
}

.mdv-body {
    display: flex;
    min-height: calc(100vh - 60px); 
    background-color: #f9fafb;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.mdv-body .mdv-left {
    padding: 20px;
    border-right: 1px solid #e5e7eb;
    background: #FFF;
}

.mdv-body .mdv-right {
    padding: 0 20px 20px;
    background-color: #f9fafb;
    min-height: 100%;
    position: sticky;
    top: 60px; /* Stick below the 60px header */
    align-self: flex-start; /* Ensures it respects the flex container and sticky */
    overflow-y: auto; /* Allows the sticky panel itself to scroll if content is too long */
    max-height: calc(100vh - 60px); /* Constrain height to viewport */
}

.mdv-body .mdv-right {
    padding: 0 20px 20px;
    background-color: #f9fafb;
    min-height: 100%;
    position: sticky;
    top: 60px; /* Stick below the 60px header */
    align-self: flex-start; /* Ensures it respects the flex container and sticky */
    overflow-y: auto; /* Allows the sticky panel itself to scroll if content is too long */
    max-height: calc(100vh - 60px); /* Constrain height to viewport */
}

.mdv-body .mdv-right .mdv-tab {
    position: sticky;
    top: 0;
    background-color: #f9fafb;
    padding-top: 10px;
    margin: 0 -5px;
    z-index: 5;
}

.mdv-body .mdv-right .mdv-tab-label:nth-child(2) {
    display: none;
}

.mdv-title {
    margin: 0 0 20px;
}

.mdv-action {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -5px;
    right: 0;
    left: 10px;
    visibility: hidden;
    opacity: 0;
    z-index: 99;
}

.mdv-action > div {
    background: #4338ca;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #261f7b;
}

.mdv-action i {
    cursor: pointer;
}

.mdv-action i:hover {
    color: #000;
}

.mdv-preview .mdv-button {
    visibility: hidden;
}

.mdv-preview .mdv-field.mdv-dn {
    display: block;
}

.mdv-preview .mdv-fields.hover {
    padding-bottom: 100px;
    border: 1px dashed red;
}

.mdv-preview .mdv-field:hover {
    z-index: 99;
}

.mdv-preview .mdv-field:hover:before {
    content: "";
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: 0;
    right: 0;
    background: #4338ca24;
    border-radius: 5px;
}

.mdv-preview .mdv-content {
    min-height: 26px;
} 

.mdv-preview .mdv-content:before {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    content:  "";
}

.mdv-preview .mdv-confirmation .mdv-field:before {
    display: none !important;
}
.mdv-preview .mdv-field:hover >.mdv-action {
    visibility: visible;
    opacity: 1;
}

.mdv-state-highlight {
    height: 80px;
    border: 1px dashed var(--mdev-color);
    border-radius: 5px;
    margin: 0 10px 20px;
}

.mdv-list-wrapper .mdv-state-highlight {
    height: 48px;
    margin: 0 0 5px;
}

a[href="#back"].mdv-button {
    position: absolute;
    margin: 10px;
    padding: 5px 8px !important;
    height: auto;
    top: 0;
    left: 0;
    color: #FFF !important;
    text-decoration: none;
}

.mdv-in-label .mdv-field:not(:last-child) {
    margin-bottom: 10px;
}

.mdv-in-label :not(.mdv-checkbox-wrapper, .mdv-radio-wrapper, .mdv-list) > .mdv-label:has(+ .mdv-input), 
.mdv-in-label .mdv-html > .mdv-label,
.mdv-in-label .mdv-wrapper > .mdv-label {
    position: absolute;
    margin: 10px 13px;
    color: #626262;
    font-size: 13px;
    z-index: 1;
}

.mdv-in-label :not(.mdv-checkbox-wrapper, .mdv-radio-wrapper, .mdv-list) > .mdv-label~.mdv-input, 
.mdv-in-label .mdv-html-block > .mdv-input {
    height: 55px;
    padding-top: 30px !important;
}

.mdv-in-label :not(.mdv-checkbox-wrapper, .mdv-radio-wrapper, .mdv-list) > .mdv-label~select.mdv-input, 
.mdv-in-label .mdv-html-block > select.mdv-input  {
    padding-top: 15px !important;
}

.mdv-in-label textarea.mdv-input {
    height:  150px !important;
}

.mdv-in-label .mdv-wrapper > .mdv-label {
    margin: 35px 30px;
}

.mdv-in-label .mdv-wrapper > .mdv-label~.mdv-wrapper-block {
    padding-top: 70px;
}

.mdv-in-label .mdv-description.side {
    display: none;
}

.mdv-preview-form {
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
    padding: 30px;
}

.mdv-preview-form>.fa-spinner {
    width: 13px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mdev-color);
}

#create-mdev-form {
    position: relative;
}

#create-mdev-form .mdv-button {
    border-radius: 0 5px 5px 0;
    position: absolute;
    right: -1px;
    z-index: 1;
    border: 0;
}

#create-mdev-form .mdv-fields {
    margin-bottom: 0;
}

#create-mdev-form .ntc {
    margin-bottom: 5px;
}

#add-field-tab-content div {
    display: flex;
    flex-wrap: wrap;
}

#add-field-tab-content a {
    width: 50%;
}

#add-field-tab-content span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    margin: 5px;
    border-radius: 5px;
    background: var(--mdev-color);
    border: 1px solid var(--mdev-color);
    color: #FFF;
}

#add-field-tab-content a:hover span {
    background: var(--mdev-color-hover);
    border-color: var(--mdev-color-hover);
}

#field-settings-tab-content select {
    text-transform: capitalize;
}

#setting-type-field, 
#setting-description-field {
    margin-bottom: 5px;
}

#setting-id-field .mdv-label, 
#setting-description-placement-field .mdv-label {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--mdev-color);
    height: 30px;
    color: #FFF;
    padding: 0 10px;
    border-radius: 5px;
    margin: 9px 12px;
}

#setting-id-field .mdv-input {
    text-indent: 40px;
}

#setting-description-placement-field .mdv-label {
    color: #666;
    background: 0;
    padding: 0;
}

#setting-description-placement-field .mdv-input {
    text-indent: 72px;
}

#setting-confirmation-field > div {
    margin: 0 10px;
}

#setting-confirmation-field > div .mdv-fields {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px 10px;
    background: #FFF;
}

#setting-wrapper-field .mdv-content-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

#setting-wrapper-field .mdv-content-fields span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--mdev-color);
    color: #FFF;
    padding: 10px;
    border-radius: 5px;
}

#setting-wrapper-field .mdv-content-fields i {
    color: #ff7a71;
    cursor: pointer;
}

#setting-wrapper-field .mdv-content-fields i:hover {
    color: #FFF;
}

#setting-wrapper-field select {
    text-transform: inherit !important;
}

#setting-options-field, 
#setting-multiple-field, 
#setting-max-size-field, 
#setting-content-field, 
#setting-confirmation-field,
#setting-wrapper-field,
#setting-list-field,
#setting-ids-field,
.mdv-checkbox-fields #setting-placeholder-field, 
.mdv-radio-fields #setting-placeholder-field, 
.mdv-date-fields #setting-placeholder-field, 
.mdv-time-fields #setting-placeholder-field,
.mdv-image-fields #setting-placeholder-field, 
.mdv-image-fields #setting-value-field,
.mdv-password-fields #setting-value-field,
.mdv-password-fields #setting-confirmation-value-field,
.mdv-file-fields #setting-placeholder-field, 
.mdv-file-fields #setting-value-field,
.mdv-html-fields #setting-class-field, 
.mdv-wrapper-fields #setting-class-field,
.mdv-hidden-fields > div,  
.mdv-html-fields > div,  
.mdv-wrapper-fields > div {
    display: none;
}

.mdv-select-fields #setting-options-field, 
.mdv-checkbox-fields #setting-options-field, 
.mdv-radio-fields #setting-options-field, 
.mdv-email-fields #setting-confirmation-field, 
.mdv-password-fields #setting-confirmation-field, 
.mdv-image-fields #setting-max-size-field, 
.mdv-file-fields #setting-multiple-field, 
.mdv-file-fields #setting-max-size-field,
.mdv-hidden-fields #setting-type-field, 
.mdv-hidden-fields #setting-id-field,
.mdv-hidden-fields #setting-value-field,
.mdv-html-fields #setting-type-field, 
.mdv-html-fields #setting-id-field, 
.mdv-html-fields #setting-content-field,
.mdv-html-fields #setting-label-field, 
.mdv-html-fields #setting-required-field, 
.mdv-html-fields #setting-classes-field,
.mdv-html-fields #setting-size-field,
.mdv-html-fields #setting-description-field, 
.mdv-html-fields #setting-description-placement-field, 
.mdv-wrapper-fields #setting-type-field, 
.mdv-wrapper-fields #setting-id-field,
.mdv-wrapper-fields #setting-label-field, 
.mdv-wrapper-fields #setting-list-field,
.mdv-wrapper-fields #setting-classes-field,
.mdv-wrapper-fields #setting-size-field,
.mdv-wrapper-fields #setting-wrapper-field,
.mdv-wrapper-fields #setting-ids-field {
    display: block;
}

.mdv-html-fields #setting-content-class-field input, 
.mdv-wrapper-fields #setting-content-class-field input {
    border-radius: 5px 0 0 5px;
}

.mdv-wrapper-block>.mdv-list-wrapper>.mdv-list-item:last-child {
    margin-bottom: 0;
    border-bottom: 0;
    padding-bottom: 0;
}

.mdv-content:not(.unq) .mdv-wrapper-block>.mdv-list-wrapper>.mdv-list-item {
    margin-bottom: 20px;
    border-bottom: 1px dashed;
    padding-bottom: 20px;
}

.mdv-content:not(.unq) .mdv-wrapper-block>.mdv-list-wrapper>.mdv-list-item>.mdv-list-action {
    position: inherit;
    display: inline-flex;
    height: auto;
    margin-top: 20px;
    border-radius: 5px;
    padding: 10px 12px;
    float: right;
}

.mdv-content:not(.unq) .mdv-wrapper-block>.mdv-list-wrapper>.mdv-list-item>.mdv-list-action i {
    height: auto;
    width: auto;
}

.mdv-content:not(.unq) .mdv-wrapper-block>.mdv-list-wrapper>.mdv-list-item>.mdv-list-action i:first-child {
    border-bottom: 0;
    margin-right: 10px;
}

.mdv-content.unq .mdv-wrapper-block>.mdv-list-wrapper {
    margin: 0 17.5px;
}

.mdv-content.unq .mdv-wrapper-block>.mdv-list-wrapper>.mdv-list-item .mdv-field {
    margin-bottom: 0;
}

.mdv-content.unq .mdv-wrapper-block>.mdv-list-wrapper>.mdv-list-item .mdv-content {
    padding: 0 2.5px;
}

.mdv-content.unq .mdv-wrapper-block>.mdv-list-wrapper>.mdv-list-item:not(:first-child) .mdv-label {
    display: none;
}

.mdv-content.unq .mdv-wrapper-block>.mdv-list-wrapper>.mdv-list-item>.mdv-list-action {
    right: -7.5px;
}
#setting-ids-field .mdv-html-block {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

#setting-ids-field .mdv-html-block > div {
    background: #4338ca;
    padding: 8px 10px;
    border-radius: 5px;
    color: #FFF;
}

#setting-custom-size-field {
    display: none;
    margin-top: -15px;
}

#form-show-title-field {
    position: absolute;
    right: 21px;
    margin-top: -66px;
    background: #FFF;
    padding: 9px 5px;
    border-radius: 5px;
}

#form-button-submit-field {
    margin-top: -15px;
}

#form-checkboxes-field>div>div {
    display: flex;
}

#form-checkboxes-field .mdv-field {
    margin-bottom: 0;
}

#form-scroll-field .mdv-description > div {
    margin-right: -180px;
}

#form-ajax-url-field pre code {
    display: block;
    font-size: 12px;
    background: #ddd;
    padding: 20px;
    overflow-x: auto;
    border-radius: 5px;
}

#mail-fields-field .mdv-list-action {
    display: flex;
    height: auto;
    position: inherit;
    border-radius: 5px;
    width: 55px;
    float: right;
    margin-right: 10px;
    margin-top: 5px;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#mail-fields-field .mdv-list-action i {
    height: 28px;
    width: auto;
}

#mail-fields-field .mdv-list-item:first-child:after {
    content: "";
    border-bottom: 1px #000 dashed;
    padding-bottom: 20px;
    margin: 0 10px 20px;
}

#mail-fields-field .mdv-list-item:last-child:after {
    display: none;
}

.mdv-smart-tags {
    position: absolute;
    right: 9px;
    top: 24px;
}

.mdv-smart-tags i {
    position: absolute;
    height: 48px;
    display: flex;
    align-items: center;
    right: 12px;
}

.mdv-smart-tags>div {
    display: none; 
    border: 1px solid;
    border-top: 0;
    border-radius: 0 5px 5px 5px;
    padding: 14px 40px 14px 15px;
    background: #FFF;
}

.mdv-smart-tags strong {
    padding-bottom: 5px;
    margin-bottom: 10px;
    display: block;
    border-bottom: 1px dashed;
}

.mdv-smart-tags span:not(:last-child) {
    display: block;
    margin-bottom: 5px;
}

.mdv-smart-tags span:hover {
    color: var(--mdev-color);
    cursor: pointer;
}

.mdv-smart-tags:hover {
    z-index: 1;
}

.mdv-smart-tags:hover>div {
    display: block;
}

#mail-fields-field .eml .mdv-smart-tags span:not(.smart-tag-email) {
    display: none;
}

body:not(.mdv-safemode).post-type-mdevform.post-php #wpcontent {
    padding-left: 0;
}

body:not(.mdv-safemode).post-type-mdevform.post-php #wpbody-content {
    display: none;
    padding-bottom: 0;
}

.post-type-mdevform .mdv-head {
    top: 32px;
}

.post-type-mdevform .mdv-body .mdv-right {
    top: 90px;
    max-height: calc(100vh - 112px);
}

.post-type-mdevform .mdev {
    input.disabled, input:disabled, select.disabled, select:disabled, textarea.disabled, textarea:disabled {
        background: #FFF;
        border-color: #000;
        box-shadow: none;
    }
}

.wp-admin select.mdv-input {
    padding-right: 12px !important;
    padding-left: 12px !important;
}

@media (max-width:768px) {
    
    .mdv-modal-wrapper {
        width: auto;
        padding: 15px;
    }

    .mdv-modal-container {
        padding: 30px;
    }

}

@media (min-width:768px) {

    .mdv-medium-large,
    .mdv-medium,
    .mdv-small, 
    .mdv-custom-size {
        float: left;
        clear: none;
    }

    .mdv-medium-large {
        width: 66.66%;
    }

    .mdv-medium {
        width: 50%;
    }

    .mdv-small {
        width: 33.33%;
    }

    .mdv-fields.mdv-content.fit {
        padding: 0 10px;
    }

    .mdv-content.fit .mdv-fields,
    .mdv-content.fit .mdv-wrapper-block,
    .mdv-content.fit .mdv-wrapper-content {
        display: flex;
    }

    .mdv-content.fit.list .mdv-wrapper-block {
        display: block;
    }

    .mdv-content.fit .mdv-wrapper-content {
        margin: 0;
    }

    .mdv-content.fit .mdv-content {
        padding: 0;
    }

    .mdv-content.fit .mdv-field {
        margin: 0;
        width: 100%;
    }

    .mdv-content.fit .mdv-field .mdv-input {
        border-radius: 0;
        border-right: 0;

    }

    .mdv-content.fit .mdv-field:first-child .mdv-input {
        border-radius: 5px 0 0 5px;
    }

    .mdv-content.fit .mdv-field:last-child .mdv-input {
        border-radius: 0 5px 5px 0;
        border-right: 1px solid;
    }

	.mdv-confirmation .mdv-field {
		width: 50%;
		float: left;
		clear: none;
		margin: 0;
	}

}