.rs-calculateur {
    max-width: 740px;
    font-family: inherit;
    font-size: 1em;
}

/* ── Champs ── */
.rs-form .rs-field {
    margin-bottom: 1.2em;
}

.rs-form label {
    display: block;
    margin-bottom: 0.4em;
    color: #111827;
    font-size: initial;
}

.rs-form select,
.rs-form input[type="number"] {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 1em;
}

.rs-form select {
    width: 100%;
    max-width: 560px;
}

.rs-petit-producteur input[type="number"] {
    width: 90px;
}

/* ── Tableau gros producteur ── */
.rs-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1em;
}

.rs-table th,
.rs-table td {
    border: 1px solid #d0d0d0;
    padding: 8px 12px;
    vertical-align: middle;
}

.rs-table thead th {
    background: #f0f0f0;
    font-weight: bold;
    text-align: center;
}

.rs-table td:first-child {
    font-weight: 500;
    background: #fafafa;
}

.rs-table input[type="number"] {
    width: 80px;
    padding: 4px 6px;
    border: 1px solid #bbb;
    border-radius: 3px;
    font-size: 0.95em;
}

.rs-table .rs-center {
    text-align: center;
}

/* ── Bouton ── */
.rs-submit {
    margin-top: 1em;
}

.rs-submit button {
    background: #555;
    color: #fff;
    border: none;
    padding: 9px 28px;
    font-size: 1em;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s;
}

.rs-submit button:hover {
    background: #333;
}

.rs-submit button:disabled {
    opacity: 0.55;
    cursor: default;
}

/* ── Résultat ── */
.rs-result {
    margin-top: 1.5em;
    padding: 1em 1.2em;
    background: #f9f9f9;
    border-radius: 2px;
}

.rs-result p {
    margin: 0.4em 0;
    line-height: 1.5;
}

.rs-result .rs-libelle {
    font-weight: bold;
    color: #222;
    margin-bottom: 0.6em;
}

.rs-result .rs-error {
    color: #c62828;
}

/* ── Tableau résultat gros producteur ── */
.rs-result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.4em;
}

.rs-result-table td,
.rs-result-table th {
    padding: 6px 4px;
    border-bottom: 1px solid #e0e0e0;
    font-weight: normal;
    text-align: left;
}

.rs-result-table td:last-child {
    text-align: right;
    white-space: nowrap;
}

.rs-result-table .rs-total td,
.rs-result-table .rs-total th {
    border-top: 2px solid #444;
    border-bottom: none;
    padding-top: 10px;
    font-size: 1.05em;
}
