/* Print Styles for U-Value Calculator */

@media print {
    /* Hide non-essential elements when printing */
    .no-print,
    button,
    .btn,
    input[type="button"],
    input[type="submit"],
    .toolbar,
    #MaterialSelection,
    .menu {
        display: none !important;
    }
    
    /* Basic print layout */
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        font-family: 'Times New Roman', serif;
        font-size: 12pt;
        line-height: 1.4;
        margin: 0;
        padding: 20mm;
        color: black;
        background: white;
    }
    
    /* Header for print */
    #header, .header {
        background: white !important;
        color: black !important;
        border: 2px solid black !important;
        padding: 10mm !important;
        margin-bottom: 10mm !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    #header h1, .header h1 {
        font-size: 18pt !important;
        color: black !important;
        text-shadow: none !important;
    }
    
    #header p, .header p {
        font-size: 12pt !important;
        color: black !important;
    }
    
    /* Table styles for print */
    table {
        border-collapse: collapse;
        width: 100%;
        margin: 5mm 0;
        font-size: 10pt;
    }
    
    table, th, td {
        border: 1px solid black;
    }
    
    th {
        background: #f0f0f0 !important;
        color: black !important;
        font-weight: bold;
        padding: 3mm;
    }
    
    td {
        padding: 2mm;
        background: white !important;
    }
    
    /* Page break controls */
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    table {
        page-break-inside: avoid;
    }
    
    tr {
        page-break-inside: avoid;
    }
    
    /* Results section */
    .results {
        border: 1px solid black;
        padding: 5mm;
        margin: 5mm 0;
    }
    
    .result-value {
        font-weight: bold;
        font-size: 14pt;
    }
    
    /* Footer with page info */
    @page {
        margin: 20mm;
        @bottom-center {
            content: "U-Value Calculator - صفحه " counter(page);
            font-size: 10pt;
        }
    }
    
    /* Links */
    a:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
}