/* =====================================================================
   Salaire brut / net — compléments à imc.css (formulaires, cartes et tableaux partagés)
   ===================================================================== */
.sal-big { display: grid; gap: 6px; }
.sal-big .imc-unit .ot-input { font-size: 1.35rem; min-height: 50px; }
.sal-swap { justify-self: center; border: 0; background: transparent; color: var(--imc-accent); font-size: 1.3rem; line-height: 1; cursor: default; padding: 0; }
.sal-sum { margin: 0; display: grid; gap: 2px; }
.sal-sum > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--ot-border); }
.sal-sum dt { color: var(--ot-text-soft); font-weight: 600; }
.sal-sum dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sal-sum .sal-strong dd { font-size: 1.35rem; color: var(--imc-accent); }
.sal-sum .sal-paid { border-bottom: 0; }
.sal-sum .sal-paid dt { color: var(--ot-text); }
.sal-sum .sal-paid dd { font-size: clamp(1.8rem, 5vw, 2.3rem); font-weight: 800; }
.sal-h3 { font-size: .95rem; margin: 6px 0 0; }
.sal-detail { margin-top: var(--ot-space); }
.sal-tab .sal-num { text-align: right; }
.sal-tab .sal-total td { font-weight: 800; border-top: 2px solid var(--ot-border); }
.sal-sum .sal-sub dt, .sal-sum .sal-sub dd { font-size: .85rem; font-weight: 600; color: var(--ot-text-soft); }
.sal-emp-line { margin: .4em 0; padding: 8px 12px; border-radius: var(--ot-radius-s); background: var(--ot-surface-2); }
.sal-emp-opts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin-bottom: 6px; }

/* Onglets pays */
.sal-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--ot-space); border-bottom: 1px solid var(--ot-border); }
.sal-tab { font: inherit; font-weight: 700; font-size: .95rem; padding: 10px 16px; border: 1px solid transparent; border-bottom: 0;
  border-radius: var(--ot-radius-s) var(--ot-radius-s) 0 0; background: transparent; color: var(--ot-text-soft); cursor: pointer; margin-bottom: -1px; }
.sal-tab:hover { color: var(--ot-text); background: var(--ot-surface-2); }
.sal-tab[aria-selected="true"] { color: var(--ot-text); background: var(--ot-surface); border-color: var(--ot-border); border-bottom: 1px solid var(--ot-surface); }
.sal-tab:focus-visible { outline: 2px solid var(--imc-accent); outline-offset: 2px; }
.sal-row { display: flex; gap: 8px; }
.sal-row .ot-input { flex: 1 1 auto; min-width: 0; font-size: 1.35rem; min-height: 50px; }
.sal-row .ot-select { flex: 0 0 auto; width: auto; }
.sal-big > .imc-field > .ot-input { font-size: 1.35rem; min-height: 50px; }
@media (max-width: 520px) { .sal-tab { padding: 8px 10px; font-size: .85rem; } }
/* Mobile : les listes aux libellés longs ne doivent pas élargir la page */
.sal-panel .imc-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
@media (max-width: 820px) { .sal-panel .imc-main { grid-template-columns: minmax(0, 1fr); } }
.sal-panel .imc-fields { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.sal-panel .ot-select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.sal-row .ot-select { max-width: 45%; }
.sal-panel .imc-form, .sal-panel .imc-result, .sal-panel .imc-field { min-width: 0; }

/* Pages pays : liens vers les autres pays */
.sal-others { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0 0 var(--ot-space); font-size: .92rem; }
.sal-others span { font-weight: 700; color: var(--ot-text-soft); }
.sal-others a { white-space: nowrap; }
.sal-others a { display: inline-flex; align-items: center; gap: 6px; }
.sal-flag { display: inline-block; flex: none; width: 21px; height: 14px; vertical-align: -2px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
