/* Browse > Complexes. The number tiles are /browse/roi's (.dash-mini, same rules as their templates); the rest is this page's own. */
body { background-color: var(--bs-tertiary-bg); }
.cx-subheader { position: sticky; top: 0; z-index: 1020; box-shadow: 0 1px 3px rgba(0,0,0,.04); } /* the menu itself is the shared .dcv-subnav */
.dash-mini {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    height: 100%;
}
.dash-mini .lbl { color: var(--bs-secondary-color); } /* size/weight/case: .dcv-kicker family, discanvis-dashboard.css */
.dash-mini .val { font-size: 1.25rem; font-weight: 700; color: var(--bs-primary); white-space: nowrap; }
.dash-mini .sub { font-size: .75rem; color: var(--bs-secondary-color); }

/* The Table settings panel: the lens value is a box or a select, one at a time; the minimum a small number box. */
.cx-lens-value { display: flex; align-items: center; gap: .5rem; min-width: 14rem; }
.cx-lens-value > * { min-width: 0; }
.cx-lens-value [hidden] { display: none !important; }
.cx-minres { width: 6rem; }

/* Rows open the detail panel; the open row is the tinted one. */
#cx-table tbody tr[data-cx-row], #cx-table-other tbody tr[data-cx-row] { cursor: pointer; }
#cx-table tbody tr:focus-visible, #cx-table-other tbody tr:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: -2px; }
/* Identifiers and numbers are never cut: the cell keeps its text on one line and takes the width it needs. */
#cx-table td.cx-keep, #cx-table td.dcv-num, #cx-table-other td.cx-keep, #cx-table-other td.dcv-num { white-space: nowrap; }
#cx-table td.cx-keep > *, #cx-table td.dcv-num > *, #cx-table-other td.cx-keep > *, #cx-table-other td.dcv-num > * { max-width: none; overflow: visible; text-overflow: clip; }
/* Badge lists: whole pills in one line; cx-pills folds what does not fit into "+N" (the title and the panel keep the whole list). */
.cx-pills { display: block; white-space: nowrap; overflow: hidden; }
.cx-pills > [hidden] { display: none !important; }
#cx-table td .cx-pills > .dcv-badge, #cx-table-other td .cx-pills > .dcv-badge { max-width: none; overflow: visible; margin-right: .25rem; }
.cx-muted { color: var(--bs-secondary-color); }

/* A row's complex opens on its own page (complex_view.js); these classes are that page's: the choosers' label, the annotation rows. */
.cx-choices-label { font-size: .75rem; color: var(--bs-secondary-color); margin-right: .25rem; }
.cx-open { white-space: nowrap; }
/* The reason an entry is not a table row (one line above the choosers) and the "In this span" chips: a pill that can be pressed. */
.cx-chip { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 999px; line-height: 1; }
.cx-chip:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.cx-chip[aria-pressed="true"] .dcv-badge { outline: 2px solid var(--bs-body-color); outline-offset: 1px; }
.cx-chip .dcv-badge { white-space: nowrap; }
/* "In this span": one row per protein of the pair, its name in its chain colour leading the chips; the focus line under the rows. */
.cx-annotations { margin-bottom: .6rem; }
.cx-annotations:empty { display: none; }
.cx-annrow { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-bottom: .3rem; }
.cx-annlabel { font-weight: 600; font-size: .8rem; margin-right: .25rem; }
.cx-focus { margin-top: .15rem; }

