﻿body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.navbar-horizontal {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 0.75rem 1rem;
}

.navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-1px);
    }

    .navbar-nav .nav-link.active {
        background: rgba(255, 255, 255, 0.25);
        font-weight: 600;
    }

.dropdown-menu {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
}

    .dropdown-item:hover {
        background: #f8f9fa;
        color: #4e73df;
        transform: translateX(5px);
    }

.main-content {
    margin-top: 0.5rem;
    padding: 0 15px;
}

/*.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    }*/

.card-title {
    font-weight: 600;
}

.stat {
    width: 50px;
    height: 50px;
    background: rgba(78, 115, 223, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.breadcrumb {
    background: transparent;
    padding: 0.5rem 0;
}

.breadcrumb-item a {
    color: #4e73df;
    text-decoration: none;
}

.footer {
    padding: 1.5rem 0;
    margin-top: 2rem;
}

@media (max-width: 991px) {
    .navbar-nav {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        margin-top: 1rem;
        padding: 1rem;
    }
}

.error, .red {
    color: red;
}
.rnbold {
    font-weight:bold;
}
.rnbox {
    border: 1px solid #ff0000;
    padding: 5px;
    color:red;
}
.cpanel .icon {
    padding-bottom: 10px;
    padding-top: 10px;
    text-align: center;
}
.cpanel a {
    color: #000;
    text-decoration: none;
}
.icon a .btn-icon {
    height: 70px;
}
.cpanel a {
    color: #000;
    text-decoration: none;
}

    .cpanel a > i, .cpanel a > span {
        display: block;
    }

    .cpanel a > span {
        color: #000 !important;
        padding: 5px 0;
        text-overflow: ellipsis;
    }

.cpanel .icon {
    padding-bottom: 10px;
    padding-top: 10px;
    text-align: center !important;
}

.table td key {
    background-color: #ebe3e3;
    font-weight: 700;
}
.folder-card {
    cursor: pointer;
}

    .folder-card:hover {
        background-color: #f8f9fa;
    }

.folder-icon {
    font-size: 2rem;
    margin-right: 10px;
}

.folder-name {
    font-weight: bold;
}
.table thead {
    text-align: center;
}

    .table thead tr th {
        vertical-align: middle;
        font-weight: 600;
    }
.rndetail table {
    border: 1px solid #ddd;
    width: 100%;
}

    .rndetail table td {
        padding: 8px;
        line-height: 1.42857143;
        vertical-align: top;
        border: 1px solid #ddd;
    }
table thead tr th {
    text-align: center;
}
.table td key {
    background-color: #ebe3e3;
    font-weight: 700;
}
.table span.lbl {
    font-weight: 700;
}
.tblrh th:first-child, .tblrh th:nth-child(2), .tblrh th:nth-child(3), .tblrh td:nth-child(2), .tblrh td:nth-child(3) {
    position: sticky;
    left: 0px;
    z-index: 1;
    background-color: #f5f5f5;
}
.tblrh td {
    vertical-align:text-top !important;
}
.tblrpm th:nth-child(1), .tblrpm td:nth-child(1),
.tblrpm th:nth-child(2), .tblrpm td:nth-child(2),
.tblrpm th:nth-child(3), .tblrpm td:nth-child(3),
.tblrpm th:nth-child(4), .tblrpm td:nth-child(4) {
    background-color: #f5f5f5;
}

.tblrpm th:nth-child(3), .tblrpm td:nth-child(3) {
    position: sticky;
    left: 0px;
    z-index: 1;
}

.region {
    width: 100%;
    max-height: 500px;
    overflow: auto;
}

tr.rnfrow td, tr.rnfrow th {
    position: sticky;
    background-color: #f5f5f5;
    top: 0;
}

td.rnyl, th.rnyl {
    background-color: yellow !important;
}

.today {
    background: #26C8B2 !important;
}
.rh100 {
    background: #fff2cc !important;
}

.rh201 {
    background: #ead1dc !important;
}

.rh202 {
    background: #d9d2e9 !important;
}

.rh203, .rh204 {
    background: #b6d7a8 !important;
}
.social-section {
    margin-top: 24px
}

.social-btn {
    position: relative;
    width: 100%;
    border: 1px solid #c2c8d0;
    border-radius: 6px;
    font-size: 16px;
    align-items: center;
    background-color: #fff;
    height: 52px;
    transition: box-shadow .15 ease-in-out,background-color .15s ease-in-out;
    cursor: pointer;
    color: #2d333a;
    margin-bottom: 8px;
    display: flex;
    outline: 0
}

.social-btn {
    padding: 0 8px 0 52px
}

    .social-btn:hover {
        box-shadow: inset 0 0 0 150px #0000001a
    }

    .social-btn:focus {
        outline: none
    }

.social-logo-wrapper {
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translate(-50%) translateY(-50%);
    display: flex;
    align-items: center
}

.social-logo {
    width: 20px;
    height: 20px;
    display: inline-block
}
.table-wrapper {
    max-height: 800px; /* chiều cao tối đa vùng hiển thị */
    min-height: 600px; /* chiều cao tối đa vùng hiển thị */
    max-width: 100%; /* bảng có thể tràn ngang */
    overflow: auto; /* bật scroll */
    position: relative;
}

.table-freeze th {
    position: sticky;
    top: 0;
    background: #fff; /* màu nền để không bị đè chữ */
    z-index: 5; /* đảm bảo header nổi trên */
}
.truncate-cell {
    position: relative;
    max-width: 400px; /* bạn chỉnh kích thước phù hợp */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* số dòng hiển thị */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

    .truncate-cell.expanded {
        overflow: visible;
        display: block;
        -webkit-line-clamp: unset;
    }
.toggle-btn {
    cursor: pointer;
    border: none;
    color: #258cfb;
    background-color: transparent;
    padding-left: 0;
}