.badge-btn:hover {
    cursor: pointer;
    box-shadow: 0px 0px 5px 4px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 0px 5px 4px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 0px 5px 4px rgba(0, 0, 0, 0.1);
}

.submitsearch:hover::before {
    cursor: pointer;
    color: var(--color-primary);
}

#incContent {
    height: 300px;
}

.ck-editor__editable_inline:not(.ck-comment__input *) {
    height: 300px;
    overflow-y: auto;
}

.ck-powered-by-balloon {
    display: none !important;
}

.container {
    max-width: 100%;
}

.container-regis {
    max-width: 1210px;
}

.default-mainregis {
    margin-left: 0px
}

.tabtype {
    display: none;
}

.btn.draggable {
    cursor: grab !important;
}

.btn.draggable span {
    margin-bottom: 5px;
    margin-top: 5px;
}

#formContainer .link.removeList {
    color: var(--color-danger) !important;
    font-size: 1.2em;
}

.ui-sortable-handle {
    cursor: grab;
}

.default-sidebar {
    /* overflow-x: scroll; */
}

#pinmap {
    /* height: 450px; */
}

#locationInput {
    width: 300px;
    padding: 10px;
    font-size: 16px;
    margin: 10px;
}

.title.require::after {
    content: "*";
    color: var(--color-danger);
    padding-left: 4px;
    font-size: .8em;
}

#framePreview {
    border: none;
    overflow: hidden !important;
}

.form-upload .topgraphic {
    width: 500px;
}

.form-upload .topgraphic .cover {
    padding-top: 50%;
    background-color: #fff;
}


.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: block !important;
}

.default-sidebar .body {
    padding: 15px;
    overflow: scroll;
    height: 95%;
}

.table-responsive .cover {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.panel-placeholder {
    border: 1px dotted black;
    border-radius: 4px;
    margin: 0 15px 20px 15px;
    padding: 0;
    height: 50px;
}

#ui-datepicker-div {
    z-index: 9 !important;
}

.status_No {
    background-color: #ff0000;
    font-weight: normal;
}

.status_Pending {
    background-color: #ff9966;
    font-weight: normal;
}

.status_Yes {
    background-color: #6930db;
    font-weight: normal;
}

.status_confirm {
    background-color: #21b064;
    font-weight: normal;
}

.status_Ship {
    background-color: #cedb30;
    font-weight: normal;
}

.status_stock {
    background-color: #e38f15;
    font-weight: normal;
}

.status_Return {
    background-color: #1959c1;
    font-weight: normal;
}

.status_Cancel {
    background-color: #c8c8c8;
    font-weight: normal;
}

.status_Success {
    background-color: #16a273;
    font-weight: normal;
}

.status_Invoiced {
    background-color: #ff9966;
    font-weight: normal;
}

.status_Error {
    background-color: #c8c8c8;
    font-weight: normal;
}

/* .cart-nav .item-list li {
    position: relative;
    width: 25%;
    float: left;
} */

.dashboard_title .title {
    font-size: 15px;
    color: #898989;
}

.dashboard_title .numberdashboard {
    margin-top: 10px;
    font-size: 30px;
    text-align: left;
    font-weight: bold;
}

.dashboard_title .boxsec {
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-top: 5px;
    padding: 20px;
    height: 100%;
}

.boxshowmax {
    height: 350px;
    overflow: scroll;
}

.listsec {
    list-style: none;
    padding: 0px;
    margin: 0px;
}

.listsec li {
    border-bottom: 1px solid #eaeaea;
    padding: 10px 0;
    margin-bottom: 2px;
    font-size: 17px;
    transition: 0.5s;
}

.listsec a {
    color: #333;
    transition: 0.5s;
}

.listsec li.active {
    transition: 0.5s;
    background-color: #545454;
    padding: 10px 5px;
    border-radius: 5px;
}

.listsec li.active a {
    color: #e7e7e7;
    transition: 0.5s;
}

.dashboard_title .select2-container .select2-selection--single {
    height: 45px;
}

