/* /recruiters: кабинет вакансии и таблица откликов в стиле recruiter_vacancy_detail */

.rl-cabinet {
    position: relative;
    z-index: 1;
    margin-top: 8px;
}

.rl-cabinet-frame {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: 24px;
    background: var(--surface-primary);
}

.rl-vacancy {
    padding: 16px;
    border: 1px solid var(--filter-divider);
    border-radius: 20px;
    background: var(--surface-primary);
}

.rl-vacancy-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: var(--fs-20);
    font-weight: var(--fw-medium);
    line-height: var(--lh-20);
    letter-spacing: var(--ls-20);
}

.rl-vacancy-meta {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: var(--fs-16);
    line-height: var(--lh-16);
    letter-spacing: var(--ls-16);
}

/* Как .recruiter-status-dot: активная вакансия */
.rl-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(77, 178, 136, .25);
    animation: rl-dot-pulse 1.6s ease-in-out infinite;
}

.rl-dot::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1fad82;
}

@keyframes rl-dot-pulse {
    50% { transform: scale(1.25); }
}

/* Статусы в одну строку с горизонтальной прокруткой, без полосы прокрутки */
.rl-chips {
    display: flex;
    flex: none;   /* прокручиваемый ряд в колонке кабинета иначе сжимается по высоте */
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.rl-chips::-webkit-scrollbar {
    display: none;
}

.rl-chips .filter-chip {
    flex: none;
    gap: 6px;
    height: auto;
}

.rl-chips .chip-count.is-bump,
.rl-periods .chip-count.is-bump {
    animation: rl-bump .45s cubic-bezier(.22, 1, .36, 1);
}

@keyframes rl-bump {
    40% { transform: scale(1.35); }
}

/* Таблица откликов */
.rl-table {
    --rl-cols: minmax(0, 1.7fr) minmax(0, 1.1fr) minmax(0, .9fr) 128px 64px 100px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--surface-secondary);
}

.rl-thead,
.rl-row {
    display: grid;
    grid-template-columns: var(--rl-cols);
    align-items: center;
    gap: 12px;
}

.rl-thead {
    padding: 14px 20px;
    color: var(--text-muted);
    font-size: var(--fs-14);
    line-height: var(--lh-14);
}

.rl-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 8px 8px;
}

.rl-row {
    padding: 14px 12px;
    border-radius: 16px;
    background: var(--surface-primary);
    color: var(--text-color);
    font-size: var(--fs-16);
    line-height: var(--lh-16);
    transition: opacity .4s ease, filter .4s ease;
}

/* Кабинет: пять строк фиксированной высоты — новый отклик сверху не меняет высоту блока */
.rl-cabinet .rl-row {
    height: 68px;
    box-sizing: border-box;
}

/* box-sizing: border-box — в высоте и нижний отступ 8px */
.rl-cabinet .rl-rows {
    height: 380px;
    overflow: hidden;
}

.rl-cabinet .rl-row.is-arriving {
    animation: rl-row-grow .5s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes rl-row-grow {
    from { height: 0; padding-top: 0; padding-bottom: 0; margin-top: -8px; opacity: 0; }
}

.rl-cand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.rl-photo {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.rl-cand-info {
    min-width: 0;
}

/* Длинное имя обрезается, а не уходит под статус */
.rl-name {
    overflow: hidden;
    font-weight: var(--fw-medium);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rl-grade {
    color: var(--text-muted);
    font-size: var(--fs-14);
    line-height: var(--lh-14);
}

.rl-cell {
    min-width: 0;
}

/* Как .recruiter-status-badge.status-badge */
.rl-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px 6px 12px;
    border-radius: 8px;
    background: var(--surface-secondary);
    color: var(--text-color);
    font-size: var(--fs-14);
    font-weight: var(--fw-medium);
    line-height: 1;
    white-space: nowrap;
    transition: background-color .3s ease, color .3s ease;
}

.rl-match {
    font-weight: var(--fw-medium);
    font-variant-numeric: tabular-nums;
    transition: color .3s ease;
}

.rl-match.is-pending {
    color: var(--text-muted);
}

/* Точки и анимация — как у «печатает» в чате (.rl-typing, 03_chat_stages_pin.css) */
.rl-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
}

.rl-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: rl-typing 1s ease-in-out infinite;
}

.rl-dots i:nth-child(2) { animation-delay: .15s; }
.rl-dots i:nth-child(3) { animation-delay: .3s; }

.rl-actions {
    display: inline-flex;
    justify-content: flex-end;
    gap: 8px;
}

.rl-icon-btn.btn {
    position: relative;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    cursor: default;
    transition: transform .2s ease, background-color .2s ease;
}

.rl-icon-btn.is-pressed {
    transform: scale(.9);
    background-color: var(--hover-light) !important;
}

.rl-unread {
    position: absolute;
    top: -6px;
    right: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #E23D3E;
    color: #fff;
    font-size: var(--fs-12);
    font-weight: var(--fw-medium);
    line-height: 1;
    box-shadow: 0 0 0 3px var(--surface-primary);
    animation: rl-bump .45s cubic-bezier(.22, 1, .36, 1);
}

/* Тарифы: вид окна оплаты (css/pro_plans, includes/landing_pricing.html), здесь отступ блока и пакеты закреплений под тарифами */
/* Кнопка «Посмотреть цены» в hero ведёт сюда: заголовок не прячется под шапкой */
.rl-pricing {
    margin-top: 120px;
    scroll-margin-top: 96px;
}

.pp-landing .rl-free-note {
    margin: 0 0 16px;
    font-size: var(--fs-16);
    line-height: 22px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.rl-pins {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
}

html.dark-theme .rl-cabinet-frame,
html.dark-theme .rl-vacancy {
    background: var(--surface-primary);
}

@media (max-width: 1279px) {
    .rl-cabinet-frame {
        padding: 12px;
    }

    .rl-cabinet .rl-table {
        --rl-cols: minmax(0, 1fr) 92px 44px;
    }

    .rl-cabinet .rl-table :is(.rl-col-city, .rl-col-salary, .rl-actions, .rl-thead span:last-child) {
        display: none;
    }

    .rl-row {
        padding: 10px;
    }

    /* Фото меньше — имени в узкой первой колонке остаётся больше места */
    .rl-row .rl-cand {
        gap: 8px;
    }

    .rl-row .rl-photo,
    .candidate-feature-media.rl-scene .rl-row .rl-photo {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }

    .rl-cabinet .rl-row {
        height: 60px;
    }

    .rl-cabinet .rl-rows {
        height: 340px;
    }

    .rl-pricing {
        margin-top: 80px;
    }

    .rl-pins {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rl-dot,
    .rl-row,
    .rl-unread,
    .rl-status,
    .rl-dots i {
        animation: none !important;
    }
}
