.category-line.form-control > * {
    padding-left: 0 !important;
}

.form-control.disabled,
.form-control:disabled,
.form-control[readonly] {
    background-color: var(--grey-01);
}
.form-control.lg {
    height: 214px;
}

.form-control .label-category {
    margin: 0;
    padding: 0px;
}
.form-control:focus {
    border-color: var(--input-text-border-focus-color);
}

.form-group {
    position: relative;
    /* margin-bottom: 16px; */
}

.form-group.ml-50 {
    margin-left: 50px;
}

.form-group + .form-group {
    margin-top: 8px;
}

.field-length {
    font-size: 13px;
    color: var(--grey-03);
}

.form-group small[data-maxlength],
.form-group span[data-maxlength],
.form-group .field-length {
    position: absolute;
    right: 8px;
    font-size: 13px;
}

@media (max-width: 576px) {
    .form-group small[data-maxlength],
    .form-group span[data-maxlength],
    .form-group .field-length {
        font-size: 10px;
    }
}

.form-group-left {
    display: inline-block;
    width: 200px;
    height: var(--form-component-height);
    border-radius: var(--radius) 0px 0px var(--radius);
    vertical-align: middle;
}

.form-group-right {
    display: inline-block;
    width: 44px;
    height: var(--form-component-height);
    border-radius: 0px var(--radius) var(--radius) 0px;
    vertical-align: middle;
    padding: 10px;
    text-align: center;
}

/* Added during ifood theme build */
.dropdown-item:focus:not(.popover-item), .dropdown-item:hover:not(.popover-item) {
    background-color: var(--dropdown-item-background-color-hover);
}

/* Form subtiem */
.form-group-subitem {
    display: none;
    position: relative;
    margin: 16px 0 16px 32px;
}
.form-group.has-subitems .form-check-inline:first-child #Op02.form-check-input:checked {
    display: block;
}

.form-group-subitem > .form-label {
    position: relative;
}

.form-group-subitem:not(:last-child):before {
    content: "";
    position: absolute;
    left: -25px;
    /*top: -4px;*/
    width: 2px;
    height: calc(100% + 28px);
    border-left: 2px dashed var(--grey-02);
}
.form-group-subitem > .form-label:before {
    content: "";
    position: absolute;
    width: 20px;
    left: -22px;
    top: 10px;
    border-bottom: 2px dashed var(--grey-02);
}

.form-group.has-subitems .form-check-inline:first-child .form-check-input:checked:before {
    content: "";
    position: absolute;
    left: 6px;
    top: 17px;
    width: 2px;
    height: 28px;
    border-left: 2px dashed var(--grey-02);
}

@media (max-width: 576px) {
    .form-group.has-subitems .form-check-inline:first-child .form-check-input:checked:before {
        top: 22px;
        height: 12px;
    }
}

/* END - Form subtiem */

/* Form subgroup */

.form-group.has-subgroup {
    padding-left: 6px;
    border-left: 2px solid var(--grey-01);
}

.form-subgroup {
    position: relative;
}

.form-group.has-subgroup > .form-subgroup,
.form-group.has-subgroup > .wdk-item-checklist .form-subgroup,
.form-group.has-subgroup .form-subgroup > .form-subgroup {
    margin-left: 44px !important;
    width: calc(100% - 44px);
    padding-left: 10px;
}

.wdk-comments-header .form-group.has-subgroup > .form-subgroup {
    margin-left: initial !important;
    width: initial !important;
}

.form-group.form-subgroup .form-subgroup-item {
    position: relative;
    margin-left: 0;
}
.form-group.form-subgroup .wdk-group.form-subgroup-item :first-child {
    margin-left: 0;
}

/* .form-group.has-subgroup > .wdk-item-checklist:after {
    content: "";
    position: absolute;
    left: -30px;
    top: 16px;
    width: 29px;
    height: calc(100% - 16px);
    border-right: 2px solid var(--grey-01);
} */

.form-group.has-subgroup > .wdk-item-checklist + .wdk-item-checklist {
    border-top: 2px solid var(--grey-01);
    padding-top: 8px;
}