.dashboard_title .titlestatus {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.dashboard_title .viewall {
    font-size: 15px;
    color: #fff;
    background-color: #1d9bc6;
    padding: 5px 10px;
    border-radius: 5px;
}

.dropdownpagination {
    width: auto;
    height: 35px;
    margin-right: 5px;
}

.dropdownpagination .select2-container--default .select2-selection--single {
    height: 35px;
}

.dropdownpagination .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 15px;
    line-height: 35px;
    font-size: var(--typo-xs);
    color: var(--color-dark);
}

.dropdownpagination .select2-container--default .select2-selection--single .select2-selection__arrow b {
    height: 35px;
}

.titleInput .input-group-text {
    padding: 14px 20px;
    border: none;
    background-color: var(--color-secondary);
    font-weight: var(--fw-bold);
    font-size: var(--typo-xxs);
    color: var(--color-primary);
    vertical-align: middle;
    line-height: 1.2em;
}

.titleInput .form-control:not(:first-child) {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}



/* edit by ohm2 27/06/24 */

.table-shopping-addon.shopping-cart table tbody tr td {
    padding: 15px 20px;
}

.table-shopping-addon.shopping-cart .info .title {
    font-size: 16px;
    margin-bottom: 5px;
}

.table-shopping-addon.shopping-cart .info small {
    line-height: 1.8em;
    font-size: 13px;
}

.table-shopping-addon.shopping-cart .btndown {
    width: 20px;
    height: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 1px 4px;
    background-color: #ffff;
    border-radius: 2px;
    text-decoration: none;
    margin-left: 5px;
}

.table-shopping-addon.shopping-cart .btndown span {
    color: var(--color-default);
}


.search_highlight {
    background-color: yellow;
}

#char-count {
    font-size: 15px;
    position: absolute;
    bottom: 0px;
    right: 0px;
    padding: 10px;
}

.auth-page {
    background: url("../img/background/auth.jpg") center;
    background-size: cover;
}

.suborder {
    background: #f2f2f2;
}

.suborder>td table {
    background: #fff;
}

.boxcreditover {
    margin-top: 5px;
    margin-bottom: 5px;
}

.custom-select {
    width: 100%;
    padding: 5px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;

    appearance: none;
    /* ปิดการแสดง UI เริ่มต้นของ select */
    -webkit-appearance: none;
    /* สำหรับเบราว์เซอร์ที่ใช้ WebKit */
    -moz-appearance: none;
    /* สำหรับ Firefox */
    padding-right: 30px;
    /* เว้นที่สำหรับลูกศร */
    position: relative;


    font-size: var(--typo-xs);
    color: var(--color-dark);

    padding-left: 15px;
    line-height: 40px;
    font-size: var(--typo-xs);

    height: auto;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M0 0L2 2L4 0z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px;
}

/* ลูกศรลง (dropdown arrow) */
.custom-select::after {
    font-family: "feather";
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    /* ไม่ให้ลูกศรถูกคลิกได้ */
    font-size: 12px;
    color: #666;
}

/* เปลี่ยนสีเส้นขอบเมื่อโฟกัส */
.custom-select:focus {
    border-color: #66afe9;
    outline: none;
    box-shadow: 0 0 5px rgba(102, 175, 233, 0.6);
}

/* ปรับรูปแบบของตัวเลือกใน select */
.custom-select option {
    padding: 10px;
}

.custom-select option {
    display: none;
    /* ซ่อนตัวเลือก */
}

/* เมื่อ select2 ถูกเรียกใช้งาน */
.custom-select.select2-hidden-accessible option {
    display: block;
    /* แสดงตัวเลือกเมื่อ select2 พร้อมใช้งาน */
}

.address_name,
.address_info,
.address_delivery {
    font-size: 15px;
    padding: 2px 0;
}

.address_name {
    font-size: 18;
    font-weight: bold;
}

.cart-nav .item-list li:last-child.active::after {
    display: none;
}

#formmain .card-header .filter .block-control {
    min-width: unset
}


