/**
 * RRv3 Human Resource (HR) Module & ATS Stylesheet
 * Standardized with RRv3 Navy / Blue Design System
 */

/* ==========================================================================
   1. Multi-Step Job Application Wizard (/apply)
   ========================================================================== */

.rrv3-apply-portal {
    max-width: 860px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
}

.rrv3-apply-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 32px;
    position: relative;
}

/* Language Switcher Bar */
.rrv3-apply-lang-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e2e8f0;
}

.rrv3-lang-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
}

.rrv3-lang-switcher {
    display: inline-flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
    gap: 4px;
}

.rrv3-lang-btn {
    background: transparent;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rrv3-lang-btn:hover {
    color: #0284c7;
}

.rrv3-lang-btn.active {
    background: #ffffff;
    color: #0284c7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.rrv3-lang-pill {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
}

.rrv3-lang-pill.lang-ms {
    background: #fef3c7;
    color: #b45309;
}

.rrv3-lang-pill.lang-bilingual {
    background: #e0e7ff;
    color: #4338ca;
}

.rrv3-lang-pill.lang-en {
    background: #e0f2fe;
    color: #0369a1;
}

/* Selected Vacancy Ad Overview Card */
.rrv3-job-ad-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #0284c7;
    border-radius: 8px;
    padding: 16px 18px;
    margin: 14px 0 18px 0;
}

.rrv3-job-ad-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.rrv3-job-ad-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.rrv3-job-ad-tag {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.rrv3-job-ad-section {
    margin-top: 8px;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

.rrv3-job-ad-section strong {
    color: #0f172a;
    display: block;
    margin-bottom: 3px;
    font-size: 12.5px;
}

.rrv3-apply-hero {
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.rrv3-apply-logo {
    font-size: 15px;
    font-weight: 700;
    color: #0284c7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.rrv3-apply-hero h1 {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.rrv3-apply-hero p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Stepper Progress Bar */
.rrv3-step-wizard {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 32px;
}

.rrv3-step-wizard::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.rrv3-step-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    padding: 0 8px;
    cursor: default;
}

.rrv3-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.rrv3-step-text {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
}

.rrv3-step-item.active .rrv3-step-circle {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2);
}

.rrv3-step-item.active .rrv3-step-text {
    color: #0284c7;
}

.rrv3-step-item.completed .rrv3-step-circle {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.rrv3-step-item.completed .rrv3-step-text {
    color: #10b981;
}

/* Form Steps */
.rrv3-form-step {
    display: none;
}

.rrv3-form-step.active {
    display: block;
}

.rrv3-form-step h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
}

.rrv3-radio-pills {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.rrv3-radio-pill {
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.rrv3-radio-pill.active {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.2);
}

.rrv3-req {
    color: #ef4444;
    font-weight: 700;
}

.rrv3-field-optional {
    font-size: 11.5px;
    font-weight: normal;
    color: #94a3b8;
    margin-left: 4px;
}

.rrv3-section-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 24px 0 14px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
}

.rrv3-resume-upload-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 16px;
    margin-top: 10px;
    margin-bottom: 18px;
}

.rrv3-resume-dropzone {
    border: 2px dashed #38bdf8;
    background: #f0f9ff;
    border-radius: 8px;
    padding: 18px;
    text-align: center;
    transition: all 0.2s ease;
}

.rrv3-resume-dropzone:hover,
.rrv3-resume-dropzone.dragover {
    border-color: #0284c7;
    background: #e0f2fe;
}

.rrv3-resume-dropzone.uploading {
    opacity: 0.7;
    pointer-events: none;
}

.rrv3-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rrv3-dropzone-icon {
    font-size: 32px;
    line-height: 1;
}

.rrv3-dropzone-text strong {
    display: block;
    font-size: 14px;
    color: #0369a1;
}

.rrv3-dropzone-text span {
    font-size: 12px;
    color: #64748b;
}

.rrv3-dropzone-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
}

.rrv3-dropzone-actions input[type="file"] {
    font-size: 12.5px;
    color: #475569;
}

.rrv3-field-autofilled {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25) !important;
    transition: all 0.3s ease;
}

/* Candidate Profile Photo & Live Selfie Widget */
.rrv3-photo-capture-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
    transition: all 0.25s ease;
}

.rrv3-photo-capture-box.has-error {
    border: 2px solid #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.rrv3-photo-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.rrv3-photo-box-header label {
    margin: 0;
    font-size: 13.5px;
    color: #1e293b;
}

.rrv3-photo-widget {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.rrv3-photo-preview-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.rrv3-photo-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 2px solid #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.rrv3-photo-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rrv3-photo-placeholder-icon {
    font-size: 36px;
    color: #64748b;
}

.rrv3-photo-remove-btn {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.rrv3-photo-actions-wrap {
    flex: 1;
    min-width: 200px;
}

.rrv3-photo-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rrv3-photo-upload-label {
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.rrv3-camera-modal {
    margin-top: 14px;
    background: #0f172a;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rrv3-camera-viewfinder {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    background: #000000;
    border: 3px solid #0284c7;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.25);
}

.rrv3-camera-viewfinder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* mirror selfie view */
}

.rrv3-camera-face-guide {
    position: absolute;
    top: 15%;
    left: 15%;
    right: 15%;
    bottom: 15%;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
}

.rrv3-camera-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* ATS Table & Modal Avatar */
.rrv3-applicant-table-name-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 10px;
    min-width: 175px;
}

.rrv3-applicant-table-name-wrap > div {
    text-align: left;
    width: auto;
    flex: 1;
    min-width: 0;
}

.rrv3-table-avatar-cell {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 10px;
    min-width: 175px;
}

.rrv3-table-avatar-cell > div {
    text-align: left;
    width: auto;
    flex: 1;
    min-width: 0;
}

.rrv3-table-avatar-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #cbd5e1;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-radius 0.2s ease;
    transform-origin: center center;
    cursor: zoom-in;
}

.rrv3-table-avatar-img:hover {
    transform: scale(2);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 0 2px #0088ff;
    z-index: 30;
    position: relative;
}

.rrv3-table-avatar-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid #bae6fd;
}

.rrv3-modal-profile-header {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}

.rrv3-modal-avatar-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #cbd5e1;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rrv3-modal-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rrv3-modal-avatar-placeholder {
    font-size: 32px;
    color: #94a3b8;
}

.rrv3-question-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.rrv3-question-card label strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #0f172a;
}

.rrv3-radio-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    cursor: pointer;
}

.rrv3-pdpa-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    font-size: 12.5px;
    color: #475569;
    line-height: 1.5;
}

.rrv3-pdpa-box h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #1e293b;
}

.rrv3-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.rrv3-apply-success-box {
    text-align: center;
    padding: 40px 20px;
}

.rrv3-success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.rrv3-apply-success-box h2 {
    font-size: 24px;
    color: #0f172a;
    margin-bottom: 12px;
}

.rrv3-apply-success-box p {
    font-size: 14px;
    color: #64748b;
    max-width: 560px;
    margin: 0 auto 12px auto;
    line-height: 1.6;
}


/* ==========================================================================
   2. HR Dashboard & ATS Layout
   ========================================================================== */

.rrv3-hr-dashboard {
    max-width: 1300px;
    margin: 20px auto;
}

.rrv3-hr-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.rrv3-hr-metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rrv3-hr-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.rrv3-hr-metric-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.rrv3-hr-metric-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 4px;
}

