@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Athiti:wght@200;300;400;500;600;700&display=swap');

:root {
    --brand-color: #FB3C7D;
    --brand-backend-color: #FB3C7D;
    --brand-hover-color: #EB6D94;
    --base-color: #333333;
    --body-color: #FFFFFF;
    --gold-color: #EDEBBF;
    --pink-color: #CA174C;
    --pinklight-color: rgba(251, 60, 125, 0.10);
    --red-color: #FF0000;
    --switch-check-color: #87C543;
    --pagination-active-color: linear-gradient(180deg, #F3004C 0%, #CA174C 100%), #D9D9D9;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    font-family: "Prompt", sans-serif;
    font-size: 14px;
    line-height: normal;
    color: var(--base-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

a {
    text-decoration: none !important;
    cursor: pointer;
    color: var(--base-color);
}

.btn {
    box-shadow: none !important;
    outline: none !important;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-brand {
    background: linear-gradient(0deg, #FB3C7D 0%, #FB3C7D 100%), #FB3C7D;
    color: #FFF !important;
}

.btn-brand:hover {
    background: linear-gradient(0deg, #EB6D94 0%, #EB6D94 100%), linear-gradient(180deg, #F3004C 0%, #CA174C 100%);
}

.btn-white {
    border-color:  var(--brand-color) !important;
    background: #FFF;
    color: var(--brand-color) !important;
}

.btn-white:hover {
    opacity: 0.8;
}

.btn-link {
    color: #16A0FC!important;
}

.btn-link.underline {
    text-decoration: underline!important;
}

.btn-link.underline:hover {
    text-decoration: none!important;
}

.btn-link.underline-hv {
    text-decoration: none!important;
}

.btn-link.underline-hv:hover {
    text-decoration: underline!important;
}

.btn-light-brand {
    border: 1px solid var(--brand-color);
    color: var(--brand-color) !important;
}

    .btn-light-brand:hover {
        background-color: var(--brand-color);
        color: #FFF !important;
    }

.btn-light-cancel {
    border: 1px solid #6E6E6E;
    color: #6E6E6E !important;
}

    .btn-light-cancel:hover {
        background-color: #6E6E6E;
        color: #FFF !important;
    }

.wrapper {
    position: relative;
}

.wrapper-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px);
}

.text-brand {
    color: var(--brand-color) !important;
}

.text-base {
    color: var(--base-color)!important;
}

.text-gray {
    color: #AEAEAE!important;
}

.text-gray2 {
    color: #AFAFAF!important;
}

.text-gray3 {
    color: #B8B8B8!important;
}

.text-gray4 {
    color: rgba(51, 51, 51, 0.47) !important;
}

.text-red {
    color: var(--red-color)!important;
}

.text-wrap {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.text-wrap > * {
  display: inline;  
  margin-right: 0.25em;
  padding: 0;
}

.text-wrap br {
  display: none;
}

.bg-gold {
    background: #DEDCB3;
}

.bg-pink {
    background: var(--pink-color);
}

.bg-pinklight {
    background: var(--pinklight-color);
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-semibold {
    font-weight: 600!important;
}

.font-12 {
    font-size: 12px!important;
}

.font-14 {
    font-size: 14px !important;
}

.font-16 {
    font-size: 16px !important;
}

.font-18 {
    font-size: 18px !important;
}

.font-24 {
    font-size: 24px !important;
}

.border {
    border: 1px solid #ABABAB!important;
}

.rounded-10px {
    border-radius: 10px !important;
}

.rounded-20px {
    border-radius: 20px !important;
}

.flex-1 {
    flex: 1!important;
}

.form-label {
    margin-bottom: 2px;
}

.form-control {
    outline: none !important;
    box-shadow: none !important;
    font-size: 14px;
    border-radius: 50rem;
    border: 1px solid #C1C1C1;
    height: 40px;
    padding-left: 15px;
    padding-right: 15px;
}

.form-control:focus {
    border-color: var(--brand-color)!important;
}

.form-control:disabled, .form-control[readonly] {
    background-color: #E6E6E6;
    border-color: #BCBCBC!important;
}

/*.form-control:disabled ~ .calendar-ic,
.form-control[readonly] ~ .calendar-ic {
    background-image: url(../images/icon/calendar-pink.png);
}*/

.form-control.sm {
    height: 30px;
}

.form-check-input:disabled {
    background-color: #E6E6E6!important;
    opacity: 1 !important;
}

.form-select {
    background-image: url(../images/icon/arrow-down.png);
    background-size: 18px 11px;
    border: 1px solid #C1C1C1;
    border-radius: 50px;
    height: 40px;
    outline: none !important;
    box-shadow: none !important;
    padding-left: 15px;
    padding-right: 35px;
    word-wrap: break-word; /* Forces long words to break onto the next line */
    text-overflow: ellipsis; /* Adds ellipsis (...) for overflowing text */
    overflow: hidden; /* Ensures text doesn't overflow the select box */
    color: #000;
}

.form-select:focus {
    border-color: #53C7C3 !important;
    box-shadow: 0 0 0 0.25rem rgb(83 199 195 / 25%);
}

/* Hide the default checkbox appearance */
.form-check-input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 25px;
    height: 25px;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.25) !important;
    border-radius: .25em;
    cursor: pointer;
    position: relative;
    outline: none !important;
    box-shadow: none !important;
    margin-top: 0;
}

.form-check-input[type="checkbox"].border-pink {
    border-color: var(--brand-color)!important;
}

/* Style when the checkbox is checked */
.form-check-input [type="checkbox"]:checked {
    background-color: transparent;
}

/* Adding a custom checkmark when checked */
.form-check-input[type="checkbox"]:checked::before {
    content: '';
    background-image: url('../images/icon/check-pink.png');
    background-size: 18px 14px;
    width: 18px;
    height: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-check-label {
    padding-left: 10px;
    vertical-align: middle;
}

/* ซ่อน radio เดิม */
.form-check-input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 25px;
    height: 25px;
    border: 1px solid var(--brand-color); 
    border-radius: 50%;
    cursor: pointer;
    vertical-align: middle;
    outline: none;
    box-shadow: none;
    margin-top: 0;
    transition: border-color 0.2s ease;
}

.form-check-input[type="radio"]:checked {
    background-color: var(--body-color);
}

/* วงกลมตรงกลางเมื่อ checked */
.form-check-input[type="radio"]:checked::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    background-color: var(--brand-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}


textarea.form-control {
    border-radius: 10px;
    resize: none;
}

.select2-container {
    width: 100% !important;
/*    z-index: 9999 !important;*/
}

.select2-dropdown {
    border-color: #C1C1C1 !important;
    z-index: 9999 !important;
}

.select2-search--dropdown {
    border-top: 1px solid #C1C1C1 !important;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #C1C1C1 !important;
    border-radius: 50px !important;
    height: 40px !important;
    outline: none !important;
    box-shadow: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    width: 13px !important;
    height: 7px !important;
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) rotate(0deg) !important;
    background: url(../images/icon/arrow-down-pink.png) center center / 13px 7px no-repeat !important;
    transition: transform 0.3s ease-in-out !important;
}

/* ซ่อนลูกศรเดิมของ Select2 */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
  display: none;
}

/* เมื่อ select2 เปิด dropdown => กลับหัว arrow */
.select2-container--open .select2-selection--single .select2-selection__arrow {
    transform: translateY(-50%) rotate(180deg) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px !important;
    padding-left: 15px !important;
    padding-right: 35px !important;
    text-align: left;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    height: 40px !important;
    border-radius: 50rem !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--brand-color) !important;
    box-shadow: none !important;
    outline: none !important;
}

.select2-results__option {
    padding-left: 15px !important;
    padding-right: 15px!important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--brand-color) !important;
}

