/* ══════════════════════════════════════════════════════════════
   10X TALENT DESIGN SYSTEM — Shared Style Reference
   ══════════════════════════════════════════════════════════════

   This file is the single source of truth for all 10X Talent pages.
   Every page imports this via @import into its own page CSS file.

   Sections:
     1.  Font import (IBM Plex Sans)
     2.  Color palette (CSS custom properties)
     3.  Base .tenx-page wrapper
     4.  Reusable components:
         7a. Card
         7b. Sidebar Section
         7c. Buttons (primary, dark, success, ghost, outline, link)
         7d. Inputs (input, textarea, select)
         7e. Badges & Chips
         7f. Tabs
         7g. List Row
         7h. Avatar
         7i. Modal / Overlay
         7j. Progress Bar
         7k. Empty State
         7l. Scrollbar
     5.  Layout patterns
     6.  Animations
     7.  Responsive breakpoints

     10X TALENT EXTENSIONS (below the design system):
     E1. Status badges for IDP workflow states
     E2. Proficiency selector (1-5 dots)
     E3. Competency rating row
     E4. Skill gap indicator
     E5. Section header with collapsible toggle
     E6. Sticky action bar (Save / Submit footer)
   ══════════════════════════════════════════════════════════════ */


/* ┌──────────────────────────────────────────────────────────┐
   │  1. FONT                                                 │
   └──────────────────────────────────────────────────────────┘ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');


/* ┌──────────────────────────────────────────────────────────┐
   │  2. COLOR PALETTE — CSS CUSTOM PROPERTIES                │
   └──────────────────────────────────────────────────────────┘ */

