/* ==========================================================
   Freelancer pool in the Agency tab (freelancers.js)
   ========================================================== */
#fl-pool { margin-bottom: 16px; }
.fl-card { background: #fff; border: 1px solid #E9E9EB; border-radius: 16px; padding: 18px; color: #19191C; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.fl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.fl-head h3 { margin: 0 0 4px; font-size: 15px; font-weight: 800; color: #121214; display: flex; align-items: center; gap: 8px; }
.fl-head p { margin: 0; font-size: 12.5px; line-height: 1.5; color: #6B6B76; }
.fl-count { font-size: 12px; font-weight: 700; color: #6B6B76; background: #F2F2F4; border-radius: 999px; padding: 1px 8px; }
.fl-add { flex-shrink: 0; display: inline-flex !important; align-items: center; gap: 6px; padding: 8px 12px !important; font-size: 13px !important; }
.fl-search { display: flex; align-items: center; gap: 8px; border: 1px solid #E2E2E5; border-radius: 10px; padding: 0 10px; height: 36px; margin-bottom: 10px; }
.fl-search i { color: #8D8D9A; }
.fl-search input { border: none; outline: none; background: transparent; font-family: inherit; font-size: 13px; width: 100%; color: #19191C; }
.fl-list { display: flex; flex-direction: column; gap: 8px; }
.fl-row { display: grid; grid-template-columns: 36px 1fr auto; grid-template-areas: "av main act" "av boards boards"; gap: 4px 10px; align-items: center; border: 1px solid #EFEFF2; border-radius: 12px; padding: 10px 12px; background: #FCFCFD; }
.fl-avatar { grid-area: av; align-self: start; width: 34px; height: 34px; border-radius: 50%; background: #19191C; color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.fl-main { grid-area: main; min-width: 0; }
.fl-name { font-size: 14px; font-weight: 700; color: #121214; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fl-badge { font-size: 11px; font-weight: 700; color: #4A4A55; background: #EFEFF2; border-radius: 999px; padding: 1px 8px; }
.fl-sub { font-size: 12px; color: #8D8D9A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-boards { grid-area: boards; display: flex; flex-wrap: wrap; gap: 4px; }
.fl-chip { font-size: 11.5px; font-weight: 600; color: #3A3A42; background: #fff; border: 1px solid #E6E6E9; border-radius: 999px; padding: 1px 8px; }
.fl-chip.none { color: #A5A5AF; border-style: dashed; }
.fl-rate { grid-area: rate; font-size: 12.5px; font-weight: 700; color: #19191C; }
.fl-rate em { font-style: normal; font-weight: 500; color: #8D8D9A; }
.fl-muted { color: #A5A5AF; font-weight: 500; }
.fl-actions { grid-area: act; display: flex; gap: 2px; }
.fl-icon { width: 30px; height: 30px; border: none; background: none; border-radius: 8px; color: #6B6B76; cursor: pointer; font-size: 15px; }
.fl-icon:hover { background: #F0F0F2; color: #121214; }
.fl-icon.danger:hover { background: #FEF3F2; color: #B42318; }
.fl-empty { font-size: 13px; color: #8D8D9A; text-align: center; padding: 18px; border: 1px dashed #DCDCE0; border-radius: 12px; }

.fl-modal { max-width: 560px; }
.fl-modal .btn-outline { background: #fff !important; color: #19191C !important; border: 1px solid #E2E2E5 !important; }
.fl-form .fl-rates-head { font-size: 11.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #19191C; margin-top: 6px; padding-top: 12px; border-top: 1px solid #F0F0F2; }
.fl-form .fl-rate-in.dim input { background: #FAFAFB; border-style: dashed; }
.fl-form .fl-rate-in.dim span { color: #A5A5AF; }
.fl-form input[readonly] { background: #F7F7F8; color: #6B6B76; }
.fl-msg { font-size: 12.5px; color: #B42318; min-height: 1em; }
.tm-pool { margin-bottom: 8px; font-weight: 600; }

/* Board team: pick from the list first, type a new person only when needed */
.tm-pool-box { display: flex; flex-direction: column; gap: 8px; }
.tm-pool-mode .tm-manual { display: none; }
.tm-pool-mode.tm-show-manual .tm-manual { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; padding-top: 10px; border-top: 1px dashed #E2E2E5; }
.tm-link { background: none; border: none; padding: 2px 0; font-family: inherit; font-size: 12.5px; font-weight: 700; color: #4C5FD5; cursor: pointer; text-align: left; display: inline-flex; gap: 5px; align-items: center; }
.tm-link:hover { text-decoration: underline; }
.tm-btn:disabled { opacity: .45; cursor: default; }

/* Managers in the same list */
.fl-badge.mgr { background: #19191C; color: #fff; }
.fl-kind { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fl-kind-btn { border: 1px solid #E2E2E5; background: #fff; border-radius: 999px; padding: 6px 14px; font-family: inherit; font-size: 13px; font-weight: 700; color: #4A4A55; cursor: pointer; }
.fl-kind-btn.active { background: #19191C; border-color: #19191C; color: #fff; }
.fl-kind-hint { font-size: 12px; color: #8D8D9A; margin-left: 4px; }
.fl-form.is-manager .fl-fl-only { display: none !important; }

/* Board team: invite status */
.tm-pending { display: inline-block; font-size: 11px; font-weight: 700; color: #B54708; background: #FFF6E5; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.tm-email .tm-link { font-size: 11.5px; margin-left: 6px; }
