.tajobs-cv-wrap {
    --taj-p: #1a56db;
    --taj-ink: #111827;
    --taj-mut: #6b7280;
    --taj-line: #e5e7eb;
    --taj-bg: #f8fafc;
    --taj-card: #ffffff;

    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px;
    color: var(--taj-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.5;
    box-sizing: border-box;
}

.tajobs-cv-wrap *,
.tajobs-cv-wrap *::before,
.tajobs-cv-wrap *::after {
    box-sizing: border-box;
}

.tajobs-cv-hero {
    margin-bottom: 14px;
    padding: 28px 24px;
    border: 1px solid var(--taj-line);
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
}

.tajobs-cv-h1 {
    margin: 0 0 8px;
    font-size: clamp(27px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -.02em;
}

.tajobs-cv-lead {
    max-width: 650px;
    margin: 0 0 16px;
    color: #374151;
    font-size: 16px;
}

.tajobs-cv-hero-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tajobs-cv-badge {
    color: var(--taj-mut);
    font-size: 13px;
}

.tajobs-cv-privacy {
    margin: 16px 0 0;
    padding: 9px 11px;
    border: 1px dashed var(--taj-line);
    border-radius: 10px;
    background: #fff;
    color: #4b5563;
    font-size: 13px;
}

.tajobs-cv-btn {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--taj-line);
    border-radius: 10px;
    background: #fff;
    color: var(--taj-ink);
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    appearance: none;
}

.tajobs-cv-btn:hover {
    border-color: #a5b4fc;
    background: #f5f7ff;
}

.tajobs-cv-btn-primary {
    border-color: var(--taj-p);
    background: var(--taj-p);
    color: #fff;
}

.tajobs-cv-btn-primary:hover {
    border-color: #1648b5;
    background: #1648b5;
}

.tajobs-cv-btn-secondary {
    min-height: 40px;
    padding: 8px 12px;
    border-color: #111827;
    background: #111827;
    color: #fff;
    font-size: 14px;
}

.tajobs-cv-btn-ghost {
    background: #fff;
}

.tajobs-cv-btn-small {
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
}

.tajobs-cv-btn-big {
    padding: 13px 22px;
    font-size: 17px;
}

.tajobs-cv-link {
    padding: 4px;
    border: 0;
    background: none;
    color: var(--taj-p);
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
}

.tajobs-cv-builder {
    display: grid;
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.tajobs-cv-editor,
.tajobs-cv-preview {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--taj-line);
    border-radius: 14px;
    background: var(--taj-card);
}

.tajobs-cv-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.tajobs-cv-steps li {
    flex: 1 1 70px;
    padding: 7px 4px;
    border: 1px solid var(--taj-line);
    border-radius: 8px;
    background: var(--taj-bg);
    color: var(--taj-mut);
    cursor: pointer;
    font-size: 12px;
    text-align: center;
}

.tajobs-cv-steps li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 3px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1e40af;
    font-weight: 800;
}

.tajobs-cv-steps li.is-active {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.tajobs-cv-steps li.is-active span {
    background: #fff;
    color: #111827;
}

.tajobs-cv-steps li.is-done {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

.tajobs-cv-alert {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 14px;
}

.tajobs-cv-step {
    display: none;
}

.tajobs-cv-step.is-active {
    display: block;
}

.tajobs-cv-step-title {
    margin: 0 0 11px;
    font-size: 19px;
}

.tajobs-cv-title-gap {
    margin-top: 20px;
}

.tajobs-cv-sub {
    margin: 18px 0 8px;
    font-size: 16px;
}

.tajobs-cv-field {
    display: block;
    margin-bottom: 11px;
    font-size: 14px;
    font-weight: 600;
}

.tajobs-cv-field small {
    color: var(--taj-mut);
    font-weight: 400;
}

.tajobs-cv-field input,
.tajobs-cv-field textarea,
.tajobs-cv-field select,
.tajobs-cv-inline-row input,
.tajobs-cv-inline-row select {
    width: 100%;
    margin-top: 5px;
    padding: 10px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--taj-ink);
    font: inherit;
    font-size: 15px;
    font-weight: 400;
}

.tajobs-cv-field textarea {
    min-height: 80px;
    resize: vertical;
}

.tajobs-cv-field input:focus,
.tajobs-cv-field textarea:focus,
.tajobs-cv-field select:focus,
.tajobs-cv-inline-row input:focus,
.tajobs-cv-inline-row select:focus {
    border-color: var(--taj-p);
    box-shadow: 0 0 0 3px #dbeafe;
}

.tajobs-cv-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tajobs-cv-hint {
    margin: 6px 0 12px;
    color: var(--taj-mut);
    font-size: 13px;
}

.tajobs-cv-photo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
}

