﻿.container-fluid {
    padding: 20px;
}

.content {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.left, .center, .right {
    padding: 15px;
    border: 1px solid #ddd;
    background: #f9f9f9;
}

.left, .right {
    width: 100%;
    max-width: 25%;
}

.center {
    width: 100%;
    max-width: 50%;
    overflow-x: auto;
}

    .center table {
        width: 100%;
        table-layout: fixed;
    }

.dropdown-menu {
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    width: 100%;
    display: none;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.upload-icon {
    cursor: pointer;
    margin-left: 10px;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .right {
        max-width: 100%;
    }
}



body {
    font-family: Arial, sans-serif;
}

.table-container {
    width: 100%;
/*    max-width: 800px;*/
    margin: 20px auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.table-wrapper {
    max-height: 600px; /* Chiều cao cuộn */
    overflow-y: auto;
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Giữ cột đều nhau */
}

thead th {
    position: sticky;
    top: 0;
    background: #f4f4f4;
    z-index: 2;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    white-space: nowrap;
}

.truncate-text {
    max-height: 6em; /* Giới hạn 2 dòng */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    white-space: normal;
    cursor: pointer;
}
 
/* Tooltip tùy chỉnh */
#tooltip { 
    color: green; 
    z-index: 9999; /* Đảm bảo nằm trên cùng */ 
    pointer-events: none; /* Không chặn sự kiện chuột */

}



.pagination {
    text-align: center;
    margin-top: -14px;
    float: right;
}

    .pagination button {
        margin: 1px; 
        cursor: pointer;
        border: 1px solid #ddd;
        background: white;
    }

        .pagination button.active {
            background: #007bff;
            color: white;
            border-color: #007bff;
        }

        .pagination button:disabled {
            background: #ccc;
            cursor: not-allowed;
        }








/* Thiết kế menu tab */
.tab-menu {
    display: flex;
    list-style: none;
    padding: 0;
    border-bottom: 2px solid #ddd;
}

    .tab-menu li {
        margin-right: 10px;
    }

    .tab-menu a {
        text-decoration: none;
        padding: 10px 20px;
        display: inline-block;
        background: #f0f0f0;
        color: #333;
        border-radius: 5px 5px 0 0;
        cursor: pointer;
    }

        .tab-menu a.active {
            background: #007bff;
            color: white;
        }

/* Nội dung tab */
.tab-content {
    padding: 15px;
    border: 2px solid #ddd;
    border-top: none;
}

.tab-pane {
    display: none;
}

    .tab-pane.active {
        display: block;
    }

tbody, td, tfoot, th, thead, tr {
    border: 1px solid #d1d4d7!important;
}


.content-section {
    margin-bottom: 15px;
}

.separator {
    border-top: 2px dashed #ccc;
    margin: 10px 0;
}