.fixed-table-container .table thead th .th-inner {
    padding: 0.5rem !important;
}

#search-results-table tbody tr.clickable-row:hover {
    box-shadow:
        0 2px 6px var(--bs-table-shadow1-color),
        0 2px 8px var(--bs-table-shadow2-color),
        0 0 6px 2px rgba(184, 224, 187, 0.8);
    border-radius: 0 !important;
}

#search-results-table.table-radius tbody tr.clickable-row:hover td {
    border-radius: 0 !important;
}

.row-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.row-link:hover .truncate-cell {
    text-decoration: underline;
}

.truncate-cell {
    max-width: 150px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}

#search-results-table th:nth-child(1),
#search-results-table td:nth-child(1) {
    width: 140px;
    max-width: 140px;
}

#search-results-table th:nth-child(2),
#search-results-table td:nth-child(2) {
    width: 180px;
    max-width: 180px;
}

#search-results-table th:nth-child(3),
#search-results-table td:nth-child(3) {
    width: 160px;
    max-width: 160px;
}

#search-results-table th:nth-child(4),
#search-results-table td:nth-child(4) {
    width: 120px;
    max-width: 120px;
}

#search-results-table th:nth-child(5),
#search-results-table td:nth-child(5) {
    width: 120px;
    max-width: 120px;
}

#search-results-table th:nth-child(6),
#search-results-table td:nth-child(6) {
    width: 170px;
    max-width: 170px;
}

.fixed-table-container .table thead th .th-inner,
#search-results-table td {
    padding: 0.35rem 0.5rem !important;
}

.bootstrap-table .fixed-table-container.fixed-height .fixed-table-border {
    border: none !important;
}

.bootstrap-table .fixed-table-container.fixed-height:not(.has-footer) {
    border-bottom: none !important;
}

.custom-table-container,
.table-responsive {
    position: relative;
    overflow: visible !important;
}

.bootstrap-table .fixed-table-container,
.bootstrap-table .fixed-table-header,
.bootstrap-table .fixed-table-body,
.bootstrap-table .fixed-table-body table {
    background-color: inherit !important;
}

.bootstrap-table .fixed-table-body table thead th {
    position: static !important;
}

.bootstrap-table.has-sticky .fixed-table-body table thead {
    visibility: hidden;
    line-height: 0 !important;
    height: 0 !important;
}

.bootstrap-table.has-sticky .fixed-table-body table thead tr {
    height: 0 !important;
}

.bootstrap-table.has-sticky .fixed-table-body table thead th,
.bootstrap-table.has-sticky .fixed-table-body table thead th .th-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: 0 !important;
    height: 0 !important;
    line-height: 0 !important;
}

.bootstrap-table .fixed-table-header,
.bootstrap-table .fixed-table-header table {
    border-top-left-radius: var(--bs-border-radius, .5rem);
    border-top-right-radius: var(--bs-border-radius, .5rem);
    overflow: hidden;
}

.bootstrap-table .fixed-table-container .fixed-table-body {
    border-bottom-left-radius: var(--bs-border-radius, .5rem);
    border-bottom-right-radius: var(--bs-border-radius, .5rem);
}

.bootstrap-table .table {
    border-collapse: separate;
    border-spacing: 0;
}

.bootstrap-table .table tr:last-child td {
    border-bottom-color: transparent !important;
}

.bootstrap-table .fixed-table-container,
.bootstrap-table .fixed-table-header,
.bootstrap-table .fixed-table-body,
.bootstrap-table .fixed-table-body table {
    background-color: inherit !important;
    border: 0 !important;
    box-shadow: none !important;
}

.bootstrap-table .fixed-table-header {
    border-bottom: 0 !important;
}

.bootstrap-table .fixed-table-container .fixed-table-border,
.bootstrap-table .fixed-table-container:before,
.bootstrap-table .fixed-table-container:after {
    display: none !important;
}

.bootstrap-table .fixed-table-header,
.bootstrap-table .fixed-table-header table {
    border-top-left-radius: var(--bs-border-radius, .5rem);
    border-top-right-radius: var(--bs-border-radius, .5rem);
    overflow: hidden;
}

.bootstrap-table .fixed-table-container .fixed-table-body {
    border-bottom-left-radius: var(--bs-border-radius, .5rem);
    border-bottom-right-radius: var(--bs-border-radius, .5rem);
}

.bootstrap-table .table {
    border-collapse: separate;
    border-spacing: 0;
}

.bootstrap-table .table tr:last-child td {
    border-bottom-color: transparent !important;
}

.bootstrap-table .table .no-records-found td {
    border: 0 !important;
}

.bootstrap-table.has-sticky .fixed-table-body table thead {
    visibility: hidden;
    line-height: 0 !important;
    height: 0 !important;
}

.bootstrap-table.has-sticky .fixed-table-body table thead tr {
    height: 0 !important;
}

.bootstrap-table.has-sticky .fixed-table-body table thead th,
.bootstrap-table.has-sticky .fixed-table-body table thead th .th-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: 0 !important;
    height: 0 !important;
    line-height: 0 !important;
}

