
/* Custom modal */
.modal-dialog-lg, #templateImportFile .modal-dialog {
    max-width: 80%;
}

.modal-dialog-md {
    max-width: 50%;
}

.modal-dialog-lg .modal-content, #templateImportFile .modal-dialog .modal-content,
.modal-dialog-md .modal-content, #templateImportFile .modal-dialog .modal-content {
    border-radius: 5px;
    border: none;
}

.modal-dialog-lg .table-responsive, #templateImportFile .table-responsive,
.modal-dialog-md .table-responsive, #templateImportFile .table-responsive {
    height: calc(75vh - 150px);
}

#data-table.error-message {
    display: flex;
    justify-content: center;
    align-items: center;
    color: red;
}

span [class*='error-item'] {
    display: block !important;
}

/* ===================================== */
.nav-tabs {
    border-bottom: 2px solid #28b779 !important;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link {
    background: none !important;
    border-width: 4px;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    background-color: #28b779 !important;
    border-color: #fff #fff #28b779 #fff !important;
    border-bottom: 2px solid #28b779 !important;
    color: white;
    /* border-bottom: 4px solid #1d488b !important; */
}

.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover {
    background-color: #ffa962 !important;
    border-width: 4px;
    border-color: #fff;
}

/* ===================================== */
.bom_result_zero_config tbody td:first-child {
    text-align: left;
}

.bom_result_zero_config tbody td:not(:first-child) {
    text-align: right;
}

/* ===================================== */
.min_w_950 {
    min-width: 950px;
}
.w_30 {
    width: 30px!important;
    min-width: 30px;
}
.w_40 {
    width: 40px!important;
    min-width: 40px;
}
.w_50 {
    width: 50px!important;
    min-width: 50px;
}
.w_60 {
    width: 60px!important;
    min-width: 60px;
}
.w_70 {
    width: 70px!important;
    min-width: 70px;
}
.w_80 {
    width: 80px!important;
    min-width: 80px;
}
.w_90 {
    width: 90px!important;
    min-width: 90px;
}
.w_95 {
    width: 95px!important;
    min-width: 95px;
}
.w_100 {
    width: 100px!important;
    min-width: 100px;
}
.w_110 {
    width: 110px!important;
    min-width: 110px;
}
.w_120 {
    width: 120px!important;
    min-width: 120px;
}
.w_130 {
    width: 130px!important;
    min-width: 130px;
}
.w_140 {
    width: 140px!important;
    min-width: 140px;
}
.w_150 {
    width: 150px!important;
    min-width: 150px;
}
.w_160 {
    width: 160px!important;
    min-width: 160px;
}
.w_170 {
    width: 170px!important;
    min-width: 170px;
}
.w_180 {
    width: 180px!important;
    min-width: 180px;
}
.w_190 {
    width: 190px!important;
    min-width: 190px;
}
.w_200 {
    width: 200px!important;
    min-width: 200px;
}
.w_210 {
    width: 210px!important;
    min-width: 210px;
}
.w_220 {
    width: 220px!important;
    min-width: 220px;
}
.w_230 {
    width: 230px!important;
    min-width: 230px;
}
.w_240 {
    width: 240px!important;
    min-width: 240px;
}
.w_250 {
    width: 250px!important;
    min-width: 250px;
}
.w_270 {
    width: 270px!important;
    min-width: 270px;
}
.w_300 {
    width: 300px!important;
    min-width: 300px;
}
.w_350 {
    width: 350px!important;
    min-width: 350px;
}
.w_375 {
    width: 375px!important;
    min-width: 375px;
}
.ms-24 {
    margin-left: 1.5rem !important;
}
.underline {
    text-decoration: underline;
    text-underline-offset: 5px;
    font-weight: 500;
}

.btn-custom {
    padding: 0.285rem 0.3rem !important;
    font-size: 14px !important;
}

/* ===================================== */
.table-responsive {
    overflow: auto;
    max-width: 100% !important;
}

.table-responsive-wrapper {
    /* height: 70vh; */
    max-height: 550px;
}

.table-fixed thead tr:first-child {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ================ */
.card {
    border: 1px solid #DAD9D6 !important;
}

.border-top {
    border-top: 1px solid #DAD9D6 !important;
}

.border-top .card-body {
    background-color: #F9F9F8 !important;
}

/* ==================== */
.alert .form-group {
    margin-bottom: 0.25rem !important;
}

/* ======================== */
.accordion-body {
    padding: 1rem;
    overflow: auto;
    max-height: 550px;
}

.accordion-button:not(.collapsed) {
    color: #CC4E00;
    /* border: 1px dashed #C2DA91;
    background-color: #EEF6D6; */
    /* border: 1px dashed #978365; */
    border: none;
    background-color: #E0E1E6;
}

.accordion-button {
    color: #CC4E00;
    /* border: 1px dashed #978365; */
    border: none;
    background-color: #E1DCCF;
    font-weight: 500;
}

.accordion-collapse {
    margin-bottom: 15px;
    /* border: 1px dashed #978365; */
    border: none;
    background: #F9F9F9;
}

.fixed_header_display_none_at_print{
    background: #F9F9F9 !important;
}

/* Custom swal */
.swal-modal {
    width: auto !important;
    min-width: 400px;
    max-width: 650px;
}

.swal-button {
    /* padding: 7px 19px;
    border-radius: 2px; */
    background-color: #4962B3;
    /* font-size: 12px; */
    /* border: 1px solid #3e549a; */
    /* text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.3); */
}

/* No wrap text */
.nowrap {
    word-wrap: unset;
    white-space: nowrap;
}

.break-word {
    overflow-wrap: break-word;
    white-space-collapse: break-spaces;
}

/* Custom Chart */
.containerBody {
    height: fit-content;
    min-height: 500px;
}

canvas {
    display: block;
    max-width: 100%;
    height: 100% !important;
    width: auto !important;
    position: relative;
}

.chartBoxCustom {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.cardItem {
    background-color: #fff;
    text-align: center;
    border: 1px solid #DAD9D6;
    font-weight: 700;
}

.cardItem i {
    font-size: 1.3rem;
    font-weight: 700;
}

#line-price, #chart-unit-price, #chart-price {
    width: 100% !important;
}

/* ================ Custom Select2 ================ */
.select2-container .select2-selection--single {
    height: calc(2.25rem);
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    height: 36px;
    line-height: calc(2.25rem);
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(2.25rem);
}

.select2-results__option {
    height: 31px;
}