/* CutList Report Styles - Print Friendly */

.cut-list-report {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.report-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid #333;
    padding-bottom: 1rem;
}

.report-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.meta-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.meta-row {
    font-size: 0.95rem;
}

.meta-row span:first-child {
    font-weight: 600;
    min-width: 120px;
    display: inline-block;
    color: #555;
}

.bin-section {
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 1rem 0;
    padding: 1rem;
    page-break-inside: avoid;
    break-inside: avoid;
}

.bin-section h2 {
    font-size: 1.1rem;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    color: #333;
}

.cuts-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.75rem;
}

.cuts-table th,
.cuts-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cuts-table th {
    background: #f5f5f5;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #666;
}

.cuts-table tbody tr:hover {
    background-color: #f9f9f9;
}

.drop {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.summary {
    background: #f0f0f0;
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 4px;
    page-break-inside: avoid;
}

.summary h2 {
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    color: #333;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
}

.summary-row span {
    color: #555;
}

.summary-row strong {
    color: #333;
}

.notes-section {
    margin-top: 2rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.notes-section h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    color: #555;
}

.notes-section p {
    margin: 0;
    white-space: pre-wrap;
}

/* Print styles - Compact layout to save paper */
@media print {
    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        font-size: 10pt;
    }

    .sidebar,
    .top-row,
    .page > main > .top-row,
    .btn,
    button,
    nav,
    .navbar {
        display: none !important;
    }

    .page {
        display: block !important;
    }

    .page > main {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    .content {
        padding: 0 !important;
    }

    .cut-list-report {
        max-width: 100%;
        padding: 0;
        margin: 0;
        font-size: 9pt;
    }

    .report-header {
        margin-bottom: 0.5rem;
        padding-bottom: 0.25rem;
        border-bottom-width: 1px;
    }

    .report-header h1 {
        font-size: 14pt;
        margin-bottom: 0.25rem;
    }

    .meta-info {
        gap: 0.1rem;
        font-size: 8pt;
    }

    .meta-row span:first-child {
        min-width: 80px;
    }

    .bin-section {
        margin: 0.3rem 0;
        padding: 0.3rem 0.5rem;
        border-radius: 0;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .bin-section h2 {
        font-size: 10pt;
        margin: 0 0 0.2rem 0;
        padding-bottom: 0.15rem;
    }

    .cuts-table {
        margin-bottom: 0.2rem;
    }

    .cuts-table th,
    .cuts-table td {
        padding: 0.15rem 0.3rem;
        font-size: 9pt;
    }

    .cuts-table th {
        font-size: 8pt;
    }

    .drop {
        font-size: 8pt;
        margin-top: 0.1rem;
    }

    .summary {
        padding: 0.5rem;
        margin-top: 0.5rem;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .summary h2 {
        font-size: 11pt;
        margin: 0 0 0.3rem 0;
    }

    .summary-grid {
        gap: 0.1rem 1rem;
        font-size: 9pt;
    }

    .notes-section {
        margin-top: 0.5rem;
        padding: 0.3rem 0.5rem;
    }

    .notes-section h3 {
        font-size: 9pt;
        margin-bottom: 0.2rem;
    }

    .notes-section p {
        font-size: 8pt;
    }

    .alert {
        display: none !important;
    }

    .card {
        display: none !important;
    }

    h1:not(.report-header h1) {
        display: none !important;
    }

    .text-muted:not(.cut-list-report .text-muted) {
        display: none !important;
    }
}