.form-group.has-subgroup > .wdk-item-checklist > .form-subgroup.wdk-item-checklist:after {
    content: "";
    position: absolute;
    left: -38px;
    top: -2px;
    width: 40px;
    height: 100%;
    background: linear-gradient(270deg, rgba(249,249,249,1) 5%, rgba(255,255,255,0) 100%);
    border-right: 2px solid var(--grey-01);
    border-top: 2px solid var(--grey-01);
}

.form-group.has-subgroup > .wdk-item-checklist > .form-subgroup.wdk-item-checklist > .form-subgroup.wdk-item-checklist:after {
    content: "";
    position: absolute;
    left: -44px;
    top: -2px;
    width: 44px;
    height: 100%;
    background: linear-gradient(270deg, rgba(249,249,249,1) 5%, rgba(255,255,255,0) 100%);
    border-right: 2px solid var(--grey-01);
    border-top: 2px solid var(--grey-01);
}
.form-group.has-subgroup > .wdk-item-checklist > .form-subgroup.wdk-item-checklist {
    padding-top: 8px;
}
.form-group.has-subgroup > .wdk-item-checklist > .form-subgroup.wdk-item-checklist > *:not(.form-subgroup.wdk-item-checklist) {
    position: relative;
}

.form-group.has-subgroup .form-group ~ .form-subgroup.wdk-item-checklist {
    margin-top: 12px;
}

.form-group.has-subgroup > .form-group.form-subgroup > .form-subgroup-item:first-child:before {
    top: 6px;
    height: 100%;
}

.form-group.form-subgroup > .form-subgroup-item:not(:last-child):after {
    content: "";
    position: absolute;
    left: -22px;
    bottom: -12px;
    width: 32px;
    height: 2px;
    border-bottom: 2px dashed var(--grey-02);
}

.form-group-vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    max-height: 250px;
    overflow: auto;
}
.form-group-vertical .form-check.form-check-inline {
    align-self: flex-start;
    min-height: initial;
}

.form-group-vertical {
    scrollbar-width: thin !important;
}

.form-group-vertical::-webkit-scrollbar-track {
    background-color: var(--white-02) !important;
    -webkit-box-shadow: inset 0 0 6px var(--white-02) !important;
    box-shadow: inset 0 0 6px var(--white-02) !important;
}
.form-group-vertical::-webkit-scrollbar {
    background-color: var(--white-02) !important;
    width: 5px !important;
    height: 5px;
}
.form-group-vertical::-webkit-scrollbar-thumb {
    background-color: var(--tertiary-dark) !important;
    border-radius: 10px;
}

/* END - form subgroup */

/* Form inline with slider  */
.form-check.form-check-inline.has-slider {
    display: grid;
    grid-template:
        "input label label badge"
        "slider slider value value";
    grid-auto-columns: 0 auto;
    row-gap: 0;
    column-gap: 0;
}
.form-check.form-check-inline.has-slider .form-check-input {
    grid-area: input;
}

.form-check.form-check-inline.has-slider .form-check-label {
    grid-area: label;
    margin-left: -2px;
    padding-left: 0;
}

.form-check.form-check-inline.has-slider .form-input-range {
    align-self: center;
    grid-area: slider;
    width: 150px;
    height: 14px;
}

.form-check.form-check-inline.has-slider .form-input-range-value {
    grid-area: value;
    width: fit-content;
    margin-left: 6px;
    font-size: 14px;
    color: var(--grey-03);
}

