// Form Fields Design
@mixin form-field-style {
    height: 38px;
    border-color: #BABABA;
    color: #383838;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 24px;
    border-radius: 4px;

    &::placeholder {
        color: #999999;
    }

    &:focus {
        box-shadow: none;
        outline: none;
        border-color: #475BB2;
    }
}

// Bulk Action CSS
@mixin bulk-action {
    margin: 0;
    padding: 0;
    height: auto;
}

// Form Toggle Button
@mixin form-toggle {
    input[type="checkbox"] {
        border-radius: 20px;
        border: 0;
        width: 30px;
        flex: 0 0 30px;
        background: #d5d5d5;
        box-shadow: none;

        &::after {
            width: 12px;
            height: 12px;
            transform: translateX(3px);
        }

        &:checked {
            background: #475BB2;
            border-color: #475BB2;

            &::after {
                transform: translateX(15px);
            }
        }
    }
}


// Form Footer Save and Cancel Buttons
@mixin form-footer-button {
    margin-bottom: 0;
    padding: 0 !important;
    padding-top: $spacing_28px !important;
    border-top: $border_width solid $border_color;
    margin-top: $spacing_28px;

    .button {
        &-secondary {
            border-radius: 4px;
            box-shadow: none;
            padding: 8px 16px;
            color: #ffffff;
            font-size: 14px;
            font-weight: 400;
            line-height: 24px;
            border: 0;
            background: transparent;
            border: 1px solid #bababa;

            a {
                color: #6B6B6B;
            }
        }

        &-primary {
            border-radius: 4px;
            box-shadow: none;
            padding: 8px 16px;
            color: #ffffff;
            font-size: 14px;
            font-weight: 400;
            line-height: 24px;
            border: 0;
        }
    }
}

// Back Button CSS
@mixin back-button {
    margin-right: 0;
    padding-right: 0;
    border-right: 0;
    width: 40px;
    height: 40px;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;

    &:focus {
        box-shadow: none;
        outline: none;
    }

    svg {
        width: 20px;
        height: 20px;
    }
}
