/* ========= DataTable ========= */
table.dataTable thead th {
    color: var(--datatable-header-color) !important;
    font-weight: var(--datatable-header-font-weight);
    font-size: var(--font-base);
    background-color: var(--white) !important;
    border-color: #FAFAFA !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

table.dataTable td {
    color: var(--gray-text);
    font-size: var(--font-base);
    border-color: #FAFAFA !important;
    padding: 1rem 0.5rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

#ddVerificationTable th:first-child,
#ddVerificationTable td:first-child {
    white-space: nowrap;
}

#ddVerificationTable tr.selected td {
    box-shadow: none !important;
    color: var(--gray-text);
}

#ddVerificationTable tr.selected a {
    color: var(--tds-blue);
}

.dt-title {
    color: var(--gray-text);
    font-weight: var(--fw-bold);
    font-size: var(--font-md-plus);
}

/* Style for search box with icon */
.dt-search {
    position: relative;
}

.dt-search::after {
    content: "\f002";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 1;
    pointer-events: none;
}

.dt-filters-btn,
.dt-export-btn {
    font-size: var(--font-sm);
    font-weight: var(--fw-semibold);
    padding: 0.4875rem 1.25rem;
    border-radius: var(--tds-border-radius);
}

.dt-export-btn {
    padding: 0.65rem 1.25rem;
}

.dt-export-btn .tds-dropdown-icon {
    font-size: var(--font-xs);
    width: auto;
}

table.dataTable thead th:hover {
    outline: none !important;
}

table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control,
table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control {
    position: relative;
    padding-left: 30px !important;
    cursor: pointer;
}

table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before,
table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before {
    content: "+";
    background-color: #0d6efd;
    display: block !important;
    top: 50%;
    left: 5px;
    height: 1em;
    width: 1em;
    margin-top: -9px;
    display: block;
    position: absolute;
    color: white;
    border: .15em solid white !important;
    border-radius: 1em;
    box-shadow: 0 0 .2em #444;
    box-sizing: content-box;
    text-align: center;
    text-indent: 0 !important;
    font-family: "Courier New", Courier, monospace;
    line-height: 115%;
    font-size: 14px;
}

table.dataTable.dtr-inline.collapsed>tbody>tr.dtr-expanded>td.dtr-control:before,
table.dataTable.dtr-inline.collapsed>tbody>tr.dtr-expanded>th.dtr-control:before {
    content: "-";
    background-color: #d33333;
}

/* Target DataTables headers */
table.dataTable thead th {
    position: relative;
    white-space: nowrap;
}

/* Force inline display for title + icon */
table.dataTable thead th .dt-column-title,
table.dataTable thead th .dt-column-order {
    display: inline-block;
    vertical-align: middle;
}

/* Add margin between title and sort icon */
table.dataTable thead th .dt-column-order {
    margin-left: 6px;
    position: relative !important;
    float: none !important;
    right: auto !important;
}