.btnmanage {

    padding: 0 20px;

    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 15px;
    margin-left: 6px;

    height: 44px;
    line-height: 42px;

    border: 1px solid rgba(0, 0, 0, 0);

    color: #fff;
    background-color: var(--color-success);
    border-color: rgba(0, 0, 0, 0);
    border-radius: 4px;
}

.select2-container--default .select2-results__group {
    background-color: #f3f3f3;
    color: #666;
}

.auth-page .nav-tabs {
    margin-bottom: 20px;
}

.auth-page .nav-tabs .nav-link {
    color: var(--color-dark);
    font-weight: var(--fw-normal);
    font-size: var(--typo-xs);
    cursor: pointer;
}

.auth-page .nav-tabs .nav-link.active {
    color: var(--color-primary);
    /* color: #fff;
    background-color: var(--color-primary); */
    /* border-color: rgba(0, 0, 0, 0); */
}

.auth-page .auth-card {
    padding: 20px;
}

.tabsreport {
    font-size: 15px;

}

.tabsreport .nav-link {
    color: var(--color-primary);
}

.mangemenu {
    color: #fff;
    background-color: var(--color-success);
    border-color: rgba(0, 0, 0, 0);
    border-radius: 4px;
    width: 100px;
    text-align: center;
    padding: 10px;
}

.mangemenu:hover {
    color: #fff;
}

.bg-none {
    background: #e4e4e4;
}

.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 30px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    height: 100%;
    width: 70%;
    /* ปรับค่าตามเปอร์เซ็นต์ที่ต้องการ */
    background-color: #4caf50;
    transition: width 0.5s ease-in-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}


.select2-selection__clear {
    margin-right: 45px !important;
    margin-top: 13px;
    color: #ff0000;
}

#duplicate-items-list li {
    font-size: 12px;
    text-align: left;
    margin-bottom: 2px;
}

.copybill {
    margin-top: 5px;
    font-size: var(--typo-xxs);
    font-weight: var(--fw-medium);
    padding: 5px 8px;
    background-color: #66afe9;
    color: #fff;
}

.was-validated .form-control:not([required]):valid {
    border-color: inherit !important;
    background-image: none !important;
    box-shadow: none !important;
    border: 1px solid var(--color-border) !important;
}

/* Invalid (กรอบแดง) */
.select2-container--default.select2-container--focus .select2-selection--single.is-invalid,
.select2-container--default .select2-selection--single.is-invalid {
    border: 1px solid #dc3545 !important;

    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 2.188rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Valid (กรอบเขียว) */
.select2-container--default.select2-container--focus .select2-selection--single.is-valid,
.select2-container--default .select2-selection--single.is-valid {
    border: 1px solid #198754 !important;
}


.was-validated .form-check-input:invalid~.form-check-label,
.was-validated .form-check-input:valid~.form-check-label {
    display: inline-block;
    padding-left: 0.25rem;
}

.radio-control input[type="radio"].is-invalid~.icon {
    border: 1px solid #dc3545;
}


.form-procress.register .number {
    cursor: pointer;
}

@keyframes shake {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-6px); }
    50%  { transform: translateX(6px); }
    75%  { transform: translateX(-6px); }
    100% { transform: translateX(0); }
  }
  
  .shake {
    animation: shake 0.3s;
  }


  .condition-block {
    padding: 20px;
  border: 1px solid #000;
  }

  .btnqrcode {
    background-color: #0072bc;
    font-weight: normal;
    cursor: pointer;
    margin: 2px;
  }
  .btnqrcode:hover{
    background-color: #005ea6;
    color: #fff;
  }
  
  .btnslip {
    background-color: #16a273;
    font-weight: normal;
    cursor: pointer;
    margin: 2px;
  }

  .form-procress .title {
    text-wrap: nowrap;;
  }

  .auth-card .logo {
  width: 160px;
}

.default-sidebar .header {
  position: relative;
  height: 70px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 0 15px;

}
.default-sidebar .header .brand {
  /* padding: 10px; */
  background-color: #fff;
  border-radius: 5px;
    width: 100%;
}


.default-sidebar .header .brand .link {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  justify-content: center;
  padding: 5px 0px;
}