/* โฟกัส หรือเปิด dropdown */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--brand-color)!important; 
}

/* multiple select ก็เขียนคล้ายกัน */
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: var(--brand-color) !important;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #E6E6E6;
    border-color: #BCBCBC!important;
}

.bootstrap-select > .dropdown-toggle {
    outline: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 100% !important;
    padding-top: 8.5px !important;
    padding-bottom: 8.5px !important;
}

.bootstrap-select>.dropdown-toggle:hover {
    border-color: rgb(186, 186, 186)!important;
}

.bootstrap-select>.dropdown-toggle.show, .bootstrap-select>.dropdown-toggle:focus {
    border-color: transparent!important;
    box-shadow: 0 0 0 .25rem rgba(1, 172, 155, .25)!important;
}

.bootstrap-select .dropdown-item, .bootstrap-select .dropdown-item {
    font-size: 14px!important;
}

.bootstrap-select .dropdown-item.active, .bootstrap-select .dropdown-item:active {
    background: #49BCB8!important;
}

textarea {
    height: auto!important;
}

input::placeholder,
textarea::placeholder {
    color: rgba(51, 51, 51, 0.50) !important;
}

.note-editor.note-airframe .note-editing-area .note-editable[contenteditable=false], .note-editor.note-frame .note-editing-area .note-editable[contenteditable=false] {
    background-color: #E6E6E6!important;
}

.note-editor.note-frame.fullscreen, .note-editor.note-airframe.fullscreen {
    z-index: 9999;
}

.custom-file-button .form-control {
    line-height: 1.8;
}

.custom-file-button input[type=file]::-webkit-file-upload-button {
    display: none;
}

