﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
.div-sugg-rw-cov{
    cursor: pointer;
    background-color: silver;
    padding: 5px 10px;
    margin: 5px 10px;
    
}
/* Container bao quanh bảng để tạo vùng cuộn */
.table-responsive {
    max-height: 80vh; /* Giới hạn chiều cao vùng nhìn thấy */
    overflow-y: auto;
}

/* Thiết lập chung cho tất cả TH trong thead */
thead th {
    position: sticky;
    background-color: #f8f9fa !important; /* table-light màu xám nhạt */
    z-index: 10;
    border-bottom: 1px solid #dee2e6;
    border-top: 1px solid #dee2e6;
}
#notifList {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: none;
    border-radius: 8px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.notif-item {
    border-bottom: 1px solid #eee;
    white-space: normal; /* Cho phép xuống dòng nếu tin nhắn dài */
}

    .notif-item:last-child {
        border-bottom: none;
    }
.custom-popup-menu {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 5px 0;
    z-index: 1000;
    display: none; /* Ẩn mặc định */
    min-width: 150px;
}

    .custom-popup-menu div {
        padding: 10px 20px;
        cursor: pointer;
        border-bottom: 1px solid #eee;
    }

        .custom-popup-menu div:last-child {
            border-bottom: none;
        }

        .custom-popup-menu div:hover {
            background-color: #e9ecef;
        }


/* Tầng 1 (Hàng có Mã TK, Tên TK, Số dư...) */
thead tr:nth-child(1) th {
    top: 0;
    z-index: 20; /* Ưu tiên cao hơn để không bị hàng dưới đè */
}

/* Tầng 2 (Hàng chỉ có Nợ/Có) */
thead tr:nth-child(2) th {
    top: 55px; /* Đây là chiều cao của hàng thứ nhất. Bạn có thể chỉnh lại 40-50px tùy font chữ */
    z-index: 19;
}

/* Đảm bảo border không bị biến mất khi dùng sticky */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

@media (max-width: 767.98px) {
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: transparent; /* Tùy chọn: Để tiệp màu với navbar */
        border: none; /* Tùy chọn: Bỏ viền cho thoáng */
        box-shadow: none; /* Bỏ bóng đổ vì static không cần bóng */
    }
}
.bg-yellow {
    background-color: yellow !important;
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}
.bg-light-blue {
    background-color: hsl(200, 95%, 94%); /* Very soft, clean blue */
    border: 1px solid hsl(200, 80%, 85%); /* Optional border for depth */
}
.bg-light-yellow {
    background-color: hsl(200, 95%, 94%); /* Very soft, clean blue */
    border: 1px solid hsl(200, 80%, 85%); /* Optional border for depth */
}
.bg-light-yellow {
    background-color: #fffce7 !important;
}
html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}