/* Catálogo e seletor local: composição das referências aprovadas, sem alterar tabelas globais. */
#areaConfiguracoes #configPainelCargos h3{font-size:21px!important;color:#142649!important}
#areaConfiguracoes #configPainelCargos .cs-setor{background:transparent!important;color:#203957!important;box-shadow:none!important;border:0!important;border-radius:3px!important;padding:13px 10px!important;font-weight:400!important}
#areaConfiguracoes #configPainelCargos .cs-setor.cs-selecionado{background:#e2f0ff!important;border-left:3px solid #0675ed!important}
#areaConfiguracoes #configPainelCargos .cs-icon,#areaConfiguracoes #configPainelCargos .cs-acoes summary{background:transparent!important;color:#153d68!important;border:0!important;box-shadow:none!important;padding:2px 6px!important;min-width:0!important;border-radius:0!important}
#areaConfiguracoes #configPainelCargos .cs-menu button{background:white!important;color:#153d68!important;box-shadow:none!important}
#areaConfiguracoes #configPainelCargos .cs-table{border-collapse:collapse!important;border-spacing:0!important;background:transparent!important}
#areaConfiguracoes #configPainelCargos .cs-table tr{box-shadow:none!important;background:transparent!important;border:0!important}
#areaConfiguracoes #configPainelCargos .cs-table td,#areaConfiguracoes #configPainelCargos .cs-table th{border:0!important;border-bottom:1px solid #dfe8f4!important;border-radius:0!important;padding:9px 12px!important;box-shadow:none!important}
#areaConfiguracoes #configPainelCargos .cs-table th{background:#f2f6fb!important}
#areaConfiguracoes #configPainelCargos button:not(.cs-setor):not(.cs-icon){border-radius:7px!important}
#areaConfiguracoes #configPainelCargos .cs-filtros input{text-transform:none!important}
#modalUsuario #uSetoresResumo{background:white!important;color:#142649!important;box-shadow:none!important;font-weight:400!important;border:1px solid #cddff5!important;border-radius:8px!important;text-align:left!important}
#modalUsuario #uSetoresLista label{font-weight:400!important}
#modalUsuario #uSetoresBusca{text-transform:none!important}
#areaConfiguracoes #configPainelCargos .cs-icon{width:25px!important;height:25px!important;min-height:0!important;font-size:18px!important;text-shadow:none!important}
#areaConfiguracoes #configPainelCargos .cs-table td{padding-top:7px!important;padding-bottom:7px!important}
#areaConfiguracoes #configPainelCargos{padding:16px;margin-top:14px;min-width:0}
#areaConfiguracoes #configPainelCargos h3{margin:0 0 2px}#areaConfiguracoes #configPainelCargos h4{font-size:18px;margin:0;color:#142649}
#areaConfiguracoes #configPainelCargos .cs-preparacao{margin:5px 0 12px;color:#64748b}
.cs-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:14px;min-width:0}
.cs-setores,.cs-cargos{border:1px solid #d9e5f2;border-radius:6px;min-width:0;background:#ffffff90}
.cs-setores{padding:14px}.cs-setores>button{width:100%;margin:10px 0 12px}.cs-setores>label{display:block;margin:14px 0 5px;font-size:13px;font-weight:600}.cs-setores>select{width:100%}
.cs-setor-linha{display:flex;align-items:center;border-bottom:1px solid #e0e8f2;min-width:0}.cs-setor{background:transparent!important;color:#203957!important;box-shadow:none!important;border:0!important;border-radius:3px;padding:13px 10px;text-align:left;min-width:0;overflow-wrap:anywhere;flex:1;font-weight:400!important}.cs-setor-linha .cs-acoes{flex:none}.cs-selecionado{background:#e2f0ff!important;border-left:3px solid #0675ed!important}.cs-setor.cs-selecionado{width:100%}
.cs-cargos-top{padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e1e9f3}.cs-cargos-top h4{overflow-wrap:anywhere}.cs-conteudo{padding:12px}.cs-filtros{display:flex;gap:10px;margin-bottom:12px;flex-wrap:wrap}.cs-filtros input{width:310px;max-width:100%;min-width:0}.cs-filtros select{width:220px;max-width:100%}.cs-filtros button{margin-left:auto}
.cs-table-wrap{overflow-x:auto;padding-bottom:4px}.cs-table{width:100%;min-width:650px!important;border-collapse:collapse;table-layout:auto!important}.cs-table th,.cs-table td{padding:9px 12px!important;border-bottom:1px solid #dfe8f4;font-size:13px;white-space:normal!important}.cs-table th{background:#f2f6fb}.cs-table th:first-child{width:32%}.cs-table td:nth-child(2),.cs-table td:nth-child(3),.cs-table td:nth-child(4){white-space:nowrap!important;text-align:right}.cs-table th:nth-child(2),.cs-table th:nth-child(3),.cs-table th:nth-child(4){text-align:right}.cs-grupo th{background:#edf5ff;text-align:left}.cs-badge{background:#d6fae1;color:#006b26;border-radius:20px;padding:4px 10px;white-space:nowrap;font-weight:600}.cs-inativo{background:#e9edf2;color:#53647a}
.cs-acoes{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
#areaConfiguracoes #configPainelCargos .cs-more{background:transparent!important;color:#153d68!important;border:0!important;box-shadow:none!important;cursor:pointer;font-size:20px!important;padding:2px 6px!important;min-width:25px;min-height:25px}
#csActionMenu{position:fixed;z-index:10000;box-sizing:border-box;min-width:150px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;border:1px solid #cddced;background:#fff;border-radius:7px;box-shadow:0 4px 15px #14264930;padding:5px}
#csActionMenu button{display:block;background:#fff!important;color:#153d68!important;border:0!important;box-shadow:none!important;border-radius:5px!important;width:100%;text-align:left;font-size:14px!important;padding:10px 12px!important}
#csActionMenu button:hover,#csActionMenu button:focus-visible{background:#e2f0ff!important;outline:2px solid #0675ed;outline-offset:-2px}
#areaConfiguracoes #configPainelCargos .cs-dialog{box-sizing:border-box;width:min(860px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid #c4ddfb;border-radius:12px;overflow:auto;background:#f1f8ff;color:#142649;box-shadow:0 12px 48px #14264945}
#areaConfiguracoes #configPainelCargos .cs-dialog::backdrop{background:rgba(15,23,42,.48)}
#areaConfiguracoes #configPainelCargos .cs-dialog .cs-form{margin:0;border:0;padding:20px}
#areaConfiguracoes #configPainelCargos .cs-dialog [hidden]{display:none!important}
#areaConfiguracoes #configPainelCargos .cs-dialog .cs-form-actions{position:sticky;bottom:-20px;background:#f1f8ff;padding:12px 0;margin-bottom:0;flex-wrap:wrap}
#areaConfiguracoes #configPainelCargos .cs-dialog :is(input,select){box-sizing:border-box}
#areaConfiguracoes #configPainelCargos .cs-dialog .cs-form-nome{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
#areaConfiguracoes #configPainelCargos .cs-dialog .cs-form-valores{grid-template-columns:repeat(4,minmax(0,1fr))}
#areaConfiguracoes #configPainelCargos .cs-dialog #csFormSetor .cs-form-nome,#areaConfiguracoes #configPainelCargos .cs-dialog #csFormSetor .cs-form-valores{display:block}
#areaConfiguracoes #configPainelCargos .cs-table-wrap{max-width:100%;min-width:0}
@media(max-width:768px){#areaConfiguracoes #configPainelCargos .cs-dialog .cs-form-valores{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:450px){#areaConfiguracoes #configPainelCargos .cs-dialog .cs-form-nome,#areaConfiguracoes #configPainelCargos .cs-dialog .cs-form-valores{grid-template-columns:minmax(0,1fr)}}

.cs-form{background:#f1f8ff;border:1px solid #c4ddfb;border-radius:6px;padding:14px;margin-top:10px}.cs-form h4{color:#0350b9!important;font-size:15px!important;margin-bottom:10px!important}.cs-form label{font-size:13px;font-weight:600;display:flex;flex-direction:column;gap:4px;min-width:0}.cs-form input,.cs-form select{width:100%;min-width:0}.cs-form-nome{display:grid;grid-template-columns:1fr 2fr;gap:16px}.cs-setores .cs-form-nome{display:block}.cs-form-valores{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:12px}.cs-setores .cs-form-valores{display:block}.cs-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}.cs-form .small{margin-top:9px}.cs-erro{color:#b91c1c!important;white-space:normal;overflow-wrap:anywhere}.cs-nota{margin-top:8px!important;font-size:11px!important}
#uSetoresCampo{position:relative;min-width:0}#uSetoresResumo{width:100%;background:white;color:#142649;border:1px solid #cddff5;box-shadow:none;font-weight:400;text-align:left;padding:10px 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#uSetoresResumo::after{content:'⌄';float:right}
#uSetoresPopup{position:absolute;top:100%;right:0;width:100%;min-width:225px;max-width:min(300px,80vw);z-index:60;background:white;border:1px solid #d3e0ef;border-radius:10px;box-shadow:0 4px 16px #122c4d30;padding:12px}#uSetoresPopup[hidden]{display:none!important}#uSetoresBusca{width:100%;min-width:0;margin-bottom:7px}#uSetoresLista{max-height:195px;overflow-y:auto}#uSetoresLista label{display:flex;align-items:flex-start;gap:10px;padding:8px 4px;font-weight:400;font-size:13px;white-space:normal;overflow-wrap:anywhere}#uSetoresLista input{width:17px;height:17px;flex:none;margin-top:1px}#uSetoresNota{font-size:11px;color:#667b96;padding-top:6px}#uSetoresRodape{border-top:1px solid #e2e8f0;padding-top:8px;margin-top:7px;font-size:12px;color:#667b96}
@media(max-width:1100px){.cs-layout{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:768px){.cs-layout{grid-template-columns:minmax(0,1fr)}.cs-setores{padding:10px}.cs-setores>button{width:auto}.cs-form-nome,.cs-form-valores{grid-template-columns:repeat(2,minmax(0,1fr))}.cs-filtros>*{max-width:100%}.cs-cargos-top{flex-wrap:wrap}.cs-table-wrap{max-width:100%}#uSetoresPopup{min-width:0;width:100%}}
@media(max-width:450px){.cs-form-nome,.cs-form-valores{grid-template-columns:minmax(0,1fr)}.cs-filtros input,.cs-filtros select{width:100%}.cs-form-actions{flex-wrap:wrap}.cs-form{padding:10px}.cs-conteudo{padding:8px}}

#areaConfiguracoes #configPainelCargos .cs-moeda{display:flex;align-items:stretch;min-width:0}
#areaConfiguracoes #configPainelCargos .cs-moeda>span{display:flex;align-items:center;background:#e9eef5;color:#657a96;padding:0 10px;border:1px solid #cddff5;border-right:0;border-radius:7px 0 0 7px;font-weight:400}
#areaConfiguracoes #configPainelCargos .cs-moeda input{border-radius:0 7px 7px 0!important}
#csImportBox [hidden]{display:none!important}
#csImportBox .cs-table-wrap{max-height:360px;overflow:auto}
#csImportBox td{white-space:normal;overflow-wrap:anywhere}

/* v3.0.64: somente o catálogo usa a largura do seu painel, sem empurrar Ações para fora. */
#areaConfiguracoes #configPainelCargos{width:100%;max-width:100%;box-sizing:border-box;container-type:inline-size}
#areaConfiguracoes #configPainelCargos .cs-layout,#areaConfiguracoes #configPainelCargos .cs-cargos,#areaConfiguracoes #configPainelCargos .cs-conteudo{min-width:0;max-width:100%}
#areaConfiguracoes #configPainelCargos .cs-cargos .cs-table{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important}
#areaConfiguracoes #configPainelCargos .cs-cargos .cs-table :is(th,td){min-width:0!important;white-space:normal!important;overflow-wrap:anywhere;padding-left:8px!important;padding-right:8px!important}
#areaConfiguracoes #configPainelCargos .cs-cargos .cs-table thead th:first-child{width:30%}
#areaConfiguracoes #configPainelCargos .cs-cargos .cs-table thead th:nth-child(2),#areaConfiguracoes #configPainelCargos .cs-cargos .cs-table thead th:nth-child(3),#areaConfiguracoes #configPainelCargos .cs-cargos .cs-table thead th:nth-child(4){width:15%}
#areaConfiguracoes #configPainelCargos .cs-cargos .cs-table thead th:nth-child(5){width:12%}
#areaConfiguracoes #configPainelCargos .cs-cargos .cs-table thead th:nth-child(6){width:13%}
#areaConfiguracoes #configPainelCargos .cs-acoes{flex-wrap:wrap;max-width:100%;gap:4px}
#areaConfiguracoes #configPainelCargos .cs-badge{display:inline-block;max-width:100%;white-space:normal;padding:4px 6px}
#areaConfiguracoes #configPainelCargos .cs-filtros>*{max-width:100%;min-width:0;box-sizing:border-box}
#areaConfiguracoes #configPainelCargos .cs-form-actions{flex-wrap:wrap}
@container (max-width:900px){#areaConfiguracoes #configPainelCargos .cs-layout{grid-template-columns:minmax(0,1fr)}}
@container (max-width:540px){#areaConfiguracoes #configPainelCargos .cs-cargos .cs-table :is(th,td){padding-left:3px!important;padding-right:3px!important;font-size:11px!important}#areaConfiguracoes #configPainelCargos .cs-filtros{gap:8px}}
