html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}


@font-face {
    font-family: 'prompt-regular';
    src: url('../fonts/prompt-regular.ttf') format('truetype');
}

body {
    height: inherit;
    background: #f3f4f5;
    font-family: 'prompt-regular', sans-serif;
    color: #333;
    font-size: 0.85rem;
    touch-action: manipulation;
}

.main-wrapper {
    height: 100%
}

header {
    height: 80px;
}

.custom-button {
    color: red;
    border-color: red;
    background-color: white;
}

    .custom-button:hover {
        background-color: red;
        color: white;
    }

.header-middle-wrap {
    padding: 1rem 0px;
    max-width: 140px;
}

/**************************/
.breadcrumb-item + .breadcrumb-item {
    display: block;
}

.card, .card-body {
    border-radius: 1.5rem;
    border-color: transparent;
}

.card {
    box-shadow: 1px 2px 4px 0px #afafaf;
}

    .card.card-hc {
        border-color: #ddd;
        padding: 1rem;
    }

label {
    padding-left: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-control, .form-select {
    border-radius: 1rem;
    border-color: #c0c8d5;
}

.form-group {
    margin-bottom: 0.75rem;
}

span.text-danger {
    padding-left: 10px;
}

.radious-05 {
    border-radius: 0.5rem;
}

.radious-1 {
    border-radius: 1rem;
}

.radious-2 {
    border-radius: 2rem;
}

.small-title {
    color: #777;
}

:root {
    --main-theme: #D43232;
}

.color-darkgray {
    color: #333;
}

.color-main {
    color: var(--main-theme);
}

.bigger-number {
    font-size: 1.5rem;
}

.subtext {
    color: var(--main-theme);
}


.panel-main {
    background-color: #FEEAE3;
    min-height: 30px;
}

.btn {
    min-width: 120px;
}

.btn:hover {
    opacity: 1;
    color: inherit;
}

.btn-primary {
    background-color: var(--main-theme);
    border-color: var(--main-theme);
    color: #fff !important;
}

    .btn-primary:hover, .btn-primary:active, .btn-primary:visited, .btn-primary:focus {
        background-color: var(--main-theme);
        border-color: var(--main-theme);
        color: #fff !important;
    }


.btn-cal {
    min-width: 150px;
}

    .btn-cal.btn-info {
        color: var(--main-theme);
        border: 1px solid var(--main-theme);
        background-color: #fff;
    }

/*****************  Form ************************/
/*.form-check-parent {
    padding: 8px 10px 6px 10px !important;
    background: #FEEAE3;
    border-radius: 2rem;
    border: 1px solid #98A2B3;
}

    .form-check-parent .form-check {
        margin: 0px !important;
    }

        .form-check-parent .form-check .form-check-input {
            width: 1.5em;
            height: 1.5em;
            margin-top: 0em;
        }

            .form-check-parent .form-check .form-check-input:checked {
                background-color: #ffffff;
                border-color: #ffffff;
            }
*/

/********************/
.radio-custom-parent {
    /*margin-top: 0.3125rem !important;*/
}

.radio-custom {
    opacity: 0;
    position: absolute;
}

.radio-custom, .radio-custom-label {
    display: inline-block;
    vertical-align: middle;
    /*margin: 5px;*/
    cursor: pointer;
}

.radio-custom-label {
    position: relative;
}

.radio-custom:checked + .radio-custom-label:before {
    content: '';
    background: #fff;
    border-color: #fff;
    display: inline-block;
    vertical-align: middle;
    width: 1.5rem;
    height: 1.5rem;
    /*margin-right: calc((100% - 50px)/2);*/
    text-align: center;
    padding: 1px;
    float:left;
}

.radio-custom + .radio-custom-label:before {
    content: '';
    background: #fff;
    border: 2px solid #ddd;
    display: inline-block;
    vertical-align: middle;
    width: 1.3rem;
    height: 1.3rem;
    /* margin-right: calc((100% - 50px)/2);*/
    text-align: center;
    padding: 2px;
    float: left;
    float: left;
}

.radio-custom + .radio-custom-label:before {
    border-radius: 50%;
}

.radio-custom:checked + .radio-custom-label:before {
    content: "\f00c";
    font-family: 'FontAwesome';
    color: #d43232;
    font-size: 0.85rem;
}

.radio-custom + .radio-custom-label {
    padding: 5px 6px !important;
    background: #fff;
    border-radius: 2rem;
    border: 1px solid #c0c8d5;
    width: 100%;
    text-align: center;
}

.radio-custom:checked + .radio-custom-label {
    padding: 5px 6px !important;
    background: #FEEAE3;
    border-radius: 2rem;
    border: 1px solid #98A2B3;
    width: 100%;
    color: var(--main-theme);
    text-align: center;
}

.radio-custom:focus + .radio-custom-label {
    outline: 1px solid #ddd; /* focus style */
}

/* Radio custom type 2 */
.radio-custom1[type="radio"]:checked,
.radio-custom1[type="radio"]:not(:checked) {
    position: absolute;
    left: -9999px;
}

    .radio-custom1[type="radio"]:checked + label.radio-custom-label1,
    .radio-custom1[type="radio"]:not(:checked) + label.radio-custom-label1 {
        position: relative;
        padding-left: 28px;
        cursor: pointer;
        line-height: 20px;
        display: inline-block;
        color: #666;
    }

        .radio-custom1[type="radio"]:checked + label.radio-custom-label1:before,
        .radio-custom1[type="radio"]:not(:checked) + label.radio-custom-label1:before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 20px;
            height: 20px;
            border: 1px solid #ddd;
            border-radius: 100%;
            background: #fff;
        }

        .radio-custom1[type="radio"]:checked + label.radio-custom-label1:after,
        .radio-custom1[type="radio"]:not(:checked) + label.radio-custom-label1:after {
            content: '';
            width: 12px;
            height: 12px;
            background: var(--main-theme);
            position: absolute;
            top: 4px;
            left: 4px;
            border-radius: 100%;
            -webkit-transition: all 0.2s ease;
            transition: all 0.2s ease;
        }

        .radio-custom1[type="radio"]:not(:checked) + label.radio-custom-label1:after {
            opacity: 0;
            -webkit-transform: scale(0);
            transform: scale(0);
        }

        .radio-custom1[type="radio"]:checked + label.radio-custom-label1:after {
            opacity: 1;
            -webkit-transform: scale(1);
            transform: scale(1);
        }



