:root {
    --csa-primary: rgb(31, 101, 141);
    --csa-primary-soft: rgba(31, 101, 141, 0.08);
}

/* =========================
   BASE
========================= */

#csa-jobs {
    display: block;
    width: 100%;
}

.csa-jobs-app {
    display: flex;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 10px;

    background: #fff;
}

/* CRÍTICO */
.csa-jobs-sidebar,
.csa-jobs-detail {
    min-width: 0;
    min-height: 0;
}

/* =========================
   SIDEBAR
========================= */

.csa-jobs-sidebar {
    width: 30%;
    display: flex;
    flex-direction: column;

    background: #fff;

    min-height: 0;

    padding: 36px 0 24px 0;
}

/* HEADER */

.csa-sidebar-header {
    padding: 0 28px;
    margin-bottom: 28px;

    flex-shrink: 0;
}

.csa-sidebar-header h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
    color: #111827;
}

.csa-sidebar-header p {
    margin-top: 14px;
    font-size: 18px;
    color: #6b7280;
}

.csa-jobs-list-wrapper {
    margin: 0 14px;

    border: 1px solid #e5e7eb;
    border-radius: 8px;

    overflow: hidden;

    background: #fff;

    min-height: 0;
}
.csa-jobs-list {
    overflow-y: auto;
    min-height: 0;

    border-top: 1px solid #f3f4f6;
}

/* =========================
   JOB ITEM
========================= */

.csa-job-item {
    position: relative;

    padding: 18px 52px 18px 20px;

    border-top: 1px solid #e5e7eb;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-left 0.2s ease;

    display: flex;
    flex-direction: column;
}

/* TITLE */

.csa-job-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}

/* LOCATION */

.csa-job-location {
    margin-top: 8px;

    display: flex;
    align-items: center;
    gap: 6px;

    font-size: 12px;
    line-height: 1;

    color: #6b7280;
}

/* PIN ICON */

.csa-location-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* CHEVRON */

.csa-job-chevron {
    position: absolute;

    right: 18px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 12px;
    color: #6b7280;

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

/* HOVER */

.csa-job-item:hover {
    background: var(--csa-primary-soft);
    border-left: 3px solid var(--csa-primary);
    padding-left: 17px;
}

.csa-job-item:hover .csa-job-chevron {
    color: var(--csa-primary);
    transform: translateY(-50%) translateX(2px);
}

/* ACTIVE */

.csa-job-item.active {
    background: var(--csa-primary-soft);
    border-left: 3px solid var(--csa-primary);
    padding-left: 17px;
}

.csa-job-item.active .csa-job-title {
    color: var(--csa-primary);
}

.csa-job-item.active .csa-job-chevron {
    color: var(--csa-primary);
}

/* =========================
   RIGHT PANEL
========================= */

.csa-jobs-detail {
    width: 75%;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

/* SCROLLABLE CONTENT */

.csa-job-detail-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 34px 36px;
}

/* TITLE */

.csa-job-detail-content h1 {
    margin: 0;

    font-size: 32px;
    line-height: 1.1;

    font-weight: 700;
    color: #111827;
}

/* DETAIL LOCATION */

.csa-detail-location {
    margin-top: 16px;

    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--csa-primary);

    font-size: 15px;
    font-weight: 600;
}

/* DIVIDER */

.csa-job-detail-content hr {
    margin: 28px 0;

    border: none;
    border-top: 1px solid #e5e7eb;
}

/* DESCRIPTION */

.csa-job-description {
    font-size: 16px;
    line-height: 1.7;
    color: #222;
}

/* APPLY FORM */

.csa-job-apply-form {
    flex-shrink: 0;
    padding: 24px 36px;
    border-top: 1px solid #e5e7eb;
}

.csa-jobs-sidebar {
    width: 30%;
    display: flex;
    flex-direction: column;

    border-right: 1px solid #e5e7eb;
    background: #fff;

    min-height: 0;
}

.csa-sidebar-header {
    flex-shrink: 0;
}

.csa-jobs-list {
    overflow-y: auto;
    min-height: 0;
}