/* BSK team panels 1.2.0: staff, leads and call/WhatsApp analytics.
   Used on the agency dashboard (front) and the back end. Every rule is scoped to the team panels
   (.bskpl-team or .bskpl-team-form), so it cannot change the dashboard listing table, tabs or buttons. */

.bskpl-team { font-size: 14px; color: var(--ink, #1d2327); }
.bskpl-team h3 { font-size: 17px; font-weight: 800; margin: 22px 0 8px; }
.bskpl-team .description { color: var(--muted, #646970); font-size: 13px; }

.bskpl-team .bskpl-tblwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 8px; }
.bskpl-team .bskpl-tbl { min-width: 560px; border-collapse: collapse; }
.bskpl-team .bskpl-tbl th, .bskpl-team .bskpl-tbl td { padding: 9px 10px; vertical-align: top; text-align: left; }
.bskpl-team .bskpl-tbl th { font-weight: 700; }
.bskpl-team .bskpl-acts a { white-space: nowrap; }

.bskpl-team .bskpl-thumb { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; border: 1px solid var(--line, #dcdcde); background: #fff; vertical-align: middle; }
.bskpl-team .bskpl-thumb-empty { background: var(--g-soft, #eef8ef); color: var(--g, #1e7b34); font-weight: 800; font-size: 18px; }

.bskpl-team .bskpl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.bskpl-team .bskpl-stat { background: #fff; border: 1px solid var(--line, #dcdcde); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; }
.bskpl-team .bskpl-stat b { font-size: 24px; font-weight: 900; color: var(--g, #1e7b34); }
.bskpl-team .bskpl-stat span { font-size: 13px; color: var(--muted, #646970); }

.bskpl-team .bskpl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.bskpl-team .bskpl-tabs a { padding: 6px 12px; border: 1px solid var(--line, #dcdcde); border-radius: 999px; color: var(--ink, #1d2327); text-decoration: none; background: #fff; font-weight: 600; }
.bskpl-team .bskpl-tabs a.on { background: var(--g, #1e7b34); border-color: var(--g, #1e7b34); color: #fff; }

.bskpl-team-form { background: #fff; border: 1px solid var(--line, #dcdcde); border-radius: 12px; padding: 16px; margin-top: 14px; max-width: 920px; }
.bskpl-team-form h3 { margin-top: 0; }
.bskpl-team-form .bskpl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; }
.bskpl-team-form .bskpl-field { display: grid; gap: 5px; font-weight: 600; }
.bskpl-team-form .bskpl-field > span { font-size: 13px; color: var(--muted, #646970); }
.bskpl-team-form .bskpl-field input[type="text"], .bskpl-team-form .bskpl-field input[type="email"], .bskpl-team-form .bskpl-field input[type="number"], .bskpl-team-form .bskpl-field input[type="password"], .bskpl-team-form .bskpl-field input[type="tel"], .bskpl-team-form .bskpl-field select {
  width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid var(--line, #c3c4c7); border-radius: 8px; font: inherit; font-weight: 400; background: #fff; box-sizing: border-box;
}
.bskpl-team-form .bskpl-wide { grid-column: 1 / -1; }
.bskpl-team-form .description { margin: 0; color: var(--muted, #646970); font-size: 13px; }
.bskpl-team .bskpl-checks, .bskpl-team-form .bskpl-checks { display: flex; flex-wrap: wrap; gap: 10px 18px; font-weight: 400; }
.bskpl-checkline { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.bskpl-team .bskpl-inline, .bskpl-team-form .bskpl-inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.bskpl-team .bskpl-inline select { min-height: 32px; max-width: 220px; }
.bskpl-autoform { margin: 10px 0; }

.bskpl-team .bskpl-btn, .bskpl-team-form .bskpl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 14px; border: 0; border-radius: 8px; background: var(--g, #1e7b34); color: #fff !important; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.2; }
.bskpl-team .bskpl-btn:hover, .bskpl-team-form .bskpl-btn:hover { filter: brightness(.94); }

/* On the agency dashboard the form already sits inside a card, so it does not draw a second one. */
.bskpl-box .bskpl-team-form { background: none; border: 0; border-radius: 0; padding: 0; margin-top: 12px; max-width: none; }

.bskpl-filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: #fff; border: 1px solid #dcdcde; padding: 12px 14px; margin: 12px 0; }
.bskpl-filterbar label { display: grid; gap: 4px; }

@media (max-width: 720px) {
  .bskpl-team .bskpl-stat b { font-size: 20px; }
  .bskpl-team .bskpl-inline select { max-width: 100%; width: 100%; }
}
