﻿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;
    
}
.i-icon{
    padding-right: 0.5rem;
}
/* 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;
}
.step-arrived-last:after {
    content: "\f5ea \F82E"; /* Code point for bi-chevron-right */
    font-family: "bootstrap-icons";
    margin-left: 8px; /* Space between text and icon */
    font-size: 1rem;
    vertical-align: top;
    margin-left: 28px;
    margin-top: -12px;
    position: absolute;
}

.step-pending-first:before {
    content: "\f5ea"; /* Code point for bi-chevron-right */
    font-family: "bootstrap-icons";
    margin-left: -28px; /* Space between text and icon */
    font-size: 1rem;
    vertical-align: top;
    margin-top: -12px;
    position: absolute;
}

.btn-popup-ori:hover {
    background-color: aqua;
}
/* 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;
}
.d-serach-his-rw{
   padding-left: 1rem;
   cursor: pointer;
}
.d-serach-his-rw:hover {
    background-color: aqua;
}
.d-serach-his {
    font-size: 0.8rem;
    background-color: mediumaquamarine;
    max-height: 300px;
    overflow-y: auto;
}
/*.text-truncate:hover {
    white-space: normal !important;*/ /* Hủy bỏ nowrap để văn bản xuống dòng */
/*overflow: visible !important;*/ /* Cho phép nội dung tràn ra ngoài khung nếu cần */
/*text-overflow: clip;*/ /* Bỏ dấu ba chấm */
/* border: solid 3px red;*/
/* background-color: white; /* Thêm nền để không bị đè lên chữ bên dưới  */
/*z-index: 99;*/ /* Đưa lên lớp trên cùng */
/*position: relative;*/ /* Giúp z-index hoạt động */
/*}*/
.accounting-dashboard-dropdown {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block; /* Đảm bảo thẻ có thuộc tính khối để tính toán chiều rộng */
    max-width: 200px; /* Ví dụ giới hạn chiều rộng */
    transition: all 0.3s ease;
}

    /* Khi di chuột vào: Hiện đầy đủ */
    .text-truncate:hover {
        white-space: normal !important; /* Hủy bỏ nowrap để văn bản xuống dòng */
        overflow: visible !important; /* Cho phép nội dung tràn ra ngoài khung nếu cần */
        text-overflow: clip; /* Bỏ dấu ba chấm */
        border: solid 3px red;
        background-color: white; /* Thêm nền để không bị đè lên chữ bên dưới */
        z-index: 99; /* Đưa lên lớp trên cùng */
        position: relative; /* Giúp z-index hoạt động */
    }

/*.d-img-cov {
    position: relative;
}
.img-thumbnail {
    position: absolute;
}
.btn-g-upload {
    position: absolute;
    top: 0;
    right: 0;*/
   /* width: 100%;
    height: 100%;*/
    /*opacity: 0;*/ /* Ẩn nút nhưng vẫn có thể click được */
    /*cursor: pointer;
}*/

.typing-loader span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    margin-right: 3px;
    animation: typing 1s infinite;
}

    .typing-loader span:nth-child(2) {
        animation-delay: 0.2s;
    }

    .typing-loader span:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes typing {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.img-icon {
    width: 20px;
    height: 20px;
    object-fit: cover;
}
#notifList {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}
.card-fsm{
    max-height: 145px;
    padding: 0.2rem 0.2rem !important;
    font-size: 0.8rem !important;
}
.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: 45px; /* Đâ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;
}
.nav-item {
    list-style-type: none;
}
.hastag-only{
    background-color: silver;
}
#hashtagSuggestions {
    max-height: 200px;
    overflow-y: auto;
}

    #hashtagSuggestions .list-group-item {
        cursor: pointer;
        font-size: 0.9rem;
    }

        #hashtagSuggestions .list-group-item:hover {
            background-color: #f8f9fa;
            color: #007bff;
        }

@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;
}