/* ── Universal inline attachment uploader ─────────────────────────────────── */

.att-uploader {
    position: relative;
}

/* Empty drop zone */
.att-dropzone {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    border: 1.5px dashed #b6cdf2;
    border-radius: 0.75rem;
    background: #fbfdff;
    transition:
        border-color 0.15s,
        background 0.15s;
}

.att-dropzone--over {
    border-color: #0d6efd;
    background: #eef5ff;
}

.att-add-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-width: 116px;
    padding: 1rem 1.25rem;
    border: 1px solid #cfe0fb;
    border-radius: 0.6rem;
    background: #fff;
    color: #0d6efd;
    cursor: pointer;
    transition:
        background 0.15s,
        border-color 0.15s;
}
.att-add-btn:hover {
    background: #f1f7ff;
    border-color: #0d6efd;
}
.att-add-icon {
    font-size: 1.5rem;
    line-height: 1;
}
.att-add-text {
    font-size: 0.8rem;
    font-weight: 600;
}

.att-dropzone-title {
    font-weight: 600;
    color: #334155;
}
.att-dropzone-sub {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* File cards row */
.att-files {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Split/sidebar mode: stack full-width cards vertically */
.att-files--stacked {
    flex-flow: column nowrap;
}

.att-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 200px;
    padding: 0.4rem 0.5rem;
    border: 1px solid #e5e9f0;
    border-radius: 0.55rem;
    background: #fff;
    position: relative;
}
.att-card--error {
    border-color: #f1aeb5;
    background: #fff8f8;
}
.att-card--done {
    border-color: #badbcc;
}
.att-card--uploading {
    opacity: 0.85;
}
.att-files--stacked .att-card {
    width: 100%;
}

.att-thumb {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 0.4rem;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
}

.att-thumb--doc {
    display: flex;
    align-items: center;
    justify-content: center;
}
.att-doc-icon {
    font-size: 1.6rem;
    line-height: 1;
    color: #64748b;
}
.att-icon-pdf {
    color: #e2433b;
}
.att-icon-word {
    color: #2b7cd3;
}
.att-icon-excel {
    color: #1d8a4f;
}

.att-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}

.att-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.att-size {
    font-size: 0.72rem;
    color: #94a3b8;
}
.att-error-msg {
    font-size: 0.72rem;
    color: #dc3545;
}

.att-remove {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e9f0;
    border-radius: 50%;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition:
        background 0.15s,
        color 0.15s;
}
.att-remove:hover {
    background: #fbeaea;
    color: #dc3545;
    border-color: #f1aeb5;
}

/* persistent "+" tile in gallery mode */
.att-card--add {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.1rem;
    width: 84px;
    border: 1.5px dashed #b6cdf2;
    background: #fbfdff;
    color: #0d6efd;
    cursor: pointer;
}
.att-card--add:hover {
    border-color: #0d6efd;
    background: #f1f7ff;
}
.att-files--stacked .att-card--add {
    flex-direction: row;
    width: 100%;
    gap: 0.4rem;
    padding: 0.45rem;
}

/* Indeterminate upload progress */
.att-progress {
    display: block;
    height: 3px;
    margin-top: 0.3rem;
    border-radius: 2px;
    background: #e5e9f0;
    overflow: hidden;
}

.att-progress-bar {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: 2px;
    background: #0d6efd;
    animation: att-indeterminate 1.1s infinite ease-in-out;
}

@keyframes att-indeterminate {
    0% {
        margin-left: -40%;
    }
    100% {
        margin-left: 100%;
    }
}

.att-toast {
    position: absolute;
    right: 0;
    bottom: -1.6rem;
    font-size: 0.78rem;
    color: #dc3545;
}

/* ── Vacancies module styles ─────────────────────────────────────── */

/* Department filter chips */
.vac-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    background: #fff;
    color: var(--navy-dark, #0f1d3a);
    text-decoration: none;
    border: 1px solid #c8d4e8;
    transition:
        background 0.15s,
        color 0.15s,
        border-color 0.15s;
    white-space: nowrap;
}

