﻿

@media (min-width: 768px) {
    .menu-item .menu-link .menu-title {
        font-size: 14px;
    }

    .dataTables_info {
        font-size: 13px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--bs-site);
}

html {
    position: relative;
    min-height: 100%;
}

.dropzone .dz-preview .dz-image img {
    width: inherit;
}

.datepicker table tr td.active, .datepicker table tr td.active:hover, .datepicker table tr td.active.disabled, .datepicker table tr td.active.disabled:hover,
.datepicker table tr td span.active, .datepicker table tr td span.active:hover, .datepicker table tr td span.active.disabled, .datepicker table tr td span.active.disabled:hover {
    background-image: -webkit-linear-gradient(top, var(--bs-site), var(--bs-site));
}

.datepicker.datepicker-dropdown .datepicker-days {
    padding: 0.2rem;
    border-radius: 15px;
}

.form-check-input:checked[type=checkbox] {
    background-size: 2rem 1rem;
}

.form-check-input:checked[type=radio] {
    background-size: 2rem 1.5rem;
}

.datepicker table {
    padding: 0px 10px;
    border-collapse: separate !important;
    border-spacing: 0 5px;
}

body {
    margin-bottom: 60px;
    font-family: 'Sarabun', sans-serif !important;
    --bs-border-width: 1px;
    --bs-border-color: var(--bs-gray-300);

}

.ellipsis {
    max-width: 200px; /* กำหนดความกว้างที่ต้องการ */
    white-space: nowrap; /* ไม่ตัดบรรทัด */
    overflow: hidden; /* ซ่อนข้อความที่เกิน */
    text-overflow: ellipsis; /* แสดง ... */
}

thead, tbody, tfoot, tr, td, th {
    border: 1px solid var(--bs-gray-300);
}

.page-item.disabled .page-link {
    display: none;
}

.hidden ,.hideitem {
    display:none !important;
}

div.dataTables_wrapper div.dataTables_info {
    color: var(--bs-gray-800);
}

.form-check-input {
    margin-top: 1px;
}

th, td {
    font-weight: 700 !important;
}

.table thead tr {
    background-color: var(--bs-site);
    color: white;
    font-size: 16px;
}

    .table thead tr th:first-child {
        border-top-left-radius: 10px;
    }

    .table thead tr th:last-child {
        border-top-right-radius: 10px;
    }

.table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

.dataTables_wrapper .bottom {
    display: flex;
    margin-left: 1rem;
    margin-right: 1rem;
    justify-content: space-between;
}

.top-85 {
    top: 85% !important;
}

.start-85 {
    left: 85% !important;
}

.input-icon-wrapper {
    position: relative;
    display: inline-block;
}

    .input-icon-wrapper i {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #aaa;
        pointer-events: none;
    }

    .input-icon-wrapper input {
        padding-left: 30px; /* ??????????? icon */
        height: 36px;
        font-size: 14px;
    }


.indent-first-line {
    text-indent: 2em; /* ????????? px ???? 20px */
}

.limit-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* ????????????????????????? */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.input-underline {
    border: none;
    border-bottom: 1px dotted #000; /* ???? dashed */
    outline: none;
    padding: 4px 0;
}

.radio-list, .checkbox-list {
    display: flex;
    flex-direction: column;
}

.form-check {
    font-size: medium;
}