.rrv3-hr-metric-new .rrv3-hr-metric-num { color: #3b82f6; }
.rrv3-hr-metric-interview .rrv3-hr-metric-num { color: #f59e0b; }
.rrv3-hr-metric-shortlisted .rrv3-hr-metric-num { color: #8b5cf6; }
.rrv3-hr-metric-hired .rrv3-hr-metric-num { color: #10b981; }

.rrv3-hr-filter-strip {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.rrv3-hr-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rrv3-hr-filter-item label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.rrv3-hr-filter-item select {
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    background: #ffffff;
}

.rrv3-batch-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 8px 14px;
    margin-bottom: 14px;
    font-size: 13px;
}

.rrv3-batch-toolbar select {
    padding: 4px 8px;
    border: 1px solid #93c5fd;
    border-radius: 4px;
    font-size: 12px;
}

/* Badges & ATS Color-Coded Statuses */
.rrv3-hr-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    border: 1px solid transparent;
}

/* 1. New - Sky Blue */
.rrv3-hr-badge.rrv3-status-new,
.rrv3-status-new {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border-color: #bae6fd !important;
}

/* 2. Screening - Violet / Purple */
.rrv3-hr-badge.rrv3-status-screening,
.rrv3-status-screening {
    background-color: #f3e8ff !important;
    color: #7e22ce !important;
    border-color: #e9d5ff !important;
}

/* 3. Interview Scheduled - Warm Amber */
.rrv3-hr-badge.rrv3-status-interview_scheduled,
.rrv3-hr-badge.rrv3-status-interview,
.rrv3-status-interview_scheduled,
.rrv3-status-interview {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
    border-color: #fde68a !important;
}

/* 4. Shortlisted - Teal / Cyan */
.rrv3-hr-badge.rrv3-status-shortlisted,
.rrv3-status-shortlisted {
    background-color: #ccfbf1 !important;
    color: #0f766e !important;
    border-color: #99f6e4 !important;
}

/* 5. Offered - Rose / Magenta */
.rrv3-hr-badge.rrv3-status-offered,
.rrv3-status-offered {
    background-color: #fce7f3 !important;
    color: #be185d !important;
    border-color: #fbcfe8 !important;
}

/* 6. Hired - Emerald Green */
.rrv3-hr-badge.rrv3-status-hired,
.rrv3-status-hired {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border-color: #86efac !important;
    font-weight: 700 !important;
}

/* 7. Rejected - Crimson Red */
.rrv3-hr-badge.rrv3-status-rejected,
.rrv3-status-rejected {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
    border-color: #fecaca !important;
}

/* Default / Other */
.rrv3-hr-badge.rrv3-status-default,
.rrv3-status-default {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #e2e8f0 !important;
}

/* Interview Scheduled Date & Time Pill under Status Badge */
.rrv3-hr-interview-schedule-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 5px;
    padding: 3px 7px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    font-size: 11px;
    color: #92400e;
    line-height: 1.35;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.rrv3-hr-interview-schedule-pill .rrv3-interview-pill-icon {
    font-size: 11px;
}

.rrv3-hr-interview-schedule-pill .rrv3-interview-pill-date {
    font-weight: 700;
    color: #78350f;
}

.rrv3-hr-interview-schedule-pill .rrv3-interview-pill-time {
    color: #92400e;
    background: #fef3c7;
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 10.5px;
}

.rrv3-hr-interview-schedule-pill .rrv3-interview-pill-fmt {
    font-size: 11px;
    margin-left: 2px;
}

.rrv3-hr-score-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
}

.score-high {
    background: #dcfce7;
    color: #15803d;
}

.score-mid {
    background: #fef3c7;
    color: #b45309;
}

.score-low {
    background: #fee2e2;
    color: #b91c1c;
}

.score-pending {
    background: #f1f5f9;
    color: #64748b;
    border: 1px dashed #cbd5e1;
    font-size: 11.5px;
}

.rrv3-batch-log-success {
    color: #86efac;
}

.rrv3-batch-log-warn {
    color: #fde047;
}

.rrv3-batch-log-err {
    color: #fca5a5;
}

.rrv3-batch-log-info {
    color: #93c5fd;
}

.rrv3-hr-knockout-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
    background: #fee2e2;
    color: #b91c1c;
    margin-left: 6px;
}

.rrv3-whatsapp-link {
    color: #16a34a;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.rrv3-whatsapp-link:hover {
    color: #15803d;
    text-decoration: underline;
    transform: translateY(-1px);
}

.rrv3-hero-highlight-item .rrv3-whatsapp-link {
    font-size: 13.5px;
    color: #0284c7;
}

.rrv3-hero-highlight-item .rrv3-whatsapp-link:hover {
    color: #16a34a;
    text-decoration: underline;
}

html.rrv3-dark-mode .rrv3-hero-highlight-item .rrv3-whatsapp-link {
    color: #38bdf8;
}

html.rrv3-dark-mode .rrv3-hero-highlight-item .rrv3-whatsapp-link:hover {
    color: #4ade80;
}

.rrv3-button-whatsapp {
    background-color: #25d366 !important;
    color: #ffffff !important;
    border-color: #25d366 !important;
    font-weight: 600;
}

.rrv3-button-whatsapp:hover {
    background-color: #1ebe5d !important;
}


/* ==========================================================================
   3. Modals, Details Drawer & Dynamic Question Builder
   ========================================================================== */

.rrv3-modal-large {
    max-width: 980px !important;
    width: 92%;
}

.rrv3-hr-modal-tab-bar {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 16px;
}

.rrv3-modal-tab-content {
    display: none;
}

.rrv3-modal-tab-content.active {
    display: block;
}

.rrv3-app-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 16px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .rrv3-app-detail-grid {
        grid-template-columns: 1fr;
    }
}

.rrv3-app-detail-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
}

.rrv3-app-detail-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 6px;
}

.rrv3-app-detail-card p {
    font-size: 13px;
    margin: 0 0 6px 0;
    line-height: 1.45;
}

.rrv3-ai-summary-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 13px;
    color: #166534;
    line-height: 1.5;
}

.rrv3-screening-overview-header {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.rrv3-screening-qa-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
}

.rrv3-screening-qa-q {
    font-size: 13.5px;
    margin-bottom: 6px;
}

.rrv3-screening-qa-a {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #475569;
}

/* Interview Invitation & Language Toggle */
.rrv3-interview-templates-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 18px;
    margin-top: 16px;
}

.rrv3-invite-lang-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.rrv3-invite-lang-title {
    font-size: 13.5px;
    color: #1e293b;
}

.rrv3-invite-lang-toggle {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 3px;
    gap: 4px;
    border: 1px solid #e2e8f0;
}

.rrv3-lang-btn {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rrv3-lang-btn:hover {
    color: #0f172a;
}

.rrv3-lang-btn.active {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.rrv3-invite-channel-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
}

.rrv3-invite-channel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.rrv3-invite-channel-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.rrv3-invite-channel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.rrv3-template-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    font-size: 12.5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    white-space: pre-wrap;
    max-height: 190px;
    overflow-y: auto;
    color: #334155;
    line-height: 1.5;
}

/* ==========================================================================
   4. HR Interview Calendar & Agenda
   ========================================================================== */

.rrv3-cal-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.rrv3-cal-nav-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rrv3-cal-month-heading {
    margin: 0 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    min-width: 170px;
}

.rrv3-cal-filters-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.rrv3-cal-filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rrv3-cal-filter-item label {
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
}

.rrv3-cal-filter-item select {
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12.5px;
    background: #ffffff;
}

.rrv3-cal-view-switch {
    display: inline-flex;
    background: #e2e8f0;
    border-radius: 6px;
    padding: 2px;
    gap: 2px;
}

.rrv3-cal-view-btn {
    background: transparent;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rrv3-cal-view-btn.active {
    background: #ffffff;
    color: #0284c7;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.rrv3-cal-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .rrv3-cal-layout {
        grid-template-columns: 1fr;
    }
}

.rrv3-calendar-grid {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.rrv3-cal-day-names {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f1f5f9;
    border-bottom: 1px solid #cbd5e1;
    text-align: center;
    font-weight: 700;
    font-size: 12.5px;
    color: #475569;
    padding: 10px 0;
}

.rrv3-cal-days-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    min-height: 480px;
}

.rrv3-cal-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    font-size: 14px;
    color: #64748b;
    gap: 8px;
}

