﻿html {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #888 #f1f1f1;
}

/* Định dạng cho trình duyệt WebKit (Chrome, Edge, Safari) */
html::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

html::-webkit-scrollbar-track {
    background: #f1f1f1;
}

html::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

html::-webkit-scrollbar-thumb:hover {
    background: #555; 
}
.logo img {
    height: 60px;
    vertical-align: middle;
}
/* Sticky card header */
.navbar-top.navbar-glass-shadow {
    z-index: 99;
}
[data-bs-theme="dark"] .card-header {
    background-color: var(--falcon-bg-navbar-glass);
}
.card-header {
    position: sticky;
    top: 65px;
    padding: 1rem;
    background-color: #fff;
}

/* Sticky header cho thead */
thead th {
    position: sticky;
    top: 120px;
    /* Chiều cao của card header, điều chỉnh nếu cần */
    background-color: var(--falcon-bg-navbar-glass) !important;
    /* Màu nền khác biệt cho thead */
    /* Màu chữ trắng để dễ nhìn */
    /*z-index: 1010;*/
    /* Đảm bảo header ở trên nội dung */
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}
.sticky-top {
    padding-top: 10px;
    padding-bottom: 5px;
    z-index: 1;
}
.table {
    width: 100%;
    /* Chiều rộng đầy đủ */
}

/* Breadcrumb styling */
.breadcrumb {
    margin-bottom: 0;
    /* Bỏ khoảng cách dưới breadcrumb */
    font-size: 0.875rem;
    /* Kích thước chữ nhỏ hơn */
}

/* Media queries cho tính tương thích */
@media (max-width: 768px) {

    .table thead {
        display: none;
        /* Ẩn header trên màn hình nhỏ */
    }

    .table tr {
        margin-bottom: 1rem;
        /* Khoảng cách giữa các hàng */
        border: 1px solid #dee2e6;
        /* Đường viền hàng */
        border-radius: 0.25rem;
        /* Các góc bo tròn */
        overflow: hidden;
    }
    .justify-content-center {
        -webkit-box-pack: left !important;
        -ms-flex-pack: left !important;
        justify-content: left !important;
    }
}
#table-actions .btn {
    white-space: nowrap; /* Ngăn không cho chữ xuống dòng */
}
.modal-header{
    padding: 5px 1rem;
}


/* Cột Thông tin với tên tài khoản và thời gian trên PC */
.auditable-info {
    /*display: flex;*/
    flex-direction: column;
    gap: 4px;
}

    /* Dòng chứa icon + tên tài khoản và icon + thời gian */
    .auditable-info .line {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }

    .auditable-info .account-info,
    .auditable-info .time-info {
        align-items: center;
        gap: 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* Responsive cho tablet và mobile */
@media (max-width: 768px) {
    table thead {
        display: none;
        /* Ẩn tiêu đề cột */
    }

    table tbody td {
        display: flex;
        flex-direction: column;
        position: relative;
        white-space: normal;
    }

        /* Thêm tiêu đề data-label trước mỗi dòng */
        table tbody td::before {
            content: attr(data-label);
            left: 15px;
            font-weight: bold;
            white-space: nowrap;
            text-align: left;
        }

    /* Định dạng cho cột Thông tin khi responsive */
    .info .line {
        grid-template-columns: 1fr;
    }

    .info .account-info,
    .info .time-info {
        white-space: normal;
        max-width: 100%;
    }

    table tbody td {
        display: flex;
        flex-direction: column;
        padding-left: 50%;
        position: relative;
        white-space: normal;
    }

    .table td, .table th {
        padding: .75rem;
        vertical-align: top;
    }

    .table tfoot > tr > th:first-child, .table thead > tr > th:first-child, .table tr th:first-child, .table tr td:first-child {
        padding: .75rem !important;
    }
}

/* Căn giữa các nút trong cột Hành động */
.text-center .btn {
    margin: 0 5px;
}
tbody tr.hight-light {
    background-color: #fef0e8;
    --falcon-table-striped-bg: #fef0e8;
}
.text-limit {
    font-size: 12px !important;
    color: var(--falcon-gray-700) !important;
    float: right;
}
#table-results tr {
    border-bottom-width: var(--falcon-border-width);
}
#table-results td {
    border: 0
}
.form-hint {
    display: block;
    color: #626976;
}

/*--*/
/* select-group*/

.select-group {
  display: block;
  position: relative;
}
.select-dropdown {
    border: solid 1px #e0e0e0;
    position: relative;
    cursor: pointer;
    background-color: #fff;
    height: 36px;
    line-height: 36px;
    width: 100%;
    color: #333;
    padding: 0 20px 0 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}
.select-wrapper {
  background: #fff;
  display: none;
  position: absolute;
  z-index: 99;
  box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
  width: 100%;
}.select-content {
  max-height: 260px;width: 100%;
  overflow-y: auto;scrollbar-width: thin;
}.ul-option {
  margin: 0;
  padding: 0;
}.ul-option li {
  list-style: none;
  padding: 6px 16px;
  color: #333;
  cursor: pointer;
}.ul-option li:hover {
  background: #f2f2f2;
}.icon-select {
 border-color: #888 transparent transparent transparent;
  border-style: solid;
  border-width: 5px 4px 0 4px;
  height: 0;
  right: 8px;
  position: absolute;
  top: 50%;
  width: 0;
}
.search-group {
    position: absolute;
    right: 0;
    width: 36px;
    height: 36px;
    z-index: 9;
    cursor: pointer;
    text-align: center;
    line-height: 36px;
    top: 0
}
.input:focus, .select:focus, .textarea:focus {
    border: solid 1px #eaeaea;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(255, 255, 255, 0.6);
    box-shadow: inset inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(255, 255, 255, 0.6);
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.input {
    height: 36px;
    padding: 0 10px;
    display: inline-block;
    border: solid 1px #e0e0e0;
}
.full {
    width: 100%;
}.select-group.is-invalid .select-dropdown {
    border-color: #dc3545;
}
.modal .modal-body {
    overflow: auto;
    height: auto !important;
    max-height: calc(100vh - 200px);
    scrollbar-width: thin;
}
.modal .modal-body::-webkit-scrollbar {
    width: 6px; /* Độ rộng của thanh cuộn */
}

.modal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1; /* Màu nền của thanh cuộn */
}

.modal .modal-body::-webkit-scrollbar-thumb {
    background: #888; /* Màu của thanh cuộn */
    border-radius: 10px; /* Bo góc */
}

.modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #555; /* Màu khi hover */
}