/* Partner workspace: funnel chart, plans, efficiency */
.cab-funnel-form { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.cab-funnel-form__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cab-funnel-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.72rem; font-weight: 700; color: var(--text-muted); }
.cab-funnel-form input { padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 10px; font: inherit; }

.cab-funnel-chart { margin-top: 12px; }
.cab-funnel-chart__bars { display: flex; align-items: flex-end; gap: 8px; min-height: 120px; padding-top: 8px; }
.cab-funnel-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.cab-funnel-bar span { display: block; width: 100%; max-width: 36px; height: 90px; background: #eef0f6; border-radius: 8px 8px 4px 4px; position: relative; overflow: hidden; }
.cab-funnel-bar span::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--h, 0%); background: linear-gradient(180deg, #7c6cf0, var(--primary)); border-radius: 4px 4px 0 0; }
.cab-funnel-bar em { font-style: normal; font-size: 0.68rem; color: var(--text-muted); }

.cab-schedule-form { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f1f3f8; }
.cab-schedule-form input { padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 10px; font: inherit; }
.cab-dash-event__actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.cab-dash-event__btn--del { color: #dc2626; }
.cab-dash-event--done .cab-dash-event__info p { text-decoration: line-through; opacity: 0.7; }

.cab-dash-attendance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  position: relative;
}
.cab-dash-attendance__check {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.cab-dash-attendance__box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #d1d5db;
  background: #fff;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.cab-dash-attendance--yes .cab-dash-attendance__box {
  border-color: #059669;
  background: #059669;
  box-shadow: inset 0 0 0 2px #fff;
}
.cab-dash-attendance__text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 44px;
}
.cab-dash-attendance--yes .cab-dash-attendance__text { color: #047857; }

.cab-plans { display: flex; flex-direction: column; gap: 20px; max-width: 720px; }
.cab-plans__form { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: end; }
.cab-plans__form input { padding: 12px 14px; border: 1px solid var(--border-color); border-radius: 12px; font: inherit; }
.cab-plans__list { display: grid; gap: 10px; }
.cab-plan { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--border-color); border-radius: 14px; }
.cab-plan--overdue { border-color: #fecaca; background: #fef2f2; }
.cab-plan--done { opacity: 0.65; }
.cab-plan__body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cab-plan__date { font-size: 0.82rem; color: var(--text-muted); }
.cab-plan__badge { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: #fee2e2; color: #b91c1c; font-size: 0.72rem; font-weight: 700; }
.cab-plan__del { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-color); background: #fff; color: #dc2626; font-size: 1.1rem; cursor: pointer; }

.cab-eff { display: grid; gap: 24px; max-width: 820px; }
.cab-eff__chart { display: grid; gap: 14px; }
.cab-eff-bar__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 0.9rem; }
.cab-eff-bar__track { height: 10px; background: #eef0f6; border-radius: 99px; overflow: hidden; }
.cab-eff-bar__track span { display: block; height: 100%; width: var(--w, 0%); border-radius: 99px; background: var(--primary); }
.cab-eff-bar--bad .cab-eff-bar__track span { background: #dc2626; }
.cab-eff-bar--warn .cab-eff-bar__track span { background: #f59e0b; }
.cab-eff-bar--good .cab-eff-bar__track span { background: #059669; }
.cab-eff-bar--accent .cab-eff-bar__track span { background: #6c47ff; }
.cab-eff__form { display: grid; gap: 12px; padding: 20px; background: #fff; border-radius: 16px; border: 1px solid var(--border-color); }
.cab-eff__form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; }
.cab-eff__form input { padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 10px; font: inherit; }
.cab-eff__overdue { padding: 16px 18px; background: #fef2f2; border-radius: 14px; border: 1px solid #fecaca; }
.cab-eff__overdue h3 { margin: 0 0 10px; font-size: 1rem; }
.cab-eff__overdue ul { margin: 0; padding-left: 18px; color: #991b1b; font-size: 0.9rem; line-height: 1.6; }

.cab-team-eff { display: grid; gap: 24px; max-width: 860px; }
.cab-team-eff__leader {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 55%);
  border: 1px solid #fde68a;
  border-radius: 20px;
  position: relative;
}
.cab-team-eff__leader--empty { background: #fff; border-color: var(--border-color); }
.cab-team-eff__crown { position: absolute; top: 14px; right: 18px; font-size: 1.4rem; }
.cab-team-eff__leader-info { display: flex; flex-direction: column; gap: 4px; }
.cab-team-eff__leader-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #b45309; }
.cab-team-eff__leader-name { font-size: 1.35rem; font-weight: 800; color: var(--text-main); }
.cab-team-eff__leader-score { font-size: 0.9rem; color: var(--text-muted); }
.cab-team-eff__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.cab-team-eff__avatar--lg { width: 72px; height: 72px; font-size: 1.5rem; }
.cab-team-eff__avatar--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #6c47ff);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}
.cab-team-eff__chart {
  display: grid;
  gap: 12px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
}
.cab-team-eff__chart-title { margin: 0 0 6px; font-size: 1.05rem; font-weight: 800; }
.cab-team-eff__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid #f1f3f8;
}
.cab-team-eff__row:first-of-type { border-top: none; padding-top: 0; }
.cab-team-eff__row--me { background: #f8f9ff; margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 12px; }
.cab-team-eff__row-body { flex: 1; min-width: 0; }
.cab-team-eff__row-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 0.92rem; }
.cab-team-eff__row-head em { font-style: normal; font-weight: 600; color: var(--primary); font-size: 0.82rem; }
.cab-team-eff__row-bar { height: 10px; background: #eef0f6; border-radius: 99px; overflow: hidden; }
.cab-team-eff__row-bar span { display: block; height: 100%; width: var(--w, 0%); background: linear-gradient(90deg, #7c6cf0, var(--primary)); border-radius: 99px; }
.cab-team-eff__row-meta { margin: 6px 0 0; font-size: 0.78rem; color: var(--text-muted); }

@media (max-width: 640px) {
  .cab-funnel-form__row { grid-template-columns: 1fr; }
  .cab-plans__form { grid-template-columns: 1fr; }
}

/* Partner profile */
.cab-partner-profile { display: grid; gap: 20px; }
.cab-partner-profile__hero { margin-bottom: 0; }
.cab-partner-profile__avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.cab-partner-profile__avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cab-partner-profile__avatar-initials {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background: linear-gradient(135deg, #fde68a, #f59e0b); color: #3b2f00; font-weight: 800; font-size: 1.1rem;
}
.cab-partner-profile__field { display: grid; gap: 6px; margin-bottom: 14px; }
.cab-partner-profile__field span { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); }
.cab-partner-profile__field input,
.cab-partner-profile__field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border-color); border-radius: 12px; font: inherit;
}
.cab-partner-profile__msg { margin: 10px 0 0; font-size: 0.84rem; font-weight: 600; }
.cab-partner-profile__msg.is-ok { color: #047857; }
.cab-partner-profile__msg.is-error { color: #dc2626; }
.cab-partner-goals { display: grid; gap: 14px; }
.cab-partner-goals__item {
  display: flex; gap: 12px; padding: 14px; background: var(--bg2, #f8f9fe); border-radius: 14px;
}
.cab-partner-goals__avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.cab-partner-goals__avatar--initials {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fde68a, #f59e0b); color: #3b2f00; font-size: 0.78rem; font-weight: 800;
}
.cab-partner-goals__quote { margin: 4px 0; font-size: 0.82rem; color: var(--text-muted); font-style: italic; }
.cab-partner-goals__text { margin: 6px 0 0; font-size: 0.88rem; line-height: 1.55; white-space: pre-wrap; }
