HR-ATS-Portal/frontend/src/styles/candidate-workspace.css

186 lines
15 KiB
CSS

/* Candidate detail is a compact workspace that follows the app theme.
Previous / Next live in the page bar. There is no extra candidate list. */
.candidate-workspace .content { padding: 0 24px 28px; background: var(--bg); }
html[data-theme="dark"] .candidate-workspace .content { background: radial-gradient(ellipse at 50% 0, #0b29304d, transparent 58%), var(--bg); }
.candidate-workspace .cand-page { max-width: 1680px; margin-inline: auto; font-size: 13px; min-width: 0; }
.candidate-workspace .cand-page-bar { gap: 10px; min-height: 44px; margin: 0; padding-block: 8px; }
.candidate-workspace .cand-page-crumb { font-size: 12px; display: flex; align-items: center; min-width: 0; white-space: normal; overflow: visible; }
.candidate-workspace .cand-page-crumb span { margin: 0 8px; }
.candidate-workspace .cand-page-crumb strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.candidate-workspace .cand-page-actions { width: auto; margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.candidate-workspace .btn, .candidate-dialog .btn { min-height: 32px; padding: 5px 10px; border-radius: 7px; gap: 6px; font-size: 12px; font-weight: 500; box-shadow: none; white-space: nowrap; }
.candidate-workspace .btn-primary, .candidate-dialog .btn-primary { font-weight: 650; }
.candidate-workspace .btn-sm { min-height: 28px; padding: 4px 8px; font-size: 12px; }
.candidate-workspace .btn svg, .candidate-dialog .btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.candidate-workspace :where(button, a, input, select, textarea):focus-visible, .candidate-dialog :where(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.candidate-workspace button:disabled, .candidate-dialog button:disabled { cursor: not-allowed; opacity: .45; }
.candidate-workspace .star-btn.on { color: var(--primary); border-color: var(--primary-border); }
.cw-browse-nav { display: flex; align-items: center; gap: 4px; }
.cw-browse-arrow { width: 32px; padding: 5px; flex-shrink: 0; }
.cw-browse-counter { min-width: 52px; text-align: center; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.cw-hero { display: flex; gap: 16px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(110deg, var(--bg-elev), var(--bg-sunken) 70%, var(--bg-elev)); }
.cw-hero .cw-avatar { width: 56px; height: 56px; font-size: 20px; flex-shrink: 0; }
.cw-hero-body, .cw-identity { flex: 1; min-width: 0; }
.cw-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cw-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.cw-name h1 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.4px; font-weight: 650; overflow-wrap: anywhere; }
.cw-contact { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--text-3); font-size: 12px; }
.cw-contact > * { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.cw-contact a { color: var(--text-3); text-decoration: none; }
.cw-contact a:hover { color: var(--text); }
.cw-contact .cw-external, .cw-info a { color: var(--info); text-decoration: underline; text-underline-offset: 3px; }
.cw-contact svg { width: 14px; height: 14px; flex-shrink: 0; }
.cw-hero-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cw-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr)); gap: 12px 0; margin-top: 14px; }
.cw-hero, .cw-overview, .cw-card, .cw-column { min-width: 0; max-width: 100%; }
.cw-fact { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 12px; border-left: 1px solid var(--border); }
.cw-fact:first-child { border-left: 0; padding-left: 0; }
.cw-fact > svg { width: 16px; height: 16px; color: var(--text-3); flex-shrink: 0; }
.cw-fact span { display: block; color: var(--text-3); font-size: 11px; line-height: 1.3; margin-bottom: 2px; }
.cw-fact strong { font-size: 12px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.cw-tabs { min-width: 0; max-width: 100%; }
.cw-tabs .tabs { gap: 4px; margin-bottom: 12px; min-width: 0; max-width: 100%; }
.cw-tabs .tab { min-height: 42px; padding: 8px 14px; margin: 0; font-size: 12.5px; font-weight: 400; border-bottom-width: 2px; }
.cw-tabs .tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.cw-tabs .tab-count { background: var(--bg-sunken); color: var(--text-2); font-size: 11px; min-width: 16px; }
.cw-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr) minmax(0, .95fr); gap: 12px; align-items: start; }
.cw-column { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cw-card { min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: linear-gradient(120deg, var(--bg-elev), var(--bg-sunken) 90%); }
.cw-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.cw-card-head h2 { font-size: 13px; font-weight: 650; letter-spacing: -.1px; line-height: 1.3; margin: 0; }
.cw-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; white-space: nowrap; }
.cw-link svg { width: 14px; height: 14px; }
.cw-info { display: grid; gap: 10px; margin: 0; }
.cw-info > div { display: grid; grid-template-columns: minmax(108px, .9fr) minmax(0, 1.4fr); gap: 8px; line-height: 1.4; font-size: 12px; }
.cw-info dt { display: flex; align-items: flex-start; gap: 8px; color: var(--text-3); }
.cw-info dt svg { width: 14px; height: 14px; margin-top: 1px; flex-shrink: 0; }
.cw-info dd { margin: 0; overflow-wrap: anywhere; }
.cw-skills { display: flex; gap: 6px; flex-wrap: wrap; }
.cw-skills > span { padding: 4px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-sunken); color: var(--text-2); font-size: 11px; max-width: 100%; overflow-wrap: anywhere; }
.cw-table-wrap { overflow: auto; min-width: 0; max-width: 100%; }
.cw-applications { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.cw-applications th { color: var(--text-3); text-transform: uppercase; letter-spacing: .4px; font-size: 10px; font-weight: 500; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 7px 6px; white-space: nowrap; }
.cw-applications td { padding: 10px 6px; border-bottom: 1px solid var(--border); }
.cw-applications td:first-child, .cw-applications th:first-child { padding-left: 0; }
.cw-applications td:last-child, .cw-applications th:last-child { padding-right: 0; }
.cw-applications tr:last-child td { border-bottom: 0; }
.cw-applications td:nth-child(2) { color: var(--text-2); white-space: nowrap; }
.cw-applications strong { display: block; font-size: 12px; font-weight: 550; }
.cw-applications small { display: block; color: var(--text-3); font-size: 11px; margin-top: 3px; }
.cw-applications .badge { font-size: 11px; padding: 3px 7px; }
.cw-applications .is-current { background: linear-gradient(90deg, var(--primary-soft), transparent); }
.cw-summary { margin: 0; color: var(--text-2); font-size: 12.5px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.cw-summary p + p { margin-top: 8px; }
.cw-empty { color: var(--text-3); font-size: 12.5px; line-height: 1.6; margin: 0; }
.cw-document { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: linear-gradient(100deg, var(--bg-elev), var(--bg-sunken)); min-width: 0; }
.cw-document-icon { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 26px; height: 32px; background: linear-gradient(135deg, #ff7575, #df424d); border-radius: 4px; color: #fff; flex-shrink: 0; }
.cw-document-icon svg { width: 14px; height: 14px; }
.cw-document-icon small { font-size: 7px; line-height: 1.2; margin-top: 2px; }
.cw-document-name { flex: 1; min-width: 0; }
.cw-document-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; }
.cw-document-name small { display: block; color: var(--text-3); font-size: 11px; margin-top: 2px; }
.cw-document-actions { display: flex; gap: 6px; flex-shrink: 0; }
.cw-document-list { display: grid; gap: 8px; }
.candidate-workspace .cw-icon-label { width: 28px; font-size: 0; gap: 0; }
.cw-bottom-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; }
.cw-bottom-grid > .cw-card { align-self: start; }
.cw-rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cw-rating > span { font-size: 12px; color: var(--primary); }
.cw-rating .rating-stars .rs svg { width: 16px; height: 16px; }
.cw-recruiter { display: flex; align-items: center; gap: 10px; }
.cw-recruiter .avatar { width: 28px; height: 28px; font-size: 11px; }
.cw-recruiter strong { display: block; font-size: 12px; font-weight: 500; }
.cw-recruiter small { display: block; color: var(--text-3); font-size: 11px; margin-top: 2px; }
.cw-action-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.cw-action-grid .btn { font-size: 12px; justify-content: flex-start; padding: 7px 8px; white-space: normal; text-align: left; }
.candidate-workspace .cw-danger, .candidate-dialog .cw-danger { border: 1px solid var(--danger); color: var(--danger); background: var(--danger-soft); }
.candidate-workspace .cw-danger:hover:not(:disabled), .candidate-dialog .cw-danger:hover:not(:disabled) { background: var(--danger); color: var(--danger-fg); }
.cw-active-application { font-size: 12px; color: var(--text-3); margin: -2px 0 10px; }
.cw-status-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 8px; }
.cw-field-label { display: block; color: var(--text-3); font-size: 11px; margin-bottom: 4px; }
.cw-status-grid select, .cw-status-value { width: 100%; min-height: 34px; padding: 6px 8px; background: var(--bg-sunken); color: var(--text); border: 1px solid var(--border); border-radius: 7px; font-size: 12px; }
.cw-status-value { display: flex; align-items: center; gap: 8px; }
.cw-status-dot { width: 7px; height: 7px; background: var(--success); border-radius: 50%; flex-shrink: 0; }
.cw-status-dot.is-closed { background: var(--text-3); }
.cw-activity { list-style: none; margin: 0; padding: 0; }
.cw-activity li { position: relative; padding: 0 0 16px 22px; }
.cw-activity li:last-child { padding-bottom: 0; }
.cw-activity li::before { content: ''; position: absolute; left: 0; top: 4px; width: 9px; height: 9px; background: var(--info); border: 2px solid var(--bg-elev); border-radius: 50%; z-index: 1; }
.cw-activity li:not(:last-child)::after { content: ''; position: absolute; width: 1px; left: 4px; top: 14px; bottom: 2px; background: var(--border); }
.cw-activity-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cw-activity strong { font-size: 12px; font-weight: 550; }
.cw-activity time { color: var(--text-3); font-size: 11px; white-space: nowrap; }
.cw-activity p { color: var(--text-3); font-size: 12px; line-height: 1.55; margin: 4px 0 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cw-activity small { color: var(--text-3); font-size: 11px; }
.cw-screening { display: flex; align-items: center; gap: 14px; }
.cw-match { display: grid; justify-items: center; gap: 4px; flex-shrink: 0; }
.cw-match small { color: var(--text-3); font-size: 12px; }
.cw-tab-content { padding: 16px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; }
.candidate-dialog { border: 1px solid var(--border); width: min(620px, calc(100vw - 24px)); }
.candidate-dialog .form-field { margin-top: 16px; }
.candidate-dialog .empty-state { padding: 20px; }
.cw-dialog-actions { margin-top: 20px; display: flex; gap: 10px; justify-content: flex-end; }
.cw-muted { color: var(--text-3); }
/* Sidebar is 262px, so these fire at the same content width as a full-bleed 1279/900. */
@media (max-width: 1560px) {
.candidate-workspace .content { padding-inline: 18px; }
.candidate-workspace .topbar { padding-inline: 18px; }
.cw-overview { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.cw-column-info { grid-column: 1; grid-row: 1; }
.cw-column-main { grid-column: 2; grid-row: 1 / span 2; }
.cw-column-actions { grid-column: 1; grid-row: 2; }
.cw-hero-top { flex-wrap: wrap; }
.cw-hero-actions { margin-left: auto; }
.cw-bottom-grid { grid-template-columns: minmax(0, 1fr); }
.cw-bottom-grid > .cw-column { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
.cw-overview { display: flex; flex-direction: column; }
.cw-overview > * { width: 100%; min-width: 0; }
.cw-column-actions { order: 0; }
.cw-hero { flex-wrap: wrap; }
.cw-hero-actions { width: 100%; flex-wrap: wrap; }
.cand-page-actions .star-btn { width: 32px; padding: 5px; font-size: 0; gap: 0; }
.cand-page-actions .star-btn svg { width: 15px; height: 15px; }
}
@media (max-width: 767px) {
.candidate-workspace .content { padding: 0 12px 20px; }
.candidate-workspace .topbar { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
.candidate-workspace .topbar-search { order: 4; max-width: none; flex-basis: 100%; }
.candidate-workspace .topbar-actions { margin-left: 0; }
.candidate-workspace .topbar-divider, .candidate-workspace .profile-meta, .candidate-workspace .profile-btn .chev { display: none; }
.candidate-workspace .cand-page-bar { gap: 8px; padding-block: 6px; flex-wrap: wrap; }
.candidate-workspace .cand-page-crumb { flex: 1; min-width: 0; }
.candidate-workspace .cand-page-crumb .cw-crumb-path { display: none; }
.candidate-workspace .cand-page-actions { width: 100%; margin-left: 0; justify-content: flex-end; flex-wrap: nowrap; }
.candidate-workspace .cand-page-actions .btn { flex: 0 0 auto; }
.candidate-workspace .cand-page-crumb .btn { flex-shrink: 0; }
.cw-browse-nav { gap: 2px; }
.cw-browse-arrow { width: 30px; min-height: 30px; padding: 4px; }
.cw-browse-counter { min-width: 44px; font-size: 11px; }
.cw-hero { padding: 12px; gap: 12px; }
.cw-hero .cw-avatar { width: 44px; height: 44px; font-size: 16px; }
.cw-name h1 { font-size: 18px; }
.cw-hero-actions .btn { flex: 1 1 auto; justify-content: center; }
.cw-facts { margin-top: 8px; }
.cw-fact { border-left: 0; padding: 8px 0 0; }
.cw-tabs .tabs { gap: 0; }
.cw-tabs .tab { padding-inline: 12px; min-height: 40px; }
.cw-action-grid .btn { min-height: 40px; }
.cw-info > div { grid-template-columns: 120px minmax(0, 1fr); }
.cw-applications { min-width: 360px; }
.cw-document { flex-wrap: wrap; }
.cw-document-name { min-width: 100px; }
.cw-document-actions { margin-left: auto; }
.cw-bottom-grid > .cw-column { display: flex; }
.cw-tab-content { padding: 12px; }
.cw-screening { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
.candidate-workspace .tab-pane, .candidate-workspace .btn { animation: none; transition: none; }
}