﻿html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%
}

a:not([href]):not([class]) {
    color: #377DFF !important;
}

#header, #activitySidebar {
    z-index: 998 !important;
}

    #header .page-title {
        clear: both;
        display: inline-block;
        overflow: hidden;
        white-space: nowrap;
    }

.navbar-dropdown-menu {
    margin-top: 0;
}

.card-body-height {
    max-height: 21.25rem;
    height: auto;
}

.container-fluid {
    padding-right: 20px;
    padding-left: 20px;
    position: relative;
}

.ck-editor {
    font-family: "Open Sans",sans-serif;
    color: black;
}

.nowrap {
    white-space: nowrap;
}

.btn-group > .btn-group:not(:last-child) > .btn, .btn-group > .btn:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important
}

#keyword {
    min-width: 150px;
}

.toast-success {
    background-color: #51a351 !important;
}

.toast-error {
    background-color: #bd362f !important;
}

.toast-info {
    background-color: #2f96b4 !important;
}

.toast-warning {
    background-color: #f89406 !important;
}

.dropdown-menu a {
    cursor: pointer !important;
}

.action .dropup button {
    border-top-right-radius: .25em !important;
    border-bottom-right-radius: .25em !important;
}

.badge {
    font-size: 0.875rem !important;
    font-weight: normal !important;
}

.table th {
    font-weight: 600;
}

.w-0 {
    width: 0px;
}

.datatable-custom .sorting_desc:after, .datatable-custom .sorting_asc:after, .datatable-custom .sorting:after {
    margin-top: 0 !important;
    margin-left: 3px !important;
}

.table .white-space {
    white-space: pre-wrap
}

.tio-upload-image {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
}

.tio-upload-pdf {
    z-index: 10;
    position: absolute;
    right: 75px;
    top: 15px;
    cursor: pointer;
}

.custom-file-boxed-upload {
    padding: 10px 20px !important;
}

.ck-editor__editable {
    min-height: 200px;
}
/*Treeview----------------------------------------------*/
.treeview, .treeview ul {
    padding: 5px;
    margin: 0;
    list-style: none;
}

    .treeview .hitarea {
        background: url(/assets/img/treeview/treeview-default.gif) -66px -24px no-repeat;
        height: 16px;
        width: 16px;
        margin-left: -16px;
        float: left;
        cursor: pointer;
    }

    .treeview li {
        margin: 0;
        padding: 3px 0pt 3px 16px;
        background: url(/assets/img/treeview/treeview-default-line.gif) 0 -1px no-repeat;
    }

        .treeview li.collapsable, .treeview li.expandable {
            background-position: 0 -176px;
        }

        .treeview li.lastCollapsable, .treeview li.lastExpandable {
            background-image: url(/assets/img/treeview/treeview-default.gif);
        }

        .treeview li.lastCollapsable {
            background-position: 0 -111px;
        }

        .treeview li.lastExpandable {
            background-position: -32px -67px;
        }

        .treeview li.select {
            color: #007ebb;
        }

    .treeview > li span.folder:before {
        font-size: 20px;
        float: left;
        padding-right: 5px;
        position: relative;
        top: 0;
    }

.collapsable > span.folder:before {
    content: "\eaa6";
    font-size: 20px;
    float: left;
    padding-right: 5px;
    position: relative;
    top: 0px;
}

.treeview > li span.file:before {
    font-size: 20px;
    padding-right: 5px;
    float: left;
    top: 0;
}

.treeview > li.collapsable > span.file:before {
    font-size: 20px;
    padding-right: 5px;
    float: left;
    top: 0;
}

.treeview div.lastCollapsable-hitarea, .treeview div.lastExpandable-hitarea {
    background-position: 0;
}

.treeview .hover {
    color: #007ebb;
    cursor: pointer;
}

.treeview .expandable-hitarea {
    background-position: -82px -2px;
}

.treeview .treeview li.last {
    background-position: 0 -1766px;
}

.treeview input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin-right: 5px;
    margin-left: 4px;
    position: relative;
    top: 0;
    margin-top: 0;
}

