﻿.report-table {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.report-table-container {
    color: var(--text-color);
    overflow-y: auto;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    margin-bottom: auto;
}

.report-table-options-bar {
    width: 98%;
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 12px;
    align-items: baseline;
}

    .report-table-options-bar > .dropdown-menu.show {
        background-color: var(--report-filter-input-color);
        color: var(--text-color);
        border: 1px solid var(--text-color);
        height: 400px;
        width: fit-content;
        overflow-y: auto;
        overflow-x: hidden;
        transform: none !important;
        position: absolute !important;
        top: 100% !important;
        margin-top: 6px !important;
        background-clip: border-box !important;
    }

.report-table-column-chooser > .dropdown-item {
    display: flex;
    align-items: center;
    color: var(--text-color);
    cursor: pointer;
}

    .report-table-column-chooser > .dropdown-item:hover {
        background-color: var(--bkg-secondary-color);
    }

.report-table-column-chooser .dropdown-item input {
    width: 15px;
    height: 15px;
    margin-top: 2px;
}

.report-table-column-chooser .dropdown-item span {
    margin-left: 10px;
}

.report-table-options-bar > .table-option {
    min-width: 100px;
    font-size: inherit;
    margin-left: 1rem;
    background-color: var(--frg-color);
    color: var(--text-color);
    border: 2px solid #CCD4DD;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 5px 5px;
}

    .report-table-options-bar > .table-option:hover,
    .report-table-options-bar > .table-option:focus {
        background-color: var(--bkg-secondary-color);
        color: var(--text-color);
        border: 2px solid var(--text-color);
        border-top: none;
        border-radius: 0 0 8px 8px;
        padding: 5px 5px;
        box-shadow: none;
    }

.main-report-table {
    color: var(--text-color);
    background-color: var(--workOrders-fg-color);
    margin-bottom: 0;
}

table.main-report-table th,
table.main-report-table td {
    position: relative;
}

.selected-report-table-row {
    color: var(--text-color);
    background-color: var(--bkg-secondary-color);
}

.report-table-column,
.report-table-cell {
    max-width: 150px;
    min-width: 150px;
    height: 40px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.report-table-checkbox-container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .report-table-checkbox-container > .table-data-checkbox {
        pointer-events: none;
        height: 20px;
        width: 20px;
    }

.report-table-column-filter {
    position: relative;
}

.report-table-column-filter-input {
    color: var(--text-color);
    background-color: var(--report-filter-input-color);
    border: 1px solid var(--text-color);
    border-radius: 6px;
}

.report-table-clear-filter-icon {
    position: absolute;
    color: #b31020;
    top: 50%;
    right: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .report-table-clear-filter-icon:hover {
        color: #f00a20;
    }

.report-expand-collapse-chevrons {
    color: var(--text-color);
    background-color: transparent;
    border: none;
    font-size: 12px;
}

.report-table-paging-options {
    width: 98%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--text-color);
}

.report-table-paging-chevrons {
    color: var(--workOrders-text-color);
    background-color: transparent;
    border: none;
    font-size: 16px;
    padding: 0;
    margin-left: 6px;
    margin-right: 6px;
}

.report-table-page-size-select {
    padding: 4px;
    border-radius: 5px;
    border: 1px solid var(--text-color);
    background-color: var(--report-filter-input-color);
    color: var(--text-color);
}

.report-table-footer-options {
    width: 98%;
    display: flex;
    justify-content: space-between;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1rem;
    padding-bottom: 0.25rem;
}

.report-table-export-options > .dropdown-menu.show {
    min-width: 7rem;
    background-color: var(--report-filter-input-color);
    color: var(--text-color);
    border: 1px solid var(--text-color);
    position: fixed !important;
    margin-top: 0.25rem !important;
}

.spinner-icon-container {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.report-table-export-button {
    min-width: 72px;
    width: 72px;
}

.report-table-resizable-column {
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
    height: 100%;
    cursor: col-resize;
    user-select: none;
}

.report-table-dragging-column {
    opacity: 0.5;
}

.bdc-distances-container {
    width: 80%;
    margin: 0 auto;
}

.bdc-report-distances-table {
    color: var(--text-color);
}

.bdc-report-checkbox-icon {
    height: 20px;
    width: 20px;
}

@media (max-width: 768px) {
    table.main-report-table th,
    table.main-report-table td {
        white-space: normal !important;
    }
}
