/*==================== Variables ====================*/
:root {
    --hover-grid: var(--st-red-050);
    --color-sf-secondary-bg-color-hover: white;
    --color-sf-content-bg-color-alt1: white;
    --color-sf-secondary-text-color: black;
    /*--color-sf-primary-text-color: white;*/
    --smart-zindex-popup: 1050;
    font-family: var(--app-font-family);
    --smart-default-clr: var(--st-red);
}

.row {
    --bs-gutter-x: 0.5rem;
}

/*==================== General Styles ====================*/
.modal-body {
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.total-sum,
.validation-message {
    /*    color: red !important;*/
}

.validation-message {
    font-size: smaller;
    margin: 5px 0;
    padding-left: 10px;
}

.btn-css {
    width: 100px;
    zoom: 0.9;
    font-weight: 500;
}

.btn_paddding {
    margin: 0 3px;
}

.table-column-code {
    width: 150px;
    white-space: nowrap;
    overflow: hidden;
}

.table-column-name {
    width: calc(100% - 150px);
    white-space: nowrap;
    overflow: hidden;
}

.level-1 {
    font-weight: 600;
    color: #000;
    padding-left: 0.5rem;
}

.level-2 {
    font-weight: 500;
    color: #333;
    padding-left: 1.5rem;
}

.level-3 {
    font-weight: 400;
    font-style: italic;
    color: #555;
    padding-left: 2.5rem;
}

.level-4 {
    font-weight: 300;
    font-style: italic;
    color: #777;
    padding-left: 3.5rem;
}

.tab-contract {
    background-color: #F5F7F8;
    border-radius: 5px;
    height: 750px;
    min-width: 750px;
}
.tab-employee {
    min-width: 900px;
    min-height: 60vh
}

/*==================== Spinner Styles ====================*/
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

/*.menu-text {
    text-wrap: auto;
}*/

.below-30 {
    background-color: #ccffcc;
    /*    width: 30px;*/
    color: #007d00 !important;
}

.red-txt-grid {
    color: red !important;
}

.below-80 {
    background-color: yellow;
    /*    width: 30px;*/
}

.above-80 {
    background-color: #ffd7cc;
    /*    width: 30px;*/
    color: #c40000 !important;
}

.image-sign img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/*==================== File Styles class:file-upload ====================*/
.file-upload {
    max-width: 400px; /* đảm bảo không vượt container cha */
    display: block;
}

.file-name-info:hover {
    cursor: pointer;
    color: #ea8b1f;
    text-decoration: underline;
}
/* Style chung cho thẻ File */
.file-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
    /* height: 45px; */
    width: 100%;
    /* padding: 8px; */
    /* border-radius: 8px; */
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
    background-color: #f8f9fa;
}

    /* Hiệu ứng khi di chuột */
    .file-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    /* Style cho tên file */
    .file-card .file-name {
        font-size: 14px;
        color: #333;
        margin-top: 5px;
        /* Tự động cắt chữ nếu tên file quá dài */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        text-align: center;
    }

    /* Style riêng cho Icon */
    .file-card .file-icon {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 2px;
    }

    /* --- TÙY CHỈNH MÀU SẮC RIÊNG --- */

    /* Màu cho PDF (Tông đỏ/cam nhẹ) */
    .file-card.pdf-style {
        background-color: #fff5f5;
        border-color: #ffc9c9;
    }

        .file-card.pdf-style .file-icon {
            color: #e03131; /* Màu đỏ đậm */
        }

        .file-card.pdf-style:hover {
            background-color: #ffe3e3;
        }

    /* Màu cho Download/File khác (Tông xanh dương nhẹ) */
    .file-card.download-style {
        background-color: #e7f5ff;
        border-color: #a5d8ff;
    }

        .file-card.download-style .file-icon {
            color: #1971c2; /* Màu xanh đậm */
        }

        .file-card.download-style:hover {
            background-color: #d0ebff;
        }
/*==========================================================================*/
#popup-catalog-invoice {
    margin: 10px;
}

.menu .menu-text {
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 167px;
    font-size: 14px;
}

    .menu .menu-text:hover {
        white-space: normal; /* Cho phép xuống dòng */
        overflow: visible; /* Hiển thị đầy đủ */
        position: relative; /* Tránh đè lên bố cục */
        z-index: 1;
    }

/*====================Fancybox====================*/
.fancybox__container {
    z-index: 1067
}
/*====================Drawer====================*/
.header-drawer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/*==================Css luồng hải quan============*/
.row-blue {
    background-color: #86F1FF87 !important;
    color: #000000 !important;
}

/* Luồng Vàng */
.row-yellow {
    background-color: #FEDE7B6F !important;
    color: #000000 !important;
}

/* Luồng Đỏ */
.row-red {
    background-color: #FE6D7A66 !important;
    color: #000000 !important;
}

.row-is-create td {
    background-color: #BBF7C1 !important;
    color: #b00000;
} 
/* In đậm menu có menu con*/
a.nav-link[data-bs-toggle="collapse"][style*="padding-left: 16px"] .menu-text {
    font-weight: 650;
}
.text-note {
    font-size: 13px;
    color: #dc3545; /* đỏ */
    font-style: italic;
}