.custom-file-button input[type=file]::file-selector-button {
  display: none;
}

.custom-file-button:hover label {
  background-color: #dde0e3;
  cursor: pointer;
}

.custom-file-button .input-group-text {
    border: 1px solid #BCBCBC !important;
    background: #FB3C7D !important;
    padding: 10px 50px;
    height: 40px;
    color: #FFF !important;
    font-size: 14px !important;
    border-top-right-radius: 50rem;
    border-bottom-right-radius: 50rem;
    transition: background 0.3s ease;
}

.custom-file-button .input-group-text:hover {
    background: linear-gradient(0deg, #EB6D94 0%, #EB6D94 100%), linear-gradient(180deg, #F3004C 0%, #CA174C 100%)!important;
}

.bootstrap-select {
    max-width: 100%!important;
}

.bootstrap-select > .dropdown-toggle {
    outline: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 100% !important;
    padding-top: 8.5px !important;
    padding-bottom: 8.5px !important;
    border: 1px solid #CACACA !important;
}

.bootstrap-select>.dropdown-toggle:hover {
    border-color: rgb(186, 186, 186)!important;
}

.bootstrap-select>.dropdown-toggle.show, .bootstrap-select>.dropdown-toggle:focus {
    border-color: #FB3C7D!important;
    box-shadow: none!important;
}

.bootstrap-select .dropdown-item, .bootstrap-select .dropdown-item {
    font-size: 14px!important;
}

.bootstrap-select .dropdown-item.active, .bootstrap-select .dropdown-item:active {
    background: #FB3C7D!important;
}

a:focus,
.btn:focus,
.bootstrap-select .btn:focus {
  outline: none!important;
}

/* เปลี่ยนสีเริ่มต้นของปุ่ม dropdown เป็นสีเทา */
.bootstrap-select>.dropdown-toggle.bs-placeholder {
    color: #C4C4C4!important;
    font-weight: 300!important;
}

/* เมื่อมีการเลือกค่าแล้ว เปลี่ยนเป็นสีดำ */
.bootstrap-select .dropdown-toggle {
    color: #333!important;
    font-weight: 400!important;
    background-color: #FFF!important;
}

.bootstrap-select.fw-bold .dropdown-toggle {
    font-weight: 700!important;
}

.bootstrap-select.rounded-pill .dropdown-toggle {
    border-radius: 50rem!important;
}

/* ซ่อนลูกศรเดิม */
.bootstrap-select .dropdown-toggle::after {
    display: none !important;
}

/* ใส่ไอคอนรูปภาพใหม่ */
.bootstrap-select .dropdown-toggle {
    position: relative;
    padding-right: 40px !important; /* เว้นช่องให้รูป */
}

/* เพิ่มไอคอนรูปภาพเป็น background */
.bootstrap-select .dropdown-toggle::before {
    content: "";
    background: url(../images/icon/arrow-down.png) no-repeat center center;
    background-size: 13px 8px;
    width: 13px; 
    height: 8px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg); /* ลูกศรปกติชี้ลง */
    transition: transform 0.3s ease-in-out;
}

/* เมื่อ dropdown ถูกเปิด ให้หมุนลูกศร */
.bootstrap-select .dropdown-toggle.show::before {
    transform: translateY(-50%) rotate(180deg);
}

.bootstrap-select .dropdown-toggle .filter-option-inner-inner {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bootstrap-select .dropdown-menu {
    border-color: #BABABA!important;
    z-index: 1031;
    padding-top: 0;
    padding-bottom: 0;
}

.bootstrap-select.disabled .dropdown-toggle, .bootstrap-select>.disabled .dropdown-toggle {
    background-color: #EBEBEB!important;
    box-shadow: none!important;
    border: 1px solid #BABABA !important;
}

.bootstrap-select .dropdown-menu {
  max-height: 300px !important;
  overflow-y: auto !important;
  min-height: auto !important; /* ยกเลิก min-height ผิดปกติ */
}

.bootstrap-select .dropdown-menu li a span.text {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: break-word;
}

.small, small {
    font-size: 12px;
    display: block;
}

.photo-thumb {
    position: relative;
    overflow: hidden;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding-bottom: 56.25%; /* 9 / 16 = 0.5625 = 56.25% */
    background: #C4C4C4;
}

.photo-thumb .photo-parent {
    position: absolute;
    height: 100%;
    width: 100%;
}

.photo-thumb .photo {
    height: 100%;
    width: 100%;
    display: block;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    object-fit: cover;
    -webkit-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    transition: all 0.3s linear;
}

.ellipsis-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-editor * {
    font-size: 14px;
    color: var(--base-color);
}

.text-editor a {
    text-decoration: underline !important;
}

.text-editor a:hover {
    text-decoration: none!important;
}

.text-editor ul, .text-editor ol {
    padding-left: 20px !important;
}

.text-editor img {
    max-width: 100% !important;
    height: auto !important;
}

.text-editor h5 {
    font-size: 18px !important;
}

.text-editor h6 {
    font-size: 16px!important;
}

.text-editor .border-bottom {
    border-bottom: 1px solid #929281!important;
}

.text-editor .border-bottom-group .border-bottom:last-child {
    border-bottom: none!important;
}

.text-editor .border-bottom-group .border-bottom:last-child {
    padding-bottom: 0 !important;
}


.c-red {
    color: #FF0000 !important;
}
.pagination {
    flex-wrap: wrap;
    margin-bottom: 0;
/*    margin-top: 40px;*/
}

.pagination .page-item .page-link {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--base-color)!important;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border: none;
    margin-left: 1px;
    margin-right: 1px;
    box-shadow: none!important;
}

