/* ══════════════════════════════════════════════════════════════════
   TRUSTPROFILE™ — TRANG KINH NGHIỆM THỰC TẾ

   Nạp CÙNG trustprofile.css (thẻ chip/nút/hộp thoại dùng lại từ đó), chỉ thêm
   những gì riêng của trang này: đầu trang, 3 ô chỉ số, thanh tab, lưới thẻ
   (dự án / đối tác / khách hàng) + phân trang.

   Tiền tố .tp-exp-* để không lẫn với .tp-* của trang hồ sơ / .tp-lg-* của
   trang "Thông tin pháp lý".
   ══════════════════════════════════════════════════════════════════ */

.tp-exp-wrap {
    width: 100%; max-width: 1200px; margin: 0 auto; flex: 1;
    padding: 18px 16px 32px;
    display: flex; flex-direction: column; gap: 16px;
}
@media (min-width: 640px) { .tp-exp-wrap { padding: 22px 24px 40px; } }

/* ─── Breadcrumb + nút quay lại hồ sơ (cùng 1 hàng, nút nằm góc phải) ─── */
.tp-exp-crumbs-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tp-exp-crumbs { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-tertiary); }
.tp-exp-crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-700); font-weight: 600; }
.tp-exp-crumbs a:hover { text-decoration: underline; }
.tp-exp-crumbs svg { width: 14px; height: 14px; }

.tp-exp-back-btn {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    padding: 7px 14px; border: 1px solid var(--border-default); border-radius: 999px;
    background: var(--surface-card); color: var(--text-secondary);
    font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.tp-exp-back-btn:hover { background: var(--surface-subtle); color: var(--brand-700); border-color: var(--brand-600); }
.tp-exp-back-btn svg { width: 14px; height: 14px; }

/* ─── Đầu trang ─── */
.tp-exp-head {
    display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px;
    padding: 20px 24px;
    background: var(--surface-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl); box-shadow: var(--shadow-card);
}
.tp-exp-title {
    display: flex; align-items: center; gap: 8px; margin: 0;
    font-family: var(--font-display, inherit); font-weight: 800; font-size: 22px;
    letter-spacing: .04em; text-transform: uppercase; color: var(--brand-800);
}
.tp-exp-title svg { width: 20px; height: 20px; color: var(--success-600); }
.tp-exp-sub { margin: 6px 0 0; font-size: 13px; line-height: 1.55; color: var(--text-secondary); max-width: 620px; }
.tp-exp-company { margin: 8px 0 0; font-size: 13.5px; font-weight: 700; color: var(--text-primary); }

.tp-exp-head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tp-exp-btn {
    display: inline-flex; align-items: center; gap: 7px;
    height: 38px; padding: 0 16px; border: none; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.tp-exp-btn svg { width: 15px; height: 15px; }
.tp-exp-btn--primary { background: var(--brand-700); color: #fff; }
.tp-exp-btn--primary:hover { background: var(--brand-800); color: #fff; }
.tp-exp-btn--ghost { background: var(--surface-card); border: 1px solid var(--border-default); color: var(--text-secondary); }
.tp-exp-btn--ghost:hover { background: var(--surface-subtle); }

/* ─── 3 ô chỉ số (Dự án / Khách hàng / Đối tác) ─── */
.tp-exp-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .tp-exp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tp-exp-stat {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    background: var(--surface-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl); box-shadow: var(--shadow-card);
}
.tp-exp-stat-icon {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: var(--radius-lg);
    background: var(--brand-50); color: var(--brand-700);
}
.tp-exp-stat-icon svg { width: 20px; height: 20px; }
.tp-exp-stat-value { font-family: var(--font-display, inherit); font-weight: 800; font-size: 19px; color: var(--brand-800); line-height: 1.2; }
.tp-exp-stat-label { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--text-tertiary); }

/* ─── Thanh tab ─── */
.tp-exp-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-exp-tab {
    padding: 9px 16px; border: 1px solid var(--border-subtle); border-radius: 999px;
    background: var(--surface-card); color: var(--text-secondary);
    font-size: 13px; font-weight: 600; cursor: pointer;
}
.tp-exp-tab:hover { background: var(--surface-subtle); }
.tp-exp-tab.is-active, .tp-exp-tab.is-active:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; font-weight: 700; }

/* ─── Khung nội dung ─── */
.tp-exp-panel { display: flex; flex-direction: column; gap: 14px; }
.tp-exp-panel[hidden] { display: none; }
.tp-exp-empty { margin: 4px 0; padding: 24px; text-align: center; font-size: 13px; color: var(--text-tertiary); }

/* ─── Lưới thẻ (dự án / đối tác / khách hàng) ─── */
.tp-exp-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .tp-exp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tp-exp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tp-exp-card {
    position: relative; display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    background: var(--surface-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}

.tp-exp-card-avatar {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--radius-md, var(--radius-sm));
    font-family: var(--font-display, inherit); font-weight: 800; font-size: 14px; color: #fff;
    overflow: hidden;
}
.tp-exp-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tp-exp-card-avatar svg { width: 20px; height: 20px; }

.tp-exp-card-body { min-width: 0; flex: 1; }
.tp-exp-card-title {
    margin: 0; font-size: 13.5px; font-weight: 700; color: var(--text-primary);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tp-exp-card-meta { margin-top: 4px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-tertiary); }

/* ─── Bút chì sửa (góc phải thẻ) — chỉ hiện khi CanEdit ─── */
.tp-exp-card-edit {
    position: absolute; top: 8px; right: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border: none; border-radius: var(--radius-sm);
    background: var(--surface-subtle); color: var(--text-secondary); cursor: pointer;
}
.tp-exp-card-edit:hover { background: var(--brand-50); color: var(--brand-700); }
.tp-exp-card-edit svg { width: 13px; height: 13px; }

/* ─── Thẻ "+ Thêm mục" (dashed, đầu mỗi lưới) ─── */
.tp-exp-add-card {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; margin-bottom: 2px; padding: 14px 16px;
    border: 1.5px dashed var(--brand-600); border-radius: var(--radius-lg);
    background: var(--brand-50); color: var(--brand-700);
    font-size: 13px; font-weight: 700; cursor: pointer;
}
.tp-exp-add-card:hover { filter: brightness(.97); border-style: solid; }
.tp-exp-add-card svg { width: 16px; height: 16px; }

/* ─── Phân trang ─── */
.tp-exp-pager {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: 4px;
}
.tp-exp-pager-info { font-size: 12.5px; color: var(--text-tertiary); }
.tp-exp-pager-nav { display: flex; align-items: center; gap: 6px; }
.tp-exp-pager-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; padding: 0 6px;
    border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
    background: var(--surface-card); color: var(--text-secondary);
    font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.tp-exp-pager-btn:hover:not(:disabled) { background: var(--surface-subtle); }
.tp-exp-pager-btn:disabled { opacity: .4; cursor: default; }
.tp-exp-pager-btn.is-active, .tp-exp-pager-btn.is-active:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.tp-exp-pager-btn svg { width: 14px; height: 14px; }

/* ─── Modal thêm/sửa 1 mục (khung .tp-modal-* dùng chung, xem trustprofile-public-edit.css) ─── */
.tp-exp-modal-logo-preview { display: flex; align-items: center; gap: 10px; margin-top: -4px; }
.tp-exp-modal-logo-preview img {
    width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover;
    border: 1px solid var(--border-subtle);
}
.tp-exp-modal-logo-preview label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-secondary); }