.rrv3-cal-day-cell {
    min-height: 110px;
    height: auto;
    padding: 6px 8px 10px 8px;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transition: background 0.15s ease;
    box-sizing: border-box;
}

.rrv3-cal-day-cell:nth-child(7n) {
    border-right: none;
}

.rrv3-cal-day-cell:hover {
    background: #f8fafc;
}

.rrv3-cal-day-inactive {
    background: #f8fafc;
    opacity: 0.55;
}

.rrv3-cal-day-today {
    background: #f0f9ff !important;
}

.rrv3-cal-day-today .rrv3-cal-day-number {
    background: #0284c7;
    color: #ffffff !important;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rrv3-cal-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.rrv3-cal-day-number {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
}

.rrv3-cal-day-badges {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rrv3-cal-clash-badge {
    font-size: 9.5px;
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 1.2;
}

.rrv3-cal-day-cell.has-clash {
    background: #fff8f8;
}

.rrv3-cal-event-count {
    font-size: 10px;
    background: #e0f2fe;
    color: #0369a1;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 600;
}

.rrv3-cal-day-events {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    overflow: visible;
}

.rrv3-cal-event-chip {
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-left: 3.5px solid #0284c7;
    text-align: left;
}

.rrv3-cal-event-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.12);
}

.rrv3-cal-event-chip.is-past {
    opacity: 0.68;
    border-left-style: dashed;
}

.rrv3-cal-event-chip.is-past:hover {
    opacity: 1;
}

/* Red box highlighting for clashing interviews (2 or more on same date/time) */
.rrv3-cal-event-chip.is-clashed {
    border: 2px solid #ef4444 !important;
    border-left: 4.5px solid #dc2626 !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.4), 0 2px 5px rgba(239, 68, 68, 0.15) !important;
}

.rrv3-cal-event-chip.is-clashed:hover {
    box-shadow: 0 0 0 2px #ef4444, 0 3px 8px rgba(239, 68, 68, 0.25) !important;
}

.rrv3-cal-event-chip.is-clashed .rrv3-cal-chip-name {
    color: #991b1b;
}

.rrv3-cal-chip-clash-badge {
    background: #ef4444;
    color: #ffffff !important;
    font-size: 8.5px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 1.1;
    margin-right: 2px;
}

.rrv3-cal-event-chip.format-whatsapp {
    background: #ecfdf5;
    border-color: #a7f3d0;
    border-left-color: #059669;
    color: #064e3b;
}

.rrv3-cal-event-chip.format-online {
    background: #f0fdf4;
    border-color: #bbf7d0;
    border-left-color: #16a34a;
    color: #14532d;
}

.rrv3-cal-event-chip.format-physical {
    background: #fef3c7;
    border-color: #fde68a;
    border-left-color: #d97706;
    color: #78350f;
}

.rrv3-cal-chip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 2px;
}

.rrv3-cal-chip-name {
    font-weight: 700;
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rrv3-cal-chip-role {
    font-size: 10px;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar & Agenda */
.rrv3-cal-sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.rrv3-cal-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.rrv3-cal-sidebar-header h3 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
}

.rrv3-cal-upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 520px;
    overflow-y: auto;
}

.rrv3-cal-agenda-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    transition: all 0.15s ease;
}

.rrv3-cal-agenda-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.rrv3-cal-agenda-card.is-clashed {
    border: 1.5px solid #ef4444 !important;
    background: #fff8f8 !important;
}

.rrv3-cal-agenda-clash-tag {
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.rrv3-interview-clash-warning {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-left: 4px solid #e11d48;
    color: #9f1239;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    margin: 12px 0 16px 0;
    line-height: 1.45;
}

.rrv3-cal-agenda-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.rrv3-cal-agenda-top-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rrv3-cal-dismiss-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.15s ease;
}

.rrv3-cal-dismiss-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
    transform: scale(1.08);
}

.rrv3-cal-agenda-date {
    font-size: 11.5px;
    color: #1e293b;
}

.rrv3-cal-agenda-time {
    color: #0284c7;
    font-weight: 600;
    margin-left: 4px;
}

.rrv3-cal-agenda-format-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
}

.rrv3-cal-agenda-format-tag.whatsapp {
    background: #d1fae5;
    color: #065f46;
}

.rrv3-cal-agenda-format-tag.online {
    background: #dcfce7;
    color: #15803d;
}

.rrv3-cal-agenda-format-tag.physical {
    background: #fef3c7;
    color: #b45309;
}

.rrv3-cal-agenda-candidate strong {
    font-size: 13px;
    color: #0f172a;
}

.rrv3-cal-agenda-pos {
    font-size: 11.5px;
    color: #64748b;
}

.rrv3-cal-agenda-loc {
    font-size: 11px;
    color: #475569;
    margin: 4px 0;
    word-break: break-word;
}

.rrv3-cal-agenda-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.rrv3-cal-full-agenda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.rrv3-cal-agenda-card-full {
    padding: 14px 16px;
}

.rrv3-cal-agenda-card-full h4 {
    margin: 0 0 2px 0;
    font-size: 14px;
    color: #0f172a;
}

/* Vacancy Modal Step/Tab Navigation */
.rrv3-vac-modal-tab-bar {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 16px;
    padding-bottom: 4px;
}

.rrv3-vac-modal-tab-bar .rrv3-tab-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rrv3-vac-modal-tab-bar .rrv3-tab-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.rrv3-vac-modal-tab-bar .rrv3-tab-btn.active {
    color: #0284c7;
    border-bottom: 2px solid #0284c7;
    background: #f0f9ff;
}

.rrv3-vac-modal-tab-content {
    display: none;
}

.rrv3-vac-modal-tab-content.active {
    display: block !important;
}

/* Question Builder */
.rrv3-builder-q-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.rrv3-builder-q-card:hover {
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}

.rrv3-builder-q-card.knockout-card {
    border-left: 5px solid #ef4444;
}

.rrv3-builder-q-card.scored-card {
    border-left: 5px solid #0284c7;
}

.rrv3-builder-q-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e2e8f0;
}

.rrv3-builder-q-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rrv3-builder-q-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rrv3-q-num-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
}

.rrv3-q-order-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 11px;
    cursor: pointer;
    line-height: 1.2;
}

.rrv3-q-order-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Scorecard Dimension Builder (Step 3) */
.rrv3-builder-sc-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-left: 5px solid #0284c7;
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.rrv3-builder-sc-card:hover {
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}

.rrv3-builder-sc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #e2e8f0;
}

.rrv3-sc-num-badge {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-weight: 700;
    font-size: 11.5px;
    padding: 2px 7px;
    border-radius: 4px;
}

.rrv3-sc-title-preview {
    font-size: 13.5px;
    color: #0f172a;
}

.rrv3-builder-sc-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rrv3-builder-sc-body .rrv3-form-group {
    margin-bottom: 8px;
}

.rrv3-button-danger {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
}

.rrv3-button-danger:hover {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
}

.rrv3-button-danger:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.35) !important;
}

.rrv3-remove-q-btn {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rrv3-remove-q-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}


