/* =========================================================
   Top Candidates – professional candidate card
   Layout: sidebar | details + career | footer buttons
   ========================================================= */

.top_candidates .imgCircle {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.top_candidates #lvCandidatestbl.tc-results,
.top_candidates #tblcandidates.tc-results {
    width: 100%;
    margin-top: 16px;
}

.top_candidates #lvCandidatestbl .tc-result-item,
.top_candidates #tblcandidates .tc-result-item {
    margin-bottom: 20px;
}

/* ----- Card shell ----- */
.top_candidates .tc-card {
    border: 1px solid #d8dde6;
    border-radius: 4px;
    margin-bottom: 0;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(30, 50, 90, 0.08);
}

.top_candidates .tc-card:hover {
    border-color: #194174;
    box-shadow: 0 3px 10px rgba(25, 65, 116, 0.14);
}

.top_candidates .tc-card-inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    flex: 1;
    min-height: 0;
}

/* ----- Left sidebar: photo, rating, skills ----- */
.top_candidates .tc-sidebar {
    width: 148px;
    min-width: 148px;
    padding: 10px 10px 10px;
    box-sizing: border-box;
    text-align: center;
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fafbfc;
    border-right: 1px solid #eef0f4;
}

.top_candidates .tc-photo-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    margin: 0 auto;
    flex-shrink: 0;
}

.top_candidates .tc-photo-wrap .Docs_Span.Docs_Counter {
    position: static !important;
    left: auto !important;
    top: auto !important;
    margin: 0 0 4px 0 !important;
    width: auto !important;
    min-width: 28px;
    height: auto !important;
    min-height: 20px;
    border-radius: 10px !important;
    padding: 3px 8px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1.2 !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff !important;
    white-space: nowrap;
    overflow: visible !important;
    z-index: 2;
    cursor: pointer;
    box-sizing: border-box;
}

.top_candidates .tc-actions .Docs_Span.Docs_Counter[style*="display:none"],
.top_candidates .tc-actions .Docs_Span.Docs_Counter.tc-docs-hidden {
    display: none !important;
}

.top_candidates .tc-photo-wrap .imgCircle {
    display: block;
    margin: 0 auto;
    border-radius: 50%;
    border: 2px solid #e8ecf2;
}

.top_candidates .tc-rating-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    margin-top: 4px;
    min-height: 18px;
    width: auto !important;
}

.top_candidates .tc-rating-row .ys_box,
.top_candidates .tc-rating-row .no_box {
    float: none !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    max-width: 10px !important;
    position: static !important;
    top: auto !important;
    display: inline-block !important;
    border-radius: 50%;
}

.top_candidates .tc-rating-row img {
    display: inline-block !important;
    vertical-align: middle;
    max-width: 90px;
    max-height: 18px;
    width: auto !important;
    height: auto !important;
    flex-shrink: 0;
}

/* Skills */
.top_candidates .clsCndSkills {
    text-align: center;
    margin: 6px 0 0;
    flex: 1 1 0;
    min-height: 0;
    max-height: 160px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: auto;
    scrollbar-color: #6b7280 #e8ecf2;
    word-break: normal;
    width: 100%;
    box-sizing: border-box;
    padding: 0 6px 4px;
}

.top_candidates .clsCndSkills::-webkit-scrollbar {
    width: 10px;
}

.top_candidates .clsCndSkills::-webkit-scrollbar-track {
    background: #e8ecf2;
    border-radius: 4px;
}

.top_candidates .clsCndSkills::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 4px;
}

.top_candidates .clsCndSkills > strong {
    display: block;
    text-align: center;
    margin: 0 0 4px;
    font-size: 12px;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.top_candidates .clsCndSkills .skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-height: none;
}

.top_candidates .clsCndSkills .skills-list li {
    display: block;
    padding: 2px 0;
    font-size: 11px;
    color: #333;
    line-height: 1.35;
    word-break: break-word;
    border-bottom: 1px solid #f0f2f6;
}