#treecontrol {
    margin: 1em 0;
    display: none;
}

.filetree li {
    padding: 0px 0 0px 18px;
}

    .filetree li span {
        width: 100%;
    }

.filetree span.folder, .filetree span.file {
    padding: 0px 0 0px 0px;
    display: inline-block;
    clear: both;
}

li.select > span > div.quickTool {
    display: block;
    position: relative;
}

    li.select > span > div.quickTool i {
        font-size: 15px;
    }

li.select > span > a {
    background-color: #C6E8FF;
}

li.unselect > span > div.quickTool {
    display: none;
}

li span a {
    float: none;
}

.filetree li span a.tool {
    padding-top: 3px;
    display: block;
    color: #004C80;
    font-family: Arial;
    font-size: 14px;
    display: block;
    float: left;
}

.filetree li span a {
    color: #0F69A4;
    font-family: Arial;
    text-decoration: none;
}

.filetree li span i {
    float: left;
    margin: 0px 5px;
}

.treeTool {
    display: inline-block !important;
    clear: both;
    padding: 5px;
    margin: 0px !important;
}

    .treeTool a, .treeTool a:link, .treeTool a:visited {
        display: block;
        float: left;
        padding: 5px 15px;
        color: #333;
        text-decoration: none;
    }

        .treeTool a:hover {
            color: Red;
        }

        .treeTool a.expand {
            background: url(/assets/img/treeview/minus.gif) 0px 12px no-repeat;
        }

        .treeTool a.collapse {
            background: url(/assets/img/treeview/plus.gif) 0px 12px no-repeat;
        }

.quickTool a {
    display: block;
    float: left;
    padding: 0px;
    margin-left: 5px;
}

    .quickTool a.btn-success {
        background-color: transparent;
        border: none;
    }

        .quickTool a.btn-success i {
            color: orange;
        }

    .quickTool a.btn-danger {
        background-color: transparent;
        border: none;
    }

        .quickTool a.btn-danger i {
            color: red;
        }
/*modal*/
.modal {
    z-index: 1021 !important
}

.modal-dialog {
    margin-top: 5px !important;
}

.modal-backdrop:first-child {
    z-index: 110;
}

.modal-backdrop:last-child {
    z-index: 999 !important;
}

.sticky-top {
    z-index: 999 !important;
}

.modal-backdrop.show {
    z-index: 999 !important;
}
/*image*/
.product-image {
    background-size: 100% !important;
    width: 60px;
    height: 60px;
}

.daterangepicker td.active.start-date.end-date {
    border-top-right-radius: 6.1875rem !important;
    border-bottom-right-radius: 6.1875rem !important;
    border-top-left-radius: 6.1875rem !important;
    border-bottom-left-radius: 6.1875rem !important;
}

.daterangepicker .yearselect, .daterangepicker .monthselect {
    border: 1px solid #ddd;
    margin-right: 5px;
    color: #677788;
    padding: 5px !important;
}

.daterangepicker {
    z-index: 9999 !important;
}

.action .btn-xs {
    padding: 3px 5px;
    margin-top: 3px;
}

.col-form-label.input-label {
    font-weight: 600
}

.form-group {
    margin-bottom: 10px;
}

.card-lg > .card-body, .card-lg > .collapse .card-body {
    padding: 1rem 2rem;
}

.progress-uploading {
    background: #d6d6d6;
    display: block;
    height: calc(1.6em + 1.21875rem);
    text-align: center;
    transition: width .3s;
    width: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 98;
    border-radius: .3125rem;
    opacity: 0.5;
}

.card table td, .card table th {
    padding: 10px 5px 10px 5px !important;
    vertical-align: inherit;
}

.page-header .nav-tabs .nav-link {
    padding: 0px 10px !important;
}

.page-header .nav-link.active {
    margin-bottom: 22px !important;
}

.select2-container, form .align-items-center button {
    padding-right: 5px;
    white-space: nowrap
}

