/* entity-links.css -- the organized Contacts, Vendors and Addresses tabs on record pages
   (Story 5683, 2026-11-02). The layout is the Files tab's (entity-files.css: .ef-band, .ef-card,
   .ef-seg, ...); this adds only what a contact, vendor or address card has, and the card fold. */

.el-card .ef-name { font-size: 14px; cursor: pointer; }
.el-card a.el-open {
    flex: 0 0 auto; font-size: 13px; font-weight: 600; color: #0A66C2;
    text-decoration: none; white-space: nowrap;
}
.el-card a.el-open:hover { text-decoration: underline; }
.el-dates { color: #64748B; font-size: 12px; }
.el-tag {
    font-size: 11px; font-weight: 600; color: #92400E; background: #FEF3C7;
    border-radius: 9px; padding: 1px 7px;
}
.el-lines { font-size: 13px; color: #334155; padding: 2px 0 0 22px; }
.el-card .el-notes { white-space: pre-wrap; word-break: break-word; }
.el-show-ended {
    display: flex; align-items: center; gap: 6px; font-size: 12px; color: #475569;
    margin-left: auto;
}

/* Every card folds to its top line -- name, open link and flag stay. */
.el-fold {
    flex: 0 0 auto; border: 0; background: transparent; padding: 0 2px;
    font: inherit; color: #475569; cursor: pointer; line-height: 1;
}
.el-fold:focus-visible { outline: 2px solid #0A66C2; outline-offset: 2px; border-radius: 3px; }
.el-card.collapsed { padding-top: 8px; padding-bottom: 8px; }
.el-card.collapsed > .ef-meta,
.el-card.collapsed > .el-lines,
.el-card.collapsed > .el-notes,
.el-card.collapsed > .ed-card-actions { display: none; }

/* An ended link (an address moved away from, a contact link with an end date) is quieter --
   never struck through. */
.el-card.el-ended .ef-name { color: #64748B; }

/* ---- Arrange: drag the type groups AND the cards inside a group into order ----
   The groups stay open (fold one with its caret) and each card shrinks to its grip and name. */
.el-pane.ef-arranging .ef-band-body { display: block; }
.el-pane.ef-arranging .ef-caret { visibility: visible; }
.el-pane.ef-arranging .ef-band.collapsed .ef-band-body { display: none; }
.el-pane.ef-arranging .el-card .ef-meta,
.el-pane.ef-arranging .el-card .el-lines,
.el-pane.ef-arranging .el-card .el-notes,
.el-pane.ef-arranging .el-card .ed-card-actions,
.el-pane.ef-arranging .el-card .el-fold,
.el-pane.ef-arranging .el-card .el-open,
.el-pane.ef-arranging .el-card .ef-flag { display: none; }
.el-pane.ef-arranging .el-card { padding-top: 6px; padding-bottom: 6px; }
.el-card.dragging { opacity: .55; outline: 2px dashed #2563EB; outline-offset: -2px; }
