.th-required {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    line-height: 1;
}



*/ .th-star {
    color: #dc3545 !important;
    /* sao đỏ */
    font-weight: 700;
}

.jexcel thead tr td {
    background-color: white !important;
    color: #28a745 !important;
    font-weight: bold !important;
    overflow: visible !important;
}

.jexcel>thead>tr>td.selected::after {
    content: '\00a0';
    position: absolute;
    height: 2px;
    left: 0;
    bottom: -2px;
    width: 100%;
    background-color: #44ab4a;
    z-index: 10000;
}

.jexcel>tbody>tr.selected>td:first-child {
    font-weight: bold !important;
    color: #28a745;
}

.jexcel .highlight {
    /* background-color: rgba(0, 0, 0, 0.05); */
    background-color: #ebf5e5 !important;
    /* margin: -1px !important;
    box-sizing: border-box !important; */
}

.jexcel .highlight-top {
    border-top: 1px solid #28a745 !important;
    /* var(--jexcel-border-color);*/
    box-shadow: 0px -1px #ccc;
}

.jexcel .highlight-left {
    border-left: 1px solid #28a745 !important;
    /* var(--jexcel-border-color);*/
    box-shadow: -1px 0px #ccc;
}

.jexcel .highlight-right {
    border-right: 1px solid #28a745 !important;
    /* var(--jexcel-border-color);*/
}

.jexcel .highlight-bottom {
    border-bottom: 1px solid #28a745 !important;
    /* var(--jexcel-border-color);*/
}

.jexcel .highlight-top.highlight-left {
    box-shadow: -1px -1px #ccc;
    -webkit-box-shadow: -1px -1px #ccc;
    -moz-box-shadow: -1px -1px #ccc;
}

.jexcel tbody tr td.readonly {
    color: rgb(0 0 0) !important;
    cursor: not-allowed !important;
}

.readonly {
    background-color: white !important;
}

.jexcel_container {
    width: 100% !important;
    position: relative !important;
}

.btn-ouline-28a745 {
    color: #28a745;
    border: 1px solid #28a745;
}

.btn-ouline-28a745:hover {
    background-color: #28a745;
    color: white;
}

.jdropdown-header {
    background: none !important;
}

.button-left {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
}

@media (max-width: 564px) {
    .button-left {
        position: relative;
        top: 0;
        left: 0;
    }
}

.jdropdown-selected {
    background-color: white !important;
    color: #000 !important;
}

.item_add:hover {
    background-color: #44ab4a;
}

.space_component {
    min-height: 26px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    white-space-collapse: collapse !important;
    text-wrap: wrap !important;
    overflow: visible !important;
    line-height: 1.2 !important;
    padding: 4px 4px !important;
    text-align: center !important;
}

.space_component span {
    padding: 0 4px;
    white-space: wrap;
    text-overflow: ellipsis;
    color: #44ab4a;
    cursor: pointer;
    text-decoration: underline;
}

.VILLAGE {
    color: black !important;
}

.jloading {
    position: absolute !important;
    z-index: 100;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1) !important;
}

.jloading::after {
    content: '';
    display: block;
    margin: 0 auto;
    margin-top: 50vh;
    width: 40px;
    height: 40px;
    border-style: solid;
    border-color: #28a745 !important;
    border-top-color: transparent !important;
    border-width: 4px;
    border-radius: 50%;
    animation: jspin 0.8s linear infinite;
}

.container_body {
    position: relative;
    flex-grow: 1;
    padding: 4px 10px;
    display: flex;
    height: 1px;
}

/* .jexcel > thead > tr:nth-child(1) > td {
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 4px;
    border-top: none;
    border-bottom: none;
    border-right: none;
} */

/* .jexcel > thead > tr:nth-child(2) > td {
    position: unset;
} */

.jexcel>thead>tr>td:nth-child(1) {
    left: 0 !important;
    z-index: 10 !important;
    padding: 0;
    position: -webkit-sticky;
    position: sticky;
}

