.cgt-tree-permissions .p183-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px}
.cgt-tree-permissions .p183-table th{font-weight:600;padding:12px 5px;text-align:center;background:var(--soft,#f4f7fc)}
.cgt-tree-permissions .p183-table td{padding:8px 5px;border-bottom:1px solid var(--line,#d8e2ee);overflow-wrap:anywhere}
.cgt-tree-permissions .p183-table th:first-child{width:35%;text-align:left;padding-left:12px}
.cgt-tree-permissions .p183-table td:first-child{padding-left:12px}
.cgt-tree-permissions .p183-choice{display:flex;align-items:center;justify-content:center;min-height:36px}
.cgt-tree-permissions input[type=radio],.cgt-tree-permissions input[type=checkbox]{width:17px!important;height:17px;min-height:0;margin:0;flex-shrink:0;accent-color:#245aa6}
.cgt-tree-permissions .p183-green{color:#16824a;font-size:18px}
.cgt-tree-permissions .p183-children td{background:var(--soft,#f4f7fc);padding:15px 20px!important}
.cgt-tree-permissions .p183-subheading{font-size:12px;margin-bottom:10px;opacity:.8}
.cgt-tree-permissions .p183-child-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 18px}
.cgt-tree-permissions .p183-child-grid label{display:flex;align-items:center;gap:10px;min-height:32px}
html[data-cgt-theme=dark] .cgt-tree-permissions .p183-table th,html[data-cgt-theme=dark] .cgt-tree-permissions .p183-children td{background:#20334d;color:#e7eef7}
html[data-cgt-theme=dark] .cgt-tree-permissions .p183-green{color:#77dc9e}
@media(max-width:520px){.cgt-tree-permissions .p183-table th:first-child{width:29%}.cgt-tree-permissions .p183-child-grid{grid-template-columns:1fr}.cgt-tree-permissions .p183-table th{font-size:12px}}
@media(pointer:coarse){.cgt-tree-permissions .p183-choice,.cgt-tree-permissions .p183-child-grid label{min-height:44px}}
[hidden][data-p183-hidden]{display:none!important}

/* P16I.2H — tabela invertida; somente o componente de permissões */
.cgt-tree-permissions .p183-scroll{overflow-x:auto;max-width:100%;border:1px solid var(--line,#d8e2ee);border-radius:9px}
.cgt-tree-permissions .p183-table.p183-inverted{width:max-content;min-width:100%;table-layout:auto;border-collapse:collapse;font-size:12px}
.cgt-tree-permissions .p183-inverted th,.cgt-tree-permissions .p183-inverted td{padding:6px 9px!important;text-align:center;vertical-align:middle;border-bottom:1px solid var(--line,#d8e2ee);overflow-wrap:normal}
.cgt-tree-permissions .p183-inverted thead th{min-width:105px;max-width:155px;white-space:normal;line-height:1.25;background:var(--soft,#f4f7fc)}
.cgt-tree-permissions .p183-inverted thead th:first-child,.cgt-tree-permissions .p183-inverted tbody th{position:sticky;left:0;z-index:2;min-width:138px;width:138px;max-width:138px;text-align:left!important;white-space:nowrap;background:var(--soft,#f4f7fc);font-weight:600}
.cgt-tree-permissions .p183-inverted thead th:first-child{z-index:3}
.cgt-tree-permissions .p183-inverted .p183-choice{position:relative;display:flex;align-items:center;justify-content:center;min-height:26px;min-width:36px;cursor:pointer}
.cgt-tree-permissions .p183-inverted input[type=radio]{position:absolute!important;inset:0;width:100%!important;height:100%!important;opacity:0;margin:0;cursor:pointer;z-index:1}
.cgt-tree-permissions .p183-inverted .p183-tick{color:transparent;font-size:21px;font-weight:800;line-height:1;user-select:none}
.cgt-tree-permissions .p183-inverted input[type=radio]:checked+.p183-tick{color:#159447}
.cgt-tree-permissions .p183-inverted input[type=radio]:focus-visible+.p183-tick{outline:2px solid #4386e8;outline-offset:3px;border-radius:3px}
.cgt-tree-permissions .p183-inverted .p183-choice:hover{background:rgba(35,119,201,.09);border-radius:5px}
.cgt-tree-permissions .p183-view-groups{margin-top:12px}
.cgt-tree-permissions .p183-view-groups>.p183-subheading{font-weight:600;margin-bottom:7px}
.cgt-tree-permissions .p183-view-group{border:1px solid var(--line,#d8e2ee);border-radius:8px;padding:9px 12px;margin:0 0 8px;min-width:0}
.cgt-tree-permissions .p183-view-group legend{font-size:12px;font-weight:600;padding:0 5px}
.cgt-tree-permissions .p183-view-group .p183-child-grid{gap:5px 14px}
.cgt-tree-permissions .p183-view-group .p183-child-grid label{min-height:28px}
.cgt-tree-permissions .p183-empty{font-size:12px;opacity:.8}
html[data-cgt-theme=dark] .cgt-tree-permissions .p183-inverted thead th,html[data-cgt-theme=dark] .cgt-tree-permissions .p183-inverted tbody th{background:#20334d;color:#e7eef7}
html[data-cgt-theme=dark] .cgt-tree-permissions .p183-inverted input[type=radio]:checked+.p183-tick{color:#4ade80}
@media(pointer:coarse){.cgt-tree-permissions .p183-inverted .p183-choice{min-height:40px}}

/* P16I.2I.1 - exclusivamente tiques e altura das tres linhas da matriz invertida. */
.cgt-tree-permissions .p183-inverted tbody td,
.cgt-tree-permissions .p183-inverted tbody th{padding-top:3px!important;padding-bottom:3px!important}
.cgt-tree-permissions .p183-inverted .p183-choice{min-height:24px}
.cgt-tree-permissions .p183-inverted .p183-tick{font-size:16px;line-height:1}
@media(pointer:coarse){.cgt-tree-permissions .p183-inverted .p183-choice{min-height:32px}}
