.cursor-pointer {
    cursor: pointer;
}
.text-right {
    text-align: right;
}
.min-height-780 {
    min-height: 780px !important;
}
/*custom*/
.img-div {
    width: 200px;
    margin-right: 30px;
    margin-bottom: 5px;
}
.image-add {
    border: 1px #11a578 dashed;
    height: 200px;
    position: relative;
    border-radius: 10px;
}
.image-add:hover {
    cursor: pointer;
}
.image-add span {
    color: #b0bec5;
    font-size: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    /* bring your own prefixes */
    transform: translate(-50%, -50%);
}
.input-image,
#image-holder-banner,
#image-holder,
#image-holder2,
#image-holder3,
#image-holder4,
#image-holder5,
#image-holder6,
#image-holder7,
#image-holder8 {
    display: none;
}
#image-holder-banner:hover,
#image-holder1:hover,
#image-holder2:hover,
#image-holder3:hover,
#image-holder4:hover,
#image-holder5:hover,
#image-holder6:hover,
#image-holder7:hover,
#image-holder8:hover {
    cursor: pointer;
}
#upload-demo {
    width: 100%;
    height: 350px;
    padding-bottom: 25px;
}
.deleteItemTD,
.editItemTD {
    cursor: pointer;
}
.deleteItemTD {
    color: red;
}
.editItemTD {
    color: #ffa87d;
}

/* Pre Save */
.save-wrapper {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(24, 24, 24, 0.85);
    z-index: 9990;
}
.save-wrapper.show {
    display: flex;
}
.product-search-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
}
.product-search-wrapper > select {
    width: fit-content;
    border-radius: 0.25rem 0 0 0.25rem;
}
.product-search-wrapper > .input-search-wrapper {
    padding: 0;
    flex: 1;
}
.product-search-wrapper input[type="text"] {
    border-radius: 0 0.25rem 0.25rem 0;
    margin-left: -1px;
    padding-right: 85px;
}
.product-search-wrapper button {
    right: 0;
    border-radius: 0 0.25rem 0.25rem 0;
}
.dollar:before {
    content: "$";
}
.text-prewrap {
    white-space: pre-wrap;
}
.nav-pills .nav-link {
    color: #7a7a7a !important;
}
.nav-pills .nav-link:hover {
    color: #000000 !important;
}
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active {
    color: white !important;
    background-color: #20c997 !important;
}
.layout-navbar-fixed .wrapper .brand-link span {
    font-weight: 400 !important;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: white !important;
}

.nav-pills .nav-link.menu-open > ul > li a.active {
    color: black !important;
}

.form-border {
    position: relative;
    border: 1px solid #6c757d;
    padding: 1rem;
    margin-top: 1rem;
}
.form-border > span {
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    background-color: #343a40;
    margin-top: -30px;
    margin-left: -0.5rem;
    padding: 3px 10px;
}

.form-border > .del-contact {
    position: absolute;
    top: 5px;
    right: 7px;
    cursor: pointer;
    z-index: 1;
}
.form-border > .del-contact::before {
    content: "\f2ed";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    cursor: pointer;
}

.file-card {
    margin-top: 1.5rem;
}
.file-card > button {
    margin-bottom: 1rem;
}

.paginate_button.page-item.active a {
    background-color: #3bb77e !important;
}

.text-bold {
    font-weight: bolder;
}
.float-right {
    float: right;
}
.mbb-5 {
    margin-bottom: 3rem;
}
.font075 {
    font-size: 0.75rem;
}
#paymentfilter {
    position: absolute;
    left: 1vw;
    width: 25%;
}
.pll-2 {
    padding-left: 1.5rem;
}
#div_category_main,
#div_category_sub1 {
    display: none;
}

/* Select2 - make it match form-control everywhere */
.select2-container {
    width: 100% !important;
}
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem !important;
    min-height: calc(2.25rem + 2px);
}
.select2-container--default .select2-selection--single {
    background-color: #fff !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #495057;
    line-height: calc(2.25rem + 2px);
    padding-left: 0.75rem;
    padding-right: 2.25rem;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(2.25rem + 2px);
    right: 0.5rem;
}
.select2-container--default .select2-selection--multiple {
    padding: 0.15rem 0.5rem 0.25rem 0.5rem;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: rgba(59, 183, 126, 0.15);
    border: 1px solid rgba(59, 183, 126, 0.35);
    color: #1b5b43;
    border-radius: 999px;
    padding: 2px 8px;
    margin-top: 0.25rem;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #1b5b43;
    margin-right: 6px;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #3bb77e !important;
}
.select2-dropdown {
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem !important;
    overflow: hidden;
}
.select2-search--dropdown .select2-search__field {
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem !important;
    padding: 0.375rem 0.75rem !important;
}
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #3bb77e !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 183, 126, 0.15) !important;
}

/* Global typography — Tahoma + ขนาดใหญ่ขึ้น (เสริมจาก assets/css/main.css) */
.material-icons {
    font-family: "Material Icons Round" !important;
}

.form-control,
.btn,
.dropdown-menu,
.dropdown-item,
.nav-link,
.modal-title,
.modal-body,
.alert,
.breadcrumb,
.pagination .page-link,
.input-group-text,
.list-group-item,
.card-body {
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}

table.dataTable tbody td,
table.dataTable thead th {
    font-size: 15px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    font-size: 16px !important;
}

small,
.small {
    font-size: 0.9375rem !important;
}

/* หน้าที่ใช้ layouts.app (forgot-password ฯลฯ) — ทับ Nunito */
body.layout-app {
    font-family: Tahoma, "Segoe UI", Arial, sans-serif !important;
    font-size: 1rem !important;
}

body.layout-app .navbar,
body.layout-app .card,
body.layout-app .dropdown-menu {
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}
