.pl-container {
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.pl-header {
    margin-bottom: 2rem;
}

.pl-header h1 {
    text-align: center;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.pl-header h2 {
    text-align: center;
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: normal;
}

.last-update {
    color: #666;
    font-size: 0.8rem;
    text-align: right;
}

.pl-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.pl-table-section {
    background: #fff;
    padding: 1rem;
}

.pl-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}

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

.pl-table th {
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #333;
}

.pl-table .section-header td {
    font-weight: bold;
    color: #333;
    padding-top: 1.5rem;
    border-bottom: none;
}

.pl-table .subitem td {
    color: #666;
    font-style: italic;
    padding-left: 2rem;
}

.pl-table .total-section td {
    font-weight: 600;
    border-top: 1px solid #333;
    border-bottom: 2px solid #333;
    padding-top: 0.75rem;
}

.pl-table .result-section td {
    font-weight: 600;
    padding-top: 1.5rem;
}

.pl-table .final-result td {
    font-weight: bold;
    border-top: 2px solid #333;
    padding-top: 1rem;
}

.pl-table .amount {
    text-align: right;
    font-family: monospace;
}

.pl-table tr.income td {
    color: #2e7d32;
}

.pl-table tr.expense td {
    color: #c62828;
}

.pl-table tr.base-imponible td {
    color: #1976d2;
    font-weight: 600;
}

.pl-table tr.total {
    font-weight: bold;
    font-size: 1.1rem;
    border-top: 2px solid #dee2e6;
}

.pl-table tr.total td {
    padding-top: 1.5rem;
}

.pl-table .amount.positive {
    color: #2e7d32;
}

.pl-table .amount.negative {
    color: #c62828;
}

@media (max-width: 768px) {
    .pl-container {
        padding: 1rem;
    }

    .pl-tables {
        grid-template-columns: 1fr;
    }

    .pl-table th,
    .pl-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .pl-table .subitem td {
        padding-left: 1rem;
    }
} 