/* Higienização administrativa: configura uma credencial, conserva rascunhos e separa custo de venda. */
#higienizacao-root{max-width:92rem;margin-inline:auto;min-width:0;container-type:inline-size;container-name:higienizacao}
#higienizacao-root input,#higienizacao-root select,#higienizacao-root textarea{width:100%;min-width:0}
#higienizacao-root textarea{resize:vertical}
.hig-heading{align-items:flex-start;gap:1rem}.hig-heading .badge{flex-shrink:0;margin-top:.3rem}
.hig-notice{border:1px solid var(--line);border-left:4px solid var(--primary);background:var(--primary-soft);border-radius:.85rem;padding:1rem 1.2rem;margin-bottom:1.25rem}
.hig-notice p{margin:.35rem 0 0;font-size:.9rem;line-height:1.5}
.hig-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:1.25rem}
.hig-overview>div{padding:1rem 1.15rem;border:1px solid var(--line);border-radius:1rem;background:var(--surface);display:flex;flex-direction:column;gap:.3rem;min-width:0}
.hig-overview span,.hig-overview small{color:var(--muted)}.hig-overview span{font-size:.875rem}.hig-overview strong{font-size:1.25rem;overflow-wrap:anywhere}
.hig-provider{margin-bottom:1.25rem}.hig-provider>summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;cursor:pointer;color:var(--text);list-style:none}.hig-provider>summary:after{content:'+';font-size:1.5rem;color:var(--primary)}.hig-provider[open]>summary:after{content:'−'}.hig-provider>summary>span:first-child{display:flex;flex-direction:column;gap:.25rem;flex:1}.hig-provider>summary small{color:var(--muted);font-size:.85rem}.hig-provider[open]>summary{padding-bottom:1rem;border-bottom:1px solid var(--line);margin-bottom:1rem}
.hig-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.hig-wide{grid-column:1/-1}.hig-grid>div{min-width:0}.hig-grid p{margin:.35rem 0 0}
.hig-secret{display:flex;align-items:center;gap:.5rem}.hig-secret>input{flex:1}.hig-secret>button{flex-shrink:0}
#higienizacao-root .hig-check{display:flex;align-items:flex-start;gap:.5rem;font-size:.85rem;font-weight:500;margin-top:.8rem}#higienizacao-root .hig-check input{width:auto;margin-top:.25rem;flex-shrink:0}
.hig-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.hig-section-heading h2,.hig-section-heading h3{margin-bottom:.3rem}.hig-section-heading p{margin:0}.hig-section-heading>button{flex-shrink:0}
.hig-filter-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;gap:1rem;margin-bottom:1rem}.hig-filter-action{display:flex;align-items:flex-end;gap:.5rem;padding-bottom:.1rem}
.hig-table-wrap{overflow:auto}.hig-table{width:100%;table-layout:fixed;white-space:normal;font-size:.875rem}.hig-table th:first-child{width:23%}.hig-table th:nth-child(2){width:25%}.hig-table td{vertical-align:top;overflow-wrap:anywhere}.hig-table td small{display:block;color:var(--muted);margin-top:.3rem}.hig-table td .text-btn{padding:.2rem 0;display:block;text-align:left}.hig-table .hig-money{font-variant-numeric:tabular-nums;white-space:nowrap}.hig-table th{font-size:.75rem;white-space:normal;overflow-wrap:anywhere}
.hig-empty{padding:2rem 1rem;text-align:center;border:1px dashed var(--line);border-radius:.75rem}.hig-empty p{margin:.5rem 0 0}.hig-pagination{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1rem}.hig-pagination>div{display:flex;gap:.5rem}
.hig-dialog{width:min(58rem,calc(100vw - 2rem));max-width:58rem;max-height:90vh;padding:1.5rem;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:1.2rem;overflow-y:auto}.hig-dialog input,.hig-dialog select,.hig-dialog textarea{width:100%;min-width:0}.hig-dialog textarea{resize:vertical}.hig-dialog::backdrop{background:rgb(10 25 48 / .5)}.hig-dialog .hig-grid{margin-bottom:1.1rem}
.hig-map-section,.hig-price-section{border-top:1px solid var(--line);margin-top:1.25rem;padding-top:1.1rem}.hig-map-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1.4fr) auto;gap:.75rem;align-items:end;padding:.75rem 0;border-bottom:1px solid var(--line)}.hig-map-row:first-child{padding-top:0}.hig-map-row label{font-size:.85rem}.hig-map-row>button{margin-bottom:.15rem}.hig-map-row>div{min-width:0}.hig-price-section>p{margin-bottom:1.25rem}.hig-editor-actions{position:sticky;bottom:-1.5rem;background:var(--surface);border-top:1px solid var(--line);padding:1rem 0;margin-bottom:0}.hig-editor-actions>span{flex-basis:100%}
.hig-preview-result{border:1px solid var(--line);border-radius:.8rem;padding:1rem;margin-top:1rem;background:var(--primary-soft)}.hig-preview-result p{margin:.4rem 0}.hig-preview-result strong{font-variant-numeric:tabular-nums}.hig-preview-result .hig-total{font-size:1.2rem;margin:.8rem 0}
@media(max-width:64rem){.hig-filter-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.hig-filter-grid>div:first-child{grid-column:1/-1}.hig-overview{gap:.65rem}.hig-overview>div{padding:.9rem}.hig-table th:first-child{width:22%}.hig-table th:nth-child(2){width:24%}}
@media(max-width:45rem){.hig-overview,.hig-grid,.hig-filter-grid{grid-template-columns:minmax(0,1fr)}.hig-wide,.hig-filter-grid>div:first-child{grid-column:auto}.hig-section-heading,.hig-heading{flex-wrap:wrap}.hig-section-heading>button{width:100%}.hig-provider>summary>span:nth-child(2){display:none}.hig-overview>div{gap:.2rem}.hig-overview strong{font-size:1.1rem}.hig-filter-action{align-items:center;flex-wrap:wrap}.hig-table,.hig-table tbody,.hig-table tr,.hig-table td{display:block;width:100%;max-width:100%}.hig-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.hig-table tr{border:1px solid var(--line);border-radius:.85rem;margin-bottom:.8rem;padding:.8rem}.hig-table td{border:0;padding:.3rem 0}.hig-table td:before{content:attr(data-label);display:block;color:var(--muted);font-size:.75rem;font-weight:600;margin-bottom:.15rem}.hig-table td:first-child{padding-top:0}.hig-table td .text-btn{display:inline-block;margin-right:.9rem}.hig-pagination{flex-wrap:wrap}.hig-pagination>div{width:100%}.hig-pagination button{flex:1}.hig-dialog{width:calc(100vw - 1rem);max-height:95vh;padding:1rem}.hig-map-row{grid-template-columns:minmax(0,1fr)}.hig-map-row>button{justify-self:start}.hig-editor-actions{bottom:-1rem}.hig-editor-actions>.btn{flex:1}.hig-notice{padding:.9rem}.hig-map-section .hig-section-heading>button{width:100%}}
/* Usa a largura real do miolo: a barra lateral e a fonte ampliada também pedem cartões no desktop. */
@container higienizacao (max-width:60rem){.hig-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hig-filter-grid>div:first-child{grid-column:1/-1}.hig-table,.hig-table tbody{display:block;width:100%}.hig-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.hig-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.3rem 1.25rem;width:100%;border:1px solid var(--line);border-radius:.85rem;margin-bottom:.8rem;padding:1rem}.hig-table td{display:block;width:auto;min-width:0;border:0;padding:.35rem 0;overflow-wrap:break-word}.hig-table td:nth-child(-n+2){grid-column:1/-1}.hig-table td:before{content:attr(data-label);display:block;color:var(--muted);font-size:.75rem;font-weight:600;margin-bottom:.2rem}.hig-table td:nth-child(2) small{overflow-wrap:anywhere}.hig-table td .text-btn{display:block;width:auto;margin:0;text-align:left;overflow-wrap:normal;word-break:normal}.hig-table td small{margin-top:.2rem}.hig-pagination{flex-wrap:wrap}.hig-pagination>div{flex-wrap:wrap}}
@container higienizacao (max-width:35rem){.hig-filter-grid,.hig-table tr{grid-template-columns:minmax(0,1fr)}.hig-filter-grid>div:first-child,.hig-table td:nth-child(-n+2){grid-column:auto}.hig-filter-action{align-items:center;flex-wrap:wrap}}
/* Cobrança pré-paga 1.37: credenciais da conta separadas do fornecedor de consultas. */
#higienizacao-root .hig-billing .hig-notice{margin-top:.2rem}
.hig-asaas-minimum{border:1px solid var(--line);border-radius:.75rem;padding:.8rem 1rem;background:var(--surface);display:flex;flex-direction:column;justify-content:center;gap:.25rem;min-width:0}
.hig-asaas-minimum>span,.hig-asaas-minimum>small{color:var(--muted);font-size:.85rem;line-height:1.45}
.hig-asaas-minimum>strong{font-size:1.3rem;font-variant-numeric:tabular-nums}
.hig-copy-line{display:flex;gap:.65rem;align-items:center}.hig-copy-line>input{flex:1}.hig-copy-line>.btn{flex-shrink:0}
.hig-asaas-secret-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem;margin-top:.65rem}
.hig-asaas-charges{border-top:1px solid var(--line);padding-top:1.2rem;margin-top:1.1rem}
.hig-asaas-table th:first-child{width:25%}.hig-asaas-table th:nth-child(2){width:25%}.hig-asaas-table th:nth-child(3),.hig-asaas-table th:nth-child(4),.hig-asaas-table th:nth-child(5){width:12%}.hig-asaas-table th:last-child{width:14%}
.hig-asaas-legacy{border:1px solid var(--line);border-radius:.75rem;padding:.85rem 1rem;margin-top:1rem}.hig-asaas-legacy summary{font-weight:600;cursor:pointer}.hig-asaas-legacy ul{margin:1rem 0 0;padding-left:1.1rem}.hig-asaas-legacy li{margin:.4rem 0;overflow-wrap:anywhere}
@media(max-width:45rem){.hig-copy-line{align-items:stretch;flex-direction:column}.hig-copy-line>.btn{width:100%}.hig-asaas-secret-actions>.btn{flex:1}.hig-asaas-charges>.hig-section-heading>button{width:100%}}
@container higienizacao (max-width:60rem){.hig-asaas-table tr{grid-template-columns:repeat(3,minmax(0,1fr))}.hig-asaas-table td:nth-child(-n+2),.hig-asaas-table td:last-child{grid-column:1/-1}}
@container higienizacao (max-width:35rem){.hig-copy-line{align-items:stretch;flex-direction:column}.hig-asaas-table tr{grid-template-columns:minmax(0,1fr)}.hig-asaas-table td:nth-child(-n+2),.hig-asaas-table td:last-child{grid-column:auto}}

.hig-asaas-loadline{display:flex;gap:.75rem;align-items:flex-start;justify-content:space-between}.hig-asaas-loadline>p{flex:1}.hig-asaas-loadline>button{flex-shrink:0}
