.lm-data-grid {
    display: inline-block;
    border-radius: 5px;
    background-color: var(--lm-background-color-input);
    font-family: sans-serif;
    padding: 10px;
    box-sizing: border-box;
}

@media (max-width: 800px) {
    .lm-data-grid {
        overflow-x: auto;
        max-width: 100%;
    }

    .lm-data-grid-pagination-section {
        justify-content: flex-start !important;
    }

    .lm-data-grid-search-section {
        justify-content: flex-start !important;
    }
}

.lm-data-grid-search-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.lm-data-grid-search-section div {
    padding: 10px;
}

.lm-data-grid-search-section[search='false'] {
    display: none;
}

.lm-data-grid-table[resizable='true'] th {
    user-select: none;
    position: relative;
}

.lm-data-grid-table[resizable='true'] th:before {
    content: '';
    width: 2px;
    background-color: var(--lm-background-color-highlight);
    height: 20px;
    display: block;
    position: absolute;
    top: calc(50% - 10px);
    right: 0;
}


.lm-data-grid-pagination-section {
    display: flex;
    justify-content: flex-end;
    user-select: none;
}

.lm-data-grid-pagination-section ul {
    display: flex;
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}

.lm-data-grid-pagination-section ul li {
    margin-left: 2px;
    padding: 8px 12px 8px 12px;
    border: 1px solid transparent;
    cursor: pointer;
}

.lm-data-grid-pagination-section ul li[selected='true'],
.lm-data-grid-pagination-section ul li[selected='false']:hover {
    border: 1px solid var(--lm-border-color, #ccc);
    background: linear-gradient(to bottom, var(--lm-background-color-highlight, #ececec) 0%, var(--lm-background-color-active, #dcdcdc) 100%);
}

.lm-data-grid-pagination-section ul li[selected='false']:hover {
    font-weight: bold;
}

.lm-data-grid table {
    border-collapse: collapse;
    table-layout: fixed;
    white-space: nowrap;
    empty-cells: show;
    width: 0;
}

.lm-data-grid table .lm-data-grid-selected {
    outline: solid 1px #00000011;
}

.lm-data-grid table[zebra='true'] tbody tr:nth-child(even) {
    box-shadow: inset 0 0 0 9999px var(--lm-background-color-highlight);
}

.lm-data-grid table td,
.lm-data-grid table th {
    padding: 10px;
    border: solid 1px transparent;
}

.lm-data-grid table th {
    border-bottom-color: var(--lm-border-color);
    user-select: none;
}

.lm-data-grid table tbody td {
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.lm-data-grid table tbody td.lm-data-grid-wrap {
    white-space: pre-wrap;
}

.lm-data-grid table td[contenteditable] {
    text-overflow: inherit;
    outline: 1px solid black;
    overflow-x: hidden;
    scrollbar-width: thin;
}

.lm-data-grid table td[contenteditable]::-webkit-scrollbar {
    height: 12px;
}

.lm-data-grid table td[contenteditable]::-webkit-scrollbar {
    width: 12px;
}

.lm-data-grid table th[data-sorted]::after {
    margin-top: -2px;
    margin-left: 5px;
    position: absolute;
}

.lm-data-grid table th[data-sorted='desc']::after {
    content: '\2191';
}

.lm-data-grid table th[data-sorted='asc']::after {
    content: '\2193';
}
