/* =========================================================
   Remote Personnel – production candidate card
   Brand: #150E56 navy | #7B113A maroon | #a2c579 green
   Layout: sidebar | details + career | footer CTAs
   ========================================================= */

.top_candidates {
    --rp-navy: #150E56;
    --rp-navy-hover: #0f0a42;
    --rp-maroon: #7B113A;
    --rp-maroon-hover: #5e0d2c;
    --rp-green: #a2c579;
    --rp-green-hover: #8fb563;
    --rp-surface: #f6f7fb;
    --rp-surface-2: #eef0f7;
    --rp-border: #e2e5ef;
    --rp-text: #2a2f38;
    --rp-muted: #6b7280;
    --rp-label: #4a5568;
    --rp-accent: #506E96;
}

.top_candidates .imgCircle {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.top_candidates #lvCandidatestbl.tc-results,
.top_candidates #tblcandidates.tc-results {
    width: 100%;
    margin-top: 0;
    padding: 0;
}

.top_candidates #lvCandidatestbl .tc-result-item,
.top_candidates #tblcandidates .tc-result-item {
    margin-bottom: 12px;
}

/* ----- Card shell ----- */
.top_candidates .tc-card {
    border: 1px solid var(--rp-border);
    border-radius: 8px;
    margin-bottom: 0;
    background: #fff;
    overflow: visible;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(21, 14, 86, 0.07);
}

.top_candidates .tc-card:hover {
    border-color: var(--rp-navy);
    box-shadow: 0 4px 14px rgba(21, 14, 86, 0.12);
}

.top_candidates .tc-card-inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
}

/* ----- Left sidebar: photo, rating, skills ----- */
.top_candidates .tc-sidebar {
    width: 148px;
    min-width: 148px;
    padding: 12px 8px 8px;
    box-sizing: border-box;
    text-align: center;
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    background: var(--rp-surface);
    border-right: 1px solid var(--rp-border);
}

.top_candidates .tc-photo-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 104px;
    margin: 8px auto 0;
    flex-shrink: 0;
    padding-top: 0;
}

.top_candidates .tc-photo-wrap .Docs_Span.Docs_Counter,
.top_candidates .tc-card .tc-photo-wrap .Docs_Span.Docs_Counter {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: 0 !important;
    transform: translate(-50%, -35%) !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 28px;
    height: auto !important;
    min-height: 20px;
    border-radius: 999px !important;
    padding: 3px 10px !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;
    background: var(--rp-maroon) !important;
    box-shadow: 0 2px 8px rgba(123, 17, 58, 0.4);
    white-space: nowrap;
    overflow: visible !important;
    z-index: 5 !important;
    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: 3px solid #fff;
    box-shadow:
        0 0 0 2px rgba(21, 14, 86, 0.18),
        0 4px 12px rgba(21, 14, 86, 0.12);
}

.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: 6px;
    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 — desktop: vertical column + vertical scroller */
.top_candidates .clsCndSkills {
    text-align: center;
    margin: 4px 0 0;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    word-break: normal;
    width: 100%;
    box-sizing: border-box;
    padding: 0 2px 2px;
}

.top_candidates .clsCndSkills > strong {
    display: block;
    text-align: center;
    margin: 0 0 6px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
    color: var(--rp-navy) !important;
    flex-shrink: 0;
}

.top_candidates .clsCndSkills .skills-list {
    list-style: none;
    padding: 0 2px 4px 0;
    margin: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 5px;
    min-height: 0;
    /* Cap height so overflow creates a real vertical scroller */
    max-height: 240px;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #9aa3b5 var(--rp-surface-2);
}

.top_candidates .clsCndSkills .skills-list::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.top_candidates .clsCndSkills .skills-list::-webkit-scrollbar-track {
    background: var(--rp-surface-2);
    border-radius: 4px;
}

.top_candidates .clsCndSkills .skills-list::-webkit-scrollbar-thumb {
    background: #9aa3b5;
    border-radius: 4px;
}

.top_candidates .clsCndSkills .skills-list::-webkit-scrollbar-thumb:hover {
    background: #7a8499;
}

