/* Team Members CSS */
.tmb-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px;
}

.tmb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.tmb-header-left h2 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  display: inline-block;
  margin-right: 8px;
}

.tmb-breadcrumb {
  font-size: 11px;
  color: #6b7280;
  display: inline-block;
}

.tmb-btn-outline {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: 0.2s;
}

.tmb-btn-outline:hover { background: #f9fafb; }

.tmb-btn-primary {
  background: #3b82f6;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.tmb-btn-primary:hover { background: #2563eb; }

/* Card */
.tmb-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
}

.tmb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
  gap: 12px;
}

.tmb-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.tmb-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Search */
.tmb-search-box {
  position: relative;
}

.tmb-search-box input {
  padding: 7px 12px 7px 32px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  width: 200px;
  outline: none;
  transition: border-color 0.2s;
}

.tmb-search-box input:focus { border-color: #3b82f6; }

.tmb-search-box i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 12px;
}

/* Toggle */
.tmb-toggle-wrap {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #374151;
  font-weight: 500;
  white-space: nowrap;
}

.tmb-toggle {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
  margin-left: 8px;
}

.tmb-toggle input { opacity: 0; width: 0; height: 0; }

.tmb-toggle span {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #e5e7eb;
  transition: .4s;
  border-radius: 34px;
}

.tmb-toggle span:before {
  position: absolute;
  content: "";
  height: 14px; width: 14px;
  left: 2px; bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.tmb-toggle input:checked + span { background-color: #10b981; }
.tmb-toggle input:checked + span:before { transform: translateX(14px); }

/* Table */
.tmb-table-wrapper { overflow-x: auto; }

.tmb-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.tmb-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.tmb-table td {
  padding: 12px 16px;
  font-size: 12px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.tmb-table tr:last-child td { border-bottom: none; }
.tmb-table tr:hover { background: #fdfdfd; }

.tmb-checkbox {
  width: 15px; height: 15px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  cursor: pointer;
}

/* Member cell */
.tmb-member-cell { display: flex; align-items: center; }

.tmb-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}

.tmb-member-name {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
}

.tmb-member-tasks {
  font-size: 10px;
  color: #9ca3af;
}

/* Role badges */
.tmb-role {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  margin-right: 4px;
  margin-bottom: 2px;
}

.tmb-role-admin    { background: #fef3c7; color: #92400e; }
.tmb-role-support  { background: #ede9fe; color: #5b21b6; }
.tmb-role-editor   { background: #dbeafe; color: #1e40af; }
.tmb-role-developer{ background: #dcfce7; color: #166534; }
.tmb-role-manager  { background: #fee2e2; color: #991b1b; }
.tmb-role-designer { background: #fce7f3; color: #9d174d; }
.tmb-role-analyst  { background: #e0f2fe; color: #0369a1; }

/* Status */
.tmb-status-active {
  background: #dcfce7; color: #166534;
  font-size: 9px; font-weight: 700;
  padding: 4px 8px; border-radius: 4px;
  display: inline-flex; align-items: center;
}
.tmb-status-active::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px;
  background: #166534; border-radius: 50%;
  margin-right: 5px;
}

.tmb-status-inactive {
  background: #fee2e2; color: #991b1b;
  font-size: 9px; font-weight: 700;
  padding: 4px 8px; border-radius: 4px;
  display: inline-flex; align-items: center;
}
.tmb-status-inactive::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px;
  background: #991b1b; border-radius: 50%;
  margin-right: 5px;
}

.tmb-status-pending {
  background: #dbeafe; color: #1e40af;
  font-size: 9px; font-weight: 700;
  padding: 4px 8px; border-radius: 4px;
  display: inline-flex; align-items: center;
}
.tmb-status-pending::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px;
  background: #1e40af; border-radius: 50%;
  margin-right: 5px;
}

/* Flag */
.tmb-flag { width: 16px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* Pagination */
.tmb-pagination-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
  gap: 12px;
}

.tmb-show-entries { font-size: 11px; color: #6b7280; }

.tmb-select {
  padding: 3px 6px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  margin: 0 4px;
  outline: none;
  font-size: 11px;
}

.tmb-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #6b7280;
}

.tmb-page-btn {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; cursor: pointer; transition: 0.2s;
}

.tmb-page-btn:hover { background: #f3f4f6; color: #111827; }
.tmb-page-active { background: #f3f4f6; color: #111827; font-weight: 600; }

/* Invite Section */
.tmb-invite-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .tmb-invite-grid { grid-template-columns: 1fr; }
}

.tmb-invite-section {
  padding: 24px;
}

.tmb-invite-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 20px;
}

.tmb-form-group {
  margin-bottom: 16px;
}

.tmb-form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.tmb-form-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.tmb-form-input:focus { border-color: #3b82f6; }

.tmb-form-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  outline: none;
  background: #fff;
  box-sizing: border-box;
}

.tmb-more-roles {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 24px;
  display: block;
}

.tmb-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: #f9fafb;
}

.tmb-link-box span {
  font-size: 11px;
  color: #6b7280;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tmb-link-box i {
  color: #9ca3af;
  cursor: pointer;
  flex-shrink: 0;
}

.tmb-link-box i:hover { color: #3b82f6; }

.tmb-radio-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #374151;
  margin-bottom: 16px;
}

.tmb-invite-desc {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 24px;
}

.tmb-divider-v {
  border-right: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
  .tmb-divider-v { border-right: none; border-bottom: 1px solid #e5e7eb; padding-bottom: 24px; }
}

/* FAQ */
.tmb-faq-card { padding: 24px; }
.tmb-faq-title { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 16px; }

.tmb-faq-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
}

.tmb-faq-item:last-child { border-bottom: none; }
.tmb-faq-q { font-size: 12px; font-weight: 500; color: #374151; }
.tmb-faq-icon { color: #9ca3af; font-size: 13px; }
.tmb-faq-item:hover .tmb-faq-q { color: #111827; }
.tmb-faq-item:hover .tmb-faq-icon { color: #111827; }

/* Illustration Grid */
.tmb-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

@media (max-width: 640px) { .tmb-grid-2 { grid-template-columns: 1fr; } }

.tmb-illus-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 175px;
}

.tmb-illus-card-title { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 10px; }
.tmb-illus-card p { font-size: 11px; color: #6b7280; line-height: 1.5; margin-bottom: 20px; max-width: 55%; }
.tmb-illus-card a { font-size: 10px; font-weight: 700; color: #3b82f6; text-transform: uppercase; text-decoration: none; }
.tmb-illus-card a:hover { text-decoration: underline; }

.tmb-illus-img {
  position: absolute;
  right: 16px; bottom: 16px;
  width: 140px; height: auto;
}
