.table .table-blue,
.table .table-white {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    border: 1px solid #b0b0b0;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2) !important;
}

.table-blue tr th,
.table-white tr th {
    border: 1px solid #e0dfdf;
    font-weight: 500;
    vertical-align: middle !important;
}

.table-blue tr th {
    /* background-color: rgba(21, 106, 184, 0.949); */
    /* background-color: rgb(0, 101, 195); */
    /* background-color: rgb(19, 116, 207); */
    /* background-color: rgb(21, 107, 188); */
    background-color: #3a7b9cef;
    /* #377c9fe3 ,3a7b9cef*/
    /* 337ab7 */

    /* สีน้ำเงินอ่อน */
    color: white;
}

.table-white tr th {
    background-color: white;
    color: black;
    border: 1px solid;
}

.table-striped tr:nth-child(even) {
    background-color: #eaeaea !important;
}

.table-border tr th,
.table-border tr td {
    border: 1px solid !important;
    border-color: rgb(168, 168, 168);
}

.table-blue.table-border tr th,
.table-blue.table-border tr td {
    border: 1px groove !important;
    border-color: rgb(168, 168, 168);
}

.row_disabled {
    background-color: rgba(236, 240, 241, 0.5);
    pointer-events: none;
    width: 100%;
}

/* End  table */

.modal-header.tod,
.card {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    width: 100%;
}

.modal-header.tod:hover,
.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}


.selected2 {
    color: rgb(19, 116, 207);
    font-weight: 500;
    font-size: medium;
}

.selectedg {
    color: green;
    font-weight: 500;
    font-size: medium;
}

.blue {
    color: rgb(19, 116, 207) !important;
}

.section {
    scrollbar-width: thin;
}


::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
    padding: unset;
    cursor: pointer;
}

::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background-color: rgb(237, 244, 251);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgb(123, 123, 123);
}

fieldset {
    margin-bottom: 30px;
}

.minh570 {
    min-height: 570px;
}

/* ng-select.ng-invalid:not(form) .ng-select-container,
ng-select.ng-valid[required] .ng-select-container {
    border-radius: 8px !important;
    border-left-width: 5px;
} */

/** for dropdown */
.fc.ng-select.ng-select-single .ng-select-container {
    border-radius: 4px !important;
}

.form-control.fc {
    /* border: 1px solid black;
    border: 1px solid rgb(119, 124, 129) !important; */

    /* ถ้าเรียกใช้ .fontDev ตัวหนังสือจะเปลี่ยนให้เลยครับ ปิดไว้เพราะไปปนกับตัวที่มีหัวครับ */
    /* font-family: "kanitDev", sans-serif;  */
    border-radius: 4px;
    font-weight: normal;
    font-size: 15px;
    box-shadow: none;
    border-color: #b6bac0;
    font-style: normal;
}

