/* Estilos específicos para a página de recibo */
.recibo-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.recibo-container {
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-start;
}

/* Formulário lado esquerdo */
.form-section {
    flex: 1.2;
    min-width: 320px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
    padding: 28px 24px;
    transition: all 0.2s;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.info-text {
    background: #fef9e3;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #78350f;
    line-height: 1.4;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 24px 0 16px 0;
    color: #0f3b2c;
    border-left: 5px solid #0f3b2c;
    padding-left: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    font-size: 0.8rem;
    color: #1e293b;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    font-size: 0.9rem;
    background: #fff;
    transition: 0.2s;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.btn-copy {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 40px;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    width: auto;
    display: inline-block;
}

.btn-copy:hover {
    background: #e2e8f0;
}

.form-note {
    font-size: 0.7rem;
    margin-top: 8px;
    color: #4b5563;
}

/* Preview lado direito */
.preview-section {
    flex: 1;
    min-width: 420px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    background: #fefefe;
    border-radius: 24px;
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.preview-header {
    background: #1e293b;
    color: white;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-print {
    background: #0f3b2c;
    border: none;
    padding: 8px 20px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.btn-print:hover {
    background: #1e5a3e;
    transform: scale(0.98);
}

.print-note {
    background: #e0f2fe;
    border-left: 4px solid #0284c7;
    padding: 10px 16px;
    margin: 16px 20px 0 20px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #075985;
    font-weight: 500;
}

.recibo-paper {
    background: white;
    padding: 32px 28px;
    margin: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

/* Conteúdo do recibo - FONTE ARIAL */
.recibo-content {
    max-width: 100%;
    font-family: 'Arial', 'Helvetica', 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.55;
    color: #111827;
    font-size: 0.95rem;
}

.recibo-content h2 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-transform: uppercase;
    border-bottom: 2px solid #cbd5e1;
    display: inline-block;
    width: 100%;
    padding-bottom: 8px;
}

.recibo-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.signature-area {
    margin-top: 42px;
    text-align: center;
}

.signature-line {
    margin-top: 48px;
    border-top: 1px dashed #9ca3af;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 12px;
    font-weight: 500;
}

/* Calendário */
.calendar-container {
    background: white;
    margin: 0 20px 20px 20px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-top: 2px solid #e2e8f0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
    flex-wrap: wrap;
    gap: 12px;
}

.calendar-header h3 {
    font-size: 1.2rem;
    color: #1e293b;
    font-weight: 600;
}

.calendar-header-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.year-selector {
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.85rem;
    background: white;
    cursor: pointer;
    font-weight: 500;
}

.calendar-nav button {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.calendar-nav button:hover {
    background: #e2e8f0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.calendar-weekday {
    font-weight: 700;
    color: #475569;
    padding: 8px;
    font-size: 0.8rem;
    background: #f8fafc;
    border-radius: 8px;
}

.calendar-day {
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.85rem;
    color: #1e293b;
}

.calendar-day:hover {
    background: #e2e8f0;
}

.calendar-day.other-month {
    color: #94a3b8;
}

.calendar-day.weekday {
    background: #e8f5e9;
}

.calendar-day.weekday:hover {
    background: #c8e6c9;
}

.calendar-day.today {
    background: #0f3b2c;
    color: white;
    font-weight: bold;
}

.event-legend {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 20px;
    justify-content: center;
    font-size: 0.75rem;
    color: #475569;
    flex-wrap: wrap;
}

.event-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.event-legend .weekday-badge {
    width: 20px;
    height: 20px;
    background: #e8f5e9;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid #cbd5e1;
}

.calendar-placeholder {
    margin-top: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #475569;
    text-align: center;
}

/* Responsivo */
@media (max-width: 968px) {
    .dashboard {
        flex-direction: column;
    }
    
    .preview-section {
        position: static;
        width: 100%;
    }
    
    .recibo-paper {
        margin: 12px;
    }
    
    .calendar-container {
        margin: 0 12px 12px 12px;
    }
    
    .print-note {
        margin: 12px 12px 0 12px;
    }
}

/* Estilos de impressão */
@media print {
    @page {
        size: A4;
        margin: 25mm;
    }
    
    .header,
    .form-section,
    .preview-header,
    .btn-print,
    .btn-copy,
    .calendar-container,
    .print-note,
    .footer,
    .dashboard > :not(.preview-section) {
        display: none !important;
    }
    
    .preview-section {
        display: block !important;
        position: static !important;
        box-shadow: none;
        margin: 0 !important;
        padding: 0 !important;
        background: white;
        width: 100%;
    }
    
    .recibo-paper {
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none;
        background: white;
    }
    
    .recibo-content h2 {
        margin-top: 0;
    }
    
    .signature-line {
        border-top: 1px solid #000;
    }
}