.top_candidates .clsCndSkills .skills-list li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 4px 8px;
    margin: 0;
    font-size: 10px;
    font-weight: 600;
    color: var(--rp-navy);
    line-height: 1.25;
    white-space: normal;
    word-break: break-word;
    border: 1px solid rgba(21, 14, 86, 0.12);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(21, 14, 86, 0.04);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.top_candidates .clsCndSkills .skills-list li:hover {
    background: var(--rp-surface-2);
    border-color: rgba(21, 14, 86, 0.22);
}

/* ----- Main: details + career ----- */
.top_candidates .tc-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.top_candidates .tc-content {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    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;
    align-self: stretch;
}

/* Attractive header: meta row (ID + Remote) + job title + industry */
.top_candidates .tc-header {
    background: linear-gradient(135deg, #eceef8 0%, #f6f7fb 50%, #ffffff 100%);
    padding: 10px 12px;
    color: var(--rp-text);
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid var(--rp-border);
    border-left: 4px solid var(--rp-navy);
    position: relative;
}

.top_candidates .tc-header-meta,
.top_candidates .tc-header-id {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.top_candidates .tc-id-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--rp-navy);
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(21, 14, 86, 0.25);
}

.top_candidates .tc-remote-tag {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(123, 17, 58, 0.1);
    color: var(--rp-maroon) !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.top_candidates .tc-header-job {
    font-size: 16px;
    font-weight: 700;
    color: var(--rp-navy);
    line-height: 1.25;
    word-break: break-word;
}

.top_candidates .tc-header-job .tc-remote-tag {
    display: none; /* Remote lives in meta row */
}

.top_candidates .tc-header-industry {
    font-size: 12px;
    font-weight: 500;
    color: var(--rp-muted);
    line-height: 1.35;
    word-break: break-word;
}

.top_candidates .tc-header label {
    display: none;
}

.top_candidates .tc-details {
    width: 100%;
    padding: 8px 12px 10px;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1.35;
    color: var(--rp-text);
    word-break: normal;
    overflow-wrap: anywhere;
    display: block;
}

.top_candidates .tc-details > div {
    display: grid;
    grid-template-columns: minmax(110px, 42%) 1fr;
    align-items: baseline;
    column-gap: 10px;
    row-gap: 0;
    margin-bottom: 0;
    padding: 4px 8px;
    border-radius: 4px;
}

.top_candidates .tc-details > div:nth-child(odd) {
    background: rgba(21, 14, 86, 0.03);
}

.top_candidates .tc-details > div:last-child {
    margin-bottom: 0;
}

.top_candidates .tc-details > div#prop_description {
    display: block;
    grid-template-columns: none;
    background: transparent;
    padding: 6px 8px 0;
}

.top_candidates .tc-details label {
    color: var(--rp-label);
    margin-right: 0;
    font-weight: 600;
    white-space: nowrap;
}

.top_candidates .tc-details > div > :not(label) {
    min-width: 0;
}

.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;
}

/* Career History column — stretch to card bottom */
.top_candidates .tc-career {
    width: 50%;
    padding: 0;
    border-left: 1px solid var(--rp-border);
    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: 10px 8px;
    color: #fff;
    background: var(--rp-navy);
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    border-radius: 0;
}

.top_candidates .tc-career-cols {
    display: flex;
    font-weight: 600;
    border-bottom: 1px solid var(--rp-border);
    padding: 7px 8px;
    color: var(--rp-navy);
    background: var(--rp-surface);
    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: none;
    height: 100%;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: #9aa3b5 var(--rp-surface-2);
}

.top_candidates .tc-career-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.top_candidates .tc-career-scroll::-webkit-scrollbar-track {
    background: var(--rp-surface-2);
    border-radius: 4px;
}

.top_candidates .tc-career-scroll::-webkit-scrollbar-thumb {
    background: #9aa3b5;
    border-radius: 4px;
}

.top_candidates .tc-career-scroll::-webkit-scrollbar-thumb:hover {
    background: #7a8499;
}

.top_candidates .tc-career-row {
    display: flex;
    padding: 7px 8px;
    border-bottom: 1px solid #eef0f4;
    font-size: 12px;
    line-height: 1.4;
    color: var(--rp-text);
}

.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;
}

