/* ===================================================================
   PREVIA CONTÁBIL — GLOBAL BASE STYLES
   =================================================================== */

.pc-box {
    font-family: Arial, sans-serif;
    background: #ffffff;
    padding: 25px 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 1000px;
    margin: 25px auto;
}

.pc-section {
    margin-bottom: 30px;
    padding: 18px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fafafa;
}

.pc-section h3 {
    margin-top: 0;
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

/* ===================================================================
   INPUTS + LABELS
   =================================================================== */

.pc-row {
    display: grid;
    grid-template-columns: 220px 120px 120px 120px;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.pc-row-label {
    font-weight: 600;
}

.pc-input {
    padding: 6px 8px;
    border: 1px solid #bbb;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.pc-total-row {
    margin-top: 8px;
    font-weight: bold;
}

/* UF + ICMS */
.pc-uf-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.pc-uf-wrap select,
.pc-uf-wrap input {
    padding: 6px 8px;
    border: 1px solid #bbb;
    border-radius: 4px;
}

/* ===================================================================
   TRABALHISTA
   =================================================================== */

.pc-func-block {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 6px;
    background: #fff;
    margin-top: 15px;
}

.pc-func-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.pc-func-row label input {
    margin-left: 5px;
}

.pc-func-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
}

.pc-func-checks label {
    cursor: pointer;
}

.pc-func-result {
    background: #f4f4f4;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.pc-func-remove {
    background: #e14;
    color: #fff;
}

/* ===================================================================
   DESPESAS GERAIS
   =================================================================== */

.pc-dg-section {
    border: 1px solid #eee;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 6px;
    background: #fdfdfd;
}

.pc-dg-section h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 19px;
}

.pc-dg-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.pc-dg-line label {
    font-weight: 500;
}

.pc-dg-line input {
    width: 140px;
    padding: 5px 8px;
    border: 1px solid #bbb;
    border-radius: 4px;
}

#pc-dg-total-geral,
#pc-total-trab,
#pc-total-comb,
#pc-total-prod,
#pc-total-aggr,
.pc-input-total {
    background: #fff5cc;
    font-weight: bold;
}

/* ===================================================================
   BUTTONS
   =================================================================== */

.pc-btn {
    padding: 8px 12px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    transition: 0.2s;
    cursor: pointer;
}

.pc-btn:hover {
    background: #005f8d;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */

@media (max-width: 700px) {
    .pc-row {
        grid-template-columns: 1fr 1fr;
    }
    .pc-func-row {
        flex-direction: column;
    }
    .pc-dg-line {
        flex-direction: column;
        gap: 6px;
    }
    .pc-uf-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
