*{
    cursor: url(../Firefly.cur), auto !important;
    font-family: 'Kanit', sans-serif !important;
}
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}
body {
    background-image: linear-gradient(135deg, blue, pink);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow-x: hidden;
}

.rbtn{
    border-radius: 23px;
    background: #8c52ff;
    color: white;
    transition: 0.3s;
}
.rbtn:hover{
    background: #673cbc;
    color: white;
}

.form-select-lg~.select2-container--bootstrap-5 .select2-selection {
    border-radius: 23px;
}

.form-control,
.form-select-lg~.select2-container--bootstrap-5 .select2-selection,
.form-select  {
    border-color : #808084;
}

.select2-search__field{
    border-color : #808084!important;
}

@media (min-width: 765px) {
    .leftside {
        margin-left: 274px;
    }
}

.form-check-label{
    font-size: 1.4em;
}

.form-check-input{
    width: 2em;
    height: 2em;
    border-color : #808084;
    margin-right: 10px;
    margin-top: 0px;
}

.form-check-input:disabled~.form-check-label, .form-check-input[disabled]~.form-check-label {
    opacity: 1 !important;
}
.form-check-input:disabled {
    opacity: 1 !important;
    background-color: #e8e8e8 !important;
}
.form-check-input:disabled:checked{
    opacity: 1 !important;
    background-color: #0d6efd !important;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='2' fill='%23e8e8e8'/></svg>") !important;
}

.form-select:disabled, .form-control:read-only {
    background-color: #e8e8e8 !important;
}

input[type="file"] {
    /* functional */
    width: 80%;
}

.content{
    min-height: calc(100vh - 48px);
}

.card-img-top{
    border-bottom: 1px solid #808084;
    height: 217px;
    object-fit: cover;
    object-position: top center;
}

.card-title {
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.4em; /* 2 บรรทัด */
    
    line-height: 1.2em; /* ความสูงของแต่ละบรรทัด */
    font-size: 1rem; /* ปรับขนาดตามต้องการ */
    white-space: normal; /* ป้องกันข้อความอยู่บรรทัดเดียว */

    align-content: center;
}

.headercard{
    border-color : #808084;
}

.cardlist{
    border-color : #808084;
    border-top: 0px;
    transition: 0.3s;
}

.cardlist:hover{
    background: #c5c5c5;
}

.tablehead{
    font-weight: bold;
}

.active>.page-link,.page-link.active {
    background-color: #ffc0cb;
}
.page-link{
    color: black !important;
    border-color : #808084 !important;
}
.page-link:hover{
    color: #0202fe !important;
}

.prev::before {
    content: "<";
}

.next::before {
    content: ">";
}