.tenx-page {
    /* Primary (Blue) — consume --tx-* with same-hex fallbacks (flag-off = pixel-identical) */
    --tenx-primary-50:  var(--tx-accent-soft, #ECEEFB);
    --tenx-primary-100: var(--tx-accent-soft, #E0E4F5); /* TODO tx-migration: verify shade */
    --tenx-primary-200: var(--tx-hairline-strong, #D7DCF5); /* TODO tx-migration: verify shade */
    --tenx-primary-500: #8B7CD8; /* TODO tx-migration: verify shade — no direct --tx-* analog */
    --tenx-primary-600: var(--tx-accent, #6171C9);
    --tenx-primary-700: var(--tx-accent-hover, #454B7C); /* TODO tx-migration: verify shade */
    --tenx-primary-900: var(--tx-ink, #0f172a);

    /* Neutral (Slate) */
    --tenx-gray-50:  var(--tx-surface-2, #f8fafc);
    --tenx-gray-100: var(--tx-hairline, #f1f5f9);
    --tenx-gray-200: var(--tx-hairline, #e2e8f0);
    --tenx-gray-300: var(--tx-hairline-strong, #cbd5e1);
    --tenx-gray-400: var(--tx-ink-faint, #94a3b8);
    --tenx-gray-500: var(--tx-ink-faint, #64748b);
    --tenx-gray-600: var(--tx-ink-dim, #475569);
    --tenx-gray-700: var(--tx-ink-dim, #334155);
    --tenx-gray-900: var(--tx-ink, #0f172a);

    /* Semantic */
    --tenx-success: var(--tx-ok, #059669);
    --tenx-success-light: var(--tx-ok-soft, #ecfdf5);
    --tenx-danger: var(--tx-danger, #e11d48);
    --tenx-danger-light: var(--tx-danger-soft, #fff1f2);
    --tenx-warning: var(--tx-warn, #d97706);
    --tenx-warning-light: var(--tx-warn-soft, #fffbeb);
    --tenx-holiday: #16a34a; /* TODO tx-migration: no direct --tx-* analog */
    --tenx-holiday-light: #dcfce7; /* TODO tx-migration: no direct --tx-* analog */

    /* Backgrounds */
    --tenx-page-bg: var(--tx-bg, #f7f8fa);
    --tenx-card-bg: var(--tx-surface, #fff);
}


/* ┌──────────────────────────────────────────────────────────┐
   │  3. BASE PAGE WRAPPER                                    │
   └──────────────────────────────────────────────────────────┘ */

.tenx-page,
.tenx-page * {
    font-family: var(--tx-font-sans, 'IBM Plex Sans', system-ui, -apple-system, sans-serif);
    box-sizing: border-box;
}

.tenx-page {
    color: var(--tenx-gray-900);
    background: var(--tenx-page-bg);
    min-height: 100%;
}


/* ┌──────────────────────────────────────────────────────────┐
   │  7a. Card                                                │
   └──────────────────────────────────────────────────────────┘ */

.tenx-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.03);
    transition: all 0.25s ease;
}
.tenx-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}
.tenx-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.tenx-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--tx-ink, #0f172a);
    margin: 0;
}


/* ┌──────────────────────────────────────────────────────────┐
   │  7b. Sidebar Section                                     │
   └──────────────────────────────────────────────────────────┘ */

.tenx-sb-section {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
}
.tenx-sb-section:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.tenx-sb-section-title {
    font-size: 0.96875rem;
    font-weight: 700;
    color: var(--tx-ink, #0f172a);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}


/* ┌──────────────────────────────────────────────────────────┐
   │  7c. Buttons                                             │
   └──────────────────────────────────────────────────────────┘ */

.tenx-btn-primary {
    background: linear-gradient(135deg, var(--tx-accent, #6171C9), #8B7CD8);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 9px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(97, 113, 201,0.25);
    transition: all 0.2s ease;
}
.tenx-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(97, 113, 201,0.35);
}
.tenx-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.tenx-btn-dark {
    background: linear-gradient(135deg, #0f172a, #454B7C);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 9px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
}
.tenx-btn-dark:hover {
    box-shadow: 0 6px 18px rgba(15,23,42,0.15);
    transform: translateY(-1px);
}

.tenx-btn-success {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 5px 12px;
    font-size: 0.84375rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}
.tenx-btn-success:hover {
    transform: scale(1.04);
    box-shadow: 0 3px 10px rgba(5,150,105,0.2);
}

.tenx-btn-ghost {
    background: #fff;
    color: #64748b;
    border: 1px solid #eef0f2;
    border-radius: 7px;
    padding: 5px 12px;
    font-size: 0.84375rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}
.tenx-btn-ghost:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.tenx-btn-outline {
    background: transparent;
    border: 1px solid #eef0f2;
    border-radius: 10px;
    padding: 8px 16px;
    color: var(--tx-accent, #6171C9);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
}
.tenx-btn-outline:hover {
    background: #ECEEFB;
    border-color: #D7DCF5;
}

.tenx-btn-link {
    background: transparent;
    border: none;
    color: var(--tx-accent, #6171C9);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}
.tenx-btn-link:hover {
    text-decoration: underline;
}


/* ┌──────────────────────────────────────────────────────────┐
   │  7d. Inputs                                              │
   └──────────────────────────────────────────────────────────┘ */

.tenx-input {
    width: 100%;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 0 14px;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--tx-ink, #0f172a);
    background: #f8fafc;
    outline: none;
    transition: all 0.2s ease;
}
.tenx-input:focus {
    border-color: var(--tx-accent, #6171C9);
    box-shadow: 0 0 0 3px rgba(97, 113, 201,0.08);
    background: #fff;
}

.tenx-textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--tx-ink, #0f172a);
    resize: vertical;
    outline: none;
    transition: all 0.2s ease;
}
.tenx-textarea:focus {
    background: #fff;
    border-color: var(--tx-accent, #6171C9);
    box-shadow: 0 0 0 3px rgba(97, 113, 201,0.08);
}

.tenx-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--tx-ink, #0f172a);
    background: #f8fafc;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s ease;
    appearance: auto;
}
.tenx-select:focus {
    border-color: var(--tx-accent, #6171C9);
    box-shadow: 0 0 0 2px rgba(97, 113, 201,0.08);
}


/* ┌──────────────────────────────────────────────────────────┐
   │  7e. Badges & Chips                                      │
   └──────────────────────────────────────────────────────────┘ */

.tenx-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
}
.tenx-badge-blue  { background: #ECEEFB; color: #454B7C; }
.tenx-badge-green { background: #ecfdf5; color: #059669; }
.tenx-badge-red   { background: #fff1f2; color: #e11d48; }
.tenx-badge-amber { background: #fffbeb; color: #d97706; }
.tenx-badge-gray  { background: #f1f5f9; color: #64748b; }

.tenx-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
}


/* ┌──────────────────────────────────────────────────────────┐
   │  7f. Tabs                                                │
   └──────────────────────────────────────────────────────────┘ */

.tenx-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 10px;
    margin-bottom: 14px;
    overflow-x: auto;
}
.tenx-tabs::-webkit-scrollbar { height: 0; }
.tenx-tab {
    padding: 7px 14px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: all 0.2s ease;
}
.tenx-tab:hover {
    background: rgba(255,255,255,0.6);
    color: var(--tx-ink, #0f172a);
}
.tenx-tab.active {
    background: #fff;
    color: var(--tx-accent, #6171C9);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.tenx-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #e2e8f0;
    font-size: 0.625rem;
    font-weight: 700;
    color: #64748b;
    margin-left: 4px;
}
.tenx-tab.active .tenx-tab-count {
    background: #E0E4F5;
    color: var(--tx-accent, #6171C9);
}


/* ┌──────────────────────────────────────────────────────────┐
   │  7g. List Row                                            │
   └──────────────────────────────────────────────────────────┘ */

.tenx-list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e8ecf1;
    transition: all 0.18s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.tenx-list-row:hover {
    background: #f7f8fa;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.tenx-list-row + .tenx-list-row {
    margin-top: 8px;
}


/* ┌──────────────────────────────────────────────────────────┐
   │  7h. Avatar                                              │
   └──────────────────────────────────────────────────────────┘ */

.tenx-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #454B7C, #8B7CD8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}
.tenx-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.tenx-avatar-sm { width: 28px; height: 28px; font-size: 0.6875rem; }
.tenx-avatar-lg { width: 48px; height: 48px; font-size: 1.125rem; }
.tenx-avatar-xl { width: 86px; height: 86px; font-size: 2rem; border-radius: 20px; }

.tenx-avatar-sq {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #454B7C, #8B7CD8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}


/* ┌──────────────────────────────────────────────────────────┐
   │  7i. Modal / Overlay                                     │
   └──────────────────────────────────────────────────────────┘ */

.tenx-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 16px;
}
.tenx-overlay.show {
    opacity: 1;
    visibility: visible;
}
.tenx-modal {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.tenx-overlay.show .tenx-modal {
    transform: scale(1) translateY(0);
}
.tenx-modal-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--tx-accent, #6171C9), #8B7CD8);
    color: #fff;
}
.tenx-modal-title {
    font-size: 1rem;
    font-weight: 700;
}
.tenx-modal-body {
    padding: 20px;
}
.tenx-modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.tenx-modal-close {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
    flex-shrink: 0;
}
.tenx-modal-close:hover {
    background: rgba(255,255,255,0.35);
    transform: scale(1.1);
}


/* ┌──────────────────────────────────────────────────────────┐
   │  7j. Progress Bar                                        │
   └──────────────────────────────────────────────────────────┘ */

.tenx-progress-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #f1f5f9;
    overflow: hidden;
}
.tenx-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--tx-accent, #6171C9), #60a5fa);
    transition: width 1.5s cubic-bezier(0.16,1,0.3,1) 0.3s;
    width: 0;
}
.tenx-progress-fill.green {
    background: linear-gradient(90deg, #059669, #34d399);
}
.tenx-progress-fill.amber {
    background: linear-gradient(90deg, #d97706, #fbbf24);
}
.tenx-progress-fill.red {
    background: linear-gradient(90deg, #e11d48, #fb7185);
}


/* ┌──────────────────────────────────────────────────────────┐
   │  7k. Empty State                                         │
   └──────────────────────────────────────────────────────────┘ */

.tenx-empty {
    text-align: center;
    padding: 28px 20px;
    color: #64748b;
    font-size: 0.8125rem;
}
.tenx-empty svg {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    opacity: 0.3;
}


/* ┌──────────────────────────────────────────────────────────┐
   │  7l. Scrollbar                                           │
   └──────────────────────────────────────────────────────────┘ */

.tenx-scrollbar::-webkit-scrollbar { width: 3px; }
.tenx-scrollbar::-webkit-scrollbar-track { background: transparent; }
.tenx-scrollbar::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }

.tenx-scrollbar-wide::-webkit-scrollbar { width: 6px; }
.tenx-scrollbar-wide::-webkit-scrollbar-track { background: rgba(0,0,0,0.03); border-radius: 3px; }
.tenx-scrollbar-wide::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.tenx-scrollbar-wide::-webkit-scrollbar-thumb:hover { background: #94a3b8; }


/* ┌──────────────────────────────────────────────────────────┐
   │  8. LAYOUT PATTERNS                                      │
   └──────────────────────────────────────────────────────────┘ */

.tenx-layout {
    display: flex;
    flex: 1;
}
.tenx-layout-main {
    flex: 1;
    padding: 24px;
    min-width: 0;
}
.tenx-layout-sidebar {
    width: 350px;
    min-width: 350px;
    border-left: 1px solid #f1f3f5;
    background: linear-gradient(180deg, #fff, #fafbfc);
    padding: 20px 14px;
    overflow-y: auto;
    align-self: flex-start;
}

.tenx-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 22px;
}
.tenx-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}


/* ┌──────────────────────────────────────────────────────────┐
   │  9. ANIMATIONS                                           │
   └──────────────────────────────────────────────────────────┘ */

@keyframes tenxFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes tenxPopIn {
    from { opacity: 0; transform: scale(0.9) translateY(4px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes tenxLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.35; transform: scale(0.55); }
}
@keyframes tenxFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}
@keyframes tenxGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(225,29,72,0.25); }
    50%      { box-shadow: 0 0 0 5px rgba(225,29,72,0); }
}
@keyframes tenxMsgIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes tenxSpin {
    to { transform: rotate(360deg); }
}


/* ┌──────────────────────────────────────────────────────────┐
   │  10. RESPONSIVE BREAKPOINTS                              │
   └──────────────────────────────────────────────────────────┘ */

@media (max-width: 1024px) {
    .tenx-layout-sidebar { width: 300px; min-width: 300px; }
}
@media (max-width: 768px) {
    .tenx-layout { flex-direction: column; }
    .tenx-layout-sidebar {
        width: 100%;
        min-width: unset;
        border-left: none;
        border-top: 1px solid #f1f3f5;
    }
    .tenx-grid-2 { grid-template-columns: 1fr; }
    .tenx-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .tenx-layout-main { padding: 14px; }
    .tenx-card { padding: 14px; border-radius: 14px; }
}


/* ═══════════════════════════════════════════════════════════════════
   10X TALENT EXTENSIONS
   ═══════════════════════════════════════════════════════════════════
   Components specific to the talent management module. These build on
   the design system above — use the same tokens and visual language.

   SEMANTIC COLOR MAP
   ───────────────────
   Green  (#059669 / #ecfdf5)  — success, completed, matched, low gap (≤30%)
   Amber  (#d97706 / #fffbeb)  — in-progress, attention, medium gap (31–50%)
   Red    (#e11d48 / #fff1f2)  — blocked, cancelled, poor gap (>50%)
   Blue   (#454B7C / #ECEEFB)  — neutral/informational, self-assessment, functional
   Gray   (#64748b / #f1f5f9)  — draft, not started, default/other
   Purple (#7c3aed / #f3e8ff)  — special context (manager mode, leadership)

   BADGE USAGE
   ───────────
   Status:     Draft=gray, Self-Assessment=blue, Manager Review=amber,
               Finalized=green, Cancelled=red
   Category:   Functional=blue, Behavioural=amber, Leadership=purple, Other=gray
   Timeline:   plain text (no badge color — position conveys meaning)
   Dev status: Not Started=gray, In Progress=blue, Completed=green
   Gap chips:  ≤30%=green, 31–50%=amber, >50%=red (inline-styled)
   Level band: blue (informational)
   Manager:    purple ("Reviewing as Manager")
   ═══════════════════════════════════════════════════════════════════ */


/* ┌──────────────────────────────────────────────────────────┐
   │  E1. Status Badges — IDP Workflow States                 │
   └──────────────────────────────────────────────────────────┘ */

.tenx-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.1px;
}
.tenx-status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.tenx-status-draft             { background: #f1f5f9; color: #64748b; }
.tenx-status-self-assessment   { background: #ECEEFB; color: #454B7C; }
.tenx-status-manager-review    { background: #fffbeb; color: #d97706; }
.tenx-status-finalized         { background: #ecfdf5; color: #059669; }
.tenx-status-cancelled         { background: #fff1f2; color: #e11d48; }


/* ┌──────────────────────────────────────────────────────────┐
   │  E2. Proficiency Selector — 1 to 5 dot rating            │
   └──────────────────────────────────────────────────────────┘ */

.tenx-proficiency {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tenx-proficiency-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    color: transparent;
    padding: 0;
    font-family: inherit;
}
.tenx-proficiency-dot:hover {
    border-color: #8B7CD8;
    transform: scale(1.15);
}
.tenx-proficiency-dot.active {
    background: linear-gradient(135deg, var(--tx-accent, #6171C9), #8B7CD8);
    border-color: var(--tx-accent, #6171C9);
    color: #fff;
    box-shadow: 0 2px 8px rgba(97, 113, 201,0.3);
}
.tenx-proficiency-dot.readonly {
    cursor: default;
}
.tenx-proficiency-dot.readonly:hover {
    transform: none;
}
.tenx-proficiency-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
    margin-left: 6px;
    min-width: 70px;
}


/* ┌──────────────────────────────────────────────────────────┐
   │  E3. Competency Rating Row                               │
   └──────────────────────────────────────────────────────────┘ */

.tenx-competency-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}
.tenx-competency-row:hover {
    border-color: #D7DCF5;
    box-shadow: 0 2px 8px rgba(97, 113, 201,0.05);
}
.tenx-competency-row.critical {
    border-left: 3px solid #d97706;
}
.tenx-competency-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tx-ink, #0f172a);
    display: flex;
    align-items: center;
    gap: 8px;
}
.tenx-competency-category {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #64748b;
}
.tenx-competency-category.functional { background: #ECEEFB; color: #454B7C; }
.tenx-competency-category.behavioural { background: #fef3c7; color: #92400e; }
.tenx-competency-category.leadership { background: #f3e8ff; color: #7c3aed; }
.tenx-competency-category.other { background: #f1f5f9; color: #64748b; }


/* ┌──────────────────────────────────────────────────────────┐
   │  E4. Skill Gap Indicator                                 │
   └──────────────────────────────────────────────────────────┘ */

.tenx-skill-gap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.tenx-skill-gap-value {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
}
.tenx-skill-gap-value.good   { color: #059669; }
.tenx-skill-gap-value.medium { color: #d97706; }
.tenx-skill-gap-value.poor   { color: #e11d48; }
.tenx-skill-gap-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tenx-skill-gap-bar {
    flex: 1;
}


/* ┌──────────────────────────────────────────────────────────┐
   │  E5. Section Header                                      │
   └──────────────────────────────────────────────────────────┘ */

.tenx-section {
    margin-bottom: 22px;
}
.tenx-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}
.tenx-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tx-ink, #0f172a);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tenx-section-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
    font-weight: 500;
}


/* ┌──────────────────────────────────────────────────────────┐
   │  E6. Sticky Action Bar (Save / Submit Footer)            │
   └──────────────────────────────────────────────────────────┘ */

.tenx-action-bar {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.05);
    margin-top: 24px;
    z-index: 100;
}
.tenx-action-bar-status {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}
.tenx-action-bar-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
}


/* ┌──────────────────────────────────────────────────────────┐
   │  E7. Spinner                                             │
   └──────────────────────────────────────────────────────────┘ */

.tenx-spinner {
    width: 56px;
    height: 26px;
    background: url("/assets/hrms/images/10x-mark.png") center / contain no-repeat;
    animation: tenxMarkPulse 1.4s ease-in-out infinite;
}
.tenx-spinner-sm {
    width: 40px;
    height: 18px;
    animation-duration: 1.2s;
}
.tenx-ai-mark {
    display: inline-block;
    width: 28px;
    height: 14px;
    background: url("/assets/hrms/images/10x-mark.png") center / contain no-repeat;
    vertical-align: middle;
}
.tenx-ai-mark.pulse { animation: tenxMarkPulse 1.4s ease-in-out infinite; }
.tenx-ai-mark.sm { width: 22px; height: 12px; }
.tenx-ai-mark.lg { width: 44px; height: 22px; }
@keyframes tenxMarkPulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%      { opacity: .55; transform: scale(.92); }
}


/* ┌──────────────────────────────────────────────────────────┐
   │  E8. Toast Notifications                                 │
   └──────────────────────────────────────────────────────────┘ */

.tenx-toast {
    position: fixed;
    top: 80px;
    right: 24px;
    padding: 14px 20px;
    background: #fff;
    border-radius: 12px;
    border-left: 4px solid var(--tx-accent, #6171C9);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tx-ink, #0f172a);
    z-index: 10001;
    animation: tenxPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 360px;
}
.tenx-toast.success { border-left-color: #059669; }
.tenx-toast.error   { border-left-color: #e11d48; }
.tenx-toast.warning { border-left-color: #d97706; }

/* Link-field (awesomplete) dropdown — opaque overlay so it doesn't bleed into
   the fields/sections below it on the SPA forms. */
.tenx-page .awesomplete { position: relative; }
.tenx-page .awesomplete > ul {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1050;
    margin: 4px 0 0;
    padding: 4px;
    list-style: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
    max-height: 320px;
    overflow-y: auto;
}
.tenx-page .awesomplete > ul:empty { display: none; }
.tenx-page .awesomplete > ul > li {
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}
.tenx-page .awesomplete > ul > li:hover,
.tenx-page .awesomplete > ul > li[aria-selected="true"] {
    background: #f1f5f9;
}
.tenx-page .awesomplete mark { background: #fde68a; color: inherit; }


/* ┌──────────────────────────────────────────────────────────┐
   │  11. SMOOTH NAVIGATION / MICRO-INTERACTIONS              │
   │  Shared across every recruitment SPA form + list (they   │
   │  all use .tenx-page / .tenx-card). Keep it subtle + fast  │
   │  so navigation feels smooth, never laggy.                 │
   └──────────────────────────────────────────────────────────┘ */

/* Content fades + rises in on each (re)render — turns the abrupt full-rerender
   on navigation into a smooth entrance. Cards are recreated every render, so the
   animation replays on each page change. */
.tenx-page .tenx-card {
    animation: tenxFadeUp 0.24s ease both;
}
/* Gentle stagger for the first few cards so the page assembles top-down. */
.tenx-page .tenx-card:nth-child(1) { animation-delay: 0.00s; }
.tenx-page .tenx-card:nth-child(2) { animation-delay: 0.03s; }
.tenx-page .tenx-card:nth-child(3) { animation-delay: 0.06s; }
.tenx-page .tenx-card:nth-child(4) { animation-delay: 0.09s; }

/* Tab panes ease in when switched. */
.tenx-page [class*="tabpane"] {
    animation: tenxFadeUp 0.2s ease both;
}

/* Container / section cards are NOT clickable — don't lift+shadow on hover (that
   made sections jump as the mouse crossed them while filling a form, which reads
   as jittery). Keep the lift only on genuinely interactive cards (.tenx-sc-card
   hub tiles keep their own hover). */
.tenx-page .tenx-card[class*="-section"]:hover,
.tenx-page .tenx-card[class*="-shell"]:hover,
.tenx-page .tenx-card[class*="-root"]:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.03);
}

/* Form controls: smooth focus (border/shadow/bg) instead of an instant snap. */
.tenx-page input,
.tenx-page select,
.tenx-page textarea,
.tenx-page .ql-editor {
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

/* Tactile press feedback on the shared buttons. */
.tenx-btn-primary:active,
.tenx-btn-dark:active,
.tenx-btn-success:active,
.tenx-btn-ghost:active,
.tenx-btn:active {
    transform: translateY(1px) scale(0.99);
}

/* List rows: smooth hover highlight. */
.tenx-page tbody tr {
    transition: background-color 0.12s ease;
}

/* Smooth in-page scrolling (anchor jumps, scrollIntoView on errors, etc.). */
.tenx-page { scroll-behavior: smooth; }

/* Accessibility + anti-jank: honour reduced-motion — kill animations/transitions
   for users who ask for it (and avoids motion on low-power devices). */
@media (prefers-reduced-motion: reduce) {
    .tenx-page,
    .tenx-page * {
        animation-duration: 0.001ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}


/* End of tenx_design_system.css */
/* ── Option dropdowns (Autocomplete / Link) must float above following form
   cards. Frappe's awesomplete list defaults to a low z-index, and .tenx-card's
   hover transform creates a stacking context that traps it. Raise the list, and
   lift the whole card while a field inside it is focused so its open dropdown is
   never covered by the next card. */
.awesomplete > ul {
    z-index: 1050;
}
.tenx-card:focus-within {
    position: relative;
    z-index: 30;
}