#search-modal .bootstrap-table.has-sticky .fixed-table-body table thead {
    visibility: hidden;
    height: 0 !important;
    line-height: 0 !important;
}

#search-modal .bootstrap-table.has-sticky .fixed-table-body table thead tr {
    height: 0 !important;
}

#search-modal .bootstrap-table.has-sticky .fixed-table-body table thead th,
#search-modal .bootstrap-table.has-sticky .fixed-table-body table thead th .th-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: 0 !important;
    height: 0 !important;
    line-height: 0 !important;
}

#search-modal .fixed-table-header {
    border-bottom: 0 !important;
}

#searchModal .trace-search-accordion {
    width: 100%;
    background: transparent;
    border: 0;
    box-shadow: none;
}

#searchModal .trace-search-accordion-item {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

#searchModal .trace-search-accordion-header {
    display: flex;
    justify-content: center;
    margin: 0;
    background: transparent;
}

#searchModal .trace-search-accordion-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: 46px;
    height: 28px;
    padding: 0 8px;
    margin: 0 auto 8px auto;
    background: transparent !important;
    background-image: none !important;
    border: 0;
    box-shadow: none !important;
    color: var(--font-color) !important;
    cursor: pointer;
}

#searchModal .trace-search-accordion-button:hover {
    background: transparent !important;
    box-shadow: none !important;
}

#searchModal .trace-search-accordion-button:focus {
    box-shadow: none !important;
    outline: none;
}

#searchModal .trace-search-accordion-button::after {
    display: none !important;
}


#searchModal .trace-search-accordion-hitarea {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 24px;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0.95;
}

#searchModal .trace-search-accordion-hitarea:hover {
    opacity: 1;
}

#searchModal .trace-search-accordion-icon {
    width: 18px;
    height: 12px;
    display: block;
    stroke: currentColor;
    stroke-width: 3.2;
    fill: none;
    stroke-linecap: square;
    stroke-linejoin: miter;
    transition: transform 0.2s ease;
}

#searchModal .trace-search-accordion-button:not(.collapsed) .trace-search-accordion-icon {
    transform: rotate(0deg);
}

#searchModal .trace-search-accordion-button.collapsed .trace-search-accordion-icon {
    transform: rotate(-180deg);
}

#searchModal .trace-search-accordion-body {
    padding: 8px 0 0 0 !important;
    background: transparent;
    border: 0;
}

#searchModal .trace-search-accordion-collapse {
    border: 0;
    background: transparent;
}

#searchModal #search_form {
    flex: 0 0 auto;
    width: 50%;
    margin: 0 auto;
}


@media (max-width: 1000px) {
    #searchModal #search_form {
        width: 100% !important;
    }
}


#searchModal .modal-content {
    height: auto;
    max-height: 90vh;
}


#searchModal #search-modal-body {
    display: block;
    min-height: 0;
    overflow: visible;
}


#searchModal.trace-search-has-results .modal-content {
    height: 90vh;
    max-height: 90vh;
}


#searchModal.trace-search-has-results #search-modal-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}


#searchModal #search_form {
    flex: 0 0 auto;
    width: 50%;
    margin: 0 auto;
}


#searchModal #search-result {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}


#searchModal #search-result.mt-5 {
    margin-top: 3rem !important;
}


#searchModal.trace-search-has-results #search-result {
    margin-top: 8px !important;
}


#searchModal.trace-search-has-results #search-result .bootstrap-table {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    margin-bottom: 0 !important;
}

#searchModal.trace-search-has-results #search-result .fixed-table-toolbar {
    flex: 0 0 auto;
}


#searchModal.trace-search-has-results #search-result .fixed-table-container,
#searchModal.trace-search-has-results #search-result .fixed-table-container.fixed-height {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}


#searchModal.trace-search-has-results #search-result .fixed-table-body {
    min-height: 180px;
    overflow-x: auto !important;
    overflow-y: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#searchModal.trace-search-has-results #search-result table {
    margin-bottom: 0 !important;
}

#searchModal.trace-search-has-results #search-result .fixed-table-pagination {
    flex: 0 0 auto;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
}

@media (max-width: 1000px) {
    #searchModal #search_form {
        width: 100% !important;
    }
}

#search-result .table-header {
    margin-top: 0 !important;
}

#searchModal .trace-search-accordion-label {
    display: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--font-color);
    line-height: 1;
    white-space: nowrap;
}

#searchModal .trace-search-accordion-button.collapsed .trace-search-accordion-label {
    display: inline-block;
}

#search-modal .bootstrap-table .fixed-table-body table#search-results-table.table-hover>tbody>tr.clickable-row:hover,
#search-modal table#search-results-table.table-hover>tbody>tr.clickable-row:hover,
table#search-results-table.table-hover>tbody>tr.clickable-row:hover {
    box-shadow: none !important;
    outline: none !important;
}

#searchModal #id_task_id,
#searchModal #id_task_id.search-input,
#searchModal input[name="task_id"] {
    text-align: left !important;
    direction: ltr !important;
    padding-left: 4px !important;
    padding-right: 0.75rem !important;
}

#searchModal #id_task_id::placeholder,
#searchModal input[name="task_id"]::placeholder {
    text-align: left !important;
    direction: ltr !important;
}