.mb-0 {
    margin-bottom: 0!important;
}

/* Thay thế .list_item và .list_item li cũ trong download.css bằng đoạn này */
ul.list_item {
    list-style: none;
    margin: 0 !important; /* Khắc phục lỗi margin-left: -23px làm mất chỉ mục */
    padding: 0;
    counter-reset: nv-dl-counter;
}

ul.list_item li {
    counter-increment: nv-dl-counter;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 6px;
    border-bottom: 1px dashed #e2e8f0;
    line-height: 1.4;
    font-size: 0; /* Ẩn dấu gạch ngang "-" thừa giữa tên file và ngày tháng */
    transition: all 0.2s ease;
    border-radius: 5px;
}

ul.list_item li:last-child {
    border-bottom: none;
}

ul.list_item li:hover {
    background-color: #f0f7ff;
    padding-left: 9px;
}

/* Tạo ô chỉ mục đánh số tự động 1, 2, 3, 4, 5 */
ul.list_item li::before {
    content: counter(nv-dl-counter);
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background-color: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Tô màu nổi bật cho Top 3 file mới nhất */
ul.list_item li:nth-child(1)::before {
    background-color: #0b4d8c;
    color: #ffffff;
}
ul.list_item li:nth-child(2)::before {
    background-color: #1d6ec2;
    color: #ffffff;
}
ul.list_item li:nth-child(3)::before {
    background-color: #3b82f6;
    color: #ffffff;
}

/* Tên phần mềm tự động cắt gọn (...) nếu quá dài, không bị rớt dòng */
ul.list_item li a {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

ul.list_item li:hover a {
    color: #0b4d8c;
}

/* Đóng khung badge cho ngày cập nhật */
ul.list_item li em {
    font-size: 11px;
    font-style: normal;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.block_download .detail, .block_download .info_download {
    font: bold 13px/20px arial, verdana, sans-serif;
    margin: 0 0 8px 1px;
}

.block_download .introtext {
    font: normal 13px arial, verdana, sans-serif;
    text-align: justify;
    overflow: hidden;
    -webkit-transition: all .5s ease-in-out;
    -moz-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;
}

.block_download .introtext button {
    margin-top: 5px
}

.block_download .dl-horizontal dt, .block_download .dl-horizontal dd {
    padding: 3px;
}

.block_download .rating {
    margin: 2px 10px 10px;
    padding: 3px
}

.report {
    background: url(../images/download/report.gif) no-repeat center left;
    padding-left: 20px;
    margin-top: 10px;
    margin-right: 10px;
}

.report a{
    color: #333
}

.report a:hover, .report a:focus {
    text-decoration: none;
    color: #0e2132;
}

.block_download .image{
    text-align: center;
    padding-top: 8px;
}

.note {
    margin-bottom: 6px;
    display: block;
}

.category {
    width: 100%;
}

.category .glyphicon {
    margin-right:10px;
}

.category .panel-body {
    padding:0px;
}
.category .panel-body table tr td {
    padding-left: 15px
}

.category .panel-body .table {
    margin-bottom: 0px;
}

.viewcat_list .list-title{
    margin: 10px 0 5px 0
}

.viewcat_list .list-content{
    border-top: 1px dotted #DDDDDD;
    margin: 0 5px 0 5px;
    padding: 10px 0 10px 0;
}

.viewcat_list .pagination{
    margin-top: 0
}

/* div table */
.divTable {
    width: 100%;
    display: table;
    border-collapse: collapse;
    border-spacing: 0;
}
.divTable .divTitle {
    display: table-caption;
    text-align: center;
    font-weight: bold;
    font-size: larger;
}
.divTable .divHeading {
    display: table-row;
    font-weight: bold;
    border-bottom-width: 2px;
}
.divTable .divHeading .Cell {
    border-bottom-width: 2px;
}
.divTable .Row {
    display: table-row;
}
.divTable .Row:nth-of-type(odd) {
    background-color: #f9f9f9;
}
.divTable .Row:hover {
    background-color: #f5f5f5;
    cursor: default
}
.divTable .Cell {
    display: table-cell;
    border: 1px solid #ddd;
    border-width: thin;
    padding: 8px;
}

.upload-catlist {
    margin-bottom: 0!important;
}
.upload-catlist-item {
    padding: 5px;
}
.upload-catlist-item input[type="radio"] {
    margin-top: 0;
}
.upload-catlist-item label {
    font-weight: normal;
    margin-bottom: 0;
}

.file-download-link {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
