.table {
    --bs-table-striped-bg: #F9FAFB;
    --bs-table-striped-color: #31405D;
    --bs-table-color: #31405D;
}
.table-active {
    --bs-table-active-bg: #F2F2F2;
    --bs-table-active-color: #31405D;
}
.table .bg-transparent {
    --bs-table-bg: #fff !important;
}
.table .table-active > * {
    color: var(--bs-table-active-color) !important;
}
    .no-wrap-table td, no-wrap-table th {
        white-space: nowrap;
    }
.table.table-striped {
    --bs-table-striped-bg: #F9FAFB;
}
.table-sm {
    --table-font-size: var(--gridTable-font-size);
}
.dataTables_wrapper {
    border: 1px solid #e8e8e8;
    box-shadow: 0 1px 20px 0 rgba(69, 90, 100, 0.08);
    margin-bottom: 0.625rem;
    border-radius: 12px;
    padding: var(--card-padding);
}

.table-wrapper {
    border-radius: 0.75rem;
    overflow: auto;
    /* min-height: calc(100% - 24px);*/
    border: 1px solid #e8e8e8;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
    margin-bottom: var(--card-bottom);
}
.flex-nowrap .table-wrapper {
    min-height: calc(100% - (var(--card-bottom)));
    background:#fff;
}

.table-wrapper .table {
    width: 100% !important;
    margin-bottom: 0;
}

.table .font-weight-bold :is(td, th) {
    font-weight:500 !important;
}


.rounded-table {
    border-radius: 1rem;
    margin-bottom: 0;
}

.table-bordered {
    border: none;
    border-color: #E8E8E8;
  
}
.table-vertical-border {
    --bs-table-bg: inherit;
}
    .table-vertical-border th,
    .table-vertical-border td {
        border-right: 1px solid var(--bs-border-color);
        border-top: none;
        border-bottom: none;
    }

    .table.vertical-border th:last-child,
    .table.vertical-border td:last-child {
        border-right: none;
    }



.table-bordered tr:has(th):not(:has(td)) {
    border: none;
}
.table-bordered :is(td, th) {
    border: none !important;
    font-weight: normal;
}

        .table-bordered :is(td, th):not(:last-child) {
            border-right: 1px solid #e8e8e8 !important;
        }

.table tr:nth-of-type(even):not(:has(th)) {
    background-color: #fff;
    --bs-table-bg: #fff;
}

.table tr:nth-of-type(odd):not(:has(th)) {
    background-color: #f9fafb;
    --bs-table-bg: #f9fafb;
}

.table th {
    font-weight: 500;
}

.table td,
.table th {
    padding: 0.875rem 1rem !important;
    font-size: var(--table-font-size) !important;
}

.table th {
    font-weight: 500 !important;
    color: #4A5561 !important;
    background-color: transparent !important;
    background-image: none !important;
    vertical-align: middle !important;
    width: auto !important;
  
}

.table td a {
    color: currentColor;
    text-decoration:none;
}

.table .theme-header,
.table .thead-dark,
.table tr:has(th):not(:has(td)) {
    background-color: #f0f5ff;
    color: #4a5561;
    font-weight: 400;
}

.table.dataTable {
    border-collapse: collapse;
}
.table-striped > tbody > tr.bg-transparent:nth-of-type(odd) > * {
    --bs-table-bg-type: inherit;
}
table.dataTable thead th,
table.dataTable thead td {
    border-bottom: 0 !important;
}


table tr.grid-sub-heading {
    --bs-table-striped-color: 31405D;
    --bs-table-striped-bg: #F2F2F2;
}
    table tr.grid-sub-heading td {
        color: var(--themeColor);
        font-family: var(--primary-fonts) !important;
    }
tr.grid-sub-total {
    background: #F0F5FF !important;
    color: var(--themeColor) !important;
    --table-font-size: 1rem;
    --bs-table-color-type: var(--themeColor);
    font-family: var(--primary-fonts) !important;
}
    tr.grid-sub-total td {
        --bs-table-bg: #F0F5FF;
        color: var(--themeColor);
    }
tr.grid-total {
    background: #F0F5FF !important;
    color: var(--themeColor) !important;
}

