.gam{min-width:0;max-width:100%;display:grid;gap:.8rem}.gam header h3{margin:0}.gam p{margin:.25rem 0}.gam form,.gam nav{display:flex;gap:.65rem;align-items:end;flex-wrap:wrap}.gam label{display:grid;gap:.3rem;min-width:0}.gam input,.gam select{max-width:100%;box-sizing:border-box}.gam button,.gam input,.gam select{min-height:44px;font:inherit}.gam button{cursor:pointer;border:1px solid #64748b;border-radius:.4rem;padding:.45rem .65rem;background:#fff;color:#172033}.gam button:disabled{cursor:default;opacity:.6}.gam button:focus-visible,.gam-scroll:focus-visible{outline:3px solid #2563eb;outline-offset:2px}.gam-scroll{overflow:auto;max-width:100%;max-height:65vh;border:1px solid #cbd5e1;isolation:isolate;background:#fff;color:#172033}.gam table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:.9rem}.gam th,.gam td{box-sizing:border-box;vertical-align:top;border-right:1px solid #cbd5e1;border-bottom:1px solid #cbd5e1;padding:.55rem;min-width:10.5rem;max-width:13rem;overflow-wrap:anywhere}.gam thead th{position:sticky;top:0;z-index:2;background:#e9eef6}.gam tr>th:first-child{position:sticky;left:0;z-index:1;width:10.5rem;min-width:10.5rem;max-width:10.5rem;background:#f6f8fc;text-align:left}.gam thead tr>th:first-child{z-index:3;background:#e9eef6}.gam td button,.gam td span{display:block;width:100%;text-align:left;min-width:8.2rem}.gam small{display:block;font-size:.79rem;font-weight:400;line-height:1.4;margin-top:.2rem}.gam tbody th button{margin-top:.4rem}.gam-on{background:#eef8f2}.gam-off{background:#fff}.gam-unknown{background:#f1f3f6}.gam caption{text-align:left;padding:.55rem;font-weight:600}.gam-legend{font-size:.85rem}.access-matrix-entry{min-width:0;max-width:100%}.access-matrix-entry-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin:.6rem 0}.access-matrix-entry-actions button{min-height:44px}@media(max-width:600px){.gam form{align-items:stretch}.gam form label:first-child{flex:1 1 100%}.gam input{width:100%}.gam th,.gam td{padding:.4rem}.gam-scroll{max-height:60vh}}

/* Keep controls and help compact above the employee-by-pack grid. */
.gam{gap:.5rem}.gam [data-gam-status]:empty,.access-matrix-entry [data-general-access-document-status]:empty{display:none}.gam form label:first-child{flex:1 1 15rem}.gam form label:has(select){flex:1 1 17rem}.gam form input,.gam form select{width:100%}.gam-help{font-size:.85rem}.gam-help summary{cursor:pointer;min-height:32px;box-sizing:border-box;padding:.4rem 0}.gam-help summary:focus-visible{outline:3px solid #2563eb;outline-offset:2px}.gam-help p{max-width:80ch}.access-matrix-entry-actions:has(button[hidden]){display:none}@media(min-width:900px){.gam form{flex-wrap:nowrap}}
