/* RC4 — same palette and component dimensions as Proprietários. Only platform views. */
html body [data-view="platform"] .av-rc4-networks{min-width:1350px!important;table-layout:fixed!important}
html body [data-view="platform"] .av-rc4-networks th:nth-child(1){width:22%}html body [data-view="platform"] .av-rc4-networks th:nth-child(2){width:16%}html body [data-view="platform"] .av-rc4-networks th:nth-child(3){width:12%}html body [data-view="platform"] .av-rc4-networks th:nth-child(4){width:7%}html body [data-view="platform"] .av-rc4-networks th:nth-child(5){width:8%}html body [data-view="platform"] .av-rc4-networks th:nth-child(6){width:8%}html body [data-view="platform"] .av-rc4-networks th:nth-child(7){width:13%}html body [data-view="platform"] .av-rc4-networks th:nth-child(8){width:14%}
html body [data-view="platform"] :is(.av-rc4-networks,.av-rc4-invoices) :is(th,td){padding:13px 12px!important;vertical-align:middle!important}
html body [data-view="platform"] .av-rc4-networks td:first-child{max-width:none!important}
html body [data-view="platform"] .av-rc4-invoices{min-width:1120px!important}
html body [data-view="platform"] .av-rc4-action-pair,html body [data-view="platform"] .av-rc3-inv{display:grid!important;grid-template-columns:minmax(0,1fr);gap:7px!important;align-items:stretch!important;justify-items:stretch!important;margin:0!important;min-width:0;white-space:normal!important}
html body [data-view="platform"] .av-rc3-inv>.status{justify-self:center;align-self:center;min-height:30px;display:inline-flex;align-items:center;justify-content:center;margin:0!important;line-height:1.1}
html body [data-view="platform"] :is(.av-rc4-action-pair,.av-rc3-inv,.av-rc4-invoice-actions)>.action,html body [data-view="platform"] .av-rc4-invoices button[data-pf-nfse]{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;height:auto!important;min-height:36px!important;margin:0!important;padding:8px!important;border:1px solid #cbdcd1!important;border-radius:8px!important;box-shadow:none!important;font-size:12px!important;font-weight:550!important;line-height:1.25!important;white-space:normal!important;background:#fff!important;color:#176b47!important}
html body [data-view="platform"] :is(.av-rc4-action-pair,.av-rc3-inv,.av-rc4-invoice-actions)>.action svg{width:15px;height:15px;flex:none}
html body [data-view="platform"] :is(.av-rc4-action-pair,.av-rc3-inv,.av-rc4-invoice-actions)>.action:hover:not(:disabled){background:#edf5ef!important;border-color:#9bbda9!important}
html body [data-view="platform"] .av-rc4-invoice-actions>.action+.action{margin-top:7px!important}
html body [data-view="platform"] .av-rc4-invoice-actions>:is([data-pf-cancel],[data-pf-unpay]){color:#a33e35!important;border-color:#e7ceca!important}
html body [data-view="platform"] .av-rc4-invoice-actions>:is([data-pf-cancel],[data-pf-unpay]):hover{background:#fff2ef!important}
html body [data-view="platform"] .av-rc4-networks .av-rc4-network-actions{min-width:0!important;width:auto!important}
html body [data-view="platform"] .av-rc4-invoices .av-rc4-invoice-actions{min-width:142px!important;width:142px!important}
html body [data-view="platform"] .av-rc4-networks td:nth-child(7){padding-inline:8px!important}
/* Identification first, navigation always visible, one scroll area. */
html body dialog.av-rc3-dialog.av-rc4-contract{width:min(820px,calc(100vw - 24px))!important}
html body dialog.av-rc4-contract form.av-form{overflow:hidden!important}
html body dialog.av-rc4-contract .av-rc4-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;flex:none;padding:15px 22px 10px;border-bottom:1px solid #e2ebe5;min-width:0}
html body dialog.av-rc4-contract .av-rc4-tab{display:flex!important;align-items:center;justify-content:flex-start;gap:7px;min-width:0;min-height:42px!important;padding:6px 8px!important;border:1px solid transparent!important;border-radius:8px!important;background:#fff!important;color:#60786b!important;box-shadow:none!important;font-size:12px!important;font-weight:500!important;text-align:left;white-space:normal!important}
html body dialog.av-rc4-contract .av-rc4-tab span{width:24px;height:24px;display:grid;place-items:center;border:1px solid #d5e3da;border-radius:50%;flex:none;font-weight:650}
html body dialog.av-rc4-contract .av-rc4-tab[aria-pressed=true]{color:#176b47!important;background:#edf5ef!important;border-color:#c6dfd0!important}
html body dialog.av-rc4-contract .av-rc4-tab[aria-pressed=true] span{background:#176b47;color:white;border-color:#176b47}
html body dialog.av-rc4-contract .av-form-fields{display:block!important;min-height:0;overflow:auto!important;padding:18px 22px!important}
html body dialog.av-rc4-contract .av-form-section:not(.av-rc4-current){display:none!important}
html body dialog.av-rc4-contract .av-form-section.av-rc4-current{border:0!important;background:none!important}
html body dialog.av-rc4-contract .av-form-section>summary{display:block!important;pointer-events:none;list-style:none;padding:0 0 12px!important;border:0!important;background:transparent!important;color:#173329!important;font-size:16px!important}
html body dialog.av-rc4-contract .av-form-section>summary::marker{content:''}html body dialog.av-rc4-contract .av-form-section>summary::-webkit-details-marker{display:none}
html body dialog.av-rc4-contract .av-form-section>summary::after{display:none!important}
html body dialog.av-rc4-contract .av-form-section-grid{padding:0!important;gap:14px!important}
html body dialog.av-rc4-contract :is(.av-party-actions,.av-cadastro-cep-tools,.av-cnpj-tools,.av-ie-tools){display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;margin-top:4px;min-width:0}
html body dialog.av-rc4-contract :is(.av-cad-actions,.av-ie-actions){display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
html body dialog.av-rc4-contract :is(.av-party-lookup,.av-cad-main,.av-ie-button,.av-cnpj-button,.av-ie-pick,.av-fiscal-cep-retry){min-height:32px!important;padding:6px 11px!important;border:1px solid #dbe5de!important;background:#fff!important;color:#244c32!important;border-radius:8px!important;font-size:12px!important;font-weight:650!important;box-shadow:none!important}
html body dialog.av-rc4-contract :is(.av-party-lookup,.av-cad-main,.av-ie-button,.av-cnpj-button,.av-ie-pick,.av-fiscal-cep-retry):hover:not(:disabled){background:#f0f8f2!important;border-color:#a2ceb0!important}
html body dialog.av-rc4-contract :is(.av-party-lookup,.av-cad-main,.av-ie-button,.av-cnpj-button,.av-ie-pick,.av-fiscal-cep-retry):disabled{opacity:.65!important;cursor:progress!important}
html body dialog.av-rc4-contract :is(.av-party-sefaz,.av-ie-official){font-size:11.5px!important;font-weight:600!important;color:#187338!important;text-decoration:underline!important;text-underline-offset:3px;white-space:nowrap}
html body dialog.av-rc4-contract .av-ie-choices:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%;gap:6px}
html body dialog.av-rc4-contract .av-party-status{font-size:12px;line-height:1.45;overflow-wrap:anywhere;flex:1 0 100%}
html body dialog.av-rc4-contract [data-field="ie"] .av-party-actions{align-items:flex-start}
html body dialog.av-rc4-contract [data-field="ie"] .av-party-status{margin-top:2px}
html body dialog.av-rc4-contract .av-party-status[data-tone=warning]{color:#92600a}
/* Access sheet, reusable readonly/copy controls; password hidden by default. */
html body dialog.av-rc3-dialog.av-rc4-access{width:min(590px,calc(100vw - 24px))!important}
html body dialog.av-rc4-access .av-rc4-access-note{display:flex;align-items:flex-start;gap:12px;margin:18px 22px 0;padding:15px 16px;background:#f7faf8;border:1px solid #dbe5de;border-radius:12px;min-width:0}
html body dialog.av-rc4-access .av-rc4-access-icon{display:grid;place-items:center;width:38px;height:38px;flex:none;background:#edf5ef;border:1px solid #d5e3da;border-radius:10px;color:#176b47}
html body dialog.av-rc4-access .av-rc4-access-note strong{font-size:14px;font-weight:650;color:#173329}
html body dialog.av-rc4-access .av-rc4-access-note p{margin:5px 0 0;font-size:12px;line-height:1.5;color:#60786b}
html body dialog.av-rc4-access .av-form-copy{grid-template-columns:minmax(0,1fr) auto;gap:7px}
html body dialog.av-rc4-access .av-form-copy:has(.av-rc4-reveal){grid-template-columns:minmax(0,1fr) auto auto}
html body dialog.av-rc4-access .av-form-copy input{font-family:inherit!important;font-size:13px!important;background:#fff!important;border-color:#dbe5de!important}
html body dialog.av-rc4-access .av-form-copy .action{min-width:72px;min-height:42px!important;font-size:12px!important;font-weight:650!important;border-color:#dbe5de!important;background:#fff!important;color:#244c32!important;box-shadow:none!important}
html body dialog.av-rc4-access .av-form-copy .action:hover:not(:disabled){background:#f0f8f2!important;border-color:#a2ceb0!important}
html body dialog.av-rc4-access .av-form-copy .av-rc4-reveal{min-width:82px}
@media(max-width:620px){html body dialog.av-rc4-contract .av-rc4-tabs{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px 14px}html body dialog.av-rc4-contract .av-form-fields{padding:14px!important}html body dialog.av-rc4-access .av-rc4-access-note{margin:12px 14px 0}html body dialog.av-rc4-access .av-form-copy:has(.av-rc4-reveal){grid-template-columns:1fr 1fr}html body dialog.av-rc4-access .av-form-copy:has(.av-rc4-reveal) input{grid-column:1/-1}}
/* Equal-height controls and no wrapping of short actions. */
html body [data-view="platform"] .av-rc4-networks{min-width:1160px!important}
html body [data-view="platform"] .av-rc4-action-pair,html body [data-view="platform"] .av-rc3-inv:has([data-pf-paid]){grid-template-rows:36px 36px;gap:7px!important}
html body [data-view="platform"] .av-rc3-inv>.status{min-height:24px;max-height:30px}
html body [data-view="platform"] .av-rc4-networks .av-rc4-action-pair button[data-pf-login]{background:#fff!important;color:#176b47!important;border-color:#cbdcd1!important}
html body [data-view="platform"] .av-rc4-networks .av-rc4-action-pair button[data-pf-login]:hover{background:#edf5ef!important}
html body [data-view="platform"] .av-rc4-invoices .av-rc4-invoice-actions{min-width:160px!important;width:160px!important}
html body [data-view="platform"] .av-rc4-invoices .av-rc4-invoice-actions>.action{height:36px!important;white-space:nowrap!important}