.table .table-heading :is(th, td) {
    font-family: var(--primary-fonts);
    color: var(--themeColor) !important;
}

.table .grand-total {
    font-family: var(--primary-fonts) !important;
    color: var(--themeColor) !important;
    --bs-table-color: #1F3A8A;
    --table-font-size: 1.25rem;
}

.table tr.grand-total td {
    background-color: #F0F5FF;
    --bs-table-striped-bg: #F0F5FF;
    --bs-table-striped-color: var(--bs-table-color);
}

.table .grand-total td:first-child {
    border-top-left-radius: 0.75rem !important;
    border-bottom-left-radius: 0.75rem !important;
}

.table .grand-total td:last-child {
    border-top-right-radius: 0.75rem !important;
    border-bottom-right-radius: 0.75rem !important;
}

.paginate_button {
    color: var(--bs-secondary-color) !important;
    min-width: 2.5rem !important;
    padding: 0.5rem 1em !important;
    border: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:is(:active,:hover,.current):not(.disabled) {
    background: #f0f5ff !important;
    border-radius: 0.5rem !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--bs-secondary-color) !important;
}


.dataTables_wrapper .dataTables_length select, .dataTables_wrapper .dataTables_length select:focus-visible {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.625rem 2rem 0.625rem 1rem;
    background-color: #fff !important;
    color: #667085;
    border: 1px solid #EFEFEF;
    border-radius: 0.5rem;
    height: auto !important;
    background: url("data:image/svg+xml;utf8,<svg fill='black' height='10' viewBox='0 0 24 24' width='10' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 10px center;
    background-size: 1.25rem 1.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    outline-width: 0px;
}

table.dataTable.no-footer {
    border: 1px solid #e8e8e8 !important;
    border-radius: 1rem !important;
    border-collapse: separate;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
    margin-bottom: 0.625rem;
    --bs-table-bg: inherit;
}
.table-responsive:has(.dt-responsive) {
    overflow-x: inherit;
}



table.dataTable tr:first-child th:first-child {
    border-top-left-radius: 1rem;
}

table.dataTable tr:first-child th:last-child {
    border-top-right-radius: 1rem;
}

table.dataTable tr:last-child td:first-child {
    border-bottom-left-radius: 1rem;
}

table.dataTable tr:last-child td:last-child {
    border-bottom-right-radius: 1rem;
}

table.dataTable.no-footer .fa-xs {
    font-size: 0.75rem !important;
}

table.dataTable.no-footer .fa-sticky-note {
    color: #1F3A8A !important;
    font-size: 1.125rem !important;
}



table.dataTable tbody tr:nth-of-type(even) {
    background-color: #F9FAFB;
    --bs-table-bg: #F9FAFB;
}

table.dataTable tbody tr:nth-of-type(odd) {
    background-color: #fff;
    --bs-table-bg: #fff;
}
div#table-sticky {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fdfdfd;
    padding: 0.625rem 0;
    z-index: 1;
    margin-top: -0.625rem
}

    div#table-sticky + .table-responsive .dataTable tr:has(th) {
        top: 3.688rem !important;
    }
.dataTable tr:has(th) {
    background-color: #f0f5ff;
    position: sticky;
    font-weight: 500;
    top:0 !important;
}
    #OptDetail.dataTable th {
        text-align: center;
        font-weight: 500;
        padding: 0.625rem 0.5rem !important;
        color: #4A5561;
        vertical-align: bottom !important;
        font-size: var(--gridTable-font-size) !important;
    }

#OptDetail.dataTable td {
    font-size: var(--gridTable-font-size) !important;
    padding: 0.625rem 0.625rem !important;
    line-height: normal;
}
.modal-dataTable.dataTable td {
    font-size: 0.75rem !important;
    padding: 0.375rem 0.375rem !important;
    line-height: normal;
}


.dataTable th {
  
    text-align: center;
    font-weight: 500;
    padding: 0.625rem 1rem !important;
}

.dataTable td {
    text-align: center;
    color: var(--bs-secondary-color) !important;
}

table.dataTable tbody th,
table.dataTable tbody td {
    vertical-align: middle;
}