/* Empty career: do not stretch — kills unused white space */
.top_candidates .tc-career-empty {
    font-size: 12px;
    color: var(--rp-muted);
    padding: 10px 12px 14px;
    text-align: left;
    line-height: 1.4;
    flex: 0 0 auto;
    background: transparent;
    border-bottom: none;
    font-style: italic;
}

/* Compact empty career: less dead white next to details */
.top_candidates .tc-career.tc-career-is-empty,
.top_candidates .tc-career:has(.tc-career-empty) {
    width: 36%;
    max-width: 240px;
    min-height: 0;
    align-self: flex-start;
    background: linear-gradient(180deg, var(--rp-surface) 0%, #fff 100%);
}

.top_candidates .tc-career.tc-career-is-empty .tc-career-title,
.top_candidates .tc-career:has(.tc-career-empty) .tc-career-title {
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 10px 12px 0;
    border-bottom: none;
    color: var(--rp-muted);
    font-weight: 600;
}

.top_candidates .tc-career.tc-career-is-empty .tc-career-cols,
.top_candidates .tc-career.tc-career-is-empty .tc-career-scroll,
.top_candidates .tc-career:has(.tc-career-empty) .tc-career-cols,
.top_candidates .tc-career:has(.tc-career-empty) .tc-career-scroll {
    display: none !important;
}

.top_candidates .tc-career div[style*="display:flex"] > div {
    word-break: normal !important;
    overflow-wrap: break-word;
    min-width: 0;
}

/* ----- Footer actions — desktop: compact equal CTAs; mobile: equal flex fit ----- */
.top_candidates .tc-footer.tc-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border-top: 1px solid var(--rp-border);
    background: var(--rp-surface);
    margin-top: 0;
    min-height: 44px;
    min-width: 0;
    overflow: hidden;
}

.top_candidates .tc-actions > .tc-citizen-flag {
    flex: 0 0 auto;
    margin-right: auto;
}

.top_candidates .tc-actions > span:not([style*="display:none"]):not([style*="display: none"]) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    float: none !important;
    vertical-align: middle;
    line-height: 1;
    min-width: 0;
}

/* Desktop: wrappers hug button size (no stretch) */
.top_candidates .tc-actions > span:not(.tc-citizen-flag):not([style*="display:none"]):not([style*="display: none"]):not(#activeControl):not(#divunfavrit),
.top_candidates .tc-actions > a.button,
.top_candidates .tc-actions > a.rp-btn {
    flex: 0 0 auto;
    min-width: 0;
    width: auto;
}

.top_candidates .tc-actions > span[id*="activeControl2"],
.top_candidates .tc-actions > span[id*="nonactiveControl"],
.top_candidates .tc-actions > span#nonactiveControl,
.top_candidates .tc-actions > span#RequestSpanNotLoogedIn {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    display: inline-flex !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}

/* Hide leaked recruiter #hidstatus / inline display:none CTAs */
.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"],
.top_candidates .tc-actions > span.button[style*="display:none"],
.top_candidates .tc-actions > span.button.uniqueblue[style*="display:none"],
.top_candidates .tc-actions > span.button.uniqueblue[style*="display: none"],
.top_candidates .tc-actions > #hidstatus,
.top_candidates .tc-actions #hidstatus {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
    flex: 0 0 0 !important;
}

/* Desktop: small equal-width buttons */
.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:not([style*="display:none"]):not([style*="display: none"]),
.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,
.top_candidates .tc-actions a.rp-btn,
.top_candidates .tc-actions span.rp-btn {
    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 10px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    flex: 0 0 96px !important;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px !important;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fav icons only — never stretch like CTAs */
.top_candidates .tc-actions > span#activeControl,
.top_candidates .tc-actions > span#divunfavrit {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

/* Default uniqueblue = navy Request (overridden by rp-btn-*) */
.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: var(--rp-navy) !important;
    background-image: none !important;
    border: 1px solid var(--rp-navy) !important;
    color: #fff !important;
}

.top_candidates .tc-actions a.button.uniqueblue:hover,
.top_candidates .tc-actions span.button.uniqueblue:hover {
    background: var(--rp-navy-hover) !important;
    background-image: none !important;
    border-color: var(--rp-navy-hover) !important;
    color: #fff !important;
}

