html:has(div.ant-modal-root) {
    overflow: unset;
    width: 100%;
}

.layout-logo {
    text-align: center;
    font-weight: bold;
    padding: 7px 16px;
}

.ant-empty {
    padding: 50px 20px;
}

.ant-empty-image {
    height: auto !important;
    margin-bottom: 0 !important;
    opacity: 0.6 !important;
    line-height: 1 !important;
}

.table-x-small .ant-table-cell,
.table-x-small .ant-table-row {
    padding: 1px !important;
}

.menu-left {
    background-color: #ffffff;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid #f0f0f0;
}

.menu-left .ant-menu {
    border-inline-end: 0 !important;
}

.menu-left-title,
.card-title {
    padding: 15px;
    color: rgba(0, 0, 0, 0.88);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 0;
}

.card-title-page {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 0 !important;
}

.card-title-page .ant-form-item {
    margin-bottom: 0;
}

.card-title-page .ant-steps-item-title {
    line-height: 25px !important;
}

.card-title-page .ant-steps-item-icon {
    width: 25px !important;
    height: 25px !important;
}

.card-title-page .ant-steps-icon {
    top: -3.5px !important;
}

.btn-add-calen {
    position: absolute;
    top: 2px;
    right: 2px;
}

.full-modal {
    .ant-modal {
        max-width: 100%;
        top: 0;
        padding-bottom: 0;
        margin: 0;
    }

    .ant-modal-content {
        display: flex;
        flex-direction: column;
        height: calc(100vh);
    }

    .ant-modal-body {
        flex: 1;
    }
}

.ant-tabs-nav {
    background-color: #ffffff;
    margin: 0 !important;
    padding: 0 10px;
}

.table-vertical-top .ant-table-cell {
    vertical-align: top;
}

.ant-btn .mdi,
.ant-dropdown-menu .mdi {
    margin-right: 5px;
}

.ant-pagination {
    margin: 0 !important;
    padding: 15px;
    border-top: 1px solid #f0f0f0;
    background-color: #fff;
}

.d-hover {
    display: none;
}

.component-hover:hover .d-hover,
.ant-table-cell:hover .d-hover {
    display: block;
}

.shift-number {
    padding: 5px;
    color: #fff;
    border-radius: 4px;
    line-height: 0.5;
    font-size: 10px;
    margin: 2.5px 0;
}

.uc-container {
    margin-top: 10px;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 1300px) {
    .uc-container {
        margin-top: 0;
        width: 100% !important;
        margin-right: 0;
        margin-left: 0;
    }
}

.line-now-day {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 1px;
    background-color: #1677ff;
}

.circle-avatar-upload {
    display: flex;
    justify-content: center;

    .ant-upload-drag {
        border: 1px solid #d9d9d9 !important;
    }

    .ant-upload {
        border-radius: 50%;
        height: 150px;
        width: 150px;
    }
}

.ant-upload-wrapper {
    background-image: none !important;
}

.input-number-align-right input {
    text-align: right !important;
}

body .handsontable .myHeader {
    background: #bdcdfc;
    padding-top: 2px;
    color: #333;
}

body .handsontable .myCols {
    background: #e3e9f9;
    color: #333;
}

.ant-table-cell {
    padding: 2px 10px !important;
}

.back-link-hover:hover {
    color: blueviolet;
    text-decoration: underline;
}

.ant-table-body {
    scrollbar-width: thin;
}

