/* Scoped Minimal Tech Template (Screen & Print) */
#minimalTechPreview {
    width: 210mm;
    min-height: 297mm;
    box-sizing: border-box;
    background-color: #ffffff !important;
    color: #0f172a !important;
    padding: 14mm 16mm;
    margin: 0 auto;
    font-size: 11px;
    line-height: 1.5;
}

#minimalTechPreview .tech-header {
    text-align: center;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 14px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#minimalTechPreview .tech-name {
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0f172a;
    line-height: 1.1;
    margin: 0 auto;
}

#minimalTechPreview .tech-title {
    font-size: 12px;
    font-weight: 700;
    color: #0284c7;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
}

#minimalTechPreview .tech-contact-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    margin-top: 8px;
    font-size: 10.5px;
    color: #475569;
}

#minimalTechPreview .tech-contact-bar span:not(:last-child)::after {
    content: "•";
    margin-left: 14px;
    color: #94a3b8;
}

#minimalTechPreview .tech-section-title {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 3px;
    margin-top: 14px;
    margin-bottom: 8px;
}

#minimalTechPreview .tech-exp-item {
    margin-bottom: 10px;
    page-break-inside: auto;
    break-inside: auto;
}

#minimalTechPreview .tech-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    break-inside: avoid;
    page-break-inside: avoid;
    break-after: avoid;
    page-break-after: avoid;
}

#minimalTechPreview .tech-role {
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
}

#minimalTechPreview .tech-dates {
    font-size: 10px;
    color: #64748b;
    font-mono: monospace;
}

#minimalTechPreview .tech-company {
    font-size: 10.5px;
    color: #475569;
    font-style: italic;
    margin-bottom: 3px;
}

#minimalTechPreview .tech-bullets {
    list-style-type: disc;
    list-style-position: outside;
    margin: 3px 0 0 16px;
    padding: 0;
    page-break-inside: auto;
    break-inside: auto;
}

#minimalTechPreview .tech-bullets li {
    font-size: 10px;
    color: #334155;
    line-height: 1.5;
    margin-bottom: 3.5px;
    page-break-inside: auto;
    break-inside: auto;
}

#minimalTechPreview .tech-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ==========================================================================
   FORCE ZERO BROWSER MARGINS IN PRINT ENGINE
   Overrides Chrome/Edge/Firefox 'Default' margin behavior automatically.
   ========================================================================== */
@page {
    size: A4 portrait;
    margin: 0 !important; /* Forces browser default margins to zero */
}

/* Print Rules - Standard Multi-Page Stability */
@media print {
    body.print-tech #template-classic,
    body.print-tech #template-modern,
    body.print-tech #template-executive {
        display: none !important;
    }

    body.print-classic #template-tech,
    body.print-sidebar #template-tech,
    body.print-executive #template-tech {
        display: none !important;
    }

    body.print-tech #template-tech {
        display: block !important;
        width: 100% !important;
    }

    body.print-tech {
        margin: 0 !important;
        padding: 0 !important;
        background-color: #ffffff !important;
    }

    body.print-tech #minimalTechPreview {
        padding: 0 !important;
        width: 100% !important;
        box-shadow: none !important;
    }

    body.print-tech .print-layout-table {
        width: 100% !important;
        border-collapse: collapse !important;
        height: auto !important;
    }

    body.print-tech thead { display: table-header-group !important; }
    body.print-tech tfoot { display: table-footer-group !important; }

    body.print-tech .print-page-spacer-top {
        display: table-cell !important;
        height: 12mm !important;
        padding: 0 !important;
    }

    body.print-tech .print-page-spacer-bottom {
        display: table-cell !important;
        height: 8mm !important;
        padding: 0 !important;
    }

    body.print-tech .print-layout-table tbody,
    body.print-tech .print-layout-table tr,
    body.print-tech .print-layout-table td {
        border: none !important;
        page-break-inside: auto !important;
        break-inside: auto !important;
    }
}
