/* Module Stock — droits des magasiniers par magasin (matrice comptes × magasins). Préfixe : .sk- */
.sk-matrix { position: relative; }
.sk-matrix th.sk-site { text-align: center; white-space: nowrap; }
.sk-matrix th.sk-wh, .sk-matrix td.sk-cell { text-align: center; white-space: nowrap; padding-inline: .3rem; }
.sk-matrix td.sk-sticky, .sk-matrix th.sk-sticky { position: sticky; left: 0; z-index: 2; background: var(--bg-elev); box-shadow: 1px 0 0 var(--line); }
.sk-matrix thead th.sk-sticky { z-index: 4; }
.sk-matrix tr.sk-group > td { background: var(--bg-sunken); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }

/* Puce de droit : Aucun / Lecture / Écriture */
.sk-pill {
    display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
    min-width: 2rem; height: 1.75rem; padding: 0 .5rem; border-radius: 999px;
    border: 1px solid var(--line); background: transparent; color: var(--text-2);
    font: inherit; font-size: .75rem; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.sk-pill i { font-size: .95rem; line-height: 1; display: inline-flex; }
.sk-pill:hover:not(:disabled) { border-color: var(--line-strong); color: var(--text); }
.sk-pill:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sk-pill:disabled { cursor: not-allowed; opacity: .75; }
.sk-pill.is-read { background: var(--info-soft); color: var(--info); border-color: transparent; }
.sk-pill.is-write { background: var(--success-soft); color: var(--success); border-color: transparent; }
.sk-pill.is-inherited { border-style: dashed; border-color: currentColor; }
.sk-pill.is-static { cursor: default; }
.sk-legend { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.sk-shortcut { max-width: 11rem; height: 1.85rem; font-size: .8rem; padding-block: 0; }
.sk-account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .5rem; }
.sk-account-wh { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: .5rem; }
.sk-account-wh .cell-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .sk-pill { transition: none; } }
.sk-who { display: flex; align-items: center; gap: .5rem; min-width: 0; flex: 1 1 auto; }
.sk-who > span { min-width: 0; overflow: hidden; }
.sk-who .cell-strong, .sk-who .cell-sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-matrix td.sk-sticky { min-width: 19rem; max-width: 22rem; }
.sk-shortcut { flex: 0 0 8.5rem; width: 8.5rem; }
@media (max-width: 640px) { .sk-matrix td.sk-sticky { min-width: 12rem; max-width: 13rem; } .sk-matrix td.sk-sticky .sk-shortcut { flex-basis: 2.4rem; width: 2.4rem; padding-inline: .3rem; color: transparent; } }