/* .jexcel > thead > tr > td:nth-child(2) {
    left: 50px !important;
    z-index: 10 !important;
    padding: 0;
    position: -webkit-sticky;
    position: sticky;
} */
/* .jexcel>thead>tr>td:nth-child(3) {
    left: 150px !important;
    z-index: 10 !important;
    padding: 0;
    position: -webkit-sticky;
    position: sticky;
} */

.jexcel>tbody>tr>td:nth-child(1) {
    left: 0 !important;
    z-index: 4;
    padding: 0;
    position: -webkit-sticky;
    position: sticky !important;
}

/* .jexcel > tbody > tr > td:nth-child(2) {
    left: 50px !important;
    z-index: 4;
    padding: 0;
    position: -webkit-sticky;
    position: sticky !important;
} */

/* .jexcel>tbody>tr>td:nth-child(3) {
    left: 150px !important;
    z-index: 4;
    padding: 0;
    position: -webkit-sticky;
    position: sticky !important;
} */

.jexcel>thead>tr>td.jexcel_selectall {
    z-index: 36;
}

.jexcel>tbody>tr.selected>td:first-child {
    background-color: #dcdcdc;
    font-weight: 700;
    color: #44ab4a;
}

.jexcel>tbody>tr.selected>td:first-child::after {
    content: '\00a0';
    position: absolute;
    width: 2px;
    right: -2px;
    top: -1px;
    height: calc(100% + 3px);
    background-color: #44ab4a;
    z-index: 31;
}

.jexcel>tbody>tr>td {
    line-height: unset !important;
}

.jexcel .jexcel_comments {
    background-size: 13px;
    background-color: #fff5f7 !important;
}

.jexcel_content {
    max-height: calc(100% - 50px) !important;
}

div.fix_card {
    background-color: white !important;
}

.fix_card {
    margin-bottom: 0px !important;
}

.row_error {
    border: 1px solid #e03 !important;
    background-color: #fff5f7 !important;
}

.row_success {
    border: 1px solid #29a744 !important;
    background-color: #fff5f7 !important;
}

/* required star */
.jexcel thead tr td .th-required {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.jexcel thead tr td .th-required .th-title {
    color: inherit !important;
    /* chữ giữ nguyên màu header (#28a745) */
    font-weight: inherit !important;
    /* giữ bold như header */
}

.jexcel thead tr td .th-star {
    color: #dc3545 !important;
    font-weight: 700 !important;
}

.jexcel thead tr td .th-required .th-star {
    color: #dc3545 !important;
    /* * đỏ */
    font-weight: 700 !important;
}

.simple-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
    overflow: visible;
}

/* ===== TITLE ===== */
.card-title-green {
    font-weight: 700;
    text-transform: uppercase;
    /* luôn viết hoa */
    color: #28a745;
    /* xanh lá */
    padding-bottom: 8px;
    margin-bottom: 16px;
    border-bottom: 2px solid #28a745;
    /* gạch chân xanh */
    font-size: 15px;
    letter-spacing: .5px;
}

/* ===== DatePicker xanh lá khi focus ===== */
/* bình thường để như antd (xám) */
.dp-green.ant-picker {
    border-radius: 6px;
    border-color: #d9d9d9 !important;
}

/* hover vẫn xám hoặc hơi xanh tùy bạn */
.dp-green.ant-picker:hover {
    border-color: #bfbfbf !important;
}

/* chỉ khi focus/click mới xanh */
.dp-green.ant-picker-focused,
.dp-green.ant-picker:focus-within {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2) !important;
    /* xanh lá thay vì xanh dương */
}

/* Tắt bóng ở panel container (đúng cái bạn chụp devtools) */
.dp-green-dropdown.ant-picker-dropdown .ant-picker-panel-container {
    box-shadow: none !important;
}

/* Phòng khi ant đổi cấu trúc */
.dp-green-dropdown .ant-picker-panel-container {
    box-shadow: none !important;
}