/* favorites/static/favorites/css/favorites.css  (loaded in templates/base.html) */
.fav-star {
    cursor: pointer;
    color: #bbb;
    font-size: 15px;
    line-height: 1;
    padding: 0 4px 0 0;
    user-select: none;
    transition: color .15s, transform .15s;
}
.fav-star:hover { color: #f0ad4e; transform: scale(1.15); }
.fav-star.is-favorite { color: #f0ad4e; }
.fav-star:focus { outline: 1px dotted #f0ad4e; }
.fav-star[data-busy="1"] { opacity: .6; pointer-events: none; }
.fav-star-lg { font-size: 22px; vertical-align: middle; padding-right: 6px; }

.fav-only-btn.active,
.fav-only-btn.active:hover,
.fav-only-btn.active:focus { background: #fdf3e2; border-color: #f0ad4e; color: #8a5a00; }
.fav-only-btn .fav-only-icon { color: #f0ad4e; }

.favorites-page .panel-title .badge { margin-left: 6px; }
.favorites-page td.fav-cell { width: 28px; text-align: center; }

/* Navigation trail (favorites/js/nav-history.js) */
.spod-trail { margin: 10px 0 0 0; padding: 6px 12px; background: #f7f7f7; font-size: 13px; }
.spod-trail > li { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* Recently viewed (My favorites page) */
.favorites-page .recent-when { white-space: nowrap; color: #999; }
.favorites-page .recent-kind { width: 90px; color: #777; }

/* Combos: "Favorites only" checkbox under a select */
.fav-select-filter { margin-top: 4px; margin-bottom: 0; font-weight: normal; }
.fav-select-filter .fav-only-icon { color: #f0ad4e; }

/* Detail modals (company / project): title on the left, buttons on the
   right; the buttons wrap below instead of overlapping a long title */
.page-header h3.detail-header { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 8px; height: auto; }
.detail-header .detail-title { flex: 1 1 auto; min-width: 0; line-height: 1.6; padding: 2px 0; }
/* the theme nudges labels with position/top, which ignores the layout:
   keep the code label in the flow so the buttons below can't cover it */
.detail-header .detail-title .label { position: static; top: auto; display: inline-block; vertical-align: middle; margin-top: -3px; }
.detail-header .detail-actions { display: flex; flex-direction: row-reverse; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.detail-header .detail-actions > .btn { float: none; margin: 0; white-space: nowrap; }
