/* print.css - Mr. Studio (Estilo de Impressão e PDF Editorial) */

@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt;
        line-height: 1.5;
        font-family: 'Inter', sans-serif;
    }
    
    /* Remove tudo que não for o documento */
    .sidebar, .main-content > *:not(.print-wrapper), .no-print, button, .btn {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }
    
    .print-wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
}

/* Estilo do Documento de Proposta / Contrato (Editorial) */
.doc-page {
    background: #ffffff;
    color: #000000;
    padding: 60px 50px;
    font-family: 'Inter', sans-serif;
    min-height: 297mm; /* Tamanho A4 aproximado */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    page-break-after: always;
}

.doc-page:last-child {
    page-break-after: avoid;
}

/* Capa */
.doc-cover {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 250mm;
}

.doc-logo-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.doc-logo {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.doc-title-group {
    text-align: center;
    margin-top: 80px;
}

.doc-pretitle {
    font-size: 0.8rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #555555;
    margin-bottom: 20px;
}

.doc-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 10px;
}

.doc-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: #333;
    margin-top: 15px;
}

.doc-divider {
    width: 60px;
    height: 1px;
    background-color: #000000;
    margin: 30px auto;
}

.doc-meta {
    margin-top: auto;
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;
    font-size: 0.85rem;
}

.doc-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.doc-meta-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #666666;
}

.doc-meta-value {
    font-weight: 500;
}

/* Corpo das Páginas Seguintes */
.doc-section-header {
    border-bottom: 1px solid #111111;
    padding-bottom: 12px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.doc-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.doc-section-number {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #666666;
}

.doc-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.doc-paragraph {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #222222;
}

.doc-highlight-box {
    border-left: 2px solid #000000;
    padding: 10px 20px;
    margin: 15px 0;
    font-style: italic;
    color: #333;
}

/* Tabelas Minimalistas */
.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.doc-table th, .doc-table td {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    font-size: 0.9rem;
}

.doc-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #555555;
    border-bottom: 1px solid #000000;
}

.doc-table td.numeric, .doc-table th.numeric {
    text-align: right;
}

.doc-table tr.total-row td {
    border-top: 1px solid #000000;
    border-bottom: 2px double #000000;
    font-weight: 700;
    font-size: 1rem;
}

/* Cronograma / Timeline Minimalista */
.doc-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 15px 0;
}

.doc-step {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
}

.doc-step-date {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #555555;
}

.doc-step-desc {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Rodapé das páginas */
.doc-footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Área de Assinaturas */
.doc-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.signature-line {
    border-top: 1px solid #000000;
    padding-top: 10px;
    text-align: center;
    font-size: 0.85rem;
}

.signature-title {
    font-size: 0.75rem;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}