table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-position:top right;
   
}

.dataTables_length {
    font-size: var(--fs-small);
}

    .dataTables_length label {
        margin-bottom: 0;
        white-space:nowrap;
    }
#TopButtons {
    white-space: nowrap;
}
.dataTables_info {
    font-size: var(--fs-small);
    color: var(--bs-secondary-color) !important;
}

.dataTables_paginate {
    font-size: var(--fs-small);
}

.dataTables_filter {
    font-size: var(--fs-small);
}

    .dataTables_filter label {
        font-size: 0;
        user-select: none;
    }

        .dataTables_filter label input[type="search"] {
            user-select: text;
            outline: none;
        }

.OptdetailsTableHeader {
    font-size: 0.875rem !important;
}

.drpMainApproval, .drpChildApproval, .drpPlanSelection {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.375rem 1.875rem 0.375rem 0.625rem;
    background-color: #fff !important;
    color: #667085;
    border: 1px solid #E8E8E8;
    border-radius: 4px;
    height: auto !important;
    background: url("data:image/svg+xml;utf8,<svg fill='black' height='10' viewBox='0 0 24 24' width='10' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 0.313rem center;
    background-size: 1.25rem 1.25rem;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 0.5rem !important;
    padding: 0.625rem 1rem;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
    border: 1px solid #efefef;
    color: #667085;
    height: auto !important;
    font-size: 0.875rem;
}

.dataTable :is(input) {
    border: 1px solid #E8E8E8;
    border-radius: 0.375rem;
    background-color: #fff;
    padding: 0.25rem 0.625rem;
    width: 100% !important;
    text-align: left;
    margin-top: 2px;
    outline: none;
}

.displayaslink {
    cursor: pointer;
    color: #1F3A8A !important;
    text-decoration: none;
    background: none !important;
    border: none;
}

span.fas.PurpleAnchor {
    color: #6F8BDB;
    font-size: var(--body-font-size) !important;
}
.table-wrapper:has(.header-table) {
    overflow:hidden;
}

.table.header-table th {
    color: var(--themeColor) !important;
    font-size: var(--sub-title-size) !important;
    font-family: var(--primary-fonts);
    font-weight: 600 !important;
    padding: 0.5rem 0.5rem !important;
    line-height:normal
}

.table.header-table td {
    color: #1F3A8A !important;
    font-size: var(--card-title) !important;
    color: #363F50 !important;
    font-family: var(--primary-fonts);
    letter-spacing: 1px;
    line-height:1;
}

.header-table tbody tr:nth-of-type(even):not(:has(th)) {
    background-color: #f9fafb;
}

.header-table tbody tr:nth-of-type(odd):not(:has(th)) {
    background-color: #fff;
}


.dataTable td:has(.displayaslink ) {
    white-space: nowrap;
}

.theme-lighter [class*=" fa-"] {
    color: var(--themeLighterColor) !important;
    font-size: 1rem !important;
}

.table-striped-off.table tr.bg-light {
    background-color: var(--theme-bg-color) !important;
}

    .table-striped-off.table tr.bg-light th {
        color: var(--themeColor) !important;
        font-weight: 600 !important;
    }

.table-px-lg td:first-child,
.table-px-lg th:first-child {
    padding-left: 3rem !important;
}

.table-px-lg td:last-child,
.table-px-lg th:last-child {
    padding-right: 3rem !important;
}
/*.td-push-left {
    padding-left: 12.25rem;
}
*/
.table .max-w-220 {
    width: 16rem !important;
}
.table .blank-col-space {
    width: 15.4rem !important;
    border: none !important;
}
    .table .blank-col-space + td, .table .blank-col-space + th {
        border-left: none;
    }
@media screen and (max-width: 1440px) {
    .table-px-lg td:first-child,
    .table-px-lg th:first-child {
        padding-left: 1.5rem !important;
    }
    .table .blank-col-space {
        width: 6rem !important;
        border: none !important;
    }
    .table-px-lg td:last-child,
    .table-px-lg th:last-child {
        padding-right: 1.5rem !important;
    }
 /*   .td-push-left {
        padding-left: 1rem;
    }*/
}