/* Dark Mode */
html.rrv3-dark-mode .rrv3-apply-card,
html.rrv3-dark-mode .rrv3-hr-metric-card,
html.rrv3-dark-mode .rrv3-app-detail-card,
html.rrv3-dark-mode .rrv3-builder-q-card,
html.rrv3-dark-mode .rrv3-screening-qa-item {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

html.rrv3-dark-mode .rrv3-apply-hero h1,
html.rrv3-dark-mode .rrv3-form-step h3,
html.rrv3-dark-mode .rrv3-hr-metric-num {
    color: #f8fafc;
}

html.rrv3-dark-mode .rrv3-hr-filter-strip,
html.rrv3-dark-mode .rrv3-resume-upload-box,
html.rrv3-dark-mode .rrv3-pdpa-box,
html.rrv3-dark-mode .rrv3-interview-templates-box {
    background: #0f172a;
    border-color: #334155;
}

html.rrv3-dark-mode .rrv3-hr-badge.rrv3-status-new,
html.rrv3-dark-mode .rrv3-status-new {
    background-color: #082f49 !important;
    color: #7dd3fc !important;
    border-color: #0369a1 !important;
}

html.rrv3-dark-mode .rrv3-hr-badge.rrv3-status-screening,
html.rrv3-dark-mode .rrv3-status-screening {
    background-color: #3b0764 !important;
    color: #d8b4fe !important;
    border-color: #6b21a8 !important;
}

html.rrv3-dark-mode .rrv3-hr-badge.rrv3-status-interview_scheduled,
html.rrv3-dark-mode .rrv3-hr-badge.rrv3-status-interview,
html.rrv3-dark-mode .rrv3-status-interview_scheduled,
html.rrv3-dark-mode .rrv3-status-interview {
    background-color: #451a03 !important;
    color: #fde047 !important;
    border-color: #854d0e !important;
}

html.rrv3-dark-mode .rrv3-hr-interview-schedule-pill {
    background: #451a03;
    border-color: #854d0e;
    color: #fef08a;
}

html.rrv3-dark-mode .rrv3-hr-interview-schedule-pill .rrv3-interview-pill-date {
    color: #ffffff;
}

html.rrv3-dark-mode .rrv3-hr-interview-schedule-pill .rrv3-interview-pill-time {
    background: #78350f;
    color: #fef9c3;
}

html.rrv3-dark-mode .rrv3-hr-badge.rrv3-status-shortlisted,
html.rrv3-dark-mode .rrv3-status-shortlisted {
    background-color: #042f2e !important;
    color: #5eead4 !important;
    border-color: #0f766e !important;
}

html.rrv3-dark-mode .rrv3-hr-badge.rrv3-status-offered,
html.rrv3-dark-mode .rrv3-status-offered {
    background-color: #500724 !important;
    color: #f472b6 !important;
    border-color: #9d174d !important;
}

html.rrv3-dark-mode .rrv3-hr-badge.rrv3-status-hired,
html.rrv3-dark-mode .rrv3-status-hired {
    background-color: #052e16 !important;
    color: #86efac !important;
    border-color: #166534 !important;
}

html.rrv3-dark-mode .rrv3-hr-badge.rrv3-status-rejected,
html.rrv3-dark-mode .rrv3-status-rejected {
    background-color: #450a0a !important;
    color: #fca5a5 !important;
    border-color: #991b1b !important;
}

html.rrv3-dark-mode .rrv3-hr-badge.rrv3-status-default,
html.rrv3-dark-mode .rrv3-status-default {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
}

html.rrv3-dark-mode .rrv3-invite-lang-header,
html.rrv3-dark-mode .rrv3-invite-channel-card {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

html.rrv3-dark-mode .rrv3-invite-lang-title,
html.rrv3-dark-mode .rrv3-invite-channel-header h4 {
    color: #f8fafc;
}

html.rrv3-dark-mode .rrv3-invite-lang-toggle {
    background: #0f172a;
    border-color: #334155;
}

html.rrv3-dark-mode .rrv3-lang-btn {
    color: #94a3b8;
}

html.rrv3-dark-mode .rrv3-lang-btn:hover {
    color: #f8fafc;
}

html.rrv3-dark-mode .rrv3-lang-btn.active {
    background: #0284c7;
    color: #ffffff;
}

html.rrv3-dark-mode .rrv3-template-preview {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

/* Calendar Dark Mode */
html.rrv3-dark-mode .rrv3-cal-header-bar,
html.rrv3-dark-mode .rrv3-calendar-grid,
html.rrv3-dark-mode .rrv3-cal-sidebar-card,
html.rrv3-dark-mode .rrv3-cal-agenda-card {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

html.rrv3-dark-mode .rrv3-cal-month-heading,
html.rrv3-dark-mode .rrv3-cal-sidebar-header h3,
html.rrv3-dark-mode .rrv3-cal-agenda-candidate strong,
html.rrv3-dark-mode .rrv3-cal-agenda-card-full h4 {
    color: #f8fafc;
}

html.rrv3-dark-mode .rrv3-cal-day-names {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}

html.rrv3-dark-mode .rrv3-cal-day-cell {
    background: #1e293b;
    border-color: #334155;
}

html.rrv3-dark-mode .rrv3-cal-day-cell:hover {
    background: #0f172a;
}

html.rrv3-dark-mode .rrv3-cal-day-inactive {
    background: #0f172a;
    opacity: 0.45;
}

html.rrv3-dark-mode .rrv3-cal-day-today {
    background: #082f49 !important;
}

html.rrv3-dark-mode .rrv3-cal-day-number {
    color: #cbd5e1;
}

html.rrv3-dark-mode .rrv3-cal-event-chip.format-whatsapp {
    background: #064e3b;
    border-color: #059669;
    color: #6ee7b7;
}

html.rrv3-dark-mode .rrv3-cal-event-chip.format-online {
    background: #052e16;
    border-color: #166534;
    color: #86efac;
}

html.rrv3-dark-mode .rrv3-cal-event-chip.format-physical {
    background: #451a03;
    border-color: #854d0e;
    color: #fde047;
}

html.rrv3-dark-mode .rrv3-cal-agenda-format-tag.whatsapp {
    background: #064e3b;
    color: #6ee7b7;
}

html.rrv3-dark-mode .rrv3-cal-agenda-date {
    color: #cbd5e1;
}

html.rrv3-dark-mode .rrv3-cal-agenda-loc,
html.rrv3-dark-mode .rrv3-cal-agenda-pos {
    color: #94a3b8;
}

html.rrv3-dark-mode .rrv3-cal-view-switch {
    background: #0f172a;
}

html.rrv3-dark-mode .rrv3-cal-view-btn {
    color: #94a3b8;
}

html.rrv3-dark-mode .rrv3-cal-view-btn.active {
    background: #334155;
    color: #38bdf8;
}

html.rrv3-dark-mode .rrv3-cal-dismiss-btn {
    color: #64748b;
}

html.rrv3-dark-mode .rrv3-cal-dismiss-btn:hover {
    background: #7f1d1d;
    color: #fca5a5;
    border-color: #991b1b;
}

html.rrv3-dark-mode .rrv3-cal-day-cell.has-clash {
    background: #241416;
}

html.rrv3-dark-mode .rrv3-cal-clash-badge {
    background: #7f1d1d;
    color: #fca5a5;
    border-color: #991b1b;
}

html.rrv3-dark-mode .rrv3-cal-event-chip.is-clashed {
    border: 2px solid #f87171 !important;
    border-left: 4.5px solid #ef4444 !important;
    background: #450a0a !important;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.4) !important;
}

html.rrv3-dark-mode .rrv3-cal-event-chip.is-clashed .rrv3-cal-chip-name {
    color: #fee2e2;
}

html.rrv3-dark-mode .rrv3-cal-chip-clash-badge {
    background: #dc2626;
    color: #ffffff !important;
}

html.rrv3-dark-mode .rrv3-cal-agenda-card.is-clashed {
    border: 1.5px solid #f87171 !important;
    background: #2e1014 !important;
}

html.rrv3-dark-mode .rrv3-cal-agenda-clash-tag {
    background: #7f1d1d;
    color: #fca5a5;
    border-color: #991b1b;
}

html.rrv3-dark-mode .rrv3-interview-clash-warning {
    background: #4c0519;
    border-color: #881337;
    border-left-color: #f43f5e;
    color: #ffe4e6;
}

html.rrv3-dark-mode .rrv3-builder-sc-card {
    background: #1e293b;
    border-color: #334155;
    border-left-color: #38bdf8;
}

html.rrv3-dark-mode .rrv3-sc-num-badge {
    background: #052e16;
    color: #86efac;
    border-color: #166534;
}

html.rrv3-dark-mode .rrv3-sc-title-preview {
    color: #f8fafc;
}

html.rrv3-dark-mode .rrv3-builder-sc-header {
    border-bottom-color: #334155;
}

/* Photo Widget Dark Mode */
html.rrv3-dark-mode .rrv3-photo-capture-box {
    background: #1e293b;
    border-color: #334155;
}

html.rrv3-dark-mode .rrv3-photo-capture-box.has-error {
    border-color: #ef4444 !important;
    background: #450a0a !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.35) !important;
}

html.rrv3-dark-mode .rrv3-photo-avatar,
html.rrv3-dark-mode .rrv3-modal-avatar-wrap {
    background: #0f172a;
    border-color: #475569;
}

html.rrv3-dark-mode .rrv3-photo-placeholder-icon,
html.rrv3-dark-mode .rrv3-modal-avatar-placeholder {
    color: #64748b;
}

html.rrv3-dark-mode .rrv3-table-avatar-placeholder {
    background: #082f49;
    color: #7dd3fc;
    border-color: #0369a1;
}

/* ==========================================================================
   INTERVIEW NOTES & COMPETENCY 2-COLUMN SCORECARD WITH INTERACTIVE CIRCULAR SVG EMOJI
   ========================================================================== */

.rrv3-scorecard-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 18px;
}

.rrv3-scorecard-summary h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    color: #0369a1;
    font-weight: 700;
}

.rrv3-scorecard-summary p {
    margin: 0;
    font-size: 12.5px;
    color: #0c4a6e;
}

.rrv3-scorecard-overall-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #0284c7;
    border-radius: 30px;
    padding: 6px 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.rrv3-scorecard-avg-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.rrv3-scorecard-stars {
    font-size: 15px;
    letter-spacing: 2px;
}

.rrv3-scorecard-avg-num {
    font-size: 15px;
    font-weight: 800;
    color: #0284c7;
}

.rrv3-rating-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* 2-Column Scorecard Layout */
.rrv3-scorecard-2col-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 18px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.rrv3-scorecard-2col-row:hover {
    border-color: #cbd5e1;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.rrv3-scorecard-left-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rrv3-rating-dim-title strong {
    display: block;
    font-size: 14.5px;
    color: #0f172a;
    margin-bottom: 3px;
}

.rrv3-rating-dim-desc {
    display: block;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.4;
}

.rrv3-dim-notes-input {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 12.5px;
    line-height: 1.4;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fdfdfd;
    color: #334155;
    resize: vertical;
    transition: border-color 0.15s;
}

.rrv3-dim-notes-input:focus {
    border-color: #0284c7;
    outline: none;
    background: #ffffff;
}

.rrv3-scorecard-right-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
}

.rrv3-scorecard-control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rrv3-star-display {
    color: #f59e0b;
    font-size: 16px;
    letter-spacing: 2px;
}

.rrv3-scorecard-hover-badge {
    font-size: 12px;
    font-weight: 600;
    color: #0284c7;
    background: #e0f2fe;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid #bae6fd;
    transition: all 0.15s ease;
}

.rrv3-scorecard-hover-badge.active-hover {
    background: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
    font-weight: 700;
    transform: scale(1.04);
}

.rrv3-rating-number {
    font-size: 13.5px;
    font-weight: 800;
    color: #1e293b;
    min-width: 42px;
    text-align: right;
}

/* Circular SVG Emoji Rating Component */
.rrv3-emoji-rating-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 4px 0;
}