.wdk-item-checklist {
    border: 1px solid var(--grey-01);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

/* This transition doesn't work properly */
@keyframes wipe-out-left {
    from {
        clip-path: inset(0 0 0 0);
    }
    to {
        clip-path: inset(0 100% 0 0);
    }
}

.wdk-item-checklist .form-check.form-check-inline.has-slider .form-input-range,
.wdk-item-checklist .form-check.form-check-inline.has-slider .form-input-range-value  {
    animation: .3s cubic-bezier(.25, 1, .30, 1) wipe-out-left both;
    display: none;
}

@keyframes wipe-in-right {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

.wdk-item-checklist .form-check.form-check-inline.has-slider .form-check-input:checked ~ .form-input-range,
.wdk-item-checklist .form-check.form-check-inline.has-slider .form-check-input:checked ~ .form-input-range ~ .form-input-range-value {
    animation: .3s cubic-bezier(.25, 1, .30, 1) wipe-in-right both;
    display: block;
}

.wdk-item-checklist .btn.btn-inline.btn-tertiary .icon-add_circle,
.wdk-item-checklist .btn.btn-inline.btn-tertiary .add-comment  {
    animation: .6s cubic-bezier(.25, 1, .30, 1) circle-in-center both;
}

.wdk-item-checklist .btn.btn-inline.btn-tertiary .icon-remove_circle,
.wdk-item-checklist .btn.btn-inline.btn-tertiary .cancel-comment,
.wdk-metadata-checklist .btn.btn-inline.btn-tertiary .icon-remove_circle,
.wdk-metadata-checklist .btn.btn-inline.btn-tertiary .cancel-comment     {
    display: none;
}

.wdk-item-checklist .btn.btn-inline.btn-tertiary.show-input .icon-remove_circle,
.wdk-item-checklist .btn.btn-inline.btn-tertiary.show-input .cancel-comment,
.wdk-metadata-checklist .btn.btn-inline.btn-tertiary.show-input .icon-remove_circle,
.wdk-metadata-checklist .btn.btn-inline.btn-tertiary.show-input .cancel-comment   {
    display: block;
}

.wdk-item-checklist .btn.btn-inline.btn-tertiary.show-input .icon-add_circle,
.wdk-item-checklist .btn.btn-inline.btn-tertiary.show-input .add-comment,
.wdk-metadata-checklist .btn.btn-inline.btn-tertiary.show-input .icon-add_circle,
.wdk-metadata-checklist .btn.btn-inline.btn-tertiary.show-input .add-comment {
    display: none;
}

.wdk-item-checklist .btn.btn-inline.btn-tertiary.show-input.required {
    cursor: auto;
}

.wdk-item-checklist .btn.btn-inline.btn-tertiary.show-input.required .icon-add_circle,
.wdk-item-checklist .btn.btn-inline.btn-tertiary.show-input.required .icon-remove_circle,
.wdk-item-checklist .btn.btn-inline.btn-tertiary.show-input.required .add-comment,
.wdk-item-checklist .btn.btn-inline.btn-tertiary.show-input.required .cancel-comment {
    display: none;
}

.wdk-item-checklist .btn.btn-inline.btn-tertiary .required-comment,
.wdk-item-checklist .btn.btn-inline.btn-tertiary .icon-comment {
    display: none;
}

.wdk-item-checklist .btn.btn-inline.btn-tertiary.show-input.required .required-comment,
.wdk-item-checklist .btn.btn-inline.btn-tertiary.show-input.required .icon-comment {
    display: block;
}


.wdk-item-checklist .btn.btn-inline.btn-tertiary.show-input ~ .form-control.hide {
    display: block !important;
}

@keyframes wipe-in-down {
    from {
        clip-path: inset(0 0 100% 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

.wdk-item-checklist .btn.btn-inline.btn-tertiary.show-input ~ .form-control.hide {
    animation: .3s cubic-bezier(.25, 1, .30, 1) wipe-in-down both;
    display: block !important;
}

@keyframes wipe-out-up {
    from {
        clip-path: inset(0 0 0 0);
    }
    to {
        clip-path: inset(0 0 100% 0);
    }
}

.wdk-item-checklist .btn.btn-inline.btn-tertiary ~ .form-control.hide{
    animation: .3s cubic-bezier(.25, 1, .30, 1) wipe-out-up both;
    display: none !important;
}


.wdk-item-checklist .btn.btn-inline.btn-tertiary[id*="comment-button"] {
    margin-left: -2px;
}

.wdk-item-checklist .btn.btn-inline.btn-tertiary[id*="comment-button"] i {
    font-size: 18px;
}

.wdk-item-checklist .wdk-subitem-checklist,
.wdk-item-checklist .wdk-sub-subitem-checklist {
    margin-left: 44px !important;
    width: calc(100% - 44px);
}

.wdk-item-checklist .wdk-subitem-checklist:after {
    content: "";
    position: absolute;
    left: -44px;
    top: -2px;
    width: 44px;
    height: calc(100% + 2px);
    background: linear-gradient(270deg, rgba(253, 247, 229, 0.5) 5%, rgba(255,255,255,0) 100%);
    border-right: 2px solid var(--grey-01);
    border-bottom: 2px solid var(--grey-01);
}

.wdk-item-checklist .wdk-subitem-checklist > .wdk-sub-subitem-checklist:after {
    content: "";
    position: absolute;
    left: -44px;
    top: -2px;
    width: 44px;
    height: calc(100% + 2px);
    background: linear-gradient(270deg, rgba(216, 210, 255, 0.3) 5%, rgba(255,255,255,0) 100%);
    border-right: 2px solid var(--grey-01);
    border-bottom: 2px solid var(--grey-01);
}

.wdk-checklist-content {
    position: relative;
}

.wdk-metadata-checklist .wdk-checklist-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wdk-metadata-checklist .wdk-checklist-content .wdk-checklist-content-body {
    flex: 1;
}

.wdk-item-checklist .wdk-checklist-content {
    display: block;
    padding: 12px;
    border-bottom: 2px solid var(--grey-01);
}

.wdk-checklist-content .btn-toggle-collapse {
    margin-top: -4px;
    margin-bottom: 2px;
    margin-right: -10px !important;
}

.wdk-checklist-content .btn-toggle-collapse i,
.wdk-checklist-content .btn-toggle-collapse i {
    margin-left: 4px;
    transition: .3s;
}

.wdk-checklist-content .show-more ~ .btn-toggle-collapse i {
    transform: rotate(180deg);
}

.wdk-item-checklist .wdk-subitem-checklist {
    position: relative;
    border-left: 2px solid var(--grey-01);
}

.wdk-item-checklist .wdk-subitem-checklist .wdk-sub-subitem-checklist {
    position: relative;
    border-left: 2px solid var(--grey-01);
}

.wdk-item-checklist .wdk-checklist-content .wdk-checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -6px;
    width: calc(100% + 12px);
}

.wdk-item-checklist .wdk-checklist-content .wdk-checklist-options {
    position: relative;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid var(--grey-02);
}

.wdk-metadata-checklist .wdk-checklist-options {
    position: relative;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid var(--grey-02);
}

.wdk-checklist-options {
    position: relative;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid var(--grey-02);
}

.wdk-checklist-options .form-group-vertical .form-check.form-check-inline {
    margin-bottom: 0;
}

.wdk-checklist-options .form-group-vertical .form-check.form-check-inline .form-check-label {
    line-height: initial;
    margin-top: 0.25rem;
}

/* END - Form inline with slider  */

.wdk-metadata-checklist {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 8px 8px 4px 8px;
    border: 1px solid var(--grey-01);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.wdk-metadata-checklist > .form-group {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* padding-bottom: 18px; */
}

.wdk-metadata-checklist > .form-group > .form-control {
    margin-top: auto;
}

.wdk-metadata-checklist > .form-group > .form-control ~ .field-validation-valid {
    position: absolute;
    bottom: -2px;
    left: 6px;
}

.wdk-metadata-checklist > .form-group > .form-control ~ .field-length {
    bottom: -2px;
}

.form-input-search {
    max-width: 220px;
    border-radius: 8px 0 0 8px !important;
}

.bootstrap-select .btn.dropdown-toggle > *:not(i) {
    padding-top: 2px;
}

.dropdown.form-control.form-control-sm .btn.dropdown-toggle .filter-option {
    padding-top: 3px;
}

.dropdown.bootstrap-select.form-control .dropdown-item {
    transition: var(--time-01);
    margin-top: 2px;
    font-family: "Poppins";
    white-space: pre-wrap;
}
.dropdown.bootstrap-select.form-control .dropdown-item:hover {
    background-color: var(--dropdown-item-background-color-hover);
}

.dropdown.bootstrap-select.form-control li.selected .dropdown-item {
    background-color: var(--primary);
}

.dropdown.bootstrap-select.form-control li.active .dropdown-item {
    color: var(--dropdown-item-select-text-color-active);
    background-color: var(--dropdown-item-select-background-color-active);
}

.dropdown.bootstrap-select.form-control .inner[aria-multiselectable="true"] li.selected .dropdown-item {
    color: var(--dropdown-item-multiselect-text-color-active);
    background-color: var(--dropdown-item-multiselect-background-color-active);
}

.dropdown.bootstrap-select.form-control .inner[aria-multiselectable="true"] li.selected.disabled .dropdown-item {
    color: var(--dropdown-item-multiselect-text-color-active);
    background-color: var(--grey-02);
}

.dropdown.bootstrap-select.show-tick.form-control li.selected .dropdown-item .bs-ok-default {
    transition: var(--time-01);
}

.dropdown.bootstrap-select.show-tick.form-control li.selected .dropdown-item .bs-ok-default:after {
    border-color: var(--dropdown-item-multiselect-icon-color-active);
}

.dropdown.bootstrap-select.show-tick.form-control li.selected.disabled .dropdown-item .bs-ok-default:after {
    border-color: var(--grey-01);
}

.bs-actionsbox .btn-group {
    width: 100%;
    margin: -4px;
}

.bootstrap-fixed ~ * .bs-actionsbox .btn-group .actions-btn,
.bs-actionsbox .btn-group .actions-btn {
    width: 100%;
    margin: 4px;
    height: initial;
    text-align: center;
    justify-content: center;
    border-radius: var(--radius) !important;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary) !important;
    color: var(--primary) !important;
    padding: 6px 10px !important;
    height: auto !important;
}

.category-icon {
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.form-check-input {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
}
@media (max-width: 576px) {
    .form-check-inline .form-check-input[type="radio"],
    .form-check-inline .form-check-input[type="checkbox"] {
        margin-top: 0;
    }
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.bootstrap-select > .dropdown-toggle:after {
    display: none;
}

.btn.dropdown-toggle.btn-light .filter-option-inner-inner {
    font-size: var(--form-component-font-size);
    line-height: 1.6;
}

.tag-editor {
    height: var(--form-component-height);
}

/* _________________ Reviewed _________________ */
.form-label {
    position: relative;
    margin: 0px 0px 2px 2px;
    font-size: var(--form-component-label-size);
    color: var(--form-label-color);
}
    .form-label.disabled {
        opacity: .5;
    }


.form-control,
.form-select {
    display: flex;
    align-items: center;
    width: 100%;
    padding: var(--form-component-padding);
    height: var(--form-component-height);
    font-size: var(--form-component-font-size);
    border-radius: var(--radius-base);
    border-color: var(--input-text-border-color);
    background-color: var(--input-text-background-color);
    appearance: none;
}

.tag-editor {
    border-radius: var(--radius-base);
}

textarea.form-control {
    scrollbar-width: thin !important;
}

textarea.form-control::-webkit-scrollbar-track {
    background-color: var(--white-02) !important;
    -webkit-box-shadow: inset 0 0 6px var(--white-02) !important;
    box-shadow: inset 0 0 6px var(--white-02) !important;
}
textarea.form-control::-webkit-scrollbar {
    background-color: var(--white-02) !important;
    width: 15px !important;
    height: 8px;
}
textarea.form-control::-webkit-scrollbar-thumb {
    background-color: var(--scroll-thumb-light-custom-color) !important;
    border-radius: 10px;
}
.wdk-layout-monitor textarea[readonly="readonly"] {
    padding-top: 12px;
    border: none;
    background-color: var(--grey-01);
    resize: none;
}
.wdk-layout-monitor
    textarea[readonly="readonly"]
    ~ .wdk-group
    > .small.text-end {
    display: none;
}

@media (max-width: 576px) {
    textarea .form-control {
        scrollbar-width: thin !important;
    }

    textarea.form-control::-webkit-scrollbar-track {
        background-color: var(--white-02) !important;
        -webkit-box-shadow: inset 0 0 6px var(--white-02) !important;
        box-shadow: inset 0 0 6px var(--white-02) !important;
    }

    textarea.form-control::-webkit-scrollbar {
        background-color: var(--white-02) !important;
        width: 5px !important;
        height: 5px;
    }

    textarea.form-control::-webkit-scrollbar-thumb {
        background-color: var(--scroll-thumb-light-custom-color) !important;
        border-radius: 10px;
    }
}

.label-group {
    display: flex;
    margin: -2px;
    width: calc(100% + 2px);
}

.label-group > * {
    margin: 2px;
}

.label-group.al-center {
    align-items: center;
}

.form-check-inline .label-group label {
    margin-left: 0 !important;
}

.form-check-inline .label-group {
    padding-left: 8px;
}

/* Fixe when label-group is used inside an accordion */

.accordion-header .label-group {
    margin: 0;
}

.accordion-header .label-group > * {
    margin: 0;
    margin-right: 4px;
}

/*--------------------------------------------------------
Fixes
---------------------------------------------------------*/

/* Category input fixe */
.category-line {
    height: 34px !important;
}

/*--------------------------------------------------------
Search
---------------------------------------------------------*/
textarea.form-control {
    height: 80px;
}

textarea.form-control.monitor {
    height: 52px;
}

.form-control.has-actions {
    padding-right: 48px;
}

textarea.form-control.has-actions {
    padding-right: 38px;
    height: 100px;
    max-height: 100px;
}

textarea.form-control.has-actions ~ .form-control-actions {
    top: initial;
    bottom: 22px;
    right: 8px;
    flex-direction: column;
    justify-content: space-around;
    height: 94px;
    margin: 0   ;
}

.form-control-actions {
    display: flex;
    position: relative;
    justify-content: end;
}

.form-control.has-actions ~ .form-control-actions {
    position: absolute;
    top: 0;
    bottom: initial;
    right: 0;
}

.form-control.has-actions ~  .form-control-actions .btn.btn-inline {
    min-width: 32px;
    color: var(--grey-350);
}

.form-control.has-actions ~  .form-control-actions.alt {
    top: initial;
    bottom: 4px;
    right: 2px;
}

.form-control.has-action {
    padding-right: 66px;
}

/* FIX Input inline */
.form-check.form-check-inline.form-switch .form-check-input{
    margin-top: 0;
    min-width: 48px;
}

/* Form check inline msg */
.label-inner-msg {
    position: absolute;
    white-space: nowrap;
    font-size: 11px;
    left: 2px;
    bottom: -16px;
    margin: 0;
    color: var(--grey-03);
}
.form-check.form-check-inline .form-check-label {
    position: relative;
}

.msg-erro {
    color: var(--danger);
}

/* Input Number Spinner */

.input-number-spinner .btn {
    position: absolute;
    width: 34px;
    height: 34px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: none;
    border-radius: 8px;
    background-color: var(--grey-01);
    z-index: 2;
    transition: .3s;
}
.input-number-spinner .btn i {
    font-weight: bold;
}
.input-number-spinner .btn.btn-primary {
    background-color: var(--primary);
}
.input-number-spinner .btn.btn-secondary {
    background-color: var(--secondary);
}
.input-number-spinner .btn.btn-tertiary {
    background-color: var(--tertiary);
}

.input-number-spinner .btn:hover {
    background-color: var(--grey-02);
    transition: .3s;
}

.input-number-spinner .form-control {
    padding: 4px 56px;
    border-radius: 8px !important;
}

.input-number-spinner .form-control:focus,
.input-number-spinner .form-control:active {
    z-index: 1;
}

.input-number-spinner .form-control::-webkit-outer-spin-button,
.input-number-spinner .form-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-number-spinner .form-control[type=number] {
    -moz-appearance: textfield;
}

.input-number-spinner .btn:first-child {
    left: -2px;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-number-spinner .btn:last-child {
    right: -1px;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.input-ineer-icon {
    position: relative;
}

.input-ineer-icon .form-control {
    padding-left: 28px;
}

.input-ineer-icon.has-icon-right .form-control {
    padding-left: 12px;
    padding-right: 28px;
}

.input-ineer-icon [class*="icon-"] {
    position: absolute;
    top: 50%;
    left: 8px;
    color: var(--grey-375);
    transform: translateY(-50%);
}

.input-ineer-icon.has-icon-right [class*="icon-"] {
    left: initial;
    right: 8px;
}

.input-sortable .form-control {
    padding-left: 26px !important;
}

.input-sortable:before {
    content: "\eb41";
    display: block;
    position: absolute;
    left: 4px;
    top: 50%;
    width: 20px;
    height: 20px;
    font-size: 22px;
    color: var(--placeholder);
    font-family: 'icomoon' !important;
    margin-right: 12px;
    cursor: grab;
    line-height: 1;
    transform: translateY(-50%);
    z-index: 4;
}

.input-number-spinner.spinner-bare {
    width: auto;
}

.input-number-spinner.spinner-bare .btn {
    background-color: transparent;
    border-radius: 100% !important;
    border: 2px solid var(--grey-03);
    width: 24px;
    height: 24px;
    padding: 0;
}
.input-number-spinner.spinner-bare .btn i {
    font-size: 20px;
}

.input-number-spinner.spinner-bare .btn:active {
    border: 2px solid var(--grey-02) !important;
}

.input-number-spinner.spinner-bare .btn:first-child {
    left: 4px;
}

.input-number-spinner.spinner-bare .btn:last-child {
    right: 5px;
}

/* Radio Card - Incident */
.form-radio-card {
    border-radius: 8px;
    padding: 12px 16px;
    height: 100%;
    width: 100%;
    background-color: var(--grey-01);
    color: var(--grey-03);
    transition: .3s;
}

.form-radio-card:hover {
    background-color: var(--grey-02);
    transition: .3s;
}

input:checked ~ .form-radio-card {
    background-color: var(--primary);
}

input:checked ~ .form-radio-card:hover {
    background-color: var(--primary-dark);
    transition: .3s;
}

.form-radio-card .radio-card-label {
    font-weight: 500;
}

input:checked ~ .form-radio-card .radio-card-label,
input:checked ~ .form-radio-card i {
    color: var(--white-01);
}

.form-radio-card .radio-card-token {
    position: relative;
    width: 16px;
    height: 16px;
    padding: 1px;
    background-color: transparent;
    border-radius: 100%;
    border: 1px solid var(--grey-03);
}

input:checked ~ .form-radio-card .radio-card-token {
    border-color: var(--secondary);
}

input:checked ~ .form-radio-card .radio-card-token:after {
    content: '';
    display: block;
    position: relative;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 100%;
    background-color: var(--secondary);
    transform: translate(-50%, -50%);
}

.form-radio-card .radio-card-description {
    color: var(--grey-03);
}

input:checked ~ .form-radio-card .radio-card-description {
    color: var(--white-01);
}

.input-group > .btn.btn-outline-primary {
    border-color: var(--input-text-border-color);
    color: var(--placeholder);
}

.input-group > .btn.btn-outline-primary.btn-sm {
    height: 34px;
}

.input-group > .btn.btn-outline-primary:hover {
    color: var(--primary);
    box-shadow: none;
}

.input-group.has-btn-right > .btn.btn-outline-primary {
    border-left: none;
}

.input-group.has-btn-right > .form-control:focus {
    border-right: none;
}

.input-group.has-btn-right > .form-control:focus ~ .btn.btn-outline-primary {
    border-color: var(--input-text-border-focus-color);
}

/* Radio Button - Incident */
.form-check.form-radio-button {
    position: relative;
    width: 100%;
    padding-left: 0;
}

.form-check:has(.label-picker),
.form-check .label-picker {
    max-width: 72px;
}

.form-radio-button .form-check-input {
    display: none;
}

.btn-picker-remove {
    appearance: none;
    position: absolute;
    top: 2px;
    right: 2px;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    background: none;
    border-radius: 100%;
    border: 1px solid transparent;
    line-height: 1;
    z-index: 2001;
}

.btn-picker-remove .icon-close {
    color: white;
    text-shadow: 1px 1px 1px black;
    transition: .3s;
}

.btn-picker-remove:hover:enabled .icon-close {
    color: var(--red-03);
    text-shadow: 1px 1px 1px black;
    transition: .3s;
}

.form-radio-button .form-check-label {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 1px solid var(--grey-01);
    padding: 12px 16px;
    height: 52px;
    width: 100%;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: .3s;
}

.cover-rectangle.form-radio-button .form-check-label {
    width: initial;
}

.form-radio-button .form-check-label:hover {
    filter: contrast(0.9);
    transition: .3s;
}

.form-radio-button input:checked ~ .form-check-label:not(.label-outlined) {
    background-color: var(--grey-01);
}

.form-radio-button input:checked ~ .form-check-label:not(.label-outlined),
.form-radio-button input:checked ~ .form-check-label:not(.label-outlined) i {
    color: var(--grey-04);
}

.form-radio-button input:checked ~ .form-check-label.label-outlined {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.form-radio-button input:checked ~ .form-check-label.label-outlined:hover {
    transition: .3s;
    outline: 2px solid var(--primary-lighter);
    outline-offset: 2px;
}

.form-radio-button .form-check-label.label-outlined:has(img) {
    height: auto;
    padding: 0;
}

/* Form control footer */
.controls.has-footer .form-control,
.form-group.has-footer .form-control {
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.controls.has-footer .form-control:focus,
.controls.has-footer .form-control:focus ~ .form-control-footer,
.form-group.has-footer .form-control:focus,
.form-group.has-footer .form-control:focus ~ .form-control-footer {
    border-color: var(--grey-01);
}

.form-control-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 6px;
    min-height: 21px;
}

.form-control-footer .field-length ,
.form-control-footer small[data-maxlength]{
    position: relative;
    right: initial;
}

.controls.has-footer .form-control-footer,
.form-group.has-footer .form-control-footer {
    border: 1px solid #d1d1d1;
    border-top: none;
    background: #f8f8f8;
    border-radius: 0 0 8px 8px;
}


.wdk-metadata-checklist textarea.form-control {
	scrollbar-width: thin !important;
}

.wdk-metadata-checklist textarea.form-control::-webkit-scrollbar-track {
	background-color: var(--white-02) !important;
	-webkit-box-shadow: inset 0 0 6px var(--white-02) !important;
    box-shadow: inset 0 0 6px var(--white-02) !important;
}
.wdk-metadata-checklist textarea.form-control::-webkit-scrollbar {
	background-color: var(--white-02) !important;
	width: 5px !important;
	height: 5px;
}
.wdk-metadata-checklist textarea.form-control::-webkit-scrollbar-thumb {
	background-color: var(--scroll-thumb-base-custom-color) !important;
	border-radius: 10px;
}

/* Input range custom */
.input-group.form-range-group {
    align-items: center;
    margin-top: 8px;
}

input[type=range] {
    background-color: transparent;
    margin: 10px 0;
    height: 22px;
    -webkit-appearance: none;
}
input[type=range]:focus {
    outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
    background-color: var(--secondary);
    border-radius: 4px;
    cursor: pointer;
    height: 7px;
}
input[type=range].primary::-webkit-slider-runnable-track {
    background-color: var(--primary);
}
input[type=range]::-webkit-slider-thumb {
    border-radius: 15px;
    background-color: #1a3d4d;
    cursor: pointer;
    margin-top: -4px;
    width: 15px;
    height: 15px;
    -webkit-appearance: none;
    -webkit-box-shadow: 0px 8px 8px rgba(13, 39, 51, 0.16);
    box-shadow: 0px 8px 8px rgba(13, 39, 51, 0.16);
}
input[type=range]:focus::-webkit-slider-runnable-track {
    background-color: var(--secondary-dark);
}
input[type=range].primary:focus::-webkit-slider-runnable-track {
    background-color: var(--primary);
}
input[type=range]::-moz-range-track {
    background-color: #1a3d4d;
    border-radius: 4px;
    cursor: pointer;
    height: 7px;
}
input[type=range]::-moz-range-thumb {
    background-color: #1a3d4d;
    border-radius: 15px;
    cursor: pointer;
    width: 15px;
    height: 15px;
}
input[type=range]::-ms-track {
    background-color: transparent;
    color: transparent;
    cursor: pointer;
    height: 7px;
}
input[type=range]::-ms-fill-lower {
    background-color: #1a3d4d;
    border-radius: 8px;
}
input[type=range]::-ms-fill-upper {
    background-color: #1a3d4d;
    border-radius: 8px;
}
input[type=range]::-ms-thumb {
    background-color: #1a3d4d;
    border-radius: 15px;
    cursor: pointer;
    margin-top: 1px;
    width: 15px;
    height: 15px;
}
input[type=range]:focus::-ms-fill-lower {
    background-color: #1a3d4d;
}
input[type=range]:focus::-ms-fill-upper {
    background-color: #1a3d4d;
}

.form-box-flex {
    height: calc(100% - 26px)!important;
    max-height: initial;
}

.form-box-flex:has(.text-danger.field-validation-valid:not(:empty)) {
    height: calc(100% - 48px)!important;
}
