.aureus-table-overflow-ellipsis {
    box-sizing: border-box;
    display: block;
    flex: 1 1 0%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.aureus-table-copy-cell {
    position: relative;
}

.aureus-table-copy-cell > .fi-ta-col {
    padding-inline-end: 2.25rem;
}

.aureus-table-copy-button {
    align-items: center;
    background: rgb(255 255 255 / 0.9);
    border: 1px solid var(--gray-200);
    border-radius: 0.375rem;
    color: var(--gray-500);
    cursor: pointer;
    display: inline-flex;
    height: 1.75rem;
    inset-inline-end: 0.375rem;
    justify-content: center;
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 120ms ease, color 120ms ease, background 120ms ease;
    width: 1.75rem;
    z-index: 10;
}

.aureus-table-copy-cell:hover > .aureus-table-copy-button,
.aureus-table-copy-button:focus-visible {
    opacity: 1;
}

.aureus-table-copy-button:hover,
.aureus-table-copy-button:focus-visible {
    background: var(--gray-50);
    color: var(--primary-600);
}

.aureus-table-copy-button:focus-visible {
    outline: 2px solid var(--primary-600);
    outline-offset: 2px;
}

.aureus-table-copy-button svg {
    height: 1rem;
    width: 1rem;
}

.fi-ta-col:is(a, button),
.fi-ta-record-content:is(a, button) {
    user-select: text;
}

.aureus-table-overflow-tooltip {
    background: var(--gray-900);
    border-radius: 0.5rem;
    color: white;
    font-size: 0.875rem;
    line-height: 1.25rem;
    max-width: min(32rem, calc(100vw - 1rem));
    overflow-wrap: anywhere;
    padding: 0.5rem 0.75rem;
    pointer-events: none;
    position: fixed;
    white-space: pre-wrap;
    z-index: 70;
}

.aureus-table-overflow-tooltip[hidden] {
    display: none;
}

.dark .aureus-table-copy-button {
    background: rgb(17 24 39 / 0.9);
    border-color: var(--gray-700);
    color: var(--gray-400);
}

.dark .aureus-table-copy-button:hover,
.dark .aureus-table-copy-button:focus-visible {
    background: var(--gray-800);
    color: var(--primary-400);
}

@media (hover: none) {
    .aureus-table-copy-button {
        opacity: 1;
    }
}