.top_candidates .clsCndSkills .skills-list li:last-child {
    border-bottom: none;
}

/* ----- Main: details + career ----- */
.top_candidates .tc-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.top_candidates .tc-content {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-width: 0;
    min-height: 0;
    width: 100%;
}

.top_candidates .tc-left {
    width: 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.top_candidates .tc-header {
    background: #eef1f5;
    padding: 8px 12px;
    color: #333;
    display: block;
    border-bottom: 1px solid #e4e8ef;
}

.top_candidates .tc-header > div {
    margin-bottom: 1px;
    line-height: 1.25;
}

.top_candidates .tc-header > div:last-child {
    margin-bottom: 0;
}

.top_candidates .tc-header label {
    font-size: 12px;
    color: #506E96;
    margin-right: 6px;
    font-weight: 600;
}

.top_candidates .tc-header span {
    font-size: 12px;
    color: #2a2f38;
    word-break: break-word;
}

.top_candidates .tc-details {
    width: 100%;
    padding: 8px 12px 10px;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1.3;
    color: #333;
    word-break: normal;
    overflow-wrap: anywhere;
    display: block;
}

.top_candidates .tc-details > div {
    margin-bottom: 1px;
}

.top_candidates .tc-details > div:last-child {
    margin-bottom: 0;
}

.top_candidates .tc-details label {
    color: #6b7280;
    margin-right: 6px;
    font-weight: 500;
}

.top_candidates .tc-card .tc-header span,
.top_candidates .tc-card .tc-details,
.top_candidates .tc-card .tc-career {
    word-break: normal !important;
    overflow-wrap: anywhere;
}

.top_candidates .tc-card span,
.top_candidates .tc-card div {
    word-break: normal;
    overflow-wrap: anywhere;
    /*margin-top:5px;*/
}

/* Career History column */
.top_candidates .tc-career {
    width: 50%;
    padding: 0 12px 0 12px;
    border-left: 1px solid #e0e4ec;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    overflow: hidden;
}

.top_candidates .tc-career-title {
    font-weight: 700;
    padding: 11px 8px;
    color: #fff;
    background: #343e53;
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.top_candidates .tc-career-cols {
    display: flex;
    font-weight: 600;
    border-bottom: 1px solid #d8dde6;
    padding: 8px 6px;
    color: #625f5a;
    background: #f5f5f5;
    font-size: 11px;
    flex-shrink: 0;
}

.top_candidates .tc-career-cols .tc-col-job,
.top_candidates .tc-career-row .tc-col-job {
    flex: 4;
    min-width: 0;
    padding-right: 10px;
}

.top_candidates .tc-career-cols .tc-col-industry,
.top_candidates .tc-career-row .tc-col-industry {
    flex: 3;
    min-width: 0;
    padding-right: 10px;
}

.top_candidates .tc-career-cols .tc-col-date,
.top_candidates .tc-career-row .tc-col-date {
    flex: 3.5;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.top_candidates .tc-career-scroll {
    flex: 1 1 0;
    min-height: 0;
    max-height: 240px;
    overflow-y: auto !important;
    overflow-x: auto !important;
    scrollbar-width: auto;
    scrollbar-color: #6b7280 #e8ecf2;
}

.top_candidates .tc-career-scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.top_candidates .tc-career-scroll::-webkit-scrollbar-track {
    background: #e8ecf2;
    border-radius: 4px;
}

.top_candidates .tc-career-scroll::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 4px;
}

.top_candidates .tc-career-row {
    display: flex;
    padding: 8px 6px;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    line-height: 1.45;
    color: #333;
}

.top_candidates .tc-career-row:last-child {
    border-bottom: none;
}

.top_candidates .tc-career-row .tc-col-job,
.top_candidates .tc-career-row .tc-col-industry,
.top_candidates .tc-career-row .tc-col-date {
    word-break: normal;
    overflow-wrap: break-word;
}

.top_candidates .tc-career-empty {
    font-size: 12px;
    color: #888;
    padding: 18px 10px;
    text-align: center;
    line-height: 1.5;
    flex: 1 1 auto;
}

.top_candidates .tc-career div[style*="display:flex"] > div {
    word-break: normal !important;
    overflow-wrap: break-word;
    min-width: 0;
}

/* ----- Footer actions ----- */
.top_candidates .tc-footer.tc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border-top: 1px solid #e0e4ec;
    background: #f5f7fa;
    margin-top: auto;
    min-height: 56px;
}

.top_candidates .tc-actions > span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    float: none !important;
    margin: 0 !important;
    vertical-align: middle;
    line-height: 1;
}