.pagination .page-item.active .page-link {
    background: var(--pagination-active-color);
/*    border-color: var(--brand-color);*/
    color: #FFF !important;
}

.pagination .page-item:hover .page-link {
    background: var(--pagination-active-color);
/*    border-color: var(--brand-color);*/
    color: #FFF !important;
}

.pagination .page-item .page-link.transparent {
    background: transparent!important;
    color: var(--base-color) !important;
}

.pagination .page-link.arrow-first::before {
    content: "";
    display: block;
    background-image: url(../images/icon/arrow-first.png);
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: contain;
    width: 16px;
    height: 21px;
}

.pagination .page-item .page-link.disable {
    opacity: 0.5;
    pointer-events: none;

}

.note-editor.note-frame.codeview .note-editing-area .note-codable {
    min-height: 300px !important;
    height: 300px !important;
}

.note-modal-footer {
    height: 60px;
}

.note-editor .checkbox input[type="checkbox" i] {
    margin-right: 5px;
}

/* ซ่อนไอคอน caret ในปุ่ม dropdown ของ Summernote */
/*.note-btn .note-icon-caret {
    display: none !important;
}*/

.note-editable {
    font-family: 'Prompt', sans-serif !important;
}

/*.modal-style {
    z-index: 10000;
}*/

.modal-style .modal-content {
    border-radius: 10px;
}

.modal-style .btn-close {
    background-image: url(../images/icon/close.png);
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 14px;
    width: 14px;
    height: 14px;
    opacity: 1;
    border: none;
    box-shadow: none;
    outline: none;
}

.modal-style .btn-close.absolute {
    position: absolute;
    top: 15px;
    right: 15px;
}

.datepicker-dropdown {
    z-index: 99999 !important;
}

.list-menu-dashed {
    border-bottom: 2px dashed #E7E7E7;
    padding-top: 15px;
    padding-bottom: 15px;
}

.list-menu-dashed:last-child {
    border-bottom: none;
}

.table-disabled {
    pointer-events: none; 
}

.table-disabled * {
    color: rgba(0, 0, 0, 0.30)!important;
}

.table-disabled th {
    background-color: rgba(0, 0, 0, 0.16);
}

.table-disabled .form-control {
    color: var(--base-color)!important;
}

.process-group {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 20px;
}

.process-group .process-item {
    text-align: center;
}

.process-group .process-item .process-circle {
    width: 45px;
    height: 45px;
    border: 2px solid var(--brand-color);
    color: var(--brand-color);
    border-radius: 50%;
    z-index: 1;
    position: relative;
    background: #FFF;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    cursor: pointer;
}

.process-group .process-item.active .process-circle {
    background: var(--brand-color);
    color: var(--body-color);
    font-weight: 700;
    border: none;
}

.process-group::before {
    content: "";
    display: block;
    width: 80%;
    height: 2px;
    background: rgba(68, 68, 68, 0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.process-form.active {
    display: block;
}

.process-form {
    display: none;
}

.item-select {
    display: block;
    border-radius: 75px;
    border: 1px solid var(--brand-color);
    color: var(--brand-color)!important;
    font-size: 14px;
    text-align: center;
    padding: 10px 50px;
}

.item-select.active {
    background-color: var(--brand-color);
    color: var(--body-color)!important;
}

.box-response {
    height: calc(100vh - 160px)
}

@media (min-width: 576px) {
    .h-md-100 {
        height: 100%!important;
    }
}

div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm {
    background: linear-gradient(0deg, #FB3C7D 0%, #FB3C7D 100%), #FB3C7D!important;
    border-radius: 50rem!important;
    border: none!important;
    outline: none!important;
    box-shadow: none!important;
}

div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover {
    background: linear-gradient(0deg, #EB6D94 0%, #EB6D94 100%), linear-gradient(180deg, #F3004C 0%, #CA174C 100%)!important;
}