.rrv3-emoji-feedback {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 320px;
}

.rrv3-emoji-rating {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.rrv3-emoji-radio {
    display: none !important;
}

.rrv3-emoji-rating label {
    position: relative;
    width: 38px;
    height: 38px;
    margin: 0 4px;
    cursor: pointer;
    background-color: #cbd5e1;
    border-radius: 50%;
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease;
    display: inline-block;
    vertical-align: middle;
}

.rrv3-emoji-rating label:hover {
    transform: scale(1.15);
    background-color: #fbbf24;
}

.rrv3-emoji-wrapper {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ffd93b;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    display: none;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.rrv3-emoji {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 228px; /* 6 svgs * 38px */
    height: 38px;
    transition: left 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rrv3-emoji svg {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

/* Sibling checked states: color filled circles to the right (left in visual order) */
.rrv3-emoji-rating input:checked ~ label {
    background-color: #f59e0b;
}

/* Checked position and emoji translations */
/* 5 Stars */
.rrv3-emoji-rating #rating-technical-5:checked ~ .rrv3-emoji-wrapper,
.rrv3-emoji-rating #rating-communication-5:checked ~ .rrv3-emoji-wrapper,
.rrv3-emoji-rating #rating-problem_solving-5:checked ~ .rrv3-emoji-wrapper,
.rrv3-emoji-rating #rating-cultural_fit-5:checked ~ .rrv3-emoji-wrapper,
.rrv3-emoji-rating #rating-leadership-5:checked ~ .rrv3-emoji-wrapper {
    display: block;
    left: calc(50% + 92px);
    transform: translate(-50%, -50%);
}

.rrv3-emoji-rating #rating-technical-5:checked ~ .rrv3-emoji-wrapper .rrv3-emoji,
.rrv3-emoji-rating #rating-communication-5:checked ~ .rrv3-emoji-wrapper .rrv3-emoji,
.rrv3-emoji-rating #rating-problem_solving-5:checked ~ .rrv3-emoji-wrapper .rrv3-emoji,
.rrv3-emoji-rating #rating-cultural_fit-5:checked ~ .rrv3-emoji-wrapper .rrv3-emoji,
.rrv3-emoji-rating #rating-leadership-5:checked ~ .rrv3-emoji-wrapper .rrv3-emoji {
    left: -190px;
}

/* 4 Stars */
.rrv3-emoji-rating #rating-technical-4:checked ~ .rrv3-emoji-wrapper,
.rrv3-emoji-rating #rating-communication-4:checked ~ .rrv3-emoji-wrapper,
.rrv3-emoji-rating #rating-problem_solving-4:checked ~ .rrv3-emoji-wrapper,
.rrv3-emoji-rating #rating-cultural_fit-4:checked ~ .rrv3-emoji-wrapper,
.rrv3-emoji-rating #rating-leadership-4:checked ~ .rrv3-emoji-wrapper {
    display: block;
    left: calc(50% + 46px);
    transform: translate(-50%, -50%);
}

.rrv3-emoji-rating #rating-technical-4:checked ~ .rrv3-emoji-wrapper .rrv3-emoji,
.rrv3-emoji-rating #rating-communication-4:checked ~ .rrv3-emoji-wrapper .rrv3-emoji,
.rrv3-emoji-rating #rating-problem_solving-4:checked ~ .rrv3-emoji-wrapper .rrv3-emoji,
.rrv3-emoji-rating #rating-cultural_fit-4:checked ~ .rrv3-emoji-wrapper .rrv3-emoji,
.rrv3-emoji-rating #rating-leadership-4:checked ~ .rrv3-emoji-wrapper .rrv3-emoji {
    left: -152px;
}

/* 3 Stars */
.rrv3-emoji-rating #rating-technical-3:checked ~ .rrv3-emoji-wrapper,
.rrv3-emoji-rating #rating-communication-3:checked ~ .rrv3-emoji-wrapper,
.rrv3-emoji-rating #rating-problem_solving-3:checked ~ .rrv3-emoji-wrapper,
.rrv3-emoji-rating #rating-cultural_fit-3:checked ~ .rrv3-emoji-wrapper,
.rrv3-emoji-rating #rating-leadership-3:checked ~ .rrv3-emoji-wrapper {
    display: block;
    left: 50%;
    transform: translate(-50%, -50%);
}