/* The complex's own page: one viewport (the header, the menu, a title line, the panel). */
.cxv-body { height: 100vh; overflow: hidden; }
.cxv-main { display: flex; flex-direction: column; min-height: 0; padding: .5rem 1rem .6rem; }
.cxv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-bottom: .4rem; }
#cxv-panel { flex: 1 1 0; min-height: 0; }
/* The rail: dropdowns, two rows at most. The annotation dropdowns sit side by side, the Ask button at the right end of the first row. */
.cxv-choosers, .cxv-ann-host { display: flex; flex-wrap: nowrap; align-items: center; gap: .35rem; }
.cxv-ask-group { margin-left: auto; }
.cxv-choice-text { font-size: .8rem; white-space: nowrap; }
.cxv-ann-btn { max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cxv-ann-gene { font-weight: 600; }
.cxv-ann-menu { max-height: 55vh; overflow: auto; max-width: 30rem; }
.cxv-ann-item { white-space: normal; }
.cxv-ann-item .dcv-badge { white-space: normal; text-align: left; }
.cxv-ann-item.active { background: var(--bs-primary-bg-subtle); color: inherit; }
.cxv-ann-item.active .dcv-badge { outline: 2px solid var(--bs-body-color); outline-offset: 1px; }
.cxv-ann-picked, .cxv-ann-count { margin-left: .4rem; }
.cxv-ann-count { color: var(--bs-secondary-color); }
/* One viewport: the rail's hint sentence is dropped here (the table page says what a complex is). */
.cxv-body .dcv-cpanel-rail-note { display: none; }
.cxv-ann-btn.show .cxv-ann-gene, .cxv-ann-btn.btn-primary .cxv-ann-gene { color: inherit !important; }

/* frame=chat (AI Chat embeds the page): no page chrome, the document is as tall as its content; the panel's height is set by the script
   from the frame's width (the structure's side = min(half the width, 520 px)). */
.cxv-frame { height: auto; overflow: visible; }
.cxv-frame .cxv-main { padding: .25rem .25rem .5rem; }
.cxv-frame #cxv-panel { flex: 0 0 auto; min-height: 0; }
.cxv-own-chip { display: inline-flex; align-items: center; gap: .35rem; max-width: 20rem; padding: .1rem .55rem; border: 1px solid var(--dcv-own-data); border-radius: 999px; font-size: .75rem; white-space: nowrap; }
.cxv-own-chip-text { overflow: hidden; text-overflow: ellipsis; }
/* The rail's "Your sets": one pill link per variants / regions set of the tab; the lit ones are the sets the page reads (own-data dot, solid when on). */
.cxv-sets-host { display: flex; flex-wrap: nowrap; align-items: center; gap: .35rem; }
.cxv-set { display: inline-flex; align-items: center; gap: .35rem; max-width: 15rem; padding: .1rem .55rem; border: 1px solid var(--bs-border-color); border-radius: 999px; font-size: .75rem; white-space: nowrap; color: var(--bs-body-color); text-decoration: none; }
.cxv-set.is-on { border-color: var(--dcv-own-data); }
.cxv-set:hover { background: var(--bs-secondary-bg); color: var(--bs-body-color); }
.cxv-set-name { overflow: hidden; text-overflow: ellipsis; }
.cxv-set-kind { color: var(--bs-secondary-color); }
.cxv-entry-menu { min-width: 17rem; padding: 0 0 .25rem; }
.cxv-entry-filter { position: sticky; top: 0; z-index: 1; padding: .4rem .5rem; background: var(--bs-body-bg); border-bottom: 1px solid var(--bs-border-color); }
.cxv-star { color: var(--dcv-own-data); margin-right: .25rem; }
.cxv-entry-head { border-top: 1px solid var(--bs-border-color); margin-top: .25rem; }
.cxv-entry-head:first-of-type { border-top: 0; margin-top: 0; }
/* the reader's variants one entry resolves ("6O9B · S37F, S45F"): a quiet tag after the entry and its partner */
.cxv-entry-own-names { margin-left: .25rem; font-size: .8rem; color: var(--bs-secondary-color); font-weight: 600; }
.cxv-ann-head { margin: 0; padding-top: .45rem; padding-bottom: .1rem; font-size: .7rem; letter-spacing: .02em; text-transform: none; color: var(--bs-secondary-color); }
.cxv-ann-fold { font-size: .75rem; color: var(--bs-secondary-color); }

/* The binary selector above the tiles (IDR in complex . Other complexes) and the Other side's table (complexes_other.js). */
#cx-side-bar { min-height: 1.9rem; }
#cx-table-other td.cx-keep > .dcv-badge, #cx-table-other td.cx-keep .dcv-badge { max-width: none; overflow: visible; white-space: nowrap; }