/* Distinct Remote CTAs */
.top_candidates .tc-actions a.rp-btn-profile,
.top_candidates .tc-actions a.rp-btn-profile:visited,
.top_candidates .tc-actions a.rp-btn-profile:link,
.top_candidates .tc-actions a.button.rp-btn-profile,
.top_candidates .tc-actions a.button.uniqueblue.rp-btn-profile {
    background: var(--rp-maroon) !important;
    background-image: none !important;
    border: 1px solid var(--rp-maroon) !important;
    color: #fff !important;
}

.top_candidates .tc-actions a.rp-btn-profile:hover,
.top_candidates .tc-actions a.button.rp-btn-profile:hover,
.top_candidates .tc-actions a.button.uniqueblue.rp-btn-profile:hover {
    background: var(--rp-maroon-hover) !important;
    border-color: var(--rp-maroon-hover) !important;
    color: #fff !important;
}

.top_candidates .tc-actions a.rp-btn-request,
.top_candidates .tc-actions a.rp-btn-request:visited,
.top_candidates .tc-actions a.rp-btn-request:link,
.top_candidates .tc-actions a.button.rp-btn-request,
.top_candidates .tc-actions a.button.uniqueblue.rp-btn-request {
    background: var(--rp-navy) !important;
    background-image: none !important;
    border: 1px solid var(--rp-navy) !important;
    color: #fff !important;
}

.top_candidates .tc-actions a.rp-btn-request:hover,
.top_candidates .tc-actions a.button.rp-btn-request:hover,
.top_candidates .tc-actions a.button.uniqueblue.rp-btn-request:hover {
    background: var(--rp-navy-hover) !important;
    border-color: var(--rp-navy-hover) !important;
    color: #fff !important;
}

.top_candidates .tc-actions a.rp-btn-enquiry,
.top_candidates .tc-actions a.rp-btn-enquiry:visited,
.top_candidates .tc-actions a.rp-btn-enquiry:link,
.top_candidates .tc-actions a.button.rp-btn-enquiry,
.top_candidates .tc-actions a.button.uniqueblue.rp-btn-enquiry {
    background: var(--rp-green) !important;
    background-image: none !important;
    border: 1px solid var(--rp-green) !important;
    color: #fff !important;
}

.top_candidates .tc-actions a.rp-btn-enquiry:hover,
.top_candidates .tc-actions a.button.rp-btn-enquiry:hover,
.top_candidates .tc-actions a.button.uniqueblue.rp-btn-enquiry:hover {
    background: var(--rp-green-hover) !important;
    border-color: var(--rp-green-hover) !important;
    color: #fff !important;
}

/* Recruiter Assign = green; Quick CV = navy; Full CV = maroon */
.top_candidates .tc-actions .book_buttonGreen,
.top_candidates .tc-actions a.book_buttonGreen,
.top_candidates .tc-actions span.book_buttonGreen {
    background: var(--rp-green) !important;
    background-image: none !important;
    border: 1px solid var(--rp-green) !important;
    color: #fff !important;
}

.top_candidates .tc-actions .book_buttonGreen:hover,
.top_candidates .tc-actions a.book_buttonGreen:hover,
.top_candidates .tc-actions span.book_buttonGreen:hover {
    background: var(--rp-green-hover) !important;
    border-color: var(--rp-green-hover) !important;
}

.top_candidates .tc-actions a.book_button:not(.BtnPDF):not(.btnPurple),
.top_candidates .tc-actions .book_button:not(.BtnPDF):not(.btnPurple) {
    background: var(--rp-navy) !important;
    background-image: none !important;
    border: 1px solid var(--rp-navy) !important;
    color: #fff !important;
}

.top_candidates .tc-actions a.book_button:not(.BtnPDF):not(.btnPurple):hover {
    background: var(--rp-navy-hover) !important;
    border-color: var(--rp-navy-hover) !important;
}

.top_candidates .tc-actions a.book_button.btnPurple {
    background: var(--rp-maroon) !important;
    border-color: var(--rp-maroon) !important;
    color: #fff !important;
}