.rrv3-emoji-rating #rating-technical-3:checked ~ .rrv3-emoji-wrapper .rrv3-emoji,
.rrv3-emoji-rating #rating-communication-3:checked ~ .rrv3-emoji-wrapper .rrv3-emoji,
.rrv3-emoji-rating #rating-problem_solving-3:checked ~ .rrv3-emoji-wrapper .rrv3-emoji,
.rrv3-emoji-rating #rating-cultural_fit-3:checked ~ .rrv3-emoji-wrapper .rrv3-emoji,
.rrv3-emoji-rating #rating-leadership-3:checked ~ .rrv3-emoji-wrapper .rrv3-emoji {
    left: -114px;
}

/* 2 Stars */
.rrv3-emoji-rating #rating-technical-2:checked ~ .rrv3-emoji-wrapper,
.rrv3-emoji-rating #rating-communication-2:checked ~ .rrv3-emoji-wrapper,
.rrv3-emoji-rating #rating-problem_solving-2:checked ~ .rrv3-emoji-wrapper,
.rrv3-emoji-rating #rating-cultural_fit-2:checked ~ .rrv3-emoji-wrapper,
.rrv3-emoji-rating #rating-leadership-2:checked ~ .rrv3-emoji-wrapper {
    display: block;
    left: calc(50% - 46px);
    transform: translate(-50%, -50%);
}

.rrv3-emoji-rating #rating-technical-2:checked ~ .rrv3-emoji-wrapper .rrv3-emoji,
.rrv3-emoji-rating #rating-communication-2:checked ~ .rrv3-emoji-wrapper .rrv3-emoji,
.rrv3-emoji-rating #rating-problem_solving-2:checked ~ .rrv3-emoji-wrapper .rrv3-emoji,
.rrv3-emoji-rating #rating-cultural_fit-2:checked ~ .rrv3-emoji-wrapper .rrv3-emoji,
.rrv3-emoji-rating #rating-leadership-2:checked ~ .rrv3-emoji-wrapper .rrv3-emoji {
    left: -76px;
}

/* 1 Star */
.rrv3-emoji-rating #rating-technical-1:checked ~ .rrv3-emoji-wrapper,
.rrv3-emoji-rating #rating-communication-1:checked ~ .rrv3-emoji-wrapper,
.rrv3-emoji-rating #rating-problem_solving-1:checked ~ .rrv3-emoji-wrapper,
.rrv3-emoji-rating #rating-cultural_fit-1:checked ~ .rrv3-emoji-wrapper,
.rrv3-emoji-rating #rating-leadership-1:checked ~ .rrv3-emoji-wrapper {
    display: block;
    left: calc(50% - 92px);
    transform: translate(-50%, -50%);
}

.rrv3-emoji-rating #rating-technical-1:checked ~ .rrv3-emoji-wrapper .rrv3-emoji,
.rrv3-emoji-rating #rating-communication-1:checked ~ .rrv3-emoji-wrapper .rrv3-emoji,
.rrv3-emoji-rating #rating-problem_solving-1:checked ~ .rrv3-emoji-wrapper .rrv3-emoji,
.rrv3-emoji-rating #rating-cultural_fit-1:checked ~ .rrv3-emoji-wrapper .rrv3-emoji,
.rrv3-emoji-rating #rating-leadership-1:checked ~ .rrv3-emoji-wrapper .rrv3-emoji {
    left: -38px;
}

.rrv3-slider-ticks-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 0 2px;
}

.rrv3-slider-ticks-custom span {
    position: relative;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s ease;
    user-select: none;
}

.rrv3-slider-ticks-custom span:hover {
    color: #0284c7;
    background: #e0f2fe;
    font-weight: 700;
    transform: translateY(-1px);
}

.rrv3-slider-ticks-custom span.tick-active {
    color: #d97706;
    background: #fef3c7;
    font-weight: 800;
}

