/* A value that can be read whole and copied whole (ui/copy-value.js). Whole it wraps; short, for a dense cell, it is drawn from data-short while the whole value stays
   in the element's text, hidden from the eye only, so a selection, a screen reader and the Copy button all get the whole. Nothing here stops a selection. */

.cv { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; max-width: 100%; min-width: 0; }
.cv-block { display: flex; }
.cv-label { font: 600 11px var(--mono); white-space: nowrap; flex: none; }
/* Above the list's row-wide press target, so that a value can be selected and its button pressed without opening the panel. */
.cv-value { position: relative; z-index: 1; min-width: 0; overflow-wrap: anywhere; user-select: text; cursor: text; }
.cv-block .cv-value { flex: 1 1 0; }
.cv-cut::before { content: attr(data-short); content: attr(data-short) / ""; }
.cv-btn { position: relative; z-index: 1; align-self: center; width: 22px; height: 22px; }
.cv-btn svg { width: 12px; height: 12px; }
.cv-status { flex: none; font-size: 11px; font-weight: 600; color: var(--ok); white-space: nowrap; }
.cv-status:empty { display: none; }
.cv-status.is-problem { flex: 1 0 100%; color: var(--bd); white-space: normal; }

/* In a dense cell the buttons wait until the row is hovered or focused, and stay reachable by the keyboard the whole time. */
.cv-dense .cv-btn { opacity: 0; }
.row:hover .cv-dense .cv-btn, .row:focus-within .cv-dense .cv-btn, .cv-dense:hover .cv-btn, .cv-dense:focus-within .cv-btn { opacity: 1; }
@media (max-width: 599px), (hover: none) { .cv-dense .cv-btn { opacity: 1; } }
.cv-block .cv-label { flex: 1 0 100%; }
