/* Print Proposal Styles */
.print-proposal {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Cover */
.print-cover {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 2px solid #0f172a;
    margin-bottom: 2rem;
}

.print-brand {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.print-cover h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
}

.print-meta p {
    margin: 0.25rem 0;
    color: #475569;
    font-size: 0.9375rem;
}

.print-status {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.375rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.print-status.accepted { background: #ecfdf5; color: #059669; }
.print-status.funded { background: #d1fae5; color: #047857; }

.print-expiry {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.375rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #dc2626;
    background: #fef2f2;
}

/* Sections */
.print-section {
    margin-bottom: 2rem;
    page-break-inside: avoid;
}

.print-section h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.print-section p {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    color: #334155;
    line-height: 1.7;
    white-space: pre-wrap;
}

.print-subheader {
    font-size: 0.875rem;
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
    color: #0f172a;
}

.print-bullet {
    padding: 0.25rem 0 0.25rem 1rem;
    font-size: 0.9375rem;
    color: #334155;
}

/* Tables */
.print-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.875rem;
}

.print-table td {
    padding: 0.625rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.print-table tr:last-child td { border-bottom: none; }

.print-amount {
    font-weight: 700;
    text-align: right;
}

/* Agreement in print */
.print-agreement .agreement-section {
    border: none;
    box-shadow: none;
    margin: 0;
}

.print-agreement .agreement-header {
    cursor: default;
    padding: 0 0 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.print-agreement .toggle-icon { display: none; }

.print-agreement .agreement-body {
    padding: 0;
    border-top: none;
}

.print-agreement .agreement-clause {
    page-break-inside: avoid;
    break-inside: avoid;
}

.print-agreement .agreement-clause + .agreement-clause {
    margin-top: 1rem;
}

/* Signature */
.print-signature .print-table td:first-child {
    width: 140px;
    color: #64748b;
    font-weight: 500;
}

/* Footer */
.print-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
}

.print-footer p { margin: 0.125rem 0; }

/* Print-specific */
@media print {
    .print-proposal { padding: 0; max-width: 100%; }
    .print-cover { padding: 2rem 0; }
    .print-section { page-break-inside: avoid; }
    .print-agreement { page-break-before: always; }
    .print-footer { position: static; margin-top: 2rem; }
}

/* Screen — show print button */
@media screen {
    .print-proposal::before {
        content: '';
        display: block;
    }
}