/* Responsive adjustment for small screens */
@media (max-width: 768px) {
    .rrv3-scorecard-2col-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* Dark mode overrides for scorecard */
html.rrv3-dark-mode .rrv3-scorecard-header-bar {
    background: linear-gradient(135deg, #082f49 0%, #0c4a6e 100%);
    border-color: #0369a1;
}

html.rrv3-dark-mode .rrv3-scorecard-summary h4 {
    color: #7dd3fc;
}

html.rrv3-dark-mode .rrv3-scorecard-summary p {
    color: #bae6fd;
}

html.rrv3-dark-mode .rrv3-scorecard-overall-pill {
    background: #0f172a;
    border-color: #38bdf8;
}

html.rrv3-dark-mode .rrv3-scorecard-avg-label {
    color: #94a3b8;
}

html.rrv3-dark-mode .rrv3-scorecard-avg-num {
    color: #38bdf8;
}

html.rrv3-dark-mode .rrv3-scorecard-2col-row {
    background: #1e293b;
    border-color: #334155;
}

html.rrv3-dark-mode .rrv3-scorecard-2col-row:hover {
    border-color: #475569;
}

html.rrv3-dark-mode .rrv3-rating-dim-title strong {
    color: #f1f5f9;
}

html.rrv3-dark-mode .rrv3-rating-dim-desc {
    color: #94a3b8;
}

html.rrv3-dark-mode .rrv3-scorecard-right-col {
    background: #0f172a;
    border-color: #334155;
}

html.rrv3-dark-mode .rrv3-emoji-rating-container {
    background: #1e293b;
    border-color: #334155;
}

html.rrv3-dark-mode .rrv3-emoji-rating label {
    background-color: #475569;
}

html.rrv3-dark-mode .rrv3-emoji-rating label:hover {
    background-color: #fbbf24;
}

html.rrv3-dark-mode .rrv3-scorecard-hover-badge {
    background: #082f49;
    color: #38bdf8;
    border-color: #0369a1;
}

html.rrv3-dark-mode .rrv3-scorecard-hover-badge.active-hover {
    background: #78350f;
    color: #fde68a;
    border-color: #92400e;
}

html.rrv3-dark-mode .rrv3-rating-number {
    color: #f1f5f9;
}

html.rrv3-dark-mode .rrv3-slider-ticks-custom span {
    color: #94a3b8;
}

html.rrv3-dark-mode .rrv3-slider-ticks-custom span:hover {
    color: #38bdf8;
    background: #082f49;
}

html.rrv3-dark-mode .rrv3-slider-ticks-custom span.tick-active {
    color: #fde68a;
    background: #78350f;
}

html.rrv3-dark-mode .rrv3-dim-notes-input {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

html.rrv3-dark-mode .rrv3-dim-notes-input:focus {
    border-color: #38bdf8;
}

/* Interview Scheduler Modern Controls & Status Banner */
.rrv3-interview-status-banner {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.rrv3-interview-status-banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.rrv3-interview-status-badge-active {
    background: #059669;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rrv3-interview-status-text {
    font-size: 13px;
    font-weight: 600;
    color: #065f46;
}

.rrv3-interview-time-select-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rrv3-interview-time-select {
    flex: 1;
    min-width: 90px;
}

.rrv3-interview-time-sep {
    font-weight: 700;
    font-size: 16px;
    color: #64748b;
}

.rrv3-email-collapse-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 14px;
    overflow: hidden;
}

.rrv3-email-collapse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    transition: background 0.15s ease;
}

.rrv3-email-collapse-header:hover {
    background: #f1f5f9;
}

.rrv3-email-collapse-icon {
    font-size: 11px;
    color: #64748b;
    transition: transform 0.2s ease;
}

.rrv3-email-collapse-body {
    padding: 12px 14px;
}

html.rrv3-dark-mode .rrv3-interview-status-banner {
    background: rgba(6, 78, 59, 0.25);
    border-color: #059669;
}

html.rrv3-dark-mode .rrv3-interview-status-text {
    color: #a7f3d0;
}

html.rrv3-dark-mode .rrv3-email-collapse-card {
    background: #1e293b;
    border-color: #334155;
}

html.rrv3-dark-mode .rrv3-email-collapse-header {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

html.rrv3-dark-mode .rrv3-email-collapse-header:hover {
    background: #1e293b;
}

/* Resume Bank Upload UI */
.rrv3-status-resume-bank {
    background: #e0e7ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

html.rrv3-dark-mode .rrv3-status-resume-bank {
    background: #312e81;
    color: #c7d2fe;
    border-color: #4338ca;
}

.rrv3-resume-bank-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.rrv3-resume-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 36px 20px;
    text-align: center;
    background: #f8fafc;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-top: 14px;
}

.rrv3-resume-dropzone:hover,
.rrv3-resume-dropzone.rrv3-dropzone-active {
    border-color: #0284c7;
    background: #f0f9ff;
}

.rrv3-dropzone-icon {
    font-size: 42px;
    margin-bottom: 8px;
}

html.rrv3-dark-mode .rrv3-resume-bank-card {
    background: #1e293b;
    border-color: #334155;
}

html.rrv3-dark-mode .rrv3-resume-dropzone {
    background: #0f172a;
    border-color: #334155;
}

html.rrv3-dark-mode .rrv3-resume-dropzone:hover,
html.rrv3-dark-mode .rrv3-resume-dropzone.rrv3-dropzone-active {
    border-color: #38bdf8;
    background: #1e293b;
}

/* =========================================================================
   CANDIDATE FULL-PAGE WORKSPACE STYLING (100% Full-Width Linear Sections)
   ========================================================================= */
.rrv3-candidate-full-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 15px;
    z-index: 100;
}

.rrv3-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.rrv3-candidate-title-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rrv3-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rrv3-candidate-nav-arrows {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
}

.rrv3-candidate-full-workspace-flow {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.rrv3-flow-section {
    width: 100%;
    box-sizing: border-box;
    padding: 24px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.rrv3-candidate-hero-banner {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

@media (max-width: 768px) {
    .rrv3-candidate-hero-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.rrv3-hero-avatar-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: zoom-in;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.rrv3-hero-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-radius 0.25s ease;
    transform-origin: center center;
}

/* Hover enlarges avatar by 100% (scale 2.0) */
.rrv3-hero-avatar-wrap:hover {
    z-index: 50;
}

.rrv3-hero-avatar-wrap:hover img {
    transform: scale(2);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 0 3px #0088ff;
}

.rrv3-hero-avatar-wrap:hover .rrv3-modal-avatar-placeholder {
    transform: scale(2);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25), 0 0 0 3px #0088ff;
    background: #e0f2fe;
}

.rrv3-hero-avatar-wrap .rrv3-modal-avatar-placeholder {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-radius 0.25s ease;
    transform-origin: center center;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.rrv3-hero-avatar-wrap .rrv3-modal-avatar-placeholder {
    font-size: 40px;
}

.rrv3-hero-identity {
    flex: 1;
    width: 100%;
}

.rrv3-hero-highlights-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
}

.rrv3-hero-highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rrv3-hero-highlight-item label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 2px;
}

.rrv3-hero-highlight-item span,
.rrv3-hero-highlight-item strong {
    font-size: 13.5px;
    color: #0f172a;
    word-break: break-word;
}

.rrv3-hero-icon {
    font-size: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rrv3-career-edu-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.rrv3-bg-info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.rrv3-card-header-ai {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.rrv3-skill-tag {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Dark mode enhancements for Full-Width Linear View */
html.rrv3-dark-mode .rrv3-candidate-full-topbar,
html.rrv3-dark-mode .rrv3-flow-section,
html.rrv3-dark-mode .rrv3-hero-icon {
    background: #1e293b;
    border-color: #334155;
}

html.rrv3-dark-mode .rrv3-candidate-nav-arrows,
html.rrv3-dark-mode .rrv3-hero-highlights-strip,
html.rrv3-dark-mode .rrv3-bg-info-box {
    background: #0f172a;
    border-color: #334155;
}

html.rrv3-dark-mode #fullview-app-name-title,
html.rrv3-dark-mode #fullview-app-name,
html.rrv3-dark-mode .rrv3-hero-highlight-item span,
html.rrv3-dark-mode .rrv3-hero-highlight-item strong,
html.rrv3-dark-mode .rrv3-bg-info-box span {
    color: #f1f5f9;
}

html.rrv3-dark-mode .rrv3-skill-tag {
    background: rgba(3, 105, 161, 0.25);
    border-color: #0284c7;
    color: #7dd3fc;
}







/* ==========================================================================
   COLLAPSIBLE FLOW SECTIONS (Screening, Scheduler, Scorecard)
   ========================================================================== */

.rrv3-collapsible-flow-section {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.rrv3-collapsible-flow-header {
    padding: 2px 0;
    transition: opacity 0.15s ease;
}

.rrv3-collapsible-flow-header:hover {
    opacity: 0.92;
}

.rrv3-collapse-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    font-size: 11px;
    color: #475569;
    transition: transform 0.2s ease, background-color 0.15s ease;
}

.rrv3-collapsible-flow-header:hover .rrv3-collapse-arrow {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #bae6fd;
}

.rrv3-collapse-pill-badge {
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.rrv3-collapsible-flow-header:hover .rrv3-collapse-pill-badge {
    border-color: #bae6fd;
    transform: scale(1.03);
}

/* Dark mode collapsible overrides */
html.rrv3-dark-mode .rrv3-collapse-arrow {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

html.rrv3-dark-mode .rrv3-collapsible-flow-header:hover .rrv3-collapse-arrow {
    background: #082f49;
    color: #38bdf8;
    border-color: #0369a1;
}

html.rrv3-dark-mode .rrv3-collapse-pill-badge {
    background: #082f49 !important;
    color: #38bdf8 !important;
    border-color: #0369a1 !important;
}


/* Interview Scheduler Header Status Pill */
.rrv3-interview-header-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.rrv3-interview-pill-unset {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.rrv3-interview-pill-scheduled {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #7dd3fc;
    box-shadow: 0 1px 4px rgba(3, 105, 161, 0.12);
}

.rrv3-interview-pill-cancelled {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.rrv3-interview-pill-completed {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

html.rrv3-dark-mode .rrv3-interview-pill-unset {
    background: #1e293b;
    color: #94a3b8;
    border-color: #334155;
}

html.rrv3-dark-mode .rrv3-interview-pill-scheduled {
    background: #082f49;
    color: #38bdf8;
    border-color: #0369a1;
}

html.rrv3-dark-mode .rrv3-interview-pill-cancelled {
    background: #450a0a;
    color: #f87171;
    border-color: #991b1b;
}

html.rrv3-dark-mode .rrv3-interview-pill-completed {
    background: #052e16;
    color: #4ade80;
    border-color: #166534;
}


/* Status Badges for KIV and Archived */
.rrv3-hr-badge.rrv3-status-kiv,
.rrv3-status-kiv {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
    border-color: #fde68a !important;
    font-weight: 700 !important;
}

.rrv3-hr-badge.rrv3-status-archived,
.rrv3-status-archived {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}

html.rrv3-dark-mode .rrv3-hr-badge.rrv3-status-kiv,
html.rrv3-dark-mode .rrv3-status-kiv {
    background-color: #78350f !important;
    color: #fde68a !important;
    border-color: #92400e !important;
}

html.rrv3-dark-mode .rrv3-hr-badge.rrv3-status-archived,
html.rrv3-dark-mode .rrv3-status-archived {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
}


/* ==========================================================================
   ULTRA GLASS & MIRROR FINISH OVERRIDES FOR HR & ATS DASHBOARD
   ========================================================================== */

/* Main HR Dashboard Container & Ambient Backing */
.rrv3-hr-dashboard {
    position: relative;
    z-index: 1;
}

/* Metric Cards with Specular Top Highlights */
.rrv3-hr-metric-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.65) 100%) !important;
    backdrop-filter: blur(14px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 8px 24px rgba(31, 38, 135, 0.08), inset 0 1px 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.03) !important;
    border-radius: 12px !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.2s ease !important;
}

.rrv3-hr-metric-card:hover {
    transform: translateY(-4px) scale(1.02) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.80) 100%) !important;
    box-shadow: 0 14px 32px rgba(0, 136, 255, 0.15), inset 0 1px 2px 0 rgba(255, 255, 255, 1) !important;
    border-color: #0088ff !important;
}

/* HR Filter Strips with Frosted Glass */
.rrv3-hr-filter-strip {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.78) 0%, rgba(241, 245, 249, 0.68) 100%) !important;
    backdrop-filter: blur(14px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), inset 0 1px 1px 0 rgba(255, 255, 255, 0.9) !important;
    border-radius: 10px !important;
}

/* HR Tab Bar Glass Finish */
.rrv3-hr-tab-bar {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(14px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 10px !important;
    padding: 4px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
}

.rrv3-hr-tab-bar .rrv3-tab-btn {
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.rrv3-hr-tab-bar .rrv3-tab-btn.active {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%) !important;
    border: 1px solid #bae6fd !important;
    color: #0284c7 !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15), inset 0 1px 1px #ffffff !important;
    font-weight: 700 !important;
}

/* ATS Tables Glass Paneling */
.rrv3-hr-dashboard .rrv3-table-wrap {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(14px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
    border-radius: 12px !important;
}

.rrv3-hr-dashboard .rrv3-table thead th {
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.85) 0%, rgba(212, 237, 252, 0.75) 100%) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-bottom: 2px solid rgba(186, 230, 253, 0.9) !important;
}

.rrv3-hr-dashboard .rrv3-table tbody tr {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    transition: background-color 0.15s ease, transform 0.15s ease !important;
}

.rrv3-hr-dashboard .rrv3-table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.55) !important;
}

.rrv3-hr-dashboard .rrv3-table tbody tr:hover {
    background: rgba(230, 244, 255, 0.85) !important;
}

/* Candidate Full-Page View Glass Topbar & Floating Navigation */
.rrv3-candidate-full-topbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.75) 100%) !important;
    backdrop-filter: blur(20px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), inset 0 1px 2px 0 rgba(255, 255, 255, 1) !important;
    border-radius: 12px !important;
}

