/* 1.16.0: controles compactos e legíveis em todos os temas e fontes. */
.exp-eyebrow{font-size:.72rem;font-weight:750;letter-spacing:.1em;color:var(--primary);margin:0 0 .45rem}
.exp-pill{display:inline-flex;border-radius:999px;background:var(--primary-soft);color:var(--primary);padding:.45rem .8rem;font-size:.8rem;font-weight:650;white-space:nowrap}
.exp-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:1rem;margin:1rem 0}.exp-toolbar>div{flex:1;min-width:12rem}.exp-toolbar>span{align-self:center}
.exp-products{min-width:0;border:1px solid var(--line);border-radius:12px;padding:1rem}.exp-products legend{padding:0 .35rem;font-weight:650}
#exp-products{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:.7rem}.exp-product{display:flex;align-items:start;gap:.7rem;padding:.8rem;border:1px solid var(--line);border-radius:10px;background:var(--surface-alt);cursor:pointer}.exp-product input{margin-top:.2rem;flex:none}.exp-product small{display:block;color:var(--muted);margin-top:.3rem}
.exp-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin:1rem 0}.exp-metric{padding:1rem;background:var(--surface-alt);border-radius:12px}.exp-metric strong{display:block;font-size:1.7rem;line-height:1.3}.exp-metric span{font-size:.8rem;color:var(--muted)}
.exp-note{padding:.9rem 1rem;background:var(--primary-soft);border-inline-start:3px solid var(--primary);border-radius:8px;margin:.7rem 0;overflow-wrap:anywhere}
#exp-progress progress{width:100%;height:.7rem;accent-color:var(--primary)}.exp-file{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.9rem 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.exp-file span{flex:none;color:var(--muted);font-size:.8rem}
.exp-column{border:1px solid var(--line);border-radius:12px;margin:.8rem 0;background:var(--surface)}.exp-column>summary{cursor:pointer;padding:1rem;font-weight:650;overflow-wrap:anywhere}.exp-column>summary small{font-weight:400;color:var(--muted);display:block;margin-top:.4rem;margin-inline-start:1.3rem}.exp-column-content{padding:0 1rem 1rem}.exp-column-tools{display:flex;gap:.4rem;flex-wrap:wrap;margin:.5rem 0}.exp-column-tools button{font-size:.8rem;min-height:36px}.exp-refs{display:grid;gap:.6rem;margin:.7rem 0}.exp-ref{display:grid;grid-template-columns:1fr 2fr 1fr auto;gap:.5rem;align-items:end}.exp-ref label,.exp-op label{font-size:.78rem}.exp-op{border:1px solid var(--line);background:var(--surface-alt);border-radius:10px;padding:.8rem;margin:.65rem 0}.exp-op-head{display:flex;align-items:center;gap:.5rem}.exp-op-head strong{flex:1}.exp-op-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.exp-op-fields:empty{display:none}.exp-op-fields .exp-ref{grid-template-columns:1fr 1.4fr 1fr}.exp-wide{grid-column:1/-1}.exp-pairs{display:grid;gap:.5rem}.exp-pair{display:grid;grid-template-columns:1fr 1fr auto;gap:.5rem;align-items:end}.exp-pair input{min-width:0}
.exp-checks{display:flex;flex-direction:column;justify-content:center;gap:.6rem}.exp-checks label,.exp-confirm{display:flex;align-items:center;gap:.5rem}.exp-confirm{margin-top:1rem;font-weight:600}.exp-section-head{margin-top:1.5rem}.exp-save-bar{position:sticky;bottom:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem;background:var(--surface);border-top:1px solid var(--line);margin:1.4rem -1rem -1rem;box-shadow:0 -4px 15px #00000008}.exp-save-bar span{font-size:.85rem;color:var(--muted)}
.exp-test{margin-top:2rem;padding-top:1rem;border-top:1px solid var(--line)}.exp-test summary{cursor:pointer;font-weight:650}.exp-test textarea{font-family:monospace;margin-bottom:.8rem}.exp-test table{margin-top:1rem}.exp-column .form-grid{gap:1rem}#expm-fields{min-width:0;border:0;padding:0;margin:0}#expm-fields input,#expm-fields select{min-width:0}#exp-root section.panel,#expm-root section.panel{margin-bottom:1.2rem}
@media(max-width:750px){.exp-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.exp-ref,.exp-op-fields .exp-ref{grid-template-columns:1fr}.exp-op-fields{grid-template-columns:1fr}.exp-file{display:block}.exp-file span{display:block;margin-top:.3rem}.exp-save-bar{flex-wrap:wrap}.exp-save-bar .btn{width:100%}.exp-pair{grid-template-columns:1fr 1fr}.exp-pair button{grid-column:1/-1}.exp-pill{white-space:normal}}
#exp-root .exp-product,#expm-root .exp-checks label,#expm-root .exp-confirm{display:flex;align-items:center;gap:.65rem}
#exp-root input[type=checkbox],#expm-root input[type=checkbox]{width:1.2rem;height:1.2rem;min-height:1.2rem;flex:0 0 1.2rem;padding:0;accent-color:var(--primary)}
.exp-column-tools button[aria-label]{min-width:2.4rem}#exp-products>p{margin:.3rem 0}
#exp-download-log{margin-top:1.2rem;border-top:1px solid var(--line);padding-top:1rem}#exp-download-log summary{cursor:pointer;font-weight:650;margin-bottom:.8rem}#exp-history td{max-width:20rem;overflow-wrap:anywhere}#exp-history-filter>div{max-width:20rem}

.exp-history-table td:last-child,.exp-history-table th:last-child{position:sticky;right:0;background:var(--surface);box-shadow:-5px 0 8px #00000008;z-index:1}.exp-history-table th:last-child{background:var(--surface-alt)}
/* 1.17: nomes físicos explícitos cabem nos seletores e no celular. */
.exp-ref{grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr) auto}.exp-ref>*,.exp-op-fields>*{min-width:0}.exp-ref select,.exp-op-fields input,.exp-op-fields select{width:100%;max-width:100%;box-sizing:border-box}.exp-op-fields .exp-ref{grid-template-columns:repeat(3,minmax(0,1fr))}.exp-op-fields p{overflow-wrap:anywhere}.exp-op-head{flex-wrap:wrap}.exp-op-head strong{min-width:0;overflow-wrap:anywhere}
@media(max-width:750px){.exp-ref,.exp-op-fields .exp-ref{grid-template-columns:minmax(0,1fr)}}

/* 1.17.1: motivo e atualização ficam junto à ação, depois da amostra. */
.exp-generation-actions{margin-top:1.3rem;padding:1rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-alt)}
#exp-generation-status{overflow-wrap:anywhere}#exp-generation-status ul{margin:.7rem 0;padding-inline-start:1.3rem}#exp-generation-status li+li{margin-top:.5rem}#exp-generation-status p{margin:.5rem 0}.exp-generation-actions .exp-toolbar{margin-bottom:0}
@media(max-width:600px){.exp-generation-actions .btn{width:100%}}

/* 1.17.2: identificação do CPF sem procurar entre as colunas do arquivo. */
.exp-identity-section{margin:1.8rem 0;padding:1.2rem;border:1px solid var(--line);border-radius:14px;background:var(--surface-alt)}
.exp-identity-section>h3{margin:0}.exp-identities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}
.exp-identity-card{padding:1rem;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0}.exp-identity-card h4{margin:0 0 .6rem}.exp-identity-card select{width:100%;max-width:100%;min-width:0}.exp-identity-card p{overflow-wrap:anywhere}.exp-identity-hint{font-size:.82rem;color:var(--muted);padding:.6rem .7rem;border-inline-start:3px solid var(--primary);background:var(--primary-soft)}.exp-identity-switch{margin-top:.6rem}.exp-identity-switch summary{cursor:pointer;font-size:.85rem}.exp-identity-switch[open] summary{margin-bottom:.7rem}.exp-identity-card .text-btn{text-align:start;margin-top:.5rem}
@media(max-width:900px){.exp-identities{grid-template-columns:minmax(0,1fr)}.exp-identity-section{padding:.8rem}}