.top_candidates .tc-actions a.book_button.btnPurple:hover {
    background: var(--rp-maroon-hover) !important;
    border-color: var(--rp-maroon-hover) !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;
    background: var(--rp-maroon) !important;
    border-color: var(--rp-maroon) !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;
        align-items: stretch;
    }

    .top_candidates .tc-sidebar {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        border-right: none;
        border-bottom: 1px solid var(--rp-border);
        text-align: center;
        padding: 12px 10px 10px;
        background: var(--rp-surface);
    }

    .top_candidates .tc-photo-wrap {
        flex-shrink: 0;
        margin-top: 6px;
    }

    /* Mobile/tablet: skills stay horizontal row scroller */
    .top_candidates .clsCndSkills {
        width: 100%;
        max-height: none;
        overflow: visible;
        text-align: left;
        margin-top: 2px;
        flex: none;
        display: block;
        padding: 0 2px;
    }

    .top_candidates .clsCndSkills > strong {
        margin-bottom: 6px;
    }

    .top_candidates .clsCndSkills .skills-list {
        display: flex !important;
        flex: none !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start;
        align-items: center;
        gap: 6px;
        width: 100%;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        padding: 0 0 6px;
        margin: 0;
        list-style: none;
    }

    .top_candidates .clsCndSkills .skills-list::-webkit-scrollbar {
        height: 6px;
        width: auto;
    }

    .top_candidates .clsCndSkills .skills-list li {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none;
        padding: 4px 10px !important;
        margin: 0 !important;
        border: 1px solid var(--rp-border) !important;
        border-radius: 999px;
        background: #fff;
        font-size: 11px !important;
        line-height: 1.3 !important;
        text-align: center;
        color: var(--rp-navy);
        white-space: nowrap !important;
    }

    .top_candidates .tc-main {
        width: 100%;
    }

    .top_candidates .tc-content {
        flex-direction: column;
        align-items: stretch;
    }

    .top_candidates .tc-left,
    .top_candidates .tc-career {
        width: 100%;
        border-left: none;
        padding: 0;
        align-self: stretch;
    }

    .top_candidates .tc-header {
        padding: 10px 12px;
        text-align: left;
        align-items: flex-start;
    }

    .top_candidates .tc-header-job {
        font-size: 16px;
    }

    .top_candidates .tc-details > div {
        grid-template-columns: minmax(110px, 42%) 1fr;
        column-gap: 10px;
        padding: 4px 8px;
    }

    .top_candidates .tc-details {
        padding: 8px 10px 10px;
    }

    .top_candidates .tc-career {
        padding: 0;
        border-top: 1px solid var(--rp-border);
        display: flex;
    }

    .top_candidates .tc-career.tc-career-is-empty,
    .top_candidates .tc-career:has(.tc-career-empty) {
        width: 100%;
        max-width: none;
    }

    .top_candidates .tc-career-scroll {
        flex: 1 1 auto !important;
        min-height: 0;
        max-height: 180px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .top_candidates .tc-footer.tc-actions {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 4px;
        padding: 8px 6px;
        overflow: hidden;
        min-width: 0;
    }

    .top_candidates .tc-actions > .tc-citizen-flag {
        margin-right: 4px;
    }

    .top_candidates .tc-actions > span:not(.tc-citizen-flag):not([style*="display:none"]):not([style*="display: none"]):not(#activeControl):not(#divunfavrit),
    .top_candidates .tc-actions > a.button,
    .top_candidates .tc-actions > a.rp-btn {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }

    .top_candidates .tc-actions > span#activeControl,
    .top_candidates .tc-actions > span#divunfavrit {
        flex: 0 0 auto !important;
        max-width: none !important;
    }

    .top_candidates .tc-actions > span[id*="activeControl2"] {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        gap: 4px;
    }

    .top_candidates .tc-actions > span[id*="nonactiveControl"] {
        flex: 2 1 0 !important;
        min-width: 0 !important;
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        gap: 4px;
    }

    .top_candidates .tc-actions a.button,
    .top_candidates .tc-actions a.button.uniqueblue,
    .top_candidates .tc-actions span.button.uniqueblue:not([style*="display:none"]),
    .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,
    .top_candidates .tc-actions a.rp-btn,
    .top_candidates .tc-actions span.rp-btn {
        width: 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 4px !important;
        flex: 1 1 0 !important;
        font-size: 11px !important;
    }

    .top_candidates .tc-actions > #hidstatus,
    .top_candidates .tc-actions #hidstatus {
        display: none !important;
    }

    /* Prevent label/value overlap on narrow cards */
    .top_candidates .tc-details label {
        white-space: normal;
    }
}

