body{font-family:'Segoe UI',Arial,sans-serif}
.pagination ul li { display:inline-block; }
a{text-decoration: none}
#loader{
    display: none;
    z-index: 9999;
}
#loader i{
    font-size: 128px;
}
.w3-italic {
    font-style: italic;
}
.star{
    color: red;
}
.w3-center-fixed{
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.w3-strong{
    font-weight: 800 !important;
}
.w3-active{
    background-color: #b0fefd !important;
}
/* W3CSS Sticky Table Header */
.w3-sticky-header thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}
.w3-table-scroll {
    max-height: 80%px;
    overflow-y: auto;
    display: block;
}
.w3-table-scroll table {
    width: 100%;
    border-collapse: collapse;
}
.w3-sticky-header thead th {
    background: #2196F3;
    color: #fff;
}

/* Class duoc them khi element bi fixed */
/* trang thai da fixed */
.fixed-top-custom {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 98;
    background: #fff;
    animation: slideDownHeader 0.5s ease-out;
}
/* tra ve trang thai cu thi khong can animation */
#myHeader {
    transition: all 0.2s ease-in-out;
}

/* SEARCH TEXBOX */
@media screen and (max-width: 1279px) {
    .search-desktop {
        display: none !important;
    }
    #myHeader h1, #myHeader h2{
        font-size: 14pt;
    }
}

@media screen and (min-width: 1280px) {
    .search-desktop {
        display: block !important;
    }
    #myHeader h1,#myHeader h2{
        font-size: 16pt;
        font-weight: 700;
    }
    .w3-container{
        max-width: 1280px;
        margin-left: auto;
        margin-right: auto;
        padding: 10px 0;
    }
}

/* TABLE SCROLL */
/* ===== WRAPPER SCROLL ===== */
.w3-table-scroll {
    max-height: 80vh;
    overflow: auto; /* ca x va y */
    position: relative;
    -webkit-overflow-scrolling: touch; /* swipe muot mobile */
    border: 1px solid #ddd;
}

/* size nho hon */
.w3-table-scroll-small {
    max-height: 50vh !important;
}

/* ===== TABLE ===== */
.w3-table-scroll table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: max-content;
}

/* ===== CELL ===== */
.w3-table-scroll th,
.w3-table-scroll td {
    padding: 8px 12px;
    white-space: nowrap; /* khong xuong dong */
    border-bottom: 1px solid #ddd;
    background: #fff;
}

/* ===== HEADER STICKY ===== */
.w3-table-scroll thead th {
    position: sticky;
    top: 0;
    background-color: #009688;
    color: #fff;
    z-index: 20;
}

/* ===== FREEZE COT DAU ===== */
.w3-table-scroll th:first-child,
.w3-table-scroll td:first-child {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 15;
}

/* header + cot dau giao nhau */
.w3-table-scroll thead th:first-child {
    z-index: 25;
    background-color: #00796b;
}

/* ===== HOVER ===== */
.w3-table-scroll tbody tr:hover td {
    background-color: #f5f5f5;
}

/* Active override hover */
.w3-table-scroll tr.w3-active td {
    background-color: #33f9dd !important;
}

/* ===== SCROLLBAR NHO GON ===== */
.w3-table-scroll::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.w3-table-scroll::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}

.w3-table-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* ===== SHADOW BAO HIEU SCROLL ===== */
.w3-table-scroll::after {
    content: "";
    position: sticky;
    right: 0;
    top: 0;
    width: 20px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to left, rgba(0,0,0,0.08), transparent);
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {

    .w3-table-scroll {
        max-height: 70vh;
    }

    .w3-table-scroll table {
        min-width: 600px; /* nhe hon cho mobile */
    }

    .w3-table-scroll th,
    .w3-table-scroll td {
        padding: 6px 8px;
        font-size: 13px;
    }

    /* giam do dam sticky cho muot hon */
    .w3-table-scroll thead th {
        z-index: 10;
    }

    .w3-table-scroll th:first-child,
    .w3-table-scroll td:first-child {
        z-index: 9;
    }

    .w3-table-scroll thead th:first-child {
        z-index: 11;
    }
}

/*---  TOOLTIP  -----*/
.w3-tooltip {
    cursor: pointer;
}

.w3-auto-tooltip{
    position: fixed;
    display: none;
    z-index: 999999;
    pointer-events: none;

    max-width: 320px;
    padding: 8px 12px;
    border-radius: 6px;

    /* MAU XANH NHE */
    background: #e8f4fd;          /* xanh rat nhat */
    color: #0b4f7c;               /* text xanh dam */

    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    white-space: normal;

    border: 1px solid #b6dcf5;

    /* shadow nhe */
    box-shadow:
            0 6px 16px rgba(11, 79, 124, 0.18),
            0 2px 4px rgba(0, 0, 0, 0.12);
}
/*---  END TOOLTIP  -----*/
/*---TITLE LINE---*/
.title-line {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    color: #1e88e5;
    font-weight: 600;

}
.title-line::before,
.title-line::after {
    content: "";
    width: 80px;
    height: 2px;
    background-color: #1e88e5;
}
.w3-shadow{
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}
.w3-shadow:hover{
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}
.w3-content img{
    max-width: 90%;
    display: block;
    margin: 0 auto;
}
.w3-box-small{
    padding: 2px;
    margin: 3px 5px;
    display: inline-block;
    white-space: nowrap;
    margin-bottom: 4px;
}
.w3-work-follow {
    display: inline-block;
    padding: 4px 8px 4px 8px;
    text-align: center;
    border-radius: 50%
}
.w3-padding-3{
    padding: 3px;
}
.w3-line-height{
    line-height: 25px ;
}
.w3-margin-top-5{
    margin-top: 5px;
}