@import url('https://fonts.googleapis.com/css2?family=TikTok+Sans:opsz,wght@12..36,300..900&display=swap');
.jstree{
    padding: 20px;
    border-radius: 10px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.jstree-default .jstree-container-ul{
    padding: 10px 15px;
}
.jstree-default .jstree-container-ul .jstree-node{
    padding-left: 20px;
}
body { padding-top: 70px; background: #f8fafc; font-family: "TikTok Sans", sans-serif; }
.navbar {
    background: linear-gradient(90deg, #0d6efd 0%, #6610f2 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.navbar-brand, .navbar-nav .nav-link, .navbar-text {
    color: #fff !important;
    font-weight: 500;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link:hover {
    color: #ffe082 !important;
    background: rgba(255,255,255,0.08);
    border-radius: 5px;
}
.container {
    max-width: 1100px;
}
.card {
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.table thead {
    background: linear-gradient(90deg, #0d6efd 0%, #6610f2 100%);
    color: #fff;
}
.btn-primary, .btn-success, .btn-warning, .btn-danger {
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}
.btn-primary {
    color: #000;
    border: 2px solid #000;
    background-color: #fff;
}
.btn-success {
    background: linear-gradient(90deg, #00c851 0%, #33b5e5 100%);
    border: none;
}
.btn-warning {
    background: #fff;
    border: 1px solid #000;
}
.btn-danger {
    background: linear-gradient(90deg, #ff4444 0%, #cc0000 100%);
    border: none;
}
.form-label {
    font-weight: 500;
    color: #6610f2;
}
.alert-success, .alert-danger {
    border-radius: 1rem;
    font-size: 1.1rem;
}
.table-striped>tbody>tr:nth-of-type(odd)>* {
    background-color: #f3f0ff;
}
.badge-admin {
    background: linear-gradient(90deg, #0d6efd 0%, #6610f2 100%);
    color: #fff;
}
.badge-user {
    background: linear-gradient(90deg, #00c851 0%, #33b5e5 100%);
    color: #fff;
}
.title-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    position: relative;
    display: inline-block;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
    padding-bottom: 0.3rem;
}
.title-main::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd 0%, #6610f2 100%);
    border-radius: 2px;
    margin-top: 7px;
}
.button-folder button{
    font-size: 14px;
    margin-right: 10px;
}
.download-template-file{
    padding-left: 20px;
    color: #000;
}
.download-template-file:hover{
    color: #5e0404;
}
.frm-import-company input[type="file"]{
    border: 1px solid #000;
    border-radius: 5px;
    padding: 5px;
    margin-right: 10px;
}
.frm-import-company button{
    border-radius: 5px;
}
.btn:hover,
a.btn:hover {
    filter: brightness(90%);
    transition: filter 0.2s ease-in-out;
}
.company-info{
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    font-size: 14px;
}

/* Login page custom style */
.login-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-card {
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
    background: #fff;
    padding: 2.5rem 1rem 2rem 1rem;
    border: none;
}
.login-card .card-header {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 600;
    color: #3b3b3b;
    margin-bottom: 1rem;
}
.login-card .form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.2rem rgba(99,102,241,.15);
}
.login-card .btn-primary {
    background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
    border: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background 0.2s;
}
.login-card .btn-primary:hover {
    background: linear-gradient(90deg, #60a5fa 0%, #6366f1 100%);
    filter: brightness(95%);
}
.login-card .alert {
    border-radius: 8px;
    font-size: 0.95rem;
}
.alert{
    font-size: 13px !important;
    padding: 10px;
}
.folder-row {
    display: flex;
    gap: 32px;
    margin-bottom: 16px;
}
.folder-col {
    flex: 1;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 200px;
    box-shadow: 0 2px 6px #0001;
    margin-top: 5px;
}
.folder-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 5px;
    padding: 8px 10px;
    color: #b97a00;
    box-shadow: 0 1px 3px #0001;
    margin-top: 10px;
    position: relative;
}
button.add-ngay-nop{
    right: 0;
    color: #ccc;
    font-size: 10px;
}
.file-title {
    display: flex;
    align-items: center;
    background: #eaf6ff;
    border-radius: 5px;
    padding: 3px 10px;
    color: #1766a0;
    margin-bottom: 3px;
    font-size: 1em;
}
.folder-icon {
    color: #f7b731;
    margin-right: 8px;
    font-size: 1.2em;
}
.file-icon {
    color: #3498db;
    margin-right: 8px;
    font-size: 1.1em;
}
ul.file-list, ul.folder-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
ul.file-list li, ul.folder-list li {
    margin-bottom: 4px;
}
a.file-link {
    color: #1766a0;
    text-decoration: none;
    font-size: 12px;
}
a.file-link:hover {
    text-decoration: underline;
    color: #0d3c5e;
}
.form-upload-xml{
    padding: 20px;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin: 20px 0;
}
.form-upload-xml input[type="file"]{
    border: 1px solid #000;
    border-radius: 5px;
    padding: 5px;
    margin-right: 10px;
}
.form-upload-xml button{
    border-radius: 5px;
}
.ngay-nop{
    font-size: 12px;
    color: #666;
    margin-left: 10px;
    font-weight: 400;
}
.content-page{
    padding-bottom: 50px;
}

/* Style cho nút thêm thư mục con */
.add-subfolder {
    margin-right: 5px;
    padding: 2px 6px;
    font-size: 12px;
}

.upload-file-btn {
    margin-right: 5px;
    padding: 2px 6px;
    font-size: 12px;
    border: none;
}
.upload-file-btn i {
    color: #666;
}
.folder-title .btn {
    margin-left: 5px;
}

.folder-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Hiệu ứng phân nhánh cây thư mục */
.tree-branch {
    position: relative;
    padding-left: 24px;
}
.tree-branch::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #bbb;
}
.tree-branch > .folder-title {
    position: relative;
}
.tree-branch > .folder-title::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 50%;
    width: 16px;
    height: 1px;
    background: #bbb;
    transform: translateY(-50%);
}

/* Style cho form chọn năm trong yearly_manager */
.year-select-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    margin-top: 20px;
}
.year-select-form label {
    font-weight: 500;
    margin-right: 8px;
}
.year-select-form select {
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    min-width: 90px;
    font-size: 15px;
}

/* Bỏ list-style cho ul trong yearly_manager */
.content-page ul {
    list-style: none;
    padding-left: 0;
}

/* li đầu tiên dạng flex */
.content-page ul.folder-parent-list {
    display: flex;
    gap: 12px;
}
.so-lan-nop{
    font-size: 11px;
    color: #9f2b2b;
    font-weight: 500;
}
.back-to-manager-link{
    color: #000;
    padding: 4px 10px;
    border: 1px solid;
    border-radius: 8px;
    text-decoration: none;
}
.back-to-manager-link:hover{
    color: #000;
    background-color: #f0f0f0;
}
.folder-stats-section{
    padding-bottom: 50px;
}
.table-status tr th{
    background-color: #efefef;
}

.count-zero {
    color: #e53935 !important; /* Đỏ */
}
.count-number{
    color: #067533 !important;
}
@media (max-width:767px) {
    .folder-row{
        display: block;
    }
    .ngay-nop{
        font-size: 10px;
        font-weight: 600;
    }
    .form-upload-xml input[type="file"]{
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .year-select-form{
        display: block;
    }
    .back-to-manager{
        margin-top: 20px;
    }
}
