/* THIS FILE IS COPIED FROM THE COMMON LIBRARY AS OF 2025-09-30 11:14:35 GMT. DO NOT EDIT THIS FILE. EDIT THE ORIGINAL IN THE COMMON LIBRARY INSTEAD. */
datasheet-ajax {
    position: relative;
    font-size: inherit;
    padding: 8px;
    display: block;
    box-sizing: border-box;
    height: 100%;
}
datasheet-ajax > .body {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}



/* Controls */
datasheet-ajax > .body > .datasheet-controls {
    flex: 0 0 auto;
    background: var(--primary-color);
    color: white;
    border-radius: 8px 8px 0 0;
    white-space: nowrap;
    text-align: right;
    padding: 8px;
}
datasheet-ajax > .body > .datasheet-controls > * {
    color: lightgray;
    user-select: none;
    cursor: pointer;
    transition: 0.3s;
    font-size: 125%;
}
datasheet-ajax .button {
    color: lightgray;
}
datasheet-ajax > .body > .datasheet-controls > * ~ * {
    margin-left: 8px;
}
datasheet-ajax > .body > .datasheet-controls .button:hover {
    color: white !important;
    
}
datasheet-ajax.filters-applied > .body > .datasheet-controls > .show-filter-button-wrapper svg,
datasheet-ajax.filters-changed > .body > .datasheet-controls > .execute-filter-button-wrapper svg {
    outline: solid 2px white;
    border-radius: 2px;
    outline-offset: 4px;
}
datasheet-ajax.show-filters > .body > .datasheet-controls > .show-filter-button-wrapper {
    display: none;
}
datasheet-ajax:not(.show-filters) > .body > .datasheet-controls > .execute-filter-button-wrapper {
    display: none;
}

/* Table */
datasheet-ajax > .body > .datasheet-table {
    flex: 1;
    width: 100%;
    overflow: auto scroll;
    position: relative;
}
datasheet-ajax > .body > .datasheet-table > table {
    border-collapse: collapse;
    table-layout: auto;
    box-sizing: border-box;
    width: 100%;
}
datasheet-ajax th, datasheet-ajax td {
    padding: 2px;
    vertical-align: top;
    text-align: left;
}
datasheet-ajax thead th {
    white-space: nowrap;
    line-height: 1;
}
datasheet-ajax thead th > * {
    vertical-align: top;
}
datasheet-ajax tbody td {
    border: solid 2px var(--primary-color);
}

datasheet-ajax table thead,
datasheet-ajax table tfoot {
    position: sticky;
    background: white;
}
datasheet-ajax table thead {
    top: 0;
    inset-block-start: 0; /* "top" */
    _width: calc(100% + 4px);
    _transform: translateX(-2px);
}
datasheet-ajax table tfoot {
    bottom: 0;
    inset-block-end: 0; /* "bottom" */
}

datasheet-ajax thead th > .column-sort-wrapper {
    cursor: pointer;
    user-select: none;
}
datasheet-ajax thead th > .column-sort-wrapper.sort.asc::after {
    content: "▲";
    margin-left: 4px;
    color: gray;
}
datasheet-ajax thead th > .column-sort-wrapper.sort.desc::after {
    content: "▼";
    margin-left: 4px;
    color: gray;
}

datasheet-ajax thead th .datasheet-column-filter {
    margin: 6px 0 6px 0;
}
datasheet-ajax thead th .datasheet-column-filter agile-select {
    border: solid 1px gray;
    font-size: 75%;
    
}
datasheet-ajax thead th .datasheet-column-filter agile-select .placeholder {
    color: gray;
}
datasheet-ajax:not(.show-filters) thead th .datasheet-column-filter {
    display: none;
}



/* Footer */
datasheet-ajax > .body > .datasheet-footer {
    flex: 0 0 auto;
    background: var(--primary-color);
    color: white;
    border-radius: 0 0 8px 8px;
    padding: 8px;
}
datasheet-ajax > .body > .datasheet-footer > * {
    vertical-align: middle;
}
datasheet-ajax > .body > .datasheet-footer > * > svg {
    vertical-align: middle;
}
datasheet-ajax > .body > .datasheet-footer > * ~ * {
    margin-left: 8px;   
}
datasheet-ajax > .body > .datasheet-footer select {
    outline: none;
}
datasheet-ajax > .body > .datasheet-footer *.button {
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
    color: lightgray;
}
datasheet-ajax > .body > .datasheet-footer *.button:hover {
    color: white;
}
datasheet-ajax > .body > .datasheet-footer .datasheet-filter-results {
    display: inline-block;
    border: solid 2px white;
    border-radius: 8px;
    padding: 2px;
}
datasheet-ajax > .body > .datasheet-footer .datasheet-filter-results > * {
    display: inline-block;
    vertical-align: middle;
}


/* 
 * Overlay
 */
.datasheet-ajax-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(255,255,255,0.75);
    transition: 0.3s;
    transition-delay: 0s;
    opacity: 0;
    visibility: hidden;
}
.datasheet-ajax-overlay-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center;
}
.datasheet-ajax-overlay-spinner > svg {
    _position: absolute; 
    top: 0; 
    left: 0; 
    width: 80px; 
    height: 80px; 
    font-size: 80px; 
    font-family: 'Segoe UI Symbol', 'Lucida Sans Unicode', Arial, Helvetica, sans-serif; 
    color: var(--primary-color); 
    animation: hexagonspin 4s ease-in-out infinite;
}
datasheet-ajax.busy .datasheet-ajax-overlay {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    
}
datasheet-ajax.busy .datasheet-ajax-content {
    opacity: 0;
    visibility: hidden;
}