/* ----- Mobile ----- */
@media (max-width: 768px) {
    .top_candidates .tc-details > div {
        grid-template-columns: minmax(100px, 40%) 1fr;
        column-gap: 8px;
        row-gap: 0;
        padding: 4px 8px;
        margin-bottom: 0;
    }

    .top_candidates .tc-details label {
        white-space: normal;
        display: inline;
        margin-bottom: 0;
    }

    .top_candidates .tc-header-job {
        font-size: 16px;
    }

    .top_candidates .clsCndSkills .skills-list li {
        white-space: nowrap !important;
        max-width: none;
    }

    .top_candidates .tc-footer.tc-actions {
        flex-wrap: nowrap !important;
        justify-content: flex-start;
        align-items: center;
        gap: 4px;
        padding: 8px 4px;
        overflow: hidden;
        min-width: 0;
    }

    .top_candidates .tc-actions > .tc-citizen-flag {
        flex: 0 0 auto;
        margin-right: 2px;
        align-self: center;
    }

    .top_candidates .tc-actions > span[style*="display:none"],
    .top_candidates .tc-actions > span[style*="display: none"],
    .top_candidates .tc-actions > #hidstatus,
    .top_candidates .tc-actions #hidstatus {
        display: none !important;
    }

    .top_candidates .tc-actions > span:not(.tc-citizen-flag):not([style*="display:none"]):not([style*="display: none"]):not(#activeControl):not(#divunfavrit),
    .top_candidates .tc-actions > a.button,
    .top_candidates .tc-actions > a.rp-btn {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        text-align: center;
        gap: 4px;
    }

    .top_candidates .tc-actions > span#activeControl,
    .top_candidates .tc-actions > span#divunfavrit {
        flex: 0 0 auto !important;
    }

    .top_candidates .tc-actions > span[id*="activeControl2"] {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        gap: 4px;
    }

    .top_candidates .tc-actions > span[id*="nonactiveControl"] {
        flex: 2 1 0 !important;
        min-width: 0 !important;
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        gap: 4px;
    }

    .top_candidates .tc-actions a.button.uniqueblue,
    .top_candidates .tc-actions span.button.uniqueblue:not([style*="display:none"]),
    .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,
    .top_candidates .tc-actions a.rp-btn {
        display: inline-flex !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: 1 1 0 !important;
        box-sizing: border-box;
        text-align: center;
        justify-content: center;
        float: none !important;
        margin: 0 !important;
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
        padding: 0 3px !important;
        font-size: 10px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .top_candidates .tc-actions a.book_button.BtnPDF,
    .top_candidates .tc-actions a.book_button[id^="BtnPdf_"] {
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        padding: 0 !important;
        flex: 0 0 36px;
    }
}

/* ----- Recruiter footer extras ----- */
.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: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--rp-border);
    font-size: 12px;
    line-height: 1.5;
    color: var(--rp-text);
    word-break: normal;
    overflow-wrap: anywhere;
}

.top_candidates_rec .tc-card,
.personnel_search_rec .tc-card {
    clear: both;
}

/* Start 28-09-2026 - Citizen flag in card footer (left, SEO alt/title on img) */
.top_candidates .tc-citizen-flag,
.tc-citizen-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0 0;
    padding: 0;
    text-align: center;
    flex-shrink: 0;
    margin-right: auto;
}

.top_candidates .tc-citizen-flag .tc-citizen-flag-img,
.tc-citizen-flag .tc-citizen-flag-img,
img.tc-citizen-flag-img {
    display: inline-block;
    width: 40px;
    height: auto;
    max-width: 40px;
    border: 1px solid var(--rp-border);
    border-radius: 3px;
    vertical-align: middle;
}
/* End 28-09-2026 */
