/* Tela dedicada de permissões da equipe (20/10) */
#permView{display:none}
body.perm-open main>:not(#permView){display:none!important}
body.perm-open #permView{display:block}
body.perm-open main{margin-top:0;padding-top:8px}
.perm-top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:10px;padding:10px 0;background:#0c111b}
.perm-back{min-height:40px;width:40px;padding:0;border-radius:12px;background:transparent;color:#edf2f7;border-color:#42526a;font-size:20px}
.perm-title{flex:1;min-width:0}.perm-title h1{font-size:22px;margin:0}.perm-title small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.perm-count{background:rgba(158,197,255,.14);color:#9ec5ff;font-weight:800;border-radius:99px;padding:5px 11px;font-size:13px}
.perm-note{font-size:13px;margin:4px 0 12px}
.perm-quick{display:flex;gap:8px;margin-bottom:12px}.perm-quick button{flex:1;min-height:42px;background:transparent}
.perm-all{color:#4ade80!important;border-color:rgba(74,222,128,.55)!important}.perm-none{color:#ffb4b4!important;border-color:#81555c!important}
.perm-group{background:#141d2b;border:1px solid #29364a;border-radius:16px;padding:10px 14px;margin:10px 0}
.perm-group-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:4px}
.perm-group-head strong{display:block;color:#9ec5ff;font-size:12px;letter-spacing:.08em;text-transform:uppercase}.perm-group-head small{font-size:11px}
.perm-link{min-height:34px;padding:6px 10px;background:transparent;border:0;color:#9ec5ff;font-size:12px}
.perm-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0;padding:9px 2px;border-top:1px solid rgba(41,54,74,.6);cursor:pointer}
.perm-row.changed span{color:#9ec5ff;font-weight:700}.perm-row i{font-style:normal}
.perm-switch{appearance:none;-webkit-appearance:none;flex:0 0 46px;width:46px!important;min-width:46px!important;height:26px;padding:0!important;margin:0;border-radius:99px;background:#334155!important;border:0!important;position:relative;cursor:pointer;transition:background .15s}
.perm-switch::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .15s}
.perm-switch:checked{background:#22c55e!important}.perm-switch:checked::after{transform:translateX(20px)}
.perm-msg{color:#ffb4b4;min-height:1em}
.perm-bar{position:sticky;bottom:12px;display:flex;gap:8px;padding:10px;margin-top:8px;border-radius:16px;background:rgba(20,29,43,.95);border:1px solid #29364a;backdrop-filter:blur(10px)}
.perm-bar #permSave{flex:1;min-height:50px;background:#22c55e;border-color:#22c55e;color:#03140a;font-weight:900}
/* Permissões em colunas (01/12): 2 colunas no celular, 3 em telas largas */
.perm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}
.perm-grid .perm-row{gap:6px;padding:7px 0;min-width:0}
.perm-grid .perm-row span{min-width:0;font-size:13px;line-height:1.25;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.perm-grid .perm-info{width:22px;height:22px;font-size:12px;line-height:22px}
.perm-grid .perm-switch{flex:0 0 38px;width:38px!important;min-width:38px!important;height:22px}
.perm-grid .perm-switch::after{width:16px;height:16px}
.perm-grid .perm-switch:checked::after{transform:translateX(16px)}
@media (min-width:900px){.perm-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:340px){.perm-grid{grid-template-columns:1fr}}
