/* Card view of a list (Products → Grid): the tick box sits ON the photo (not in a column of its own that pushes the card out to the right),
   cards are compact so many fit on the screen, and a selected card is clearly marked. */
.fi-ta-content-grid { gap: .6rem !important; padding: .6rem !important; }
.fi-ta-content-grid .fi-ta-record { position: relative; display: block !important; min-width: 0; border-radius: .75rem; overflow: hidden; transition: box-shadow .15s, outline-color .15s; }
.fi-ta-content-grid .fi-ta-record .fi-ta-record-content-ctn { width: 100%; min-width: 0; }
.fi-ta-content-grid .fi-ta-record .fi-ta-record-content { padding: .5rem !important; }
.fi-ta-content-grid .fi-ta-record .fi-ta-record-checkbox {
  position: absolute; top: .55rem; left: .55rem; z-index: 5; width: 1.4rem; height: 1.4rem; margin: 0 !important; cursor: pointer;
  background-color: #fff; border: 2px solid rgba(0,0,0,.45); border-radius: .4rem; box-shadow: 0 1px 5px rgba(0,0,0,.35);
}
.fi-ta-content-grid .fi-ta-record .fi-ta-record-checkbox:checked { border-color: transparent; }
.fi-ta-content-grid .fi-ta-record.fi-selected { outline: 3px solid #10b981; outline-offset: -3px; background: rgba(16,185,129,.09); }
/* the photo is the biggest thing on a card, but not taller than needed */
.fi-ta-content-grid .fi-ta-record .fi-ta-image img { height: 130px !important; width: 100% !important; object-fit: contain; }
.fi-ta-content-grid .fi-ta-record .fi-ta-text { padding-top: 0 !important; padding-bottom: 0 !important; }
/* the buttons under a card are small and wrap instead of running out of the card */
.fi-ta-content-grid .fi-ta-record .fi-ta-actions { flex-wrap: wrap; gap: .25rem; padding: .25rem .5rem .5rem; justify-content: flex-start; }
.fi-ta-content-grid .fi-ta-record .fi-ta-actions .fi-btn, .fi-ta-content-grid .fi-ta-record .fi-ta-actions .fi-link { font-size: .75rem; }

/* product page: foldable relation tabs */
.fi-resource-relation-manager > .pf-bar { display: flex; align-items: center; gap: .6rem; justify-content: space-between; padding: .35rem .6rem; margin-bottom: .5rem; border: 1px solid rgba(128,128,128,.3); border-radius: .6rem; background: rgba(128,128,128,.06); }
.fi-resource-relation-manager .pf-t { font-size: .85rem; opacity: .8; }
.fi-resource-relation-manager .pf-btn { border: 1px solid rgba(128,128,128,.4); border-radius: .5rem; padding: .2rem .7rem; font-size: .78rem; cursor: pointer; background: transparent; color: inherit; }
.fi-resource-relation-manager .pf-btn:hover { border-color: #f59e0b; background: rgba(245,158,11,.1); }
.fi-resource-relation-manager .pf-shut { display: none; }
.fi-resource-relation-manager.pf-folded .pf-shut { display: inline; }
.fi-resource-relation-manager.pf-folded .pf-open { display: none; }
.fi-resource-relation-manager.pf-folded > *:not(.pf-bar) { display: none !important; }