.tajobs-cv-photo-row img {
    width: 64px;
    height: 64px;
    border: 1px solid var(--taj-line);
    border-radius: 50%;
    object-fit: cover;
}

.tajobs-cv-card {
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid var(--taj-line);
    border-radius: 10px;
    background: #fff;
}

.tajobs-cv-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.tajobs-cv-icon-btns {
    display: flex;
    gap: 4px;
}

.tajobs-cv-icon-btns button {
    min-width: 32px;
    min-height: 32px;
    border: 1px solid var(--taj-line);
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
}

.tajobs-cv-checkline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 22px 0 10px;
    font-size: 14px;
    font-weight: 400;
}

.tajobs-cv-checkline input {
    width: 16px;
    height: 16px;
}

.tajobs-cv-inline-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 10px;
}

.tajobs-cv-inline-row input {
    flex: 2;
    min-width: 0;
}

.tajobs-cv-inline-row select {
    flex: 1.2;
    min-width: 0;
}

.tajobs-cv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.tajobs-cv-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 12px;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    background: #eef2ff;
    font-size: 14px;
}

.tajobs-cv-chip button {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

.tajobs-cv-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0;
    font-size: 14px;
}

.tajobs-cv-tpl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tajobs-cv-tpl {
    padding: 10px;
    border: 2px solid var(--taj-line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: left;
}

.tajobs-cv-tpl.is-active {
    border-color: var(--taj-p);
    box-shadow: 0 0 0 3px #dbeafe;
}

.tajobs-cv-tpl strong,
.tajobs-cv-tpl span {
    display: block;
}

.tajobs-cv-tpl strong {
    font-size: 14px;
}

.tajobs-cv-tpl span:last-child {
    color: var(--taj-mut);
    font-size: 12px;
}

.tajobs-cv-mini {
    height: 74px;
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid var(--taj-line);
    border-radius: 8px;
    background: #fff;
}

.tajobs-cv-mini.m-professional {
    background: linear-gradient(180deg, #fff 30%, #f1f5f9 30%);
}

.tajobs-cv-mini.m-modern {
    background: linear-gradient(90deg, #1e40af 32%, #fff 32%);
}

.tajobs-cv-mini.m-simple {
    background: repeating-linear-gradient(180deg, #fff 0 9px, #e5e7eb 9px 10px);
}

.tajobs-cv-mini.m-creative {
    background: linear-gradient(135deg, #f59e0b 30%, #fff 30%);
}

.tajobs-cv-mini.m-executive {
    background: linear-gradient(180deg, #111827 26%, #fff 26%);
}

.tajobs-cv-checklist {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid var(--taj-line);
    border-radius: 10px;
    background: var(--taj-bg);
    font-size: 14px;
}

.tajobs-cv-dl-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.tajobs-cv-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--taj-line);
}

.tajobs-cv-page {
    color: var(--taj-mut);
    font-size: 13px;
}

.tajobs-cv-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.tajobs-cv-zoom {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.tajobs-cv-zoom button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--taj-line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
}

.tajobs-cv-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tajobs-cv-viewport {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 400px;
    max-height: 78vh;
    overflow: auto;
    padding: 16px;
    border: 1px solid var(--taj-line);
    border-radius: 10px;
    background: #cbd5e1;
}

.tajobs-cv-sheet {
    flex: 0 0 794px;
    width: 794px;
    min-height: 1123px;
    transform-origin: top center;
    background: #fff;
    color: #111;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
    font-size: 13.5px;
    line-height: 1.5;
    overflow: hidden;
}

.tajobs-cv-preview-foot {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    color: var(--taj-mut);
    font-size: 12px;
}

.tajobs-cv-seo {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid var(--taj-line);
    border-radius: 14px;
    background: #fff;
}

.tajobs-cv-seo h2 {
    margin: 18px 0 8px;
    font-size: 20px;
}

.tajobs-cv-seo h2:first-child {
    margin-top: 0;
}

.tajobs-cv-seo p,
.tajobs-cv-seo li {
    color: #374151;
    font-size: 15px;
}

.tajobs-cv-faq details {
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid var(--taj-line);
    border-radius: 10px;
}

.tajobs-cv-faq summary {
    cursor: pointer;
    font-weight: 700;
}

.tajobs-cv-toast {
    position: fixed;
    z-index: 99999;
    left: 50%;
    bottom: 22px;
    max-width: min(92vw, 480px);
    padding: 12px 18px;
    transform: translateX(-50%);
    border-radius: 12px;
    background: #111827;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    font-size: 14px;
    text-align: center;
}

/*
 * CV sheet templates
 */
.tajobs-cv-sheet h2,
.tajobs-cv-sheet h3,
.tajobs-cv-sheet p {
    margin: 0;
}

.tajobs-cv-sheet ul {
    margin: 4px 0 0;
    padding-left: 18px;
}

.tajobs-cv-sheet .taj-doc {
    width: 100%;
    min-height: 1123px;
    background: #fff;
}

.tajobs-cv-sheet .t-name {
    font-weight: 800;
}

.tajobs-cv-sheet .t-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.tajobs-cv-sheet .t-job {
    margin-bottom: 10px;
}

.tajobs-cv-sheet .t-sub {
    color: #4b5563;
    font-size: 12.5px;
}

.tajobs-cv-sheet .t-desc {
    white-space: pre-wrap;
}

/* Professional */
.tajobs-cv-sheet .t-prof {
    padding: 38px 40px;
    font-family: Georgia, "Times New Roman", serif;
}

.tajobs-cv-sheet .t-prof .t-name {
    font-size: 30px;
    text-align: center;
}

.tajobs-cv-sheet .t-prof .t-title,
.tajobs-cv-sheet .t-prof .t-contact {
    color: #374151;
    text-align: center;
}

.tajobs-cv-sheet .t-prof .t-title {
    margin-top: 2px;
    font-size: 14px;
}

.tajobs-cv-sheet .t-prof .t-contact {
    margin: 8px 0 4px;
    font-size: 12px;
    word-break: break-word;
}

.tajobs-cv-sheet .t-prof .t-photo {
    margin-bottom: 6px;
    text-align: center;
}

.tajobs-cv-sheet .t-prof .t-photo img {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
}

.tajobs-cv-sheet .t-prof .t-sec {
    margin-top: 14px;
}

.tajobs-cv-sheet .t-prof .t-sec-h {
    margin-bottom: 7px;
    padding-bottom: 3px;
    border-bottom: 2px solid #111827;
    font-family: Arial, sans-serif;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Modern */
.tajobs-cv-sheet .t-mod {
    display: flex;
    min-height: 1123px;
    font-family: Arial, Helvetica, sans-serif;
}

.tajobs-cv-sheet .t-mod .t-side {
    width: 32%;
    padding: 30px 20px;
    background: #1e40af;
    color: #fff;
}

.tajobs-cv-sheet .t-mod .t-side img {
    display: block;
    width: 110px;
    height: 110px;
    margin-bottom: 12px;
    border: 3px solid #fff;
    border-radius: 50%;
    object-fit: cover;
}

.tajobs-cv-sheet .t-mod .t-side h3 {
    margin: 16px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #93c5fd;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tajobs-cv-sheet .t-mod .t-side p,
.tajobs-cv-sheet .t-mod .t-side li {
    font-size: 12.5px;
}

.tajobs-cv-sheet .t-mod .t-main {
    flex: 1;
    padding: 30px 28px;
}

.tajobs-cv-sheet .t-mod .t-name {
    color: #1e3a8a;
    font-size: 28px;
}

.tajobs-cv-sheet .t-mod .t-title {
    margin-bottom: 6px;
    color: #475569;
}

.tajobs-cv-sheet .t-mod .t-sec-h {
    margin: 16px 0 6px;
    padding-bottom: 3px;
    border-bottom: 2px solid #dbeafe;
    color: #1e40af;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Simple */
.tajobs-cv-sheet .t-sim {
    padding: 40px 44px;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
}

.tajobs-cv-sheet .t-sim .t-name {
    font-size: 24px;
}

.tajobs-cv-sheet .t-sim .t-contact {
    margin: 4px 0 10px;
    font-size: 12px;
}

.tajobs-cv-sheet .t-sim .t-sec-h {
    margin: 14px 0 6px;
    padding-bottom: 2px;
    border-bottom: 1px solid #000;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Creative */
.tajobs-cv-sheet .t-cre {
    font-family: "Segoe UI", Arial, sans-serif;
}

.tajobs-cv-sheet .t-cre .t-top {
    padding: 28px 30px;
    background: linear-gradient(120deg, #f59e0b, #ef4444);
    color: #fff;
}

.tajobs-cv-sheet .t-cre .t-top .t-name {
    font-size: 30px;
}

.tajobs-cv-sheet .t-cre .t-body {
    padding: 22px 30px;
}

.tajobs-cv-sheet .t-cre .t-sec-h {
    display: inline-block;
    margin: 14px 0 6px;
    padding: 2px 12px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Executive */
.tajobs-cv-sheet .t-exe {
    font-family: Georgia, serif;
}

.tajobs-cv-sheet .t-exe .t-top {
    padding: 30px 36px;
    background: #111827;
    color: #fff;
    text-align: center;
}

.tajobs-cv-sheet .t-exe .t-top .t-name {
    font-size: 30px;
    letter-spacing: .02em;
}

.tajobs-cv-sheet .t-exe .t-top .t-title {
    color: #d1d5db;
}

.tajobs-cv-sheet .t-exe .t-body {
    padding: 24px 38px;
}

.tajobs-cv-sheet .t-exe .t-sec-h {
    margin: 16px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/*
 * Important for html2pdf and browser printing.
 * This prevents template colors from disappearing.
 */
.tajobs-cv-sheet,
.tajobs-cv-sheet *,
.tajobs-cv-mini {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

/*
 * Mobile layout
 */
.tajobs-cv-mtabs {
    display: none;
    gap: 8px;
    margin-bottom: 10px;
}

.tajobs-cv-mtab {
    flex: 1;
    min-height: 44px;
    border: 1px solid var(--taj-line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
}

.tajobs-cv-mtab.is-active {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

@media (max-width: 980px) {
    .tajobs-cv-builder {
        display: block;
    }

    .tajobs-cv-mtabs {
        display: flex;
        width: 100%;
        margin-bottom: 10px;
    }

    .tajobs-cv-editor,
    .tajobs-cv-preview {
        width: 100%;
        min-width: 0;
    }

    .tajobs-cv-preview {
        display: none;
        overflow: hidden;
    }

    .tajobs-cv-wrap[data-tajobs-mobileview="preview"] .tajobs-cv-preview {
        display: block !important;
        width: 100%;
        min-height: 0;
    }

    .tajobs-cv-wrap[data-tajobs-mobileview="preview"] .tajobs-cv-editor {
        display: none !important;
    }

    .tajobs-cv-wrap[data-tajobs-mobileview="editor"] .tajobs-cv-preview {
        display: none !important;
    }

    .tajobs-cv-wrap[data-tajobs-mobileview="editor"] .tajobs-cv-editor {
        display: block !important;
    }

    .tajobs-cv-viewport {
        position: relative;
        display: block;
        width: 100%;
        height: auto;
        min-height: 300px;
        max-height: none;
        overflow: hidden;
        padding: 8px;
        border-radius: 10px;
        background: #cbd5e1;
    }

    .tajobs-cv-sheet {
        display: block;
        width: 794px !important;
        max-width: none !important;
        min-height: 1123px;
        margin: 0;
        transform-origin: top left !important;
    }
}

@media (max-width: 600px) {
    .tajobs-cv-preview {
        padding: 8px;
    }

    .tajobs-cv-viewport {
        width: 100%;
        padding: 6px;
    }

    .tajobs-cv-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .tajobs-cv-zoom {
        justify-content: center;
    }

    .tajobs-cv-tools {
        display: flex;
        width: 100%;
    }

    .tajobs-cv-tools .tajobs-cv-btn {
        flex: 1;
        width: 100%;
    }
}
/*
 * PDF export class.
 * JavaScript temporarily applies this class before creating the PDF.
 */
.tajobs-cv-pdf-export {
    width: 794px !important;
    max-width: none !important;
    min-height: 1123px !important;
    margin: 0 !important;
    transform: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

@media print {
    @page {
        size: A4;
        margin: 0;
    }

    .tajobs-cv-sheet,
    .tajobs-cv-sheet * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}