.ck-editor__main {
    max-height: 500px !important;
    overflow: auto !important;
    border-bottom: 1px solid var(--ck-color-base-border) !important;
}

label.custom-file-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 140px;
}
/*New*/
.card {
    border-radius: 0;
}

.card-header {
    padding-top: 10px;
    padding-bottom: 5px;
}

.page-header {
    margin-bottom: 15px;
}

    .page-header .nav-tabs .nav-item {
        margin-bottom: -20px;
    }

.paging {
    padding: 10px;
}

    .paging select {
        border: 1px solid #BDC5D1;
        padding: 2px;
        border-radius: 3px;
    }

.card-search {
    overflow: hidden;
    overflow-x: auto;
}

#form-search .form-group {
    margin-top: 5px;
}

#form-search .form-control {
    border: .0625rem solid #BDC5D1;
}

#form-search .form-group > label {
    position: absolute;
    top: -6px;
    left: 25px;
    padding: 0px 5px;
    background: #fff;
    z-index: 5;
    font-size: 13px;
}

#form-search .card-footer {
    padding: 10px;
}

#form-search .card-footer {
    border-top: 0;
}

#form-search .form-control {
    border: .0625rem solid #e7eaf3;
    border-radius: 3px;
}

#form-search .input-group-merge .input-group-prepend {
    left: 3px;
}

#form-search .input-group-merge .form-control:not(:first-child) {
    padding-left: 22px;
}

#form-search select, #form-search input {
    min-width: 120px
}

#ListItem table th {
    white-space: nowrap;
}

.card-footer .btn {
    margin: 2px;
}

.form-card .card-header {
    background-color: #002272;
    padding-top: 10px;
    padding-bottom: 10px;
}

.form-card .card-header button, .form-card .card-header a {
    color: white
}
.card-header:first-child {
    border-radius: 0px;
}

.form-card .btn-group > .btn-group:not(:last-child) > .btn, .form-card .btn-group > .btn:not(:last-child):not(.dropdown-toggle) {
    border-radius: .25rem;
}

.table-responsive .table {
    margin-bottom: 0;
}

.footer-offset {
    margin-bottom: 25px;
}

.footer {
    background-color: #fff
}

#ListItem table td {
    vertical-align: middle;
    padding: 8px;
}

.navbar-vertical-fixed {
    z-index: 1000;
}

.navbar-vertical-content .navbar-nav .nav .nav-link {
    padding-left: 30px !important;
}

.navbar-vertical-content .nav-indicator-icon {
    font-size: 12px;
    margin-right: 5px;
}

.navbar-vertical-content .navbar-nav li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.navbar-vertical-content .nav-sub .nav-item, .navbar-vertical-content .nav-sub .navbar-vertical-aside-has-menu {
    padding-top: .375rem;
    padding-bottom: .375rem;
}

.navbar-vertical:not([class*=container]) .navbar-nav .nav .nav-link {
    padding-right: 10px;
}

.nav-sub .nav-item:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.nav-sub .nav-item:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.10);
}

.dropdown-header {
    font-family: "MyriadRegular", sans-serif !important;
}

.navbar-vertical:not([class*=container]) .navbar-nav .nav-link {
    padding: 5px 10px;
}

#inventory .form-group {
    margin-bottom: 1rem;
}

#inventory .form-control {
    border: .0625rem solid #bfbfbf !important;
}

#inventory .custom-select {
    border: .0625rem solid #bfbfbf !important;
}

html::-webkit-scrollbar {
    display: block !important;
    width: 8px !important;
    height: 8px;
}

html::-webkit-scrollbar-track {
    background: transparent !important;
}

html::-webkit-scrollbar-thumb {
    background: #d5dae2;
}

html::-webkit-scrollbar-track-piece:end {
    background: transparent !important;
    margin-bottom: 0px !important;
}

html::-webkit-scrollbar-track-piece:start {
    background: transparent !important;
    margin-top: 0px !important;
}

.navbar-vertical-content::-webkit-scrollbar {
    display: block !important;
    width: 5px !important;
}

