﻿.validation-message {
    color: red;
}

input.form-control:focus {
    border-color: #80bdff; /* สีเข้าสู่โฟกัส */
    outline: 0; /* ไม่มีเส้นขอบ */
    box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25); /* เพิ่มเงาเข้าไปเมื่อเป็นโฟกัส */
    transition: box-shadow 0.3s ease-in-out;
}

#sidebar-menu ul li a {
    display: block !important;
}

.container {
    display: inline;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    /* Hide the browser's default checkbox */
    .container input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
    background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark {
    background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* Style Border color By Text*/
/*.input[type=text] focus {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #00FFFF;
    border-radius: 4px;
    box-sizing: border-box;
}
*/

/*#region Custom radio-box*/
.e-radio + label .e-label {
    color: #000000;
    margin-left: 5px;
}
.e-radio:checked + label::before {
    background-color: #ffffff !important;
    border-color: #0f9cf3 !important;
    border-width: 4px;
    transform: scale(1.5);
    transition: border-color 0.3s linear,background-color 0.3s linear;
}
.e-radio + label::before {
    background-color: rgb(238 238 238) !important;
    border-color: #ced4da !important;
    transform: scale(1.5);
    transition: border-color 0.3s linear,background-color 0.3s linear;
}
.e-radio:disabled + label .e-label {
    color: #000000cc !important;
}
/*#endregion  Custom radio-box*/

/*#region Custom checkbox*/
.e-checkbox-wrapper .e-frame, .e-css.e-checkbox-wrapper .e-frame {
    background-color: #eee !important;
    border-color: #ced4da !important;
    transform: scale(1.5);
    border-radius: 1px !important;
    transition: background-color 0.3s linear;
}

    .e-checkbox-wrapper .e-frame.e-check, .e-css.e-checkbox-wrapper .e-frame.e-check {
        background-color: #0f9cf3 !important;
        color: #fff !important;
        font-weight: bold !important;
        transform: scale(1.5);
        border-radius: 1px !important;
        border-style: hidden !important;
        transition: background-color 0.3s linear;
    }

.e-icons.e-check:before {
    content: "\e774" !important;
}

.e-checkbox-wrapper .e-frame + .e-label, .e-css.e-checkbox-wrapper .e-frame + .e-label {
    margin-left: 13px !important;
}
.e-checkbox-wrapper.e-checkbox-disabled .e-label, .e-css.e-checkbox-wrapper.e-checkbox-disabled .e-label {
    color: #000000cc !important;
}
/*#endregion Custom checkbox*/

span.e-input-group-icon.e-ddl-icon.e-icons.e-ddl-disable-icon {
    border: none;
}


.dot-spinner {
    --uib-size: 4rem;
    --uib-speed: 0.9s;
    --uib-color: #0f9cf3;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: var(--uib-size);
    width: var(--uib-size);
}

.dot-spinner__dot {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    width: 100%;
}

    .dot-spinner__dot::before {
        content: '';
        height: 20%;
        width: 20%;
        border-radius: 50%;
        background-color: var(--uib-color);
        transform: scale(0);
        opacity: 0.5;
        animation: pulse0112 calc(var(--uib-speed) * 1.111) ease-in-out infinite;
        box-shadow: 0 0 20px rgba(18, 31, 53, 0.3);
    }

    .dot-spinner__dot:nth-child(2) {
        transform: rotate(45deg);
    }

        .dot-spinner__dot:nth-child(2)::before {
            animation-delay: calc(var(--uib-speed) * -0.875);
        }

    .dot-spinner__dot:nth-child(3) {
        transform: rotate(90deg);
    }

        .dot-spinner__dot:nth-child(3)::before {
            animation-delay: calc(var(--uib-speed) * -0.75);
        }

    .dot-spinner__dot:nth-child(4) {
        transform: rotate(135deg);
    }

        .dot-spinner__dot:nth-child(4)::before {
            animation-delay: calc(var(--uib-speed) * -0.625);
        }

    .dot-spinner__dot:nth-child(5) {
        transform: rotate(180deg);
    }

        .dot-spinner__dot:nth-child(5)::before {
            animation-delay: calc(var(--uib-speed) * -0.5);
        }

    .dot-spinner__dot:nth-child(6) {
        transform: rotate(225deg);
    }

        .dot-spinner__dot:nth-child(6)::before {
            animation-delay: calc(var(--uib-speed) * -0.375);
        }

    .dot-spinner__dot:nth-child(7) {
        transform: rotate(270deg);
    }

        .dot-spinner__dot:nth-child(7)::before {
            animation-delay: calc(var(--uib-speed) * -0.25);
        }

    .dot-spinner__dot:nth-child(8) {
        transform: rotate(315deg);
    }

        .dot-spinner__dot:nth-child(8)::before {
            animation-delay: calc(var(--uib-speed) * -0.125);
        }

@keyframes pulse0112 {
    0%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}


.modal_shade {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: silver;
    opacity: 0.5;
    filter: alpha(opacity=50);
}