.top_candidates .tc-actions > span[style*="display:none"],
.top_candidates .tc-actions > span[style*="display: none"],
.top_candidates .tc-actions > span[style*="display:none !important"],
.top_candidates .tc-actions > span[style*="display:none!important"] {
    display: none !important;
}

.top_candidates .tc-actions a.button,
.top_candidates .tc-actions a.button.uniqueblue,
.top_candidates .tc-actions a.button.uniqueblue:visited,
.top_candidates .tc-actions a.button.uniqueblue:link,
.top_candidates .tc-actions span.button.uniqueblue,
.top_candidates .tc-actions .book_button,
.top_candidates .tc-actions .book_buttonGreen,
.top_candidates .tc-actions a.book_button,
.top_candidates .tc-actions a.book_buttonGreen,
.top_candidates .tc-actions span.book_buttonGreen {
    float: none !important;
    margin: 0 !important;
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2 !important;
    vertical-align: middle;
    box-sizing: border-box;
    text-decoration: none !important;
    padding: 0 16px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px !important;
    cursor: pointer;
}

.top_candidates .tc-actions a.button.uniqueblue,
.top_candidates .tc-actions a.button.uniqueblue:visited,
.top_candidates .tc-actions a.button.uniqueblue:link,
.top_candidates .tc-actions span.button.uniqueblue {
    background: #1e5097 !important;
    background-image: none !important;
    border: 1px solid #1e5097 !important;
    color: #fff !important;
}

.top_candidates .tc-actions a.button.uniqueblue:hover,
.top_candidates .tc-actions span.button.uniqueblue:hover {
    background: #D64937 !important;
    background-image: none !important;
    border-color: #D14836 !important;
    color: #fff !important;
}

.top_candidates .tc-actions #nonactiveControl a.button,
.top_candidates .tc-actions #nonactiveControl a.button:hover,
.top_candidates .tc-actions #RequestSpanNotLoogedIn a.button,
.top_candidates .tc-actions #RequestSpanNotLoogedIn a.button:hover {
    color: #fff !important;
}

.top_candidates .tc-actions a.book_button.BtnPDF,
.top_candidates .tc-actions a.book_button[id^="BtnPdf_"] {
    min-width: 42px;
    width: 42px;
    padding: 0 !important;
}

.top_candidates .tc-actions .book_button span,
.top_candidates .tc-actions .book_button .label,
.top_candidates .tc-actions a.button .label {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: inherit !important;
    display: inline !important;
    color: inherit !important;
    background: none !important;
    border: none !important;
}

.top_candidates .tc-actions #imgfav,
.top_candidates .tc-actions #imgunfav {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    display: block;
    margin: 0 !important;
}