.navbar-vertical-content::-webkit-scrollbar-track {
    background: transparent !important;
}

.navbar-vertical-content::-webkit-scrollbar-thumb {
    border-radius: 5px !important;
}

.navbar-vertical-content::-webkit-scrollbar-track-piece:end {
    background: transparent !important;
    margin-bottom: 0px !important;
}

.navbar-vertical-content::-webkit-scrollbar-track-piece:start {
    background: transparent !important;
    margin-top: 0px !important;
}

@media (max-width:480px) {
    .navbar-nav-wrap-content-left .page-title {
        font-size: 13px;
    }
}

.modal .modal-content .modal-header {
    padding: 10px 6px 10px 25px;
    border-bottom: 1px solid #e1e1e1;
}

.card-footer .js-select2-page {
    border: 1px solid #c3c3c3;
    padding: 1px;
    border-radius: 3px;
}

.card-footer .page-link {
    padding: 5px 10px;
    min-width: 0;
}

#Text_CategoryValues {
    padding-top: 0;
    max-height: 120px;
    overflow: hidden;
    margin-bottom: 0;
    overflow-y: scroll;
    border: 1px solid #e1e1e1;
    margin-top: 2px;
    padding-left: 31px;
}

.action {
    text-align: right;
}

.modal-dialog.modal-xxl {
    max-width: 100%;
    margin: 0px !important;
}

    .modal-dialog.modal-xxl .modal-content {
        border-radius: 0px;
        height: 100vh;
    }

#loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.card-financial-t {
    background-color: #ED4C78;
    color: white;
    border-radius: 8px;
}

.card-financial-tiy {
    background-color: #6F42C1;
    color: white;
    border-radius: 8px;
}

.card-financial-triy {
    background-color: #28A745;
    color: white;
    border-radius: 8px;
}

.card-financial-tra {
    background-color: #FD7E14;
    color: white;
    border-radius: 8px;
}

.card-financial-tim {
    background-color: #06C8A6;
    color: white;
    border-radius: 8px;
}

.card-financial-rim {
    background-color: #06C8A6;
    color: white;
    border-radius: 8px;
}

.card-financial-toa {
    background-color: #132144;
    color: white;
    border-radius: 8px;
}

.card-financial-base h4,
.card-financial-base span,
.card-financial-base i {
    color: white;
}

.add-size {
    font-size: 1.2rem;
}

ul.list-inline {
    display: flex;
}

    ul.list-inline li {
        border-top: 1px solid #9e9e9e8c;
        border-bottom: 1px solid #9e9e9e8c;
        border-right: 1px solid #9e9e9e8c;
        padding: 0 2px 0 2px;
        color: #37466c;
        font-size: 11px;
    }

        ul.list-inline li:first-child {
            border-left: 1px solid #9e9e9e8c;
        }

