/* noto-sans-thai-200 - latin_thai */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Noto Sans Thai';
font-style: normal;
font-weight: 200;
src: url('/static/fonts/noto-sans-thai-v20-latin_thai-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-thai-regular - latin_thai */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Noto Sans Thai';
font-style: normal;
font-weight: 400;
src: url('/static/fonts/noto-sans-thai-v20-latin_thai-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-thai-600 - latin_thai */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Noto Sans Thai';
font-style: normal;
font-weight: 600;
src: url('/static/fonts/noto-sans-thai-v20-latin_thai-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-thai-800 - latin_thai */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Noto Sans Thai';
font-style: normal;
font-weight: 800;
src: url('/static/fonts/noto-sans-thai-v20-latin_thai-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
    --bs-primary: #F54927;
    --bs-primary-rgb: 245, 73, 39;

    --bs-primary-text-emphasis: #931d05;
    --bs-primary-text-emphasis-rgb: 147, 29, 5;

    --bs-blue: #F54927;
    --bs-blue-rgb: 245, 73, 39;
    
    --bs-link-color: #F54927;
    --bs-link-color-rgb: 245, 73, 39;

    --bs-link-hover-color: #F54927;
    --bs-link-hover-color-rgb: 245, 73, 39;

}

.pagination {
    --bs-pagination-active-bg: #F54927;
    --bs-pagination-active-border-color: #F54927;
    --bs-pagination-active-color: #fff;
}


.btn-primary {
    --bs-btn-bg: #F54927;
    --bs-btn-border-color: #F54927;

    --bs-btn-hover-bg: #d14022;
    --bs-btn-hover-border-color: #c63a1f;

    --bs-btn-active-bg: #b2341b;
    --bs-btn-active-border-color: #a53019;
}
.btn-outline-primary {
    --bs-btn-color: #F54927;
    --bs-btn-border-color: #F54927;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #F54927;
    --bs-btn-hover-border-color: #F54927;
    --bs-btn-focus-shadow-rgb: 13,110,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #F54927;
    --bs-btn-active-border-color: #F54927;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #F54927;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #F54927;
    --bs-gradient: none;
}

* {
    font-family: 'Noto Sans Thai', sans-serif;
    /* text-transform: capitalize; */
}

/* ซ่อน scroll bar  */
.hidden-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hidden-scrollbar::-webkit-scrollbar {
  display: none;
}
/* 1. กำหนดความกว้างของแถบ Scrollbar ทั้งหมด */
.custom-scroll::-webkit-scrollbar {
    width: 6px;               /* ความกว้างแนวตั้ง */
    height: 6px;              /* ความสูงแนวนอน (ถ้ามี) */
}

/* 2. พื้นหลังของ Scrollbar (ส่วนที่อยู่ข้างหลังตัวเลื่อน) */
.custom-scroll::-webkit-scrollbar-track {
    background: transparent;  /* ปล่อยโปร่งใสเพื่อให้ดูสะอาดตา */
}

/* 3. ตัวเลื่อน (Thumb) ที่เราลากไปมา */
.custom-scroll::-webkit-scrollbar-thumb {
    background-color: #888;   /* สีของตัวเลื่อน */
    border-radius: 10px;      /* ทำให้เป็นวงกลม/มน */
    border: 1px solid transparent; /* เพิ่มช่องว่างรอบๆ ถ้าต้องการ */
}

/* 4. เอฟเฟกต์ตอนเอาเมาส์ไปชี้ (Hover) */
.custom-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #555;   /* ให้เข้มขึ้นเมื่อ Hover */
}
/****************/
#app-logo{
    /* width: 3rem; */
    height: 3rem;
    object-fit: cover;
}
#admin-logo{
    /* width: 3rem; */
    height: 2rem;
    object-fit: cover;
}
.text-single-line, .single-line{
    /* display: block; */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.middle-left-small{
    min-width: 4rem;
}
.middle-left-default{
    min-width: 18rem;
}
.pac-container {
    z-index: 10000 !important;
}
.bg-fade{
    background-color:rgba(255,255,255,0.2);
}
.hover:hover{
    cursor: pointer;
    background-color: rgba(255,255,255,0.2);
    transition: 0.3s;
}

.loader-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(10,10,10,0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: #FF3D00;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    }

    @keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 
dialog::backdrop {
  background: rgba(0, 0, 0, 0.9); /* สีดำโปร่งใส */
}

/* ซ่อน spinner สำหรับ Chrome, Safari, Edge */
.input-number-no-arrow::-webkit-outer-spin-button,
.input-number-no-arrow::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* สำหรับ Firefox */
.input-number-no-arrow {
  -moz-appearance: textfield;
}


.grid-stack-item-content{
    /* border: solid 1px #ddd; */
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    border-radius: 5px;
}


/* .line-chart-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.line-chart-container ::-webkit-scrollbar {
  display: none;
} */