.vac-filter-chip:hover {
    background: #f0f4fb;
    border-color: var(--navy, #1b2a52);
    color: var(--navy-dark, #0f1d3a);
}

.vac-filter-chip.active {
    background: var(--navy, #1b2a52);
    color: #fff;
    border-color: var(--navy, #1b2a52);
}

/* Department card-tabs (icon + name + count) */
.vac-dept-tab {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex: 1;
    min-width: 72px;
    padding: 0.55rem 0.5rem 0.45rem;
    border: 1px solid #dce4f0;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    transition:
        border-color 0.15s,
        background 0.15s;
}

.vac-dept-tab:hover {
    border-color: var(--navy, #1b2a52);
    background: #f5f7fc;
}

.vac-dept-tab.active {
    border: 2px solid var(--navy, #1b2a52);
    background: #fff;
}

.vac-dept-tab-icon {
    font-size: 1.5rem;
    color: var(--navy, #1b2a52);
    opacity: 0.8;
}

.vac-dept-tab.active .vac-dept-tab-icon {
    opacity: 1;
}

.vac-dept-tab-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

.vac-dept-tab.active .vac-dept-tab-name {
    color: var(--navy, #1b2a52);
}

.vac-dept-tab-cnt {
    position: absolute;
    top: 0.2rem;
    right: 0.35rem;
    font-size: 0.62rem;
    color: #89b;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .vac-dept-tabs {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, 88px);
        gap: 12px !important;
        justify-content: space-between;
    }

    .vac-dept-tab {
        position: relative;
        flex: none;
        width: 88px;
        min-width: 88px;
        height: 88px;
        padding: 10px;
        gap: 0;
    }

    .vac-dept-tab-name {
        display: none;
    }

    .vac-dept-tab-icon {
        font-size: 26px;
    }

    .vac-dept-tab-cnt {
        top: 8px;
        right: 10px;
    }
}

/* Search field */
.vac-search {
    min-width: 200px;
}

/* Vacancy card */
.vac-card {
    position: relative;
    background: #fff;
    border: 1px solid #e8ecf4;
    border-radius: 10px;
    overflow: hidden;
    transition:
        box-shadow 0.2s,
        border-color 0.2s;
}

.vac-card:hover {
    box-shadow: 0 4px 18px rgba(15, 29, 58, 0.1);
    border-color: #c8d0e0;
}

.vac-card-img-wrap {
    padding: 0.85rem 0 0.85rem 0.85rem;
    flex-shrink: 0;
    align-self: flex-start;
}

.vac-card-img {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #eef2fa;
    border-radius: 10px;
    flex-shrink: 0;
}

.vac-card-img img {
    width: 54px;
    height: 54px;
    object-fit: cover;
}

.vac-card-img-placeholder {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--navy, #1b2a52);
    opacity: 0.5;
}

.vac-card-body {
    padding: 0.9rem 1.1rem;
}

/* ── Font improvements (structure unchanged) ─────────────────────────────── */
.vac-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.3rem;
}

.vac-card-title a {
    color: var(--navy, #1b2a52);
    text-decoration: none;
}

.vac-card-title a:hover {
    text-decoration: underline;
}

/* Card meta line: city · dept · salary */
.vac-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.75rem;
    font-size: 0.875rem;
    color: #5a6580;
    margin-bottom: 0.45rem;
}

.vac-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.vac-card-desc {
    font-size: 0.9rem;
    color: #4b5870;
    margin-bottom: 0.5rem;
    line-height: 1.65;
}

/* Hot label — inline, above card title */
.vac-hot-label {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--red, #c1272d);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: 0.01em;
}

/* Circle arrow button — replaces text "Детальніше" */
.vac-circle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--navy, #1b2a52);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.15s;
}

.vac-circle-btn:hover {
    background: var(--navy-dark, #0f1d3a);
    color: #fff;
}

/* Vacancy meta badges */
.vac-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.vac-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: #eef1f8;
    color: #445;
}

.vac-badge-dept {
    background: #e8f0fc;
    color: var(--navy, #1b2a52);
    font-weight: 600;
}

.vac-badge-salary {
    background: #e6f7ee;
    color: #1a6b3c;
}

/* Detail btn */
.vac-detail-btn {
    font-size: 0.82rem;
    background: transparent;
    border: 1px solid var(--navy, #1b2a52);
    color: var(--navy, #1b2a52);
}

.vac-detail-btn:hover {
    background: var(--navy, #1b2a52);
    color: #fff;
}

/* Show-more button */
.vac-show-more-btn {
    border: 1.5px solid var(--navy, #1b2a52);
    color: var(--navy, #1b2a52);
    background: #fff;
    padding: 0.55rem 2.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition:
        background 0.15s,
        color 0.15s;
}

.vac-show-more-btn:hover {
    background: var(--navy, #1b2a52);
    color: #fff;
}

/* Empty state */
.vac-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

/* Detail page */
.vac-back-link {
    color: var(--navy, #1b2a52);
}

.vac-detail-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy-dark, #0f1d3a);
    margin-bottom: 0.75rem;
}

.vac-detail-img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 10px;
}

.vac-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-dark, #0f1d3a);
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #e8ecf4;
    margin-bottom: 0.75rem;
}

.vac-section-body {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.7;
}

/* Benefit icon cards */
.vac-benefit-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.vac-benefit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.6rem 0.6rem;
    width: calc(20% - 0.6rem);
    min-width: 90px;
    border: 1px solid #e8ecf4;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.vac-benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eef2fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--navy, #1b2a52);
    flex-shrink: 0;
}

.vac-benefit-text {
    font-size: 0.72rem;
    color: #333;
    line-height: 1.3;
}

/* Bottom CTA strip */
.vac-cta-strip {
    border: 1px solid #e8ecf4;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    background: #fff;
}

.vac-cta-heading {
    color: var(--navy-dark, #0f1d3a);
    font-size: 1rem;
}

/* Sidebar contact icons */
.vac-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eef2fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--navy, #1b2a52);
    flex-shrink: 0;
}

/* Main content area — matches standard 3.5rem section top gap */
.vac-main-content {
    padding-top: 3.5rem;
    padding-bottom: 1rem;
}

/* Apply button */
.vac-apply-btn {
    background: var(--red, #c1272d);
    border-color: var(--red, #c1272d);
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Sidebar resume form */
.vac-sidebar-card {
    position: sticky;
    top: 80px;
}

.vac-btn-navy {
    background: var(--navy, #1b2a52);
    color: #fff;
    border: none;
}

.vac-btn-navy:hover {
    background: var(--navy-dark, #0f1d3a);
    color: #fff;
}

/* Apply modal header */
.vac-modal-header {
    background: var(--navy-dark, #0f1d3a);
}

/* Other mobile adjustments */
@media (max-width: 767px) {
    .vac-card-img-wrap {
        padding: 0.6rem 0 0.6rem 0.6rem;
    }

    .vac-card-img,
    .vac-card-img img,
    .vac-card-img-placeholder {
        width: 44px;
        height: 44px;
    }

    .vac-detail-title {
        font-size: 1.4rem;
    }

    .vac-sidebar-card {
        position: static;
    }
}

.modal-header {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    min-height: auto;
}

.modal-header-color {
    background: #00406e;
    color: #fff;
}

.btn-close-custom {
    position: relative;
    width: 2.2rem;
    height: 2.2rem;
    background-color: transparent;
    border: 1px solid #fff;
    border-radius: 0.375rem;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.btn-close-custom::before,
.btn-close-custom::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 2px;
    background-color: #fff;
    top: 50%;
    left: 50%;
    transform-origin: center;
}

.btn-close-custom::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.btn-close-custom::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.btn-close-custom:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ── Modal loading state ─────────────────────────────────────────────────── */

.modal.is-loading .modal-body {
    opacity: 0.4;
    pointer-events: none;
}
.modal.is-loading .modal-spinner {
    display: flex;
}

.modal-footer:empty {
    display: none;
}

