/* rseexpertcomptable.fr — compléments au gabarit commun */
.calc-rows{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:12px 0 4px}
.calc-row{background:#fff;border:1px solid var(--line);border-radius:12px;padding:6px 14px 14px;margin:0;min-width:0}
.calc-row legend{font-family:var(--head);font-weight:700;font-size:.95rem;color:var(--navy);padding:0 6px;margin-left:-6px}
.calc-row label{font-size:.85rem;margin:8px 0 3px}
.calc-global{margin-top:4px;align-items:end}
.calc-reset{display:flex;align-items:flex-end}
.calc-reset .btn{width:100%}
.calc-cap{background:#fff;border:1px solid var(--line);border-left:4px solid var(--violet);border-radius:0 12px 12px 0;padding:10px 14px;margin:12px 0 0;font-weight:600}
.calc-detail{margin:12px 0 0}
.calc-detail table{min-width:420px}
.calc-detail td:not(:first-child),.calc-detail th:not(:first-child){text-align:right;white-space:nowrap}
table.decision{min-width:680px}
@media (max-width:640px){.calc-rows{grid-template-columns:1fr}}
.page h1,.page p{overflow-wrap:anywhere}
@media (max-width:640px){.calc-detail table{min-width:0;font-size:.82rem}.calc-detail th,.calc-detail td{padding:8px 6px}.calc-row{display:grid;grid-template-columns:repeat(3,1fr);gap:0 8px}.calc-row legend{grid-column:1/-1}.calc-row label{font-size:.75rem;line-height:1.25;min-height:2.6em}.calc-row input{padding:8px}}

/* Pages secondaires : fil d'Ariane et grille d'auto-diagnostic */
.crumbs{font-size:.86rem;color:var(--muted);margin:0 0 10px}
.crumbs a{color:inherit}
.grille td:first-child{font-weight:600;white-space:nowrap}
.grille th:nth-child(2),.grille td:nth-child(2){min-width:190px}
.grille th:nth-child(n+3),.grille td:nth-child(n+3){min-width:140px}
