﻿.as-text, .as-Date, .as-date, .as-number {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #CFCFCF;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    border-radius: 5px;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

    .as-text::placeholder {
        color: #BBBBBB;
        opacity: 1; /* Firefox */
    }

    .as-text::-ms-input-placeholder { /* Edge 12 -18 */
        color: #BBBBBB;
    }

    .as-text:focus, .as-Date:focus, .as-number:focus {
        border-color: #FDD1E8 !important;
        outline: 0;
        box-shadow: none !important;
    }

.as-select {
    background-image: url(../images/icon/arrow-down.png);
    background-size: 14px 8px;
    background-repeat: no-repeat;
    background-position: 98% 50%;
    border-radius: 5px;
    border: 1px solid #CFCFCF;
    font-size: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .as-select:focus {
        border-color: #FDD1E8 !important;
        outline: 0;
        box-shadow: none !important;
    }


.as-file-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

    .as-file-group .as-file {
        border: 1px solid #CFCFCF;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
        cursor: pointer;
        position: relative;
        flex: 1 1 auto;
        width: 1%;
        min-width: 0;
        overflow: hidden;
        padding: 0.375rem 0.75rem;
        line-height: 1.5;
        color: #212529;
    }

    .as-file-group .as-file-text {
        display: flex;
        align-items: center;
        padding-left: 30px;
        padding-right: 30px;
        line-height: 1.5;
        color: #484848;
        text-align: center;
        white-space: nowrap;
        background-color: #E8E8E8;
        border: 1px solid #CFCFCF;
        margin-left: -1px;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
        cursor: pointer;
        margin-bottom: 0;
    }

    .as-file-group .as-file::-webkit-file-upload-button {
        display: none;
    }

    .as-file-group .as-file::-webkit-file-upload-button {
        visibility: hidden;
    }

    .as-file-group .as-file:focus {
        border-color: #FDD1E8 !important;
        outline: 0;
        box-shadow: none !important;
    }

.as-file-preview-group {
    margin: 5px -5px;
}

.as-file-preview-item {
     margin-right: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    display: inline-block;
    position: relative;
    width: 60px;
    height: 75px;
    border: 1px solid #DADADA;
    border-radius: 5px;
}

.as-file-preview-item:first-child {
    margin-right: 2.5px;
}

.as-file-preview {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.as-file-preview-extra {
    margin-right: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    display: inline-block;
    position: relative;
    width: 65px;
    height: 75px;
    border: 1px solid #DADADA;
    border-radius: 5px;
    object-fit: contain;
}

.as-file-preview-del {
    display: block;
    background-image: url(../images/ic-cross-red.png);
    background-size: 15px;
    width: 15px;
    height: 15px;
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1;
    text-indent: -9999px;
}

.as-file-btn {
    color: transparent;
}

    .as-file-btn::-webkit-file-upload-button {
        visibility: hidden;
    }

    .as-file-btn::before {
        content: 'Choose file';
        display: block;
        border-radius: 90px;
        background: #14AE5C;
        outline: none;
        -webkit-user-select: none;
        cursor: pointer;
        padding: 10px;
        color: #FFF;
        font-size: 22px;
        text-align: center;
    }

    .as-file-btn:active::before {
        background: #228B22;
    }

/* Hide the default checkbox appearance */
.as-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.25);
    border-radius: .25em;
    cursor: pointer;
    position: relative;
    top: 5px;
}

    /* Style when the checkbox is checked */
    .as-checkbox:checked {
        background-color: transparent;
        border-color: rgba(0,0,0,.25);
    }

        /* Adding a custom checkmark when checked */
        .as-checkbox:checked::before {
            content: '';
            background-image: url('../images/icon/check-green.png'); /* Path to your checkmark image */
            background-size: 14px 10px;
            width: 14px;
            height: 10px;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

    /* Optional: Add hover effect */
    .as-checkbox:hover {
        border-color: #CDCDCD;
        box-shadow: none;
    }

.as-group-hierarchy .form-control {
    margin-bottom: 1rem !important;
}

.as-form-group label {
    font-weight: 600;
}
