/* THE ROW KEYS AND PEEK OF THE OLD LISTS (static/js/ee_old_list_keys.js, unit a-old-list-keys-peek).
 * One shared sheet for every Old DataTables list: the focused row is seen (a ring that is not color alone: an outline),
 * the peeked row keeps a surface while its record is shown, and the preview is a side panel over the right edge that
 * never covers the whole list on a wide screen and takes the full width on a phone. Every value is a kit token
 * (look_rows; Old pages load them through kit_tokens_link); buttons are Bootstrap's classes every Old page loads. */
table[data-ee-row-keys] > tbody > tr[data-ee-row]:focus {
    outline: none;
}

table[data-ee-row-keys] > tbody > tr[data-ee-row]:focus-visible {
    /* currentColor if the token sheet did not load: a focus ring is never lost with it */
    outline: 2px solid var(--ee-indigo, currentColor);
    outline-offset: -2px;
    background-color: var(--ee-datatable-focus-surface, var(--ee-indigo-bg));
}

table[data-ee-row-keys] > tbody > tr[data-ee-peeked] {
    background-color: var(--ee-indigo-bg);
}

.ee-old-peek {
    position: fixed;
    z-index: var(--ee-z-fixed);
    /* under the top toolbar (it stays above every layer), so the panel's own head is never covered */
    top: var(--ee-toolbar-height, 0px);
    right: 0;
    bottom: 0;
    width: min(36rem, 100vw);
    display: flex;
    flex-direction: column;
    /* system colors if the token sheet did not load: the panel never turns see-through over the list */
    background: var(--ee-bg-card, Canvas);
    color: var(--ee-text-primary, CanvasText);
    border-left: 1px solid var(--ee-border-light, GrayText);
    box-shadow: var(--ee-shadow-lg);
}

html[data-ee-framed] .ee-old-peek {
    top: 0;
}

.ee-old-peek[hidden] {
    display: none;
}

.ee-old-peek__head {
    display: flex;
    align-items: center;
    gap: var(--ee-space-2);
    padding: var(--ee-space-3) var(--ee-space-4);
    border-bottom: 1px solid var(--ee-border-light);
}

.ee-old-peek__title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: var(--ee-font-weight-semibold);
    color: var(--ee-text-primary);
}

.ee-old-peek__open[hidden] {
    display: none;
}

.ee-old-peek__hint,
.ee-old-peek__words {
    margin: 0;
    padding: var(--ee-space-2) var(--ee-space-4) 0;
    font-size: var(--ee-text-sm);
    color: var(--ee-text-muted);
}

.ee-old-peek__words[hidden] {
    display: none;
}

.ee-old-peek__frame {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    margin-top: var(--ee-space-2);
    border: 0;
}