.form-control.fc.search {
    border-radius: 15px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.form-control.fc.search:hover {
    border-radius: 15px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.form-control.fc:focus,
.form-control.fc:active {
    border-color: #3c8dbc;
    box-shadow: none;
}

.form-control.fc::-moz-placeholder,
.form-control.fc:-ms-input-placeholder,
.form-control.fc::-webkit-input-placeholder {
    color: #bbb;
    opacity: 1;
}

.form-control.fc:not(select) {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group.has-error .form-control.fc {
    border-color: #dd4b39;
    box-shadow: none;
}

.form-control.fc.ng-invalid:not(form) {
    border-left: 5px solid red;
}

.profile {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    height: 100px;
}

.profile:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.table-white,
.table-blue,
._card,
.btn,
.btn-hover,
.btn-hover-sm {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.table-white:hover,
.table-blue:hover,
.btn:hover,
._card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.btn-hover-sm:hover {
    font-size: 11px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.btn-hover:hover {
    font-size: 13px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

/** radio round **/

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 15px !important;
    width: 15px !important;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
    height: 25px;
    width: 50px;
}

.slider.round:before {
    border-radius: 50%;
}

/** end round **/

/** aside **/

.sidebar_tod {
    height: 100%;
    width: 250px;
    position: fixed;
    z-index: 1;
    /* top: 105px; */
    left: 0;
    bottom: 0;
    /* background-color: #222831; */
    background-color: #1a2634;
    /* background-color: #111; */
    overflow-x: hidden;
    transition: 0.5s;
    margin-top: 40px;
    /* padding-top: 60px; */
}

.sidebar_tod a,
.tod a {
    padding: 8px 8px 8px 32px !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 400;
    /* color: #818181; */
    color: white !important;
    display: block !important;
    transition: 0.3s !important;
}

.sidebar_tod a:hover,
.tod a:hover {
    /* color: #f1f1f1; */
    color: #111 !important;
    background-color: #c9c9c9 !important;
}

.sidebar_tod .closebtn,
.tod .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

.obtn {
    position: fixed;
    font-size: 20px;
    cursor: pointer;
    background-color: #1a2634;
    /* background-color: #222831; */
    /* background-color: #111; */
    color: white;
    padding: 10px 15px;
    border: none;
    width: 250px;
    z-index: 5;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2) !important;
}

.obtn:hover {
    transition: .5s;
    font-size: large;
    /* color: #111; */
    /* background-color: #c9c9c9; */
}

.main {
    transition: margin-left .5s;
    padding: 16px;
    margin-top: 50px;
    margin-left: 250px;
}

.title {
    padding-top: 15px;
    top: 0;
    color: white !important;
    text-decoration: none;
    font-size: 22px;
}


.closebtn_l {
    cursor: pointer;
    position: fixed;
    top: 0;
    font-size: 36px;
    padding: 10px 15px;
    color: white !important;
    z-index: 1000;
}


/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
    .sidebar_tod {
        padding-top: 15px;
    }

    .sidebar_tod a {
        font-size: 18px;
    }
}

/** end **/


.backdrop {
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10;
    transition: 1s !important;
    /* transition: opacity 0.3s; */
    opacity: 1;
}

.mgBt100 {
    margin-bottom: 100px;
}

.sidebar_p {
    height: 100%;
    width: 100%;
    /* position: fixed; */
    z-index: 1;
    /* top: 105px; */
    /* left: 0;
    bottom: 0; */
    /* background-color: #222831; */
    background-color: #1a2634;
    /* background-color: #111; */
    overflow-x: hidden;
    transition: 0.2s;
    /* margin-top: 40px; */
    /* padding-top: 60px; */
}

.sidebar_p a {
    padding: 8px 8px 8px 32px !important;
    text-decoration: none !important;
    font-size: 16px !important;
    /* color: #818181; */
    color: white !important;
    display: block !important;
    transition: 0.3s !important;
}

.sidebar_p a:hover,
.sidebar_p a:active {
    /* color: #f1f1f1; */
    color: #111 !important;
    background-color: #c9c9c9 !important;
}

.sidebar_p .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

.p10 {
    padding: 10px !important;
}

.p8 {
    padding: 8px !important;
}

.body8 {
    overflow-y: auto !important;
    height: calc(100vh - 122px) !important;
}

.modal-header {
    padding: 8px 15px 8px 15px !important;
}


.modal-header.tod {
    border-radius: unset !important;
}



.modal-footer {
    padding: 8px !important;
}

.modal-fullscreen .modal-body {
    overflow-y: auto !important;
    height: calc(100vh - 120px) !important;
}

.black {
    color: black !important;
}

.minh500 {
    min-height: 500px;
}


.collap {
    background-color: cadetblue;
    color: white;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
}

.collap:hover {
    background-color: rgb(71, 111, 112);
}

.content_collap {
    /* padding: 4px; */
    display: none;
    overflow: hidden;
}

.content_collap_show {
    padding: 4px;
    display: block;
    overflow: hidden;
}


.fadein {
    opacity: 1;
    animation: fadein .3s linear;
}

@keyframes fadein {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

li a :active {
    opacity: 1;
    animation: fadein .3s linear;
}

.bgs {
    background-color: aliceblue !important;
    color: #1a2634 !important;
}

html {
    scroll-behavior: smooth !important;
}

.full_screen {
    overflow-y: auto !important;
    height: calc(100vh - 120px) !important;
}

.sidebar-menu {
    white-space: normal !important;
    overflow-y: auto;
    overflow-x: hidden;
}

.minh200 {
    min-height: 200px;
}

.minh300 {
    min-height: 300px;
}

.minh400 {
    min-height: 400px;
}

.mb8 {
    margin-bottom: 8px !important;
}

.mb10 {
    margin-bottom: 10px !important;
}

.mb0 {
    margin-bottom: 0px !important;
}

.mb50 {
    margin-bottom: 50px;
}

.mb100 {
    margin-bottom: 100px !important;
}

.mb200 {
    margin-bottom: 200px !important;
}

.mb300 {
    margin-bottom: 300px !important;
}



.blink {
    color: red;
}

.blink2 {
    color: unset;
}

.blink,
.blink2 {
    animation: blink-animation 1s steps(5, start) infinite;
    -webkit-animation: blink-animation 1s steps(5, start) infinite;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

@-webkit-keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

.bg-primary {
    background-color: #1a6d99 !important;
}

.bg-primary:hover {
    background-color: #145a80 !important;
}

.bg-success {
    background-color: #319393e0 !important;
}

.bg-success:hover {
    background-color: #298080e0 !important;
}

.bg-info {
    background-color: #1d99bd !important;
}

.bg-info:hover {
    background-color: #187b9a !important;
}

.bg-inverse {
    background-color: #4486a7ef !important;

}

.bg-inverse:hover {
    background-color: #366a85 !important;
}

.box {
    background-color: white !important;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

@-o-keyframes fadeIt {
    0% {
        color: white;
    }

    50% {
        color: red;
        font-weight: 800;
    }
}

@keyframes fadeIt {
    0% {
        color: white;
    }

    50% {
        color: red;
    }

    100% {
        color: black;
        font-weight: unset;
    }
}

.colorAnimated {
    background-image: none !important;
    -o-animation: fadeIt 5s ease-in-out;
    animation: fadeIt 5s ease-in-out;
}

.minw80 {
    min-width: 80px;
}

.minw60 {
    min-width: 60px;
}


.modal-header.tod,
.bg_black {
    background-color: #1a2634 !important;
    background: #1a2634 !important;
    color: white !important;
}

.mb4 {
    margin-bottom: 4px;
}


.nav-tabs.tab_tod>li.active>a,
.nav-tabs.tab_tod>li>a:hover {
    text-decoration: none;
    color: black !important;
    background-color: white !important;
}

.nav-tabs.tab_tod>li>a {
    border: 0px solid !important;
    margin-right: 2px;
    line-height: 1.42857143;
    border-radius: 4px 4px 0 0;
    font-weight: bold;
    font-size: medium;
    font-weight: 500;
    text-decoration: none;
    /* background-color: #8295a1 !important; */
    background-color: #a0a8ad !important;
    color: white !important;
}

.fontDev {
    font-family: 'kanitDev', sans-serif !important;
}


/* checkbox  */
/* Hide the default checkbox */
.cb input[type="checkbox"],
.cb input[type="radio"],
.ct_checkbox input[type="checkbox"],
.ct_checkbox input[type="radio"] {
    display: none;
}

/* Text In Checkbox */
.ct-t label.cb,
.ct-t label.cbm,
.ct-t label.ct_checkbox {
    padding-left: 30px;
}

/* Text In Checkbox */
.ct-t .ct_checkbox .ct_checkmark {
    position: absolute !important;
    margin-left: -30px;
}

/* Style the custom checkmark */
.cb .cbm,
.ct_checkbox .ct_checkmark {
    /* background-color: #ccc; */
    /* vertical-align: middle; */
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    position: relative;
    margin-right: 10px;
    vertical-align: text-bottom;
    background-color: white;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
    border: solid #ccc;
    border-width: 1px;
    cursor: pointer;
}

/* custom color */
.ct_checkbox input[type="checkbox"]:checked+.ct_checkmark#blue,
.ct_checkbox input[type="radio"]:checked+.ct_checkmark#blue {
    background-color: #3c8dbc !important;
}

/* custom color */
.ct_checkbox input[type="checkbox"]:checked+.ct_checkmark#red,
.ct_checkbox input[type="radio"]:checked+.ct_checkmark#red {
    background-color: red !important;
}

/* Add a checkmark for the checked state */
.cb input[type="checkbox"]:checked+.cbm,
.cb input[type="radio"]:checked+.cbm,
.ct_checkbox input[type="checkbox"]:checked+.ct_checkmark,
.ct_checkbox input[type="radio"]:checked+.ct_checkmark {
    background-color: #4CAF50;
    border: unset;
    border-width: unset;
}

/* disabled */
.cb input[type="checkbox"]:checked:disabled+.cbm,
.cb input[type="radio"]:checked:disabled+.cbm,
.ct_checkbox input[type="checkbox"]:checked:disabled+.ct_checkmark,
.ct_checkbox input[type="radio"]:checked:disabled+.ct_checkmark {
    background-color: #a3b1a4;
    cursor: not-allowed;
}

.cb .cbm::after,
.ct_checkbox .ct_checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.cb input[type="checkbox"]:checked+.cbm::after,
.cb input[type="radio"]:checked+.cbm::after,
.ct_checkbox input[type="checkbox"]:checked+.ct_checkmark::after,
.ct_checkbox input[type="radio"]:checked+.ct_checkmark::after {
    display: block;
}

.cb .cbm::after,
.ct_checkbox .ct_checkmark::after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cb .cbm:hover,
.ct_checkbox .ct_checkmark:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

/* end */

.treeview-menu.sidebar_td a:hover {
    /* color: #f1f1f1; */
    color: #111 !important;
    background-color: #c9c9c9 !important;
}


.scroll-container {
    position: relative;
    /* height: 150px; */
    overflow: hidden;
}

.scroll-content {
    height: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    transform: rotateX(180deg);
}

.scroll-content>div {
    transform: rotateX(180deg);
}

.h_table {
    height: calc(100vh - 180px);
}

.h_table500 {
    max-height: 500px;
}


/* สไตล์ของปุ่มที่มี tooltip */
._tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* ซ่อน tooltip ก่อน */
._tooltip .tooltiptext {
    visibility: hidden;
    width: 140px;
    /* background-color: #333; */
    background-color: #fff;
    color: #333;
    text-align: center;
    padding: 8px;
    border-radius: 5px;
    position: absolute;
    bottom: 125%;
    /* วาง tooltip เหนือปุ่ม */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    /* ตั้งค่าให้โปร่งใส */
    transition: opacity 0.3s ease;
    /* การเปลี่ยนแปลงที่ราบรื่น */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* เงาของ tooltip */
}

/* ลูกศรที่ชี้ไปที่ปุ่ม */
._tooltip .tooltiptext::after {
    content: '';
    position: absolute;
    top: 100%;
    /* วางไว้ที่ด้านล่างของ tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
    /* border-color: #333 transparent transparent transparent; ลูกศรสามเหลี่ยม */
}

/* แสดง tooltip เมื่อ hover */
._tooltip:hover .tooltiptext,
._tooltip:hover .tooltiptext_right {
    visibility: visible;
    opacity: 1;
    z-index: 10000;
}

/* ซ่อน tooltip ก่อน tooltiptext_right */
._tooltip .tooltiptext_right {
    visibility: hidden;
    width: 120px;
    background-color: #fff;
    color: #333;
    text-align: center;
    padding: 8px;
    border-radius: 5px;
    position: absolute;
    top: 50%;
    left: 100%;
    /* วาง tooltip ไว้ที่ด้านขวา */
    transform: translateY(-50%);
    margin-left: 10px;
    /* ระยะห่างจากปุ่ม */
    opacity: 0;
    /* ซ่อนโดยตั้งค่า opacity */
    transition: opacity 0.3s ease;
    /* การเปลี่ยนแปลงที่ราบรื่น */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ลูกศรของ tooltip */
._tooltip .tooltiptext_right::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    /* วางไว้ทางด้านซ้ายของ tooltip */
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
    /* ลูกศร */
}


@media (max-width:992px) {
    .float-md-right {
        float: right;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .float-md-right {
        float: right;
        margin-top: 20px;
    }
}

.m4,
.margin4 {
    margin: 4px;
}

.margin2 {
    margin: 2px;
}

thead.thfix th {
    position: sticky !important;
    top: 0;
    /* Keep the header fixed */
    z-index: 2;
    border: 1px solid #ddd;
}

thead.thfix2 th {
    position: sticky !important;
    top: 0;
    /* Keep the header fixed */
    z-index: 2;
    background: white;
}

/* // modal ลอย เลื่อนได้ */

.modal-container_cdkDrag {
    width: 300px;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    /* position: absolute; */
    /* top: 20%; */
    left: 40%;
    z-index: 10000 !important;
    position: fixed;
    /* เปลี่ยนเป็น fixed */
    top: 20%;
    /* กำหนดตำแหน่งใน viewport */
}

.modal-header_cdkDrag {
    cursor: move;
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.modal-content_cdkDrag {
    font-size: 16px;
    color: #555;
    cursor: move;
}

/* <div class="modal-container" cdkDrag cdkDragRootElement=".modal-container">
  <h2 cdkDragHandle class="modal-header">
    Draggable Modal
  </h2>
  <div class="modal-content">
    <p>เนื้อหาใน Modal</p>
    <button mat-button (click)="closeModal()">Close</button>
  </div>
</div> */


/* // modal ลอย เลื่อนได้ */

/* .table-responsive{
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
  } */

.disabled-tab {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.disabledDiv,
.disabled-div,
.disabled_div {
    pointer-events: none;
    /* ปิดการโต้ตอบ เช่น คลิก */
    opacity: 0.8;
    /* ทำให้ดูจางลง */
    /* background-color: #f4f4f4; */
    user-select: none;
    text-decoration: none;
    cursor: not-allowed;
}
.link-disabled {
    color: currentColor;
    cursor: not-allowed;
    opacity: 0.5;
    text-decoration: none;
    /* หัวใจสำคัญคือบรรทัดนี้ */
    pointer-events: none;
}


.display_div {
    display: none !important;
}


.border {
    border: 1px solid !important;
    border-color: rgb(168, 168, 168);
}

/* ขีดทับตัวอักษร  */
.strikethrough {
    text-decoration: line-through !important;
    text-decoration-color: red;
}

tbody>tr.strikethrough td {
    text-decoration: line-through !important;
    text-decoration-color: red;
}


.center-modal {
    display: none;
    position: fixed;
    z-index: 1055;
    /* z-index: 5; */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
}

.center-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 8px;
    min-width: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}


.center-modal-content2 {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 1000px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
    overflow: hidden;
}

@media (max-width: 576px) {
    .center-modal-content2 {
        width: 95vw;
        padding: 10px;
    }
}



/* mat tab end */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    /* พื้นหลังจาง */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* // table mat */


.hr8 {
    margin-top: 8px;
    margin-bottom: 8px;
}

.hr4 {
    margin-top: 4px;
    margin-bottom: 4px;
}

.hr2 {
    margin-top: 2px;
    margin-bottom: 2px;
}

.pointer {
    cursor: pointer;
}

.body-height {
    height: calc(100vh - 200px) !important;
}


.ng-dropdown-panel .ng-option {
    padding: 8px 12px !important;
    font-size: 14px !important;
    color: #333 !important;
    background-color: #fff !important;
    transition: background-color 0.2s !important;
}

.ng-dropdown-panel .ng-option:hover {
    background-color: #f5f5f5 !important;
}

.ng-dropdown-panel .ng-option.ng-option-marked {
    background-color: #dee0ffb3 !important;
    color: #0d47a1;
    font-weight: bold;
    box-shadow: inset 2px 0 0 #777effb3 !important;
    transition: background-color 0.3s ease !important;
}

.ng-dropdown-panel .ng-option.ng-option-selected {
    background-color: #bdc0fcb3 !important;
    color: #0d47a1;
    font-weight: bold;
    box-shadow: inset 2px 0 0 #777effb3 !important;
    transition: background-color 0.3s ease !important;
}


/* // modal ลอย เลื่อนได้ */
.cdkDrag {
    background-color: rgb(222 214 255);
    right: 4% !important;
    top: 10% !important;
    left: unset;
}


.modal-header.tod2 {
    background-image: unset;
    color: #141414;
    border-radius: unset;
}

.modal-body .modal-height,
.modal-height {
    height: calc(100vh - 260px) !important;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-body .modal-height220,
.modal-height220 {
    height: calc(100vh - 220px) !important;
    overflow-y: auto;
    overflow-x: hidden;
}

table.no-hover>tr,
.no-hover:hover {
    background-color: unset !important;
}

/* ยกเลิกการใช้ position_save ทุกหน้า */
.hide-position_save .position_save {
    position: unset;
}

.modal-height {
    overflow-y: auto !important;
    height: calc(100vh - 210px) !important;
}

.modal-height175 {
    overflow-y: auto !important;
    height: calc(100vh - 175px) !important;
}



div[appVirtualKeyboard] {
    position: relative;
    z-index: 1000;
}

.keyboard-container {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    background: #eee;
    z-index: 9999;
    padding: 10px;
}

.virtual-keyboard-container {
    position: fixed;
    /* อยู่บน viewport ตลอด */
    bottom: 0;
    left: 0;
    right: 0;
    background: #eee;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10000;
    /* สูงกว่า modal ของ bootstrap/angular material */
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 25px;
    padding: 5px 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    /* width: 250px; */
    transition: 0.3s;
}

.search-box input {
    border: none;
    outline: none;
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 25px;
}

.search-box button {
    /* border: none; */
    /* background: #4a90e2; */
    /* color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px; */
    cursor: pointer;
    transition: 0.3s;
}

.search-box button:hover {
    background: #357ab7;
}

.search-box .btn-search {
    border: none;
    background: #4a90e2;
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: 0.3s;
}


/* dragable */


.list_drag {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border-radius: 12px;
    background: #f4f6f8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease;
}

.list_drag:hover {
    background: #eef2f7;
}

.list-item_drag {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 500;
    color: #333;
}

.list-item_drag:active {
    cursor: grabbing;
}

.list-item_drag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.img-pt-header {
    width: 45px;
    height: 45px;
}

.min80 {
    min-width: 80px;
}

.minbtn {
    min-width: 60px;
}