/* Candidate Full-Flow Linear Sections */
.rrv3-candidate-full-workspace-flow .rrv3-flow-section,
.rrv3-candidate-full-workspace-flow .rrv3-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.68) 100%) !important;
    backdrop-filter: blur(14px) saturate(170%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(170%) !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 8px 28px rgba(31, 38, 135, 0.06), inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.95) !important;
    border-radius: 12px !important;
}

/* Hero Highlights Strip Mirror Specular Surface */
.rrv3-hero-highlights-strip {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.75) 0%, rgba(241, 245, 249, 0.65) 100%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
    border-radius: 10px !important;
}

/* Resume Bank Upload Dropzone Mirror Finish */
.rrv3-resume-bank-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.68) 100%) !important;
    backdrop-filter: blur(14px) saturate(170%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(170%) !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.08), inset 0 1px 2px rgba(255, 255, 255, 1) !important;
}

.rrv3-resume-dropzone {
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.6) 0%, rgba(224, 242, 254, 0.4) 100%) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 2px dashed rgba(2, 132, 199, 0.4) !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9) !important;
}

/* Dark Mode Mirror Overrides for HR */
html.rrv3-dark-mode .rrv3-hr-metric-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.80) 0%, rgba(15, 23, 42, 0.70) 100%) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 1px 0 rgba(255, 255, 255, 0.18) !important;
}

html.rrv3-dark-mode .rrv3-hr-metric-card:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 14px 32px rgba(2, 132, 199, 0.3), inset 0 1px 2px 0 rgba(255, 255, 255, 0.3) !important;
}

html.rrv3-dark-mode .rrv3-hr-filter-strip {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.65) 100%) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 1px 0 rgba(255, 255, 255, 0.12) !important;
}

html.rrv3-dark-mode .rrv3-hr-tab-bar {
    background: rgba(15, 23, 42, 0.65) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html.rrv3-dark-mode .rrv3-hr-tab-bar .rrv3-tab-btn.active {
    background: linear-gradient(135deg, #0f172a 0%, #082f49 100%) !important;
    border-color: #0369a1 !important;
    color: #38bdf8 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
}

html.rrv3-dark-mode .rrv3-candidate-full-topbar {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.75) 100%) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 2px 0 rgba(255, 255, 255, 0.2) !important;
}

html.rrv3-dark-mode .rrv3-candidate-full-workspace-flow .rrv3-flow-section,
html.rrv3-dark-mode .rrv3-candidate-full-workspace-flow .rrv3-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.80) 0%, rgba(15, 23, 42, 0.70) 100%) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.15) !important;
}

html.rrv3-dark-mode .rrv3-hero-highlights-strip {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 41, 59, 0.65) 100%) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ==========================================================================
   DYNAMIC COMPETENCY SCORECARD STYLES
   ========================================================================== */
.rrv3-rating-buttons-strip {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    margin: 8px 0;
}

.rrv3-star-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 42px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #475569;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}

.rrv3-star-btn:hover {
    background: #fef3c7;
    color: #b45309;
    border-color: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(245, 158, 11, 0.2);
}

.rrv3-star-btn.star-active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border-color: #b45309;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
}

.rrv3-star-btn.star-hovered {
    background: #fef3c7;
    color: #b45309;
    border-color: #f59e0b;
}

.rrv3-star-btn-clear {
    min-width: 30px;
    font-size: 11px;
    color: #94a3b8;
    background: #f8fafc;
}

.rrv3-star-btn-clear:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #f87171;
}

.rrv3-rating-scale-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 11px;
    color: #64748b;
}

.rrv3-rating-weight-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.rrv3-rating-scale-badge {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

/* Dark Mode for Dynamic Scorecard */
html.rrv3-dark-mode .rrv3-star-btn {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

html.rrv3-dark-mode .rrv3-star-btn:hover,
html.rrv3-dark-mode .rrv3-star-btn.star-hovered {
    background: #451a03;
    color: #fde68a;
    border-color: #f59e0b;
}

html.rrv3-dark-mode .rrv3-star-btn.star-active {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    border-color: #f59e0b;
}

html.rrv3-dark-mode .rrv3-star-btn-clear {
    background: #0f172a;
    color: #64748b;
    border-color: #334155;
}

html.rrv3-dark-mode .rrv3-star-btn-clear:hover {
    background: #450a0a;
    color: #fca5a5;
    border-color: #ef4444;
}

html.rrv3-dark-mode .rrv3-rating-scale-ticks {
    color: #94a3b8;
}

html.rrv3-dark-mode .rrv3-rating-scale-badge {
    background: #1e293b;
    color: #94a3b8;
    border-color: #334155;
}

html.rrv3-dark-mode #fullview-vacancy-guide-box {
    background: #064e3b !important;
    border-color: #047857 !important;
}

html.rrv3-dark-mode #fullview-vacancy-guide-content {
    color: #a7f3d0 !important;
}

/* ATS Tables Responsive Touch Scroll & Column Width Hardening */
.rrv3-hr-dashboard .rrv3-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    position: relative;
    border-radius: 12px;
    margin-bottom: 16px;
}

.rrv3-hr-applicants-table {
    min-width: 1050px !important;
    width: 100% !important;
}

#rrv3-hr-vacancies-table {
    min-width: 860px !important;
    width: 100% !important;
}

#rrv3-hr-archive-table {
    min-width: 960px !important;
    width: 100% !important;
}

#rrv3-resume-queue-table {
    min-width: 780px !important;
    width: 100% !important;
}

.rrv3-hr-applicants-table th,
.rrv3-hr-applicants-table td {
    vertical-align: middle;
}

.rrv3-hr-applicants-table td:nth-child(2) {
    white-space: nowrap;
}

.rrv3-hr-applicants-table td:nth-child(7) {
    font-weight: 600;
}