.error {
    color: #e74c3c;
}

.list-all-products {
    max-height: 200px;
    overflow-y: scroll;
}

.col-odd {
    min-height: 40px;
    background: #FAFAFA;
    border-radius: 0.5rem;
    padding: 10px 15px;
    font-size: 14px;
}

.col-even {
    min-height: 40px;
    background: #F3F4F8;
    border-radius: 0.5rem;
    padding: 10px 15px;
    font-size: 14px;
}

.col-odd-title, .col-even-title {
    font-weight:bold
}

.effective-panel-sticky {
    position: sticky;
    bottom: 0;
    right: 0;
    left: 0;
    overflow: overlay;
    margin: 0px -15px 0px -15px;
    box-shadow: 0px -1px 10px 0px #ccc;
}

.effective-over {
    margin-left: 15px;
    color: var(--main-theme);
}

/* กรณีเป็นจอขนาดใหญ่ไม่ fixed panel นี้ไว้ตลอด */
@media (min-width: 992px) {

    .effective-panel-sticky {
        position: static;
        bottom: 0;
        margin: 0px -15px -15px;
        box-shadow: 0px -1px 10px 0px #ccc;
    }
}

/*Custom css for loadind cache*/
.cacheloading > .swal2-popup {
    width: unset !IMPORTANT;
}

.no-border {
    border: 0;
}

.container-questionName {
    display: flex;
    margin-bottom: 8px;
}