.fixed-bottom-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .fixed-bottom-button:hover {
        background-color: #0069d9;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }

    .fixed-bottom-button i {
        margin-right: 8px;
    }
.table-column-pr-0{
    width:30px;
}
/* CSS cho danh sách sản phẩm đã chọn */
.selected-products-wrapper {
    position: sticky;
    top: 20px;
    height: calc(100vh - 75px);
    margin-bottom: 20px;
}

.selected-products-container {
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.selected-products-header {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
    font-weight: 600;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 10;
}

.selected-products-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 15px;
}

.selected-products-footer {
    padding: 0;
    border-top: 1px solid #e5e5e5;
    background-color: #fff;
    position: sticky;
    bottom: 0;
}

.selected-product-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .selected-product-item:last-child {
        border-bottom: none;
    }

.selected-product-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.selected-product-info {
    display: flex;
    justify-content: space-between;
    color: #6c757d;
    font-size: 0.9rem;
}

.selected-product-price {
    font-weight: 600;
    color: #ED4C78;
}

/* Tùy chỉnh thanh cuộn */
.selected-products-body::-webkit-scrollbar {
    width: 5px;
}

.selected-products-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.selected-products-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

    .selected-products-body::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* Thông báo khi không có sản phẩm */
.no-products {
    padding: 30px 15px;
    text-align: center;
}

    .no-products i {
        font-size: 48px;
        color: #c1c1c1;
        margin-bottom: 15px;
    }

.product-count {
    background-color: #ED4C78;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 5px;
}

@media (max-width: 991.98px) {
    .selected-products-wrapper {
        position: static;
        height: auto;
        margin-top: 20px;
    }

    .selected-products-container {
        max-height: 400px;
    }
}

.highlight-code {
    display: inline-block;
    background-color: #FAEBD7;
    padding: 4px 10px;
    font-weight: bold;
    border-radius: 6px;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    cursor: wait;
    pointer-events: all; /* Ngăn thao tác chuột vào vùng overlay */
}
/* spinner dạng vòng quay */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.custom-control-label::before {
    border: #999 solid .0625rem !important;
}

.password-group {
    position: relative;
}

.password-actions {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
}

    .password-actions button {
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        color: #6c757d;
    }

        .password-actions button:hover {
            color: #495057;
        }

.new-password-input {
    padding-right: 90px;
}

.confirm-password-input {
    padding-right: 50px;
}

.password-validation {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 0.875rem;
}

.validation-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
    color: #dc3545;
}

    .validation-item.valid {
        color: #28a745;
    }

.validation-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.validation-item.valid .validation-icon {
    color: #28a745;
}

.validation-item:not(.valid) .validation-icon {
    color: #dc3545;
}

.code-refresh-btn {
    position: absolute;
    right: 20px;
    top: 63%;
    transform: translateY(-50%);
    z-index: 5;
    width: 30px;
    height: 30px;
    border: none;
    background-color: transparent;
    color: #6c757d;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

    .code-refresh-btn:hover {
        color: #0d6efd;
    }

    .code-refresh-btn:active {
        transform: translateY(-50%) scale(0.9);
    }

    .code-refresh-btn.loading {
        pointer-events: none;
        color: #0d6efd;
    }

        .code-refresh-btn.loading i {
            animation: rotateRefresh 0.8s linear infinite;
        }
.note-box {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 15px;   
    border-radius: 4px;
}

@keyframes rotateRefresh {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
/* Bỏ đi giới hạn chiều cao của form-control áp lên Select2 để nó tự giãn khi chọn nhiều */
.select2-container .select2-selection--multiple {
    min-height: 38px;
    height: auto !important; /* Ép buộc tự động giãn chiều cao */
    border: 1px solid #ced4da; /* Màu viền chuẩn Bootstrap */
    border-radius: 4px;
    padding: 2px 4px;
    background-color: transparent;
}

/* Khi focus (click vào) thì đổi màu viền cho mượt */
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #80bdff;
    box-shadow: none;
}

/* Trang trí lại các "Tag" (Thẻ đã chọn) cho gọn gàng, không bị tràn viền */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e2e8f0; /* Màu nền xám xanh nhạt, hiện đại */
    border: 1px solid #cbd5e1; /* Viền nhạt */
    border-radius: 4px;
    padding: 3px 8px; /* Cho chữ có không gian thở */
    margin-top: 4px; /* Cách nhau ra một chút để không dính viền trên */
    margin-left: 4px;
    color: #334155;
    font-size: 13px; /* Thu nhỏ chữ ở tag một chút cho gọn */
    display: flex;
    align-items: center;
}

/* Trang trí nút X (xóa) trên từng Tag */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #ef4444; /* Màu đỏ cho nút xóa */
    margin-right: 6px;
    border-right: 1px solid #cbd5e1;
    padding-right: 6px;
    font-weight: bold;
}

    .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
        background-color: transparent;
        color: #dc2626;
    }

/* Căn chỉnh lại input gõ chữ bên trong cho khỏi bị lệch */
.select2-container--default .select2-selection--multiple .select2-search.select2-search--inline .select2-search__field {
    margin-top: 6px;
    font-size: 14px;
}
