/* templates.css - Improved template variations and print layout */
.rg-resume-preview {
    font-family: Georgia, 'Times New Roman', serif;
    color: #1e1e2a;
    line-height: 1.55;
    --rg-accent: #234a8a;
}

.rg-resume-preview h1,
.rg-resume-preview h2,
.rg-resume-preview h3 {
    color: var(--rg-accent);
}

.rg-resume-preview a {
    color: inherit;
    text-decoration: none;
}

.rg-preview-header {
    display: flex;
    gap: 24px;
    margin-bottom: 22px;
    align-items: center;
}

.rg-preview-photo img {
    width: 108px;
    height: 108px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--rg-accent);
}

.rg-preview-name-title {
    min-width: 0;
}

.rg-preview-name-title h1 {
    margin: 0 0 4px;
    font-size: 32px;
    line-height: 1.15;
}

.rg-preview-name-title .rg-job-title {
    font-size: 18px;
    color: #475569;
}

.rg-preview-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin: 12px 0 16px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 14px;
}

.rg-preview-contact > * {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 6px 8px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 12px;
    color: #334155;
}

.rg-contact-item {
    min-width: 0;
    max-width: 100%;
}

.rg-contact-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--rg-accent);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rg-contact-text {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.rg-contact-text a,
.rg-contact-text span {
    color: inherit;
    text-decoration: none;
}

.rg-preview-section {
    margin-bottom: 18px;
}

.rg-preview-section h2 {
    font-size: 19px;
    border-bottom: 2px solid var(--rg-accent);
    padding-bottom: 6px;
    margin: 0 0 12px;
}

.rg-preview-section p {
    margin: 0;
}

.rg-table-wrap {
    width: 100%;
    overflow: hidden;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    background: #fff;
}

.rg-data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
}