.thu-cn-new {
    background: linear-gradient(135deg, #e3e146 0%, #e3e146 5%, transparent 5%, transparent 10%, #e3e146 10%, #e3e146 15%, transparent 15%, transparent 20%, #e3e146 20%, #e3e146 25%, transparent 25%, transparent 30%, #e3e146 30%, #e3e146 35%, transparent 35%, transparent 40%, #e3e146 40%, #e3e146 45%, transparent 45%, transparent 50%, #e3e146 50%, #e3e146 55%, transparent 55%, transparent 60%, #e3e146 60%, #e3e146 65%, transparent 65%, transparent 70%, #e3e146 70%, #e3e146 75%, transparent 70%, transparent 80%, #e3e146 80%, #e3e146 85%, transparent 85%, transparent 90%, #e3e146 90%, #e3e146 95%, transparent 95%);
    background-size: 3em 3em;
    background-color: #ffffff;
    opacity: 1;
    color: red;
}

.phanca-bg-training {
    background-color: #e6f7ff !important;
    /* Màu nền sáng cho đào tạo */
    color: #007bff !important;
    /* Màu chữ xanh dương */
    font-size: 14px;
    /* Kích thước chữ nhỏ hơn */
}

.phanca-bg-schedule {
    background-color: #fff3cd !important;
    /* Màu nền sáng cho lịch làm việc */
    color: #856404 !important;
    /* Màu chữ nâu */
    font-size: 14px;
    /* Kích thước chữ nhỏ hơn */
}

.phanca-bg-role {
    background-color: #d4edda !important;
    /* Màu nền sáng cho loại vị trí */
    color: #155724 !important;
    /* Màu chữ xanh lá */
    font-size: 14px;
    /* Kích thước chữ nhỏ hơn */
}

.ant-tabs-tabpane {
    scrollbar-width: thin;
}

.ant-select-selection-search-input {
    opacity: unset !important;
}

:where(.css-u3m5nw).ant-form-item {
    margin-bottom: 15px;
}

:where(.css-u3m5nw).ant-form-vertical .ant-form-item-label,
:where(.css-u3m5nw).ant-col-24.ant-form-item-label,
:where(.css-u3m5nw).ant-col-xl-24.ant-form-item-label {
    padding: 0 0 4px;
}

.text-ellipsis {
    white-space: nowrap;
    /* Không cho phép văn bản rớt dòng */
    overflow: hidden;
    /* Ẩn phần văn bản vượt quá kích thước container */
    text-overflow: ellipsis;
    /* Hiển thị dấu '...' khi văn bản bị cắt */
}

/*CSS scroll của handsontable nhỏ*/
.wtHolder {
    scrollbar-width: thin;
}

/*BEGIN dòng TỔNG của pa-tinh-toan-luong*/

.custom-table tr:last-child {
    position: sticky;
    bottom: 0;
    font-weight: bold;
    background-color: #fafafa;
    z-index: 5;
}

.custom-table tr:last-child td:first-child {
    padding: 0px !important;
}

.custom-cell-sum {
    background-color: #fafafa;
    min-height: 50px;
    font-size: large;
}

.word-wrap {
    white-space: pre-wrap;
    /* Giữ nguyên ngắt dòng, ngắt dòng nếu quá dài */
    word-wrap: break-word;
    /* Ngắt từ nếu từ quá dài */
    overflow-wrap: break-word;
    /* Tương thích với các trình duyệt khác */
    overflow: hidden;
    /* Ẩn phần nội dung vượt quá nếu cần */
    text-overflow: ellipsis;
    /* Hiển thị "..." nếu bị cắt */
    max-height: 4.5em;
    /* Giới hạn chiều cao (nếu muốn) */
    display: -webkit-box;
    /* Dùng WebKit để giới hạn dòng */
    -webkit-line-clamp: 3;
    /* Hiển thị tối đa 3 dòng */
    -webkit-box-orient: vertical;
}

/*END*/

.ant-collapse .ant-collapse-content > .ant-collapse-content-box {
    padding: 0;
}

.apexcharts-canvas {
    width: 100% !important;
}

.ant-table-cell:has(.cell-day-bc-ngay) {
    padding: 0px !important;
}

.ant-table-content {
    scrollbar-width: thin;
}

.card-thong-ke-nhom .ant-card-body {
    padding: 0px !important;
}

.api-notice{
    text-align: right;
}