.erp-fiscal-types,.erp-actions,.erp-search {display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.erp-fiscal-types {margin-bottom:16px;padding:14px 18px;background:white;border:1px solid #d7e3e9;border-radius:14px}
.erp-fiscal-types strong {margin-right:auto}
.erp-nfse-frame {display:block;width:100%;height:1100px;border:0;border-radius:16px;background:#f3f7f9}
.erp-catalog .section-head {flex-wrap:wrap;gap:12px}
.erp-search {margin:22px 0;align-items:flex-end}
.erp-search .field {flex:1;min-width:200px}
.erp-form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}
.erp-form-grid .field {display:flex;flex-direction:column;gap:7px}
.erp-wide {grid-column:1/-1}
.erp-editor {margin-bottom:24px;scroll-margin-top:20px}
.erp-editor .erp-actions {margin-top:20px}
.erp-editor [role=alert] {color:#b42318;margin-top:14px}
.erp-pagination {justify-content:flex-end;margin-top:18px}
.nav a[data-erp-certificate]{color:rgba(255,255,255,.82);justify-content:flex-start;text-align:left;padding:11px 12px}
.nav a[data-erp-certificate]:hover,.nav a[data-erp-certificate]:focus-visible{color:#fff;background:rgba(255,255,255,.12)}
.nfse-embedded,.nfse-embedded .nfse-shell {min-height:0!important;background:transparent}
.nfse-embedded .nfse-head {position:static;padding:8px 0 12px;background:transparent;border:0;justify-content:flex-end}
.nfse-embedded .nfse-head-main,.nfse-embedded .nfse-head-actions>a,.nfse-embedded .nfse-titlebar,.nfse-embedded .nfse-a1-shortcut,.nfse-embedded [data-nfse-v83] {display:none!important}
.nfse-embedded .nfse-body {width:100%;padding:0 0 12px}
.nfse-embedded .nfse-tabs {margin-bottom:16px}
@media(max-width:640px){.erp-form-grid{grid-template-columns:1fr}.erp-wide{grid-column:auto}.erp-fiscal-types{padding:12px}.erp-fiscal-types strong{width:100%}.erp-actions .btn{white-space:normal}.erp-catalog th,.erp-catalog td{min-width:110px}.nfse-embedded .nfse-safety{font-size:.65rem;white-space:normal}}

.erp-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.erp-mode-option{padding:16px;border:1px solid #d7e3e9;border-radius:12px;cursor:pointer}.erp-mode-option:has(input:checked){border-color:#16775e;background:#eef8f3}.erp-mode-option span{display:block;margin-top:10px;color:#516274}.erp-mode-option input{width:auto}.erp-preview-scroll{max-height:420px;overflow:auto;margin:16px 0}#erp-operations-root>[data-feedback]{margin:12px 0}.erp-editor [data-error]{color:#b42318;margin:12px 0}.erp-editor label>input[type=checkbox]{width:auto}.erp-catalog>.erp-actions{margin:16px 0}@media(max-width:700px){.erp-mode-grid{grid-template-columns:1fr}}


.erp-sales-steps {margin:0 0 16px}
.erp-sales-tools {margin:0 0 18px;color:#516274}
.erp-sales-tools summary {cursor:pointer;width:fit-content}
.erp-sales-tools[open]>.erp-actions {margin-top:12px}
.erp-sale-completed {margin:16px 0 22px;border-color:#16775e;background:#eef8f3}
.erp-sale-completed h3,.erp-sales-empty h3 {margin-top:0}
.erp-sales-empty {margin-top:20px}