.rg-data-table th,
.rg-data-table td {
    border: 1px solid #e2e8f0;
    padding: 7px 8px;
    vertical-align: top;
    text-align: left;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.rg-data-table thead th {
    background: #f8fafc;
    color: var(--rg-accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rg-data-table tbody tr:first-child td {
    border-top: 0;
}

.rg-data-table th:first-child,
.rg-data-table td:first-child {
    border-left: 0;
}

.rg-data-table th:last-child,
.rg-data-table td:last-child {
    border-right: 0;
}

.rg-cell-strong {
    font-weight: 700;
    color: #0f172a;
}

.rg-cell-nowrap {
    white-space: nowrap;
    color: #475569;
    font-weight: 600;
}

.rg-cell-wrap {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.rg-data-table-education th:nth-child(1),
.rg-data-table-education td:nth-child(1),
.rg-data-table-experience th:nth-child(1),
.rg-data-table-experience td:nth-child(1) {
    width: 23%;
}

.rg-data-table-education th:nth-child(2),
.rg-data-table-education td:nth-child(2),
.rg-data-table-experience th:nth-child(2),
.rg-data-table-experience td:nth-child(2) {
    width: 23%;
}

.rg-data-table-education th:nth-child(3),
.rg-data-table-education td:nth-child(3),
.rg-data-table-experience th:nth-child(3),
.rg-data-table-experience td:nth-child(3) {
    width: 16%;
}

.rg-data-table-education th:nth-child(4),
.rg-data-table-education td:nth-child(4),
.rg-data-table-experience th:nth-child(4),
.rg-data-table-experience td:nth-child(4) {
    width: 38%;
}

.rg-data-table-mini th:nth-child(1),
.rg-data-table-mini td:nth-child(1) {
    width: 50%;
}

.rg-data-table-three th:nth-child(1),
.rg-data-table-three td:nth-child(1) {
    width: 42%;
}

.rg-data-table-three th:nth-child(2),
.rg-data-table-three td:nth-child(2) {
    width: 33%;
}

.rg-data-table-three th:nth-child(3),
.rg-data-table-three td:nth-child(3) {
    width: 25%;
}


.rg-compact-paragraph {
    font-size: 13px;
    line-height: 1.45;
    color: #334155;
}

.rg-preview-item {
    margin-bottom: 14px;
}


.rg-preview-section-table {
    page-break-inside: avoid;
}

.rg-preview-table {
    display: flex;
    flex-direction: column;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.rg-preview-table-head,
.rg-preview-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) 132px;
    gap: 12px;
    align-items: start;
}

.rg-preview-table-head {
    background: #f8fafc;
    color: var(--rg-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-bottom: 1px solid #dbe2ea;
}

.rg-preview-table-row {
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.rg-preview-table-row:last-of-type {
    border-bottom: 0;
}

.rg-preview-table-main {
    font-weight: 700;
    color: #0f172a;
}

.rg-preview-table-meta {
    color: #334155;
    font-weight: 600;
}

.rg-preview-table-date {
    color: #64748b;
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
}

.rg-preview-table-desc {
    padding: 0 12px 9px;
    margin-top: -3px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.rg-preview-table-desc:last-child {
    border-bottom: 0;
    padding-bottom: 10px;
}

.rg-item-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-weight: 700;
}

.rg-item-sub {
    font-weight: 600;
    color: #334155;
    margin-top: 2px;
}

.rg-simple-list {
    display: grid;
    gap: 8px;
}

.rg-simple-list span {
    color: #475569;
}

.rg-preview-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rg-preview-chip-compact .rg-skill-tag {
    padding: 4px 8px;
    font-size: 11.5px;
    border-radius: 999px;
}

.rg-skill-tag {
    background: #eef2ff;
    color: var(--rg-accent);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.rg-inline-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rg-inline-meta-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    line-height: 1.3;
}

.rg-preview-table-mini .rg-preview-table-head,
.rg-preview-table-mini .rg-preview-table-row {
    gap: 8px;
}

.rg-preview-table-head-mini,
.rg-preview-table-row-mini {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
}

.rg-preview-table-head-3,
.rg-preview-table-row-3 {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr) 88px;
}

.rg-preview-table-row-mini {
    padding-top: 7px;
    padding-bottom: 7px;
}

.rg-preview-table-contact {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Professional Template */
.rg-resume-preview.rg-template-professional {
    font-family: Inter, 'Segoe UI', Arial, sans-serif;
    background: #ffffff;
    padding: 0;
    border: 1px solid #dbe2ea;
    border-radius: 0;
    box-shadow: none;
}

.rg-resume-preview.rg-template-professional .rg-preview-header {
    margin: 0;
    padding: 16px 32px 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 20px;
    border-bottom: 0;
    background: #ffffff;
}

.rg-resume-preview.rg-template-professional .rg-preview-photo {
    display: flex;
    justify-content: flex-start;
    width: auto;
    flex: 0 0 auto;
}

.rg-resume-preview.rg-template-professional .rg-preview-photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--rg-accent);
}

.rg-resume-preview.rg-template-professional .rg-preview-name-title {
    width: auto;
    text-align: left;
    flex: 1 1 auto;
    min-width: 0;
}

.rg-resume-preview.rg-template-professional .rg-preview-name-title h1 {
    margin: 0 0 6px;
    font-size: 32px;
    line-height: 1.08;
    color: var(--rg-accent);
    font-weight: 800;
}

.rg-resume-preview.rg-template-professional .rg-preview-name-title .rg-job-title {
    color: #475569;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
}

.rg-resume-preview.rg-template-professional .rg-preview-contact {
    margin: 0 32px 0;
    padding: 10px 0 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    border-bottom: 1px solid #dbe2ea;
}

.rg-resume-preview.rg-template-professional .rg-preview-contact > * {
    min-width: 0;
    border-radius: 8px;
    background: #f6f8fb;
    padding: 6px 8px;
    max-width: 100%;
}

.rg-resume-preview.rg-template-professional .rg-preview-section {
    margin: 0;
    padding: 18px 32px 0;
}

.rg-resume-preview.rg-template-professional .rg-preview-section:last-child {
    padding-bottom: 24px;
}

.rg-resume-preview.rg-template-professional .rg-preview-section h2 {
    margin: 0 0 12px;
    padding: 0 0 8px;
    color: var(--rg-accent);
    border-bottom: 2px solid var(--rg-accent);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.rg-resume-preview.rg-template-professional .rg-item-header {
    color: #0f172a;
    align-items: baseline;
}

.rg-resume-preview.rg-template-professional .rg-item-header span:last-child {
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.rg-resume-preview.rg-template-professional .rg-item-sub {
    color: var(--rg-accent);
    font-weight: 700;
}

.rg-resume-preview.rg-template-professional .rg-preview-skills {
    gap: 10px;
}

.rg-resume-preview.rg-template-professional .rg-skill-tag {
    background: #eff6ff;
    color: #0f172a;
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
}

/* Modern Template */
.rg-resume-preview.rg-template-modern {
    font-family: Inter, 'Segoe UI', Arial, sans-serif;
    background: #fcfcfd;
}

.rg-resume-preview.rg-template-modern .rg-preview-header {
    background: var(--rg-accent);
    padding: 24px;
    border-radius: 16px;
    color: #fff;
    margin-bottom: 20px;
}

.rg-resume-preview.rg-template-modern .rg-preview-header h1,
.rg-resume-preview.rg-template-modern .rg-preview-header .rg-job-title {
    color: #fff;
}

.rg-resume-preview.rg-template-modern .rg-preview-photo img {
    border-color: #fff;
}

.rg-resume-preview.rg-template-modern .rg-preview-contact > * {
    background: #f1f5f9;
}

.rg-resume-preview.rg-template-modern .rg-preview-section h2 {
    border-bottom: none;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--rg-accent);
}

/* Elegant Template */
.rg-resume-preview.rg-template-elegant {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background: #faf7f2;
    border: 1px solid #ddd6cc;
}

.rg-resume-preview.rg-template-elegant .rg-preview-header {
    border-bottom: 4px double var(--rg-accent);
    padding-bottom: 16px;
}

.rg-resume-preview.rg-template-elegant .rg-preview-section h2 {
    font-variant: small-caps;
    letter-spacing: 1px;
}

@media (max-width: 767px) {
    .rg-preview-header,
    .rg-item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rg-preview-photo img {
        width: 90px;
        height: 90px;
    }

    .rg-preview-name-title h1 {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .rg-resume-preview.rg-template-professional .rg-preview-contact {
        grid-template-columns: 1fr;
    }
}



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

    html,
    body,
    body.rg-print-isolated {
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    body.rg-print-isolated .rg-print-root {
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        display: block !important;
    }

    body.rg-print-isolated .rg-resume-preview,
    body.rg-printing .rg-print-clone {
        width: 210mm !important;
        max-width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
        overflow: visible !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    body.rg-print-isolated .rg-resume-preview *,
    body.rg-printing .rg-print-clone * {
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        transform: none !important;
    }

    body.rg-print-isolated .rg-resume-preview .rg-preview-header,
    body.rg-printing .rg-print-clone .rg-preview-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: left !important;
        gap: 8mm !important;
        margin: 0 !important;
        padding: 10mm 11mm 6mm !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        color: inherit !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body.rg-print-isolated .rg-resume-preview .rg-preview-photo,
    body.rg-printing .rg-print-clone .rg-preview-photo {
        width: auto !important;
        flex: 0 0 auto !important;
        display: flex !important;
        justify-content: flex-start !important;
        margin: 0 !important;
    }

    body.rg-print-isolated .rg-resume-preview .rg-preview-photo img,
    body.rg-printing .rg-print-clone .rg-preview-photo img {
        width: 30mm !important;
        height: 30mm !important;
        border-radius: 50% !important;
        border: 0.9mm solid var(--rg-accent) !important;
        object-fit: cover !important;
    }

    body.rg-print-isolated .rg-resume-preview .rg-preview-name-title,
    body.rg-printing .rg-print-clone .rg-preview-name-title {
        width: auto !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        text-align: left !important;
        margin: 0 !important;
    }

    body.rg-print-isolated .rg-resume-preview .rg-preview-name-title h1,
    body.rg-printing .rg-print-clone .rg-preview-name-title h1 {
        margin: 0 0 2mm !important;
        color: var(--rg-accent) !important;
        font-size: 18pt !important;
        line-height: 1.1 !important;
        font-weight: 800 !important;
    }

    body.rg-print-isolated .rg-resume-preview .rg-job-title,
    body.rg-printing .rg-print-clone .rg-job-title {
        color: #475569 !important;
        font-size: 11.5pt !important;
        font-weight: 500 !important;
    }

    body.rg-print-isolated .rg-resume-preview .rg-preview-contact,
    body.rg-printing .rg-print-clone .rg-preview-contact {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 2.2mm 3mm !important;
        margin: 0 11mm 0 !important;
        padding: 3.2mm 0 4.4mm !important;
        border-bottom: 0.25mm solid #dbe2ea !important;
    }

    body.rg-print-isolated .rg-resume-preview .rg-preview-contact > *,
    body.rg-printing .rg-print-clone .rg-preview-contact > * {
        display: grid !important;
        grid-template-columns: 25mm minmax(0, 1fr) !important;
        align-items: start !important;
        gap: 1.8mm !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 2mm 2.4mm !important;
        border-radius: 1.5mm !important;
        background: #f4f7fb !important;
        white-space: normal !important;
    }

    body.rg-print-isolated .rg-resume-preview .rg-contact-label,
    body.rg-printing .rg-print-clone .rg-contact-label {
        font-size: 7.8pt !important;
        line-height: 1.15 !important;
        font-weight: 700 !important;
        color: var(--rg-accent) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.2pt !important;
    }

    body.rg-print-isolated .rg-resume-preview .rg-contact-text,
    body.rg-printing .rg-print-clone .rg-contact-text,
    body.rg-print-isolated .rg-resume-preview .rg-contact-text a,
    body.rg-printing .rg-print-clone .rg-contact-text a,
    body.rg-print-isolated .rg-resume-preview .rg-contact-text span,
    body.rg-printing .rg-print-clone .rg-contact-text span {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        white-space: normal !important;
        color: #334155 !important;
        text-decoration: none !important;
        font-size: 8.5pt !important;
    }

    body.rg-print-isolated .rg-resume-preview .rg-preview-section,
    body.rg-printing .rg-print-clone .rg-preview-section {
        margin: 0 !important;
        padding: 4mm 11mm 0 !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body.rg-print-isolated .rg-resume-preview .rg-preview-section:last-child,
    body.rg-printing .rg-print-clone .rg-preview-section:last-child {
        padding-bottom: 6mm !important;
    }

    body.rg-print-isolated .rg-resume-preview .rg-preview-section h2,
    body.rg-printing .rg-print-clone .rg-preview-section h2 {
        margin: 0 0 3mm !important;
        padding: 0 0 2mm !important;
        border-bottom: 0.5mm solid var(--rg-accent) !important;
        color: var(--rg-accent) !important;
        font-size: 11.5pt !important;
        font-weight: 700 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
    }

    body.rg-print-isolated .rg-resume-preview .rg-item-header,
    body.rg-printing .rg-print-clone .rg-item-header {
        display: flex !important;
        justify-content: space-between !important;
        gap: 4mm !important;
        align-items: baseline !important;
    }

    body.rg-print-isolated .rg-resume-preview .rg-item-header span:last-child,
    body.rg-printing .rg-print-clone .rg-item-header span:last-child {
        white-space: nowrap !important;
        color: #64748b !important;
    }


    body.rg-print-isolated .rg-resume-preview.rg-template-professional,
    body.rg-printing .rg-print-clone.rg-template-professional {
        background: #ffffff !important;
    }

    body.rg-print-isolated .rg-resume-preview.rg-template-professional .rg-preview-header,
    body.rg-printing .rg-print-clone.rg-template-professional .rg-preview-header {
        background: #ffffff !important;
        color: #1f2937 !important;
    }

    body.rg-print-isolated .rg-resume-preview.rg-template-modern,
    body.rg-printing .rg-print-clone.rg-template-modern {
        background: #fcfcfd !important;
    }

    body.rg-print-isolated .rg-resume-preview.rg-template-modern .rg-preview-header,
    body.rg-printing .rg-print-clone.rg-template-modern .rg-preview-header {
        background: var(--rg-accent) !important;
        color: #ffffff !important;
        border-radius: 0 0 5mm 5mm !important;
    }

    body.rg-print-isolated .rg-resume-preview.rg-template-modern .rg-preview-header h1,
    body.rg-print-isolated .rg-resume-preview.rg-template-modern .rg-preview-header .rg-job-title,
    body.rg-printing .rg-print-clone.rg-template-modern .rg-preview-header h1,
    body.rg-printing .rg-print-clone.rg-template-modern .rg-preview-header .rg-job-title {
        color: #ffffff !important;
    }

    body.rg-print-isolated .rg-resume-preview.rg-template-modern .rg-preview-photo img,
    body.rg-printing .rg-print-clone.rg-template-modern .rg-preview-photo img {
        border-color: #ffffff !important;
    }

    body.rg-print-isolated .rg-resume-preview.rg-template-modern .rg-preview-contact > *,
    body.rg-printing .rg-print-clone.rg-template-modern .rg-preview-contact > * {
        background: #f1f5f9 !important;
    }

    body.rg-print-isolated .rg-resume-preview.rg-template-modern .rg-preview-section h2,
    body.rg-printing .rg-print-clone.rg-template-modern .rg-preview-section h2 {
        background: #f1f5f9 !important;
        border-bottom: 0 !important;
        padding: 2.6mm 3.2mm !important;
        border-radius: 2mm !important;
    }

    body.rg-print-isolated .rg-resume-preview.rg-template-elegant,
    body.rg-printing .rg-print-clone.rg-template-elegant {
        background: #faf7f2 !important;
        border: 0.25mm solid #ddd6cc !important;
    }

    body.rg-print-isolated .rg-resume-preview.rg-template-elegant .rg-preview-header,
    body.rg-printing .rg-print-clone.rg-template-elegant .rg-preview-header {
        background: transparent !important;
        border-bottom: 1mm double var(--rg-accent) !important;
        padding-bottom: 5mm !important;
    }

    body.rg-print-isolated .rg-resume-preview.rg-template-elegant .rg-preview-section h2,
    body.rg-printing .rg-print-clone.rg-template-elegant .rg-preview-section h2 {
        font-variant: small-caps !important;
        letter-spacing: 0.6pt !important;
    }
}


.rg-resume-preview.rg-template-professional .rg-preview-table {
    border-color: #dbe2ea;
    border-radius: 8px;
}

.rg-resume-preview.rg-template-professional .rg-preview-table-head {
    background: #f8fafc;
}

.rg-resume-preview.rg-template-professional .rg-preview-table-date {
    color: #64748b;
}

.rg-resume-preview.rg-template-modern .rg-preview-table {
    border-color: #dce3ea;
}

.rg-resume-preview.rg-template-modern .rg-preview-table-head {
    background: #f1f5f9;
}

.rg-resume-preview.rg-template-elegant .rg-preview-table {
    border-color: #d9d2c8;
    background: rgba(255,255,255,0.82);
}

.rg-resume-preview.rg-template-elegant .rg-preview-table-head {
    background: rgba(35, 74, 138, 0.06);
}

.rg-resume-preview.rg-template-classic .rg-preview-table {
    border-color: #d7dde5;
}

@media print {
    .rg-preview-table {
        border-radius: 0;
        box-shadow: none;
    }

    .rg-preview-table-head,
    .rg-preview-table-row {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr) 108px;
        gap: 10px;
    }

    .rg-preview-table-head {
        font-size: 10px;
        padding: 6px 8px;
    }

    .rg-preview-table-row {
        padding: 7px 8px;
        font-size: 12px;
    }

    .rg-preview-table-date {
        font-size: 11px;
    }

    .rg-preview-table-desc {
        padding: 0 8px 7px;
        font-size: 11px;
        line-height: 1.32;
    }

    .rg-resume-preview .rg-preview-section {
        page-break-inside: avoid;
    }
}

@media (max-width: 767px) {
    .rg-preview-table-head,
    .rg-preview-table-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .rg-preview-table-date {
        text-align: left;
        white-space: normal;
    }

    .rg-preview-table-desc {
        margin-top: 0;
    }
}


@media print {
    .rg-compact-paragraph {
        font-size: 10.2pt !important;
        line-height: 1.34 !important;
    }

    .rg-preview-skills {
        gap: 1.6mm !important;
    }

    .rg-preview-chip-compact .rg-skill-tag,
    .rg-inline-meta-item {
        font-size: 8.2pt !important;
        line-height: 1.2 !important;
        padding: 1.2mm 2.1mm !important;
    }

    .rg-preview-table-head-mini,
    .rg-preview-table-row-mini {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.88fr) !important;
    }

    .rg-preview-table-head-3,
    .rg-preview-table-row-3 {
        grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.9fr) 22mm !important;
    }
}


@media print {
    .rg-table-wrap {
        page-break-inside: avoid;
    }

    .rg-data-table {
        font-size: 11px !important;
    }

    .rg-data-table th,
    .rg-data-table td {
        padding: 5px 6px !important;
    }

    .rg-data-table thead {
        display: table-header-group;
    }

    .rg-data-table tr {
        page-break-inside: avoid;
    }
}