/* ----- Tablet ----- */
@media (max-width: 991px) {
    .top_candidates .tc-card-inner {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .top_candidates .tc-sidebar {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        border-right: none;
        border-bottom: 1px solid #eef0f4;
        text-align: center;
        padding: 14px 12px;
        background: #fafbfc;
    }

    .top_candidates .tc-photo-wrap {
        flex-shrink: 0;
    }

    .top_candidates .clsCndSkills {
        width: 100%;
        max-height: 140px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        text-align: center;
        margin-top: 4px;
        flex: none;
    }

    .top_candidates .clsCndSkills .skills-list {
        display: block;
        width: 100%;
        text-align: left;
        margin: 4px 0 0;
        padding: 0;
        list-style: none;
    }

    .top_candidates .clsCndSkills .skills-list li {
        display: block !important;
        width: 100% !important;
        padding: 2px 0;
        border-bottom: 1px solid #f0f2f6;
        font-size: 12px;
        line-height: 1.4;
        text-align: left;
    }

    .top_candidates .clsCndSkills .skills-list li::after {
        content: none;
    }

    .top_candidates .clsCndSkills .skills-list li:last-child::after {
        content: none;
    }

    .top_candidates .clsCndSkills .skills-list li:last-child {
        border-bottom: none;
    }

    .top_candidates .tc-main {
        width: 100%;
    }

    .top_candidates .tc-content {
        flex-direction: column;
    }

    .top_candidates .tc-left,
    .top_candidates .tc-career {
        width: 100%;
        border-left: none;
        padding: 0;
    }

    .top_candidates .tc-header {
        padding: 8px 12px;
    }

    .top_candidates .tc-details {
        padding: 8px 12px 10px;
    }

    .top_candidates .tc-career {
        padding: 12px 14px;
        border-top: 1px solid #eef0f4;
        display: block;
    }

    .top_candidates .tc-career-scroll {
        flex: none;
        max-height: 200px !important;
        overflow-y: auto !important;
    }

    .top_candidates .tc-footer.tc-actions {
        justify-content: flex-end;
    }
}

/* ----- Mobile ----- */
@media (max-width: 768px) {
    .top_candidates .tc-footer.tc-actions {
        justify-content: flex-end;
        gap: 8px;
        padding: 12px;
        flex-wrap: wrap;
    }

    .top_candidates .tc-actions > span[style*="display:none"] {
        display: none !important;
    }

    .top_candidates .tc-actions > span:not([style*="display:none"]) {
        flex: 0 0 auto;
        min-width: 0;
        text-align: center;
    }

    .top_candidates .tc-actions a.button.uniqueblue,
    .top_candidates .tc-actions span.button.uniqueblue,
    .top_candidates .tc-actions .book_button,
    .top_candidates .tc-actions .book_buttonGreen,
    .top_candidates .tc-actions a.book_button,
    .top_candidates .tc-actions a.book_buttonGreen,
    .top_candidates .tc-actions span.book_buttonGreen {
        display: inline-flex !important;
        width: auto !important;
        box-sizing: border-box;
        text-align: center;
        float: none !important;
        margin: 0 !important;
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        padding: 0 14px !important;
    }

    .top_candidates .tc-actions a.book_button.BtnPDF,
    .top_candidates .tc-actions a.book_button[id^="BtnPdf_"] {
        width: 42px !important;
        min-width: 42px !important;
        padding: 0 !important;
    }

    .top_candidates .tc-actions a.button.uniqueblue {
        background: #1e5097 !important;
        background-image: none !important;
        border: 1px solid #1e5097 !important;
        border-radius: 4px !important;
        color: #fff !important;
    }

    .top_candidates .tc-actions a.button.uniqueblue:hover {
        background: #D64937 !important;
        color: #fff !important;
    }
}

/* ----- Recruiter footer extras ----- */
.top_candidates .tc-actions a.book_button.btnPurple {
    background-color: purple !important;
    border-color: purple !important;
    color: #fff !important;
}

.top_candidates .tc-fav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 4px;
    min-height: 22px;
}

.top_candidates .tc-fav-row #imgfav,
.top_candidates .tc-fav-row #imgunfav {
    width: 22px;
    height: 22px;
}

.top_candidates .tc-details #prop_description {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef0f4;
    font-size: 12px;
    line-height: 1.55;
    color: #333;
    word-break: normal;
    overflow-wrap: anywhere;
}

.top_candidates_rec .tc-card,
.personnel_search_rec .tc-card {
    clear: both;
}
