﻿/*style cho radiobutton*/
/* --- Layout cuộn ngang cho RadioButtonList --- */
.tabler-radio-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px; /* để tránh che thanh cuộn */
}

.tabler-radio-list {
    appearance: none; /* ẩn radio mặc định */
    width: 1.2em;
    height: 1.2em;
    border-radius: 50%;
    margin-right: 6px;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.2s ease;
}

    /* --- TABLER STYLE CHO RadioButtonList ASP.NET --- */
    .tabler-radio-list input[type="radio"] {
        appearance: none; /* ẩn radio mặc định */
        width: 1.2em;
        height: 1.2em;
        border: 2px solid var(--tblr-border-color, #d0d7de);
        border-radius: 50%;
        margin-right: 6px;
        position: relative;
        cursor: pointer;
        vertical-align: middle;
        transition: all 0.2s ease;
    }

        .tabler-radio-list input[type="radio"]:checked {
            border-color: var(--tblr-primary, #206bc4);
            background-color: var(--tblr-primary, #206bc4);
            box-shadow: 0 0 0 2px rgba(32,107,196,0.2);
        }

    .tabler-radio-list label {
        margin-right: 1rem;
        cursor: pointer;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .tabler-radio-list input[type="radio"]:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(32,107,196,0.3);
    }
    /* Tô màu chữ đỏ cho nút 'Vắng' */
    .tabler-radio-list input[value="vang"] + label {
        color: #d63939; /* đỏ chuẩn Tabler */
        font-weight: 600;
    }
    /* 'Đã checkin' màu xanh lá */
    .tabler-radio-list input[value="all"] + label {
        color: #2fb344; /* xanh lá chuẩn Tabler */
        font-weight: 600;
    }
/*style cho radiobutton*/

/* --- TomSelect + Tabler search dropdownlist --- */
/* wrapper theo style form-select của Tabler */
.ts-wrapper.form-select {
    display: block;
    width: 100%;
    min-height: 2.2rem;
    border: 1px solid var(--tblr-border-color, #d0d7de);
    border-radius: 0.375rem;
    background-color: #fff;
    font-size: 0.875rem;
    position: relative;
}

    /* vùng control */
    .ts-wrapper.form-select .ts-control {
        padding: 0.25rem 1.75rem 0.25rem 0.5rem !important;
    }


        /* text + input */
        .ts-wrapper.form-select .ts-control > input,
        .ts-wrapper.form-select .ts-control .item {
            font-size: 0.875rem;
        }

            /* placeholder */
            .ts-wrapper.form-select .ts-control > input::placeholder {
                color: #8f9ba8;
            }

    /* dropdown */
    .ts-wrapper.form-select .ts-dropdown {
        border: 1px solid var(--tblr-border-color, #d0d7de);
        border-radius: 0.375rem;
        margin-top: 4px;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
    }

        /* item dropdown */
        .ts-wrapper.form-select .ts-dropdown .option {
            padding: 0.3rem 0.5rem; /* padding gọn */
            font-size: 0.875rem;
        }

            /* hover + active */
            .ts-wrapper.form-select .ts-dropdown .option.selected,
            .ts-wrapper.form-select .ts-dropdown .option.active {
                background-color: rgba(32, 107, 196, 0.08);
                color: #1f3a8a;
            }

    /* focus border */
    .ts-wrapper.form-select.focus .ts-control {
        box-shadow: 0 0 0 0.08rem rgba(32, 107, 196, 0.25);
    }

    /* mũi tên */
    .ts-wrapper.form-select.single::after {
        content: "";
        position: absolute;
        pointer-events: none;
        right: 0.75rem;
        top: 50%;
        margin-top: -0.25rem;
        border-top: 0.35em solid #8f9ba8;
        border-right: 0.35em solid transparent;
        border-left: 0.35em solid transparent;
    }
/* Loại bỏ padding mặc định của form-select khi đã được TomSelect hijack */
.ts-wrapper.form-select {
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid var(--tblr-border-color, #d0d7de) !important;
}

    /* TS control phải sát viền ngoài */
    .ts-wrapper.form-select .ts-control {
        padding: 0.25rem 1.75rem 0.25rem 0.5rem !important;
        background: transparent !important;
        border: none !important;
        min-height: calc(2.375rem - 2px);
        display: flex; /* 🔥 canh giữa */
        align-items: center; /* 🔥 canh giữa */
        line-height: 1.4; /* 🔥 canh giữa */
    }

        /* Item đã chọn trong control */
        .ts-wrapper.form-select .ts-control .item {
            display: flex;
            align-items: center;
            line-height: 1.4;
            padding-left: 6px;
        }

    /* Giữ viền ngoài khi focus */
    .ts-wrapper.form-select.focus {
        border-color: var(--tblr-primary) !important;
        box-shadow: 0 0 0 0.1rem rgba(32,107,196,.25) !important;
    }

    /* Mũi tên bên phải */
    .ts-wrapper.form-select.single::after {
        right: 0.75rem !important;
    }

    /* Dropdown list */
    .ts-wrapper.form-select .ts-dropdown {
        margin-top: 2px !important;
    }

        /* Item trong dropdown – canh giữa */
        .ts-wrapper.form-select .ts-dropdown .option {
            padding: 0.3rem 0.5rem;
            display: flex; /* 🔥 canh giữa */
            align-items: center; /* 🔥 canh giữa */
            line-height: 1.4; /* 🔥 canh giữa */
        }



/*BEGIN HIỆU ỨNG CHỜ KHI XỬ LÝ*/
/* Overlay toàn màn hình */
.page-loading {
    position: fixed;
    inset: 0;
    display: none; /* ẩn mặc định */
    align-items: center;
    justify-content: center;
    z-index: 2000; /* trên modal/ toast nếu cần thì tăng thêm */
    background: rgba(255,255,255,.6);
    backdrop-filter: blur(2px);
}

.page-loading.active {
    display: flex;
}

/* Card nhỏ kiểu Tabler */
.page-loading-card {
    min-width: 220px;
    max-width: 90vw;
    background: var(--tblr-body-bg, #fff);
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    border-radius: .75rem;
    padding: 1rem 1.25rem;
    text-align: center;
}

.page-loading .spinner-border {
    width: 2rem;
    height: 2rem;
}
/*END HIỆU ỨNG CHỜ KHI XỬ LÝ*/


.font-title-hota-header-1 {
    font-size: 50px !important;
}

.font-title-hota-header-2 {
    font-size: 20px !important;
    color: var(--tblr-secondary);
}
.font-title-admin-header-1 {
    font-size: 36px !important;
}
/* lg: */
@media (max-width: 991px) {
    .font-title-hota-header-1 {
        font-size: 30px !important
    }

    .font-title-hota-header-2 {
        font-size: 17px !important
    }
    .font-title-admin-header-1 {
        font-size: 24px !important;
    }
}

