
.cert-config-head{display:flex;align-items:flex-start;gap:14px;justify-content:space-between}.cert-security-note{margin-top:11px;padding:9px 11px;border:1px solid #d7e5f2;border-radius:10px;background:#f6faff;color:#526a82;font-size:10px}.cert-empty{margin-top:12px;border:1px dashed #cbddec;border-radius:12px;padding:18px;text-align:center;color:#7890a6;background:#fbfdff;font-size:11px}.cert-list{display:grid;gap:9px;margin-top:12px}.cert-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #d6e3ef;border-radius:13px;padding:12px 13px;background:#fff}.cert-card.default{border-color:#9ed3b5;background:#f9fdfb}.cert-main{min-width:0}.cert-title-row{display:flex;align-items:center;gap:7px;min-width:0}.cert-title{font-weight:800;color:#203b55;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cert-badge{display:inline-flex;align-items:center;border-radius:999px;padding:3px 7px;font-size:8px;font-weight:800;white-space:nowrap}.cert-badge.default{background:#e5f6ec;color:#167047}.cert-badge.valid{background:#edf8f1;color:#27724e}.cert-badge.expired{background:#fff0f0;color:#b6434b}.cert-meta{display:flex;gap:12px;flex-wrap:wrap;margin-top:6px;color:#6f8295;font-size:9px}.cert-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.cert-actions .btn{padding:7px 9px;font-size:9px}.cert-fingerprint{margin-top:5px;color:#9aaaba;font-size:7.5px;overflow-wrap:anywhere}.cert-upload-name{padding:9px 10px;border-radius:9px;background:#f6f9fc;border:1px solid #dbe6ef;color:#526a82;font-size:10px;margin-bottom:10px}.cert-password-help{font-size:9px;color:#71869a;margin-top:5px;line-height:1.4}
@media screen and (max-width:960px){.cert-config-head{align-items:stretch;flex-direction:column}.cert-config-head .btn{width:100%}.cert-card{grid-template-columns:1fr}.cert-actions{justify-content:stretch}.cert-actions .btn{flex:1}.cert-meta{gap:7px;flex-direction:column}.cert-security-note{font-size:9px}}

/* NFS-e WebISS - preparação de homologação */
.nfse-config-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.nfse-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}
.nfse-status-card{border:1px solid #d6e3ef;border-radius:11px;padding:10px;background:#fbfdff;min-width:0}
.nfse-status-card .label{font-size:8px;color:#7b8fa3;text-transform:uppercase;font-weight:800;letter-spacing:.03em}
.nfse-status-card .value{font-size:11px;color:#203b55;font-weight:800;margin-top:4px;overflow-wrap:anywhere}
.nfse-status-card.ok{border-color:#b8e1c8;background:#f8fdf9}.nfse-status-card.ok .value{color:#1c7048}
.nfse-status-card.wait{border-color:#eed9a4;background:#fffaf0}.nfse-status-card.wait .value{color:#8a6923}
.nfse-status-card.locked{border-color:#e7baba;background:#fff7f7}.nfse-status-card.locked .value{color:#a43a3a}
.nfse-page-env-statuses{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.nfse-page-hero-status.locked{border-color:#e7baba;background:#fff7f7;color:#a43a3a}
.nfse-production-guard-note{margin-top:10px;padding:10px 12px;border:1px solid #b8e1c8;border-radius:10px;background:#f5fbf7;color:#2a6f4b;font-size:9px;line-height:1.45}.nfse-production-guard-actions{display:flex;gap:8px;margin-top:9px;align-items:center;flex-wrap:wrap}
.nfse-fiscal-monitor{margin-top:10px;border:1px solid #d6e3ef;border-radius:11px;background:#fbfdff;padding:11px}.nfse-fiscal-monitor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.nfse-fiscal-monitor-head h4{margin:0;color:#24445e;font-size:10.5px}.nfse-fiscal-monitor-head p{margin:3px 0 0;color:#73889b;font-size:8px;line-height:1.4;max-width:850px}.nfse-fiscal-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 8px;font-size:7.8px;font-weight:850;white-space:nowrap;border:1px solid #cfe0ef;background:#fff;color:#60778a}.nfse-fiscal-badge.ok{border-color:#b8e1c8;background:#f3fbf6;color:#176f49}.nfse-fiscal-badge.warning{border-color:#ecd59f;background:#fff9e9;color:#8a6513}.nfse-fiscal-badge.critical{border-color:#e7baba;background:#fff3f3;color:#a43a3a}.nfse-fiscal-monitor-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:10px}.nfse-fiscal-monitor-box{border:1px solid #dce7f0;border-radius:9px;background:#fff;padding:8px;min-width:0}.nfse-fiscal-monitor-box span{display:block;color:#8193a4;font-size:7.3px;text-transform:uppercase;font-weight:800}.nfse-fiscal-monitor-box b{display:block;margin-top:4px;color:#2b4962;font-size:8.8px;overflow-wrap:anywhere}.nfse-fiscal-monitor-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:10px}.nfse-fiscal-monitor-actions .btn{font-size:8.5px}.nfse-fiscal-monitor-details{margin-top:9px;padding:9px;border-radius:9px;border:1px solid #dce7f0;background:#fff;color:#526a80;font-size:8px;line-height:1.45}.nfse-fiscal-monitor-details.warning{border-color:#ecd59f;background:#fffaf0;color:#7b611f}.nfse-fiscal-monitor-details.critical{border-color:#e7baba;background:#fff6f6;color:#923838}.nfse-fiscal-monitor-details ul{margin:5px 0 0;padding-left:17px}.nfse-fiscal-monitor-details li{margin:2px 0}.nfse-page-hero-status.fiscal-warning{border-color:#ecd59f;background:#fff9e9;color:#8a6513}.nfse-page-hero-status.fiscal-critical{border-color:#e7baba;background:#fff3f3;color:#a43a3a}.nfse-page-hero-status.fiscal-ok{border-color:#b8e1c8;background:#f3fbf6;color:#176f49}.nfse-rtc-catalog{margin-top:10px;border-top:1px dashed #cfdeea;padding-top:10px}.nfse-rtc-catalog-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.nfse-rtc-catalog-head h5{margin:0;color:#24445e;font-size:9.2px}.nfse-rtc-catalog-head p{margin:3px 0 0;color:#7a8d9e;font-size:7.5px}.nfse-rtc-catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:8px}.nfse-rtc-catalog-box{border:1px solid #dce7f0;border-radius:8px;background:#fff;padding:8px}.nfse-rtc-catalog-box span{display:block;color:#8294a4;font-size:7px;text-transform:uppercase;font-weight:800}.nfse-rtc-catalog-box b{display:block;color:#29485f;font-size:8.2px;margin-top:3px}.nfse-rtc-catalog-status{font-size:7.6px;color:#657c8f;margin-left:4px}.nfse-rtc-suggestion{margin-top:8px;border:1px solid #d6e7da;background:#f6fbf7;border-radius:9px;padding:9px}.nfse-rtc-suggestion.hidden{display:none}.nfse-rtc-suggestion-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.nfse-rtc-suggestion-head b{font-size:8.5px;color:#246647}.nfse-rtc-suggestion-head small{display:block;margin-top:2px;color:#71897a;font-size:7.1px;line-height:1.35}.nfse-rtc-suggestion-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:7px}.nfse-rtc-suggestion-grid>div{border:1px solid #dce9df;border-radius:7px;background:#fff;padding:7px;min-width:0}.nfse-rtc-suggestion-grid span{display:block;color:#819287;font-size:6.8px;text-transform:uppercase}.nfse-rtc-suggestion-grid strong{display:block;color:#315b46;font-size:7.8px;margin-top:3px;line-height:1.3;overflow-wrap:anywhere}.nfse-rtc-advisory{margin-top:7px;color:#7c6a39;font-size:7.1px;line-height:1.4}.nfse-readonly-fiscal{background:#f5f8fb!important;color:#536d81!important;font-weight:800}
.nfse-local-note{margin-top:11px;padding:10px 11px;border:1px solid #d6e5f2;border-radius:10px;background:#f6faff;color:#536d85;font-size:9px;line-height:1.45}
.nfse-diagnostic-result{margin-top:10px;border:1px solid #b8e1c8;border-radius:11px;background:#f8fdf9;padding:10px 11px;color:#2c5f45;font-size:9px;line-height:1.45}
.nfse-diagnostic-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
@media screen and (max-width:960px){.nfse-rtc-catalog-grid,.nfse-rtc-suggestion-grid{grid-template-columns:1fr 1fr}.nfse-rtc-catalog-head{flex-direction:column;align-items:stretch}}
@media screen and (max-width:960px){.nfse-config-head{flex-direction:column;align-items:stretch}.nfse-config-head .btn{width:100%}.nfse-status-grid{grid-template-columns:1fr 1fr}.nfse-diagnostic-actions .btn{flex:1}.nfse-page-env-statuses{width:100%;justify-content:stretch}.nfse-page-env-statuses .nfse-page-hero-status{flex:1}.nfse-fiscal-monitor-head{flex-direction:column}.nfse-fiscal-monitor-grid{grid-template-columns:1fr 1fr}.nfse-fiscal-monitor-actions .btn{flex:1}}

/* NFS-e V3 — emissor orientado a rascunho/emitidas, sem varrer lançamentos pendentes */
.nfse-page-shell{display:grid;gap:10px}.nfse-page-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#fff 0%,#f5faff 100%)}.nfse-page-hero h2{margin:3px 0 4px;font-size:18px;color:#173b5d}.nfse-page-hero p{margin:0;color:#6d8195;font-size:10px;max-width:850px;line-height:1.45}.nfse-page-kicker{font-size:8px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#0b66d7}.nfse-page-hero-status{padding:9px 12px;border:1px solid #f0d89c;border-radius:10px;background:#fff9e9;color:#8a6513;font-size:9px;font-weight:800;white-space:nowrap}.nfse-page-hero-status.ready{border-color:#bee5cf;background:#f2fbf6;color:#147346}
.nfse-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.nfse-metric-card{padding:12px 13px;border:1px solid #d8e6f3;border-radius:11px;background:#fff;min-height:78px}.nfse-metric-card span{display:block;font-size:8px;color:#71869a;font-weight:750}.nfse-metric-card strong{display:block;margin-top:4px;color:#173b5d;font-size:20px;line-height:1}.nfse-metric-card small{display:block;margin-top:6px;color:#8b9aaa;font-size:7.8px}.nfse-work-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.nfse-tabs{display:flex;gap:5px;flex-wrap:wrap}.nfse-tabs button{height:32px;border:1px solid #cfe0f0;border-radius:8px;background:#fff;color:#587087;padding:0 11px;font-size:9px;font-weight:750}.nfse-tabs button.active{background:#0b66d7;border-color:#0b66d7;color:#fff}.nfse-work-actions{display:flex;gap:6px;align-items:center}.nfse-work-actions input{height:32px;min-width:290px;border:1px solid #cfe0f0;border-radius:8px;padding:0 10px;font-size:9px}.nfse-module-note{margin-top:10px;padding:9px 11px;border:1px solid #d9e6f2;border-radius:9px;background:#f8fbfe;color:#597187;font-size:8.5px;line-height:1.4}
.nfse-document-list{display:grid;gap:8px;margin-top:9px}.nfse-doc-row{display:grid;grid-template-columns:minmax(260px,1.55fr) minmax(170px,.72fr) minmax(100px,.48fr) minmax(190px,1fr) minmax(215px,.85fr);align-items:center;gap:12px;padding:11px 12px;border:1px solid #d6e5f2;border-radius:10px;background:#f3f8fd;box-shadow:none;cursor:pointer;transition:border-color .15s ease,background .15s ease}.nfse-doc-row:nth-child(even){background:#f3f8fd}.nfse-doc-row:hover{border-color:#bcd6ec;background:#edf5fc;box-shadow:none;transform:none}.nfse-doc-client,.nfse-doc-meta,.nfse-doc-action{min-width:0}.nfse-doc-client strong{display:block;color:#203d58;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nfse-doc-client small,.nfse-doc-meta small{display:block;color:#7d8fa1;font-size:8px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nfse-doc-meta b{display:block;color:#36536d;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nfse-doc-value{text-align:right;font-size:11px;font-weight:800;color:#173b5d;white-space:nowrap}.nfse-doc-action{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;row-gap:5px}.nfse-doc-action .btn{height:30px;padding:0 9px;font-size:8.5px;white-space:nowrap}.nfse-status-pill{display:inline-flex;align-items:center;gap:5px;width:max-content;max-width:100%;box-sizing:border-box;padding:4px 7px;border-radius:999px;background:#fff6db;color:#8a6500;font-size:7.5px;font-weight:800;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nfse-status-pill.rascunho,.nfse-status-pill.preparada{background:#fff3cd;color:#8a6400;border:1px solid #f1d889}.nfse-status-pill.erro{background:#fff0f0;color:#b84349;border:1px solid #f1c0c0}.nfse-status-pill.emitida{background:#e8f7ee;color:#147a46;border:1px solid #b9e2c9}.nfse-status-pill.cancelada{background:#fdebec;color:#b52e36;border:1px solid #f0bec2}.nfse-empty{padding:34px 12px;text-align:center;border:1px dashed #cbdceb;border-radius:10px;color:#8192a2;font-size:9px;background:#fbfdff}
/* Emissor */
.nfse-issuer-modal{width:min(1180px,96vw)!important;max-width:none!important;height:min(92vh,900px)!important;max-height:92vh!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}.nfse-issuer-head{align-items:center}.nfse-issuer-head h3{margin:2px 0 2px;color:#193b59;font-size:16px}.nfse-issuer-head small{color:#7b8ea0;font-size:8.5px}.nfse-issuer-steps{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid #dce8f2;background:#f8fbfe;padding:8px 12px;gap:6px}.nfse-issuer-steps button{border:1px solid transparent;background:transparent;border-radius:9px;padding:8px;display:grid;grid-template-columns:26px 1fr;grid-template-rows:auto auto;text-align:left;column-gap:8px;cursor:pointer;color:#647b8f}.nfse-issuer-steps button>span{grid-row:1/3;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#e8f1f9;font-size:9px;font-weight:800}.nfse-issuer-steps button b{font-size:9.5px;color:#3b566e}.nfse-issuer-steps button small{font-size:7.5px;margin-top:2px}.nfse-issuer-steps button.active{border-color:#b9d8f2;background:#fff}.nfse-issuer-steps button.active>span{background:#0b66d7;color:#fff}.nfse-issuer-steps button.active b{color:#0b66d7}.nfse-issuer-body{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow:auto;padding:12px!important;background:#f8fbfe}.nfse-step-panel{display:grid;gap:10px}.nfse-form-section{border:1px solid #d9e6f1;border-radius:11px;background:#fff;padding:11px}.nfse-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:9px}.nfse-section-head h4{margin:0;color:#24445e;font-size:10.5px}.nfse-section-head p{margin:3px 0 0;color:#7b8e9f;font-size:8px;line-height:1.4}.nfse-form-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:7px}.nfse-form-grid .field{min-width:0}.nfse-form-grid .field label{font-size:8px}.nfse-form-grid .field input,.nfse-form-grid .field select,.nfse-form-grid .field textarea{width:100%;box-sizing:border-box}.nfse-form-grid .field textarea{resize:vertical;min-height:120px}.nfse-optional{font-weight:500;color:#91a0ad}.nfse-field-help{display:block;color:#8798a6;font-size:7.2px;margin-top:3px}.nfse-country-toggle{display:flex;border:1px solid #cfe0ef;border-radius:8px;overflow:hidden}.nfse-country-toggle button{border:0;background:#fff;color:#657b8e;font-size:8.5px;padding:7px 12px}.nfse-country-toggle button.active{background:#0b66d7;color:#fff}.nfse-switch{display:flex;align-items:center;gap:7px;color:#536b7f;font-size:8.5px;font-weight:700;cursor:pointer}.nfse-switch input{width:16px;height:16px}.nfse-payment-toggle{margin-top:9px;transition:opacity .18s ease}.nfse-payment-toggle.is-disabled{opacity:.38;cursor:not-allowed}.nfse-payment-toggle.is-disabled span{color:#93a2ae}.nfse-payment-toggle input:disabled{cursor:not-allowed}.nfse-payment-preview{margin-top:8px;border:1px solid #cfe5d8;background:#f4fbf7;border-radius:9px;padding:10px}.nfse-payment-preview>span{font-size:7.5px;color:#6c8577;font-weight:800;text-transform:uppercase}.nfse-payment-preview pre{margin:7px 0 0;white-space:pre-wrap;font-family:inherit;color:#285843;font-size:8.5px;line-height:1.5;border-top:1px dashed #c7dfd1;padding-top:8px}.nfse-lookup-wrap{position:relative}.nfse-lookup-menu{position:absolute;z-index:120;left:0;right:0;top:100%;margin-top:3px;max-height:230px;overflow:auto;border:1px solid #bed4e6;border-radius:9px;background:#fff;box-shadow:0 12px 30px #183a5c24;padding:4px}.nfse-lookup-menu button{display:block;width:100%;border:0;background:#fff;text-align:left;padding:8px;border-radius:6px;color:#29465f;font-size:8.5px;line-height:1.3;cursor:pointer}.nfse-lookup-menu button:hover{background:#edf6ff;color:#0b66d7}.nfse-review-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #cfe0ef;border-radius:11px;background:#fff;padding:13px}.nfse-review-hero h4{margin:3px 0;color:#1f405d;font-size:14px}.nfse-review-hero p{margin:0;color:#7c8e9e;font-size:8.5px}.nfse-review-hero>strong{font-size:22px;color:#0b66d7}.nfse-review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:9px}.nfse-review-grid>div{border:1px solid #dce7f0;border-radius:9px;background:#fff;padding:9px}.nfse-review-grid span{display:block;color:#8393a1;font-size:7.5px}.nfse-review-grid b{display:block;margin-top:4px;color:#29485f;font-size:9px;line-height:1.35}.nfse-review-description{margin-top:9px;border:1px solid #dce7f0;border-radius:9px;background:#fff;padding:10px}.nfse-review-description>span{font-size:7.5px;color:#8393a1}.nfse-review-description pre{white-space:pre-wrap;font-family:inherit;color:#304d66;font-size:8.5px;line-height:1.45}.nfse-review-note{margin-top:9px;padding:9px;border-radius:8px;background:#fff8e8;border:1px solid #efdbab;color:#7a5c16;font-size:8px;line-height:1.4}.nfse-issuer-foot{justify-content:space-between}.nfse-foot-left,.nfse-foot-right{display:flex;gap:6px;align-items:center}
/* Configuração de pagamento */
.nfse-payment-config-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.nfse-payment-config-grid{display:grid;grid-template-columns:2fr 1fr 1.3fr 2fr 2fr;gap:8px;margin-top:11px}.nfse-payment-config-grid .field label{font-size:8px}.nfse-payment-config-grid input{width:100%;box-sizing:border-box}.nfse-payment-config-note{margin-top:9px;padding:8px 9px;border-radius:8px;background:#f6faff;border:1px solid #d6e5f2;color:#61778a;font-size:8px}
.nfse-prep-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:10px}.nfse-prep-box{border:1px solid #d9e6f1;border-radius:9px;padding:9px;background:#fbfdff}.nfse-prep-box span{display:block;color:#8293a3;font-size:7.5px}.nfse-prep-box strong{display:block;margin-top:3px;color:#284760;font-size:10px;overflow-wrap:anywhere}
.nfse-doc-action .btn.red{background:#fff3f3;color:#b93b43;border-color:#f0c7ca}.nfse-doc-action .btn.red:hover{background:#ffe8e9}.nfse-issuer-modal{overflow:hidden}.nfse-issuer-modal .modal-foot{flex:0 0 auto;background:#fff;border-top:1px solid #dbe7f1}.nfse-issuer-modal .modal-head{flex:0 0 auto}.nfse-issuer-modal .nfse-issuer-steps{flex:0 0 auto}.nfse-issuer-body{overscroll-behavior:contain}.nfse-client-select{font-weight:700;color:#29465f}.nfse-doc-lookup-line{display:flex;align-items:center;gap:7px}.nfse-doc-lookup-line input{min-width:0;flex:1}.nfse-doc-lookup-line .btn{flex:0 0 auto;height:34px;white-space:nowrap}.nfse-doc-status{display:block;min-height:13px;margin-top:4px;font-size:7.5px;color:#6e8294}.nfse-doc-status.loading{color:#0b66d7}.nfse-doc-status.ok{color:#168052}.nfse-doc-status.error{color:#b84149}.nfse-registration-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:stretch}.nfse-registration-line input{min-width:0}.nfse-isenta-toggle{height:34px;min-width:auto;border:0;border-radius:0;background:transparent;color:#60778a;font-size:7.8px;font-weight:400;display:flex;align-items:center;justify-content:flex-start;gap:5px;padding:0 3px;cursor:pointer;box-sizing:border-box;white-space:nowrap}.nfse-isenta-toggle:hover{background:transparent;color:#355b7b}.nfse-isenta-toggle input{width:13px!important;height:13px!important;min-height:13px!important;margin:0;accent-color:#0b66d7}.nfse-registration-line.is-isenta input[type="text"]{background:#f5f8fb!important;color:#728596!important;font-weight:400}.nfse-cep-line{display:flex;align-items:stretch}.nfse-cep-status{display:block;min-height:13px;margin-top:4px;font-size:7.5px;color:#6e8294;line-height:1.35}.nfse-cep-status.loading{color:#0b66d7}.nfse-cep-status.ok{color:#168052}.nfse-cep-status.error{color:#b84149}.nfse-catalog-hint{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px}.nfse-catalog-hint small{color:#7d8fa0;font-size:7.4px}.nfse-catalog-open{border:0;background:transparent;color:#0b66d7;font-weight:800;font-size:7.6px;padding:2px 0;cursor:pointer}.nfse-lookup-menu .preferred{background:#eef8f2;color:#176f4a;font-weight:800}.nfse-clear-step{color:#b53a42!important;border-color:#efc7ca!important;background:#fff8f8!important}.nfse-clear-step.hidden{display:none!important}.nfse-step-panel{min-height:260px}.nfse-step-panel input:focus,.nfse-step-panel select:focus,.nfse-step-panel textarea:focus{outline:2px solid #b9dbf8;outline-offset:1px;border-color:#78afe2}.nfse-form-section{scroll-margin-top:10px}
/* Refinamento visual do emissor NFS-e */
.nfse-issuer-head{display:flex;justify-content:space-between;gap:14px}
.nfse-issuer-head-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.nfse-head-quiet{height:32px!important;min-height:32px!important;border:1px solid #cfe0ef!important;border-radius:8px!important;background:#fff!important;color:#587087!important;box-shadow:none!important;font-weight:700!important}
.nfse-head-quiet:hover{background:#f8fbfe!important;border-color:#b9d5ec!important;color:#24445e!important}
.nfse-head-clear{padding:0 10px!important}
.nfse-head-close{width:32px!important;padding:0!important;font-size:13px!important}
.nfse-form-grid{align-items:start}
.nfse-form-grid .field{align-content:start;grid-auto-rows:max-content}
.nfse-form-grid .field>label{display:flex;align-items:center;gap:3px;min-height:13px;margin:0}
.nfse-form-grid .field input,.nfse-form-grid .field select{height:34px!important;min-height:34px!important;border-radius:8px!important}
.nfse-form-grid .field select{background-color:#fff!important;color:#29465f!important}
.nfse-doc-lookup-line{height:34px;align-items:stretch!important}
.nfse-doc-lookup-line input{height:34px!important;min-height:34px!important}
.nfse-doc-lookup-line .btn{height:34px!important;min-height:34px!important;border-radius:8px!important;padding:0 13px!important}
#nfseLookupTomadorDoc.btn.brand{background:#0b66d7!important;border-color:#0b66d7!important;color:#fff!important;box-shadow:0 3px 9px rgba(11,102,215,.14)!important}
#nfseLookupTomadorDoc.btn.brand:hover{background:#075fca!important;border-color:#075fca!important}
.nfse-required-mark{color:#d2474f;font-size:8px;font-weight:900;margin-left:1px}
.nfse-required-note{display:inline-flex;align-items:center;gap:4px;color:#8293a3;font-size:7.4px;font-weight:600}
.nfse-required-note .nfse-required-mark{font-size:8px}
.nfse-invalid{border-color:#e38a91!important;background-color:#fffafa!important;box-shadow:0 0 0 3px rgba(220,108,115,.11)!important}
.nfse-field-invalid>label{color:#b83d46!important}.nfse-field-invalid>label .nfse-required-mark{color:#c92f39!important}.nfse-field-invalid .nfse-field-help{color:#a95d63!important}
.nfse-client-smart{position:relative!important;overflow:visible!important}
.nfse-client-trigger{height:34px!important;min-height:34px!important;border-radius:8px!important;font-weight:600!important;color:#29465f!important;padding:0 10px!important}
.nfse-client-menu{left:0!important;right:0!important;top:calc(100% + 4px)!important;max-height:235px!important;border-radius:9px!important;z-index:250!important}
.nfse-client-menu .smart-option{min-height:34px!important;border-radius:7px!important}
.nfse-client-menu .smart-option.active{background:#e7f2fd!important;color:#075fbf!important;font-weight:700!important}
.nfse-client-trigger .form-smart-chevron{font-size:11px}
/* Todos os selects do emissor seguem o mesmo padrão visual do seletor de cliente. */
.nfse-native-select-shell{position:relative;width:100%;min-width:0}
.nfse-native-select-source{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important}
.nfse-native-smart-trigger{height:34px!important;min-height:34px!important;border-radius:8px!important;padding:0 10px!important;font-size:8.5px!important;font-weight:600!important;color:#29465f!important;background:#fff!important}
.nfse-native-smart-trigger:hover{background:#f8fbff!important;border-color:#b9d8f8!important}
.nfse-native-smart-trigger:focus,.nfse-native-smart-trigger.open{border-color:#8cbdeb!important;box-shadow:0 0 0 2px rgba(11,102,215,.07)!important}
.nfse-native-smart-trigger:disabled{background:#f4f7fa!important;color:#8293a3!important;cursor:not-allowed!important;opacity:1!important}
.nfse-native-smart-menu{top:calc(100% + 4px)!important;z-index:290!important;max-height:245px!important;border-radius:9px!important}
.nfse-native-smart-menu .smart-option{min-height:34px!important;font-size:8.5px!important;border-radius:7px!important;padding:8px 9px!important}
.nfse-native-smart-menu .smart-option.active{background:#e7f2fd!important;color:#075fbf!important;font-weight:700!important}
.nfse-native-smart-menu .smart-option:disabled{color:#a5b1bc!important;background:#f8fafc!important;cursor:not-allowed!important}
/* Item de serviço e CNAE: pesquisa acontece no próprio campo, sem uma segunda caixa duplicada. */
.nfse-catalog-select{position:relative!important;overflow:visible!important}
.nfse-catalog-input-shell{position:relative;width:100%}
.nfse-catalog-trigger{height:34px!important;min-height:34px!important;border-radius:8px!important;padding:0 30px 0 10px!important;font-size:8.5px!important;font-weight:600!important;color:#29465f!important;background:#fff!important;width:100%!important}
.nfse-catalog-trigger::placeholder{color:#8193a4!important;font-weight:500!important}
.nfse-catalog-trigger.open{border-color:#8cbdeb!important;box-shadow:0 0 0 2px rgba(11,102,215,.07)!important}
.nfse-catalog-input-shell .form-smart-chevron{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:11px;pointer-events:none;color:#3f6688;transition:transform .15s ease}
.nfse-catalog-input-shell .nfse-catalog-trigger.open+.form-smart-chevron{transform:translateY(-50%) rotate(180deg)}
.nfse-catalog-menu{top:calc(100% + 4px)!important;z-index:310!important;max-height:none!important;overflow:hidden!important;padding:5px!important;border-radius:9px!important}
.nfse-catalog-options{max-height:230px;overflow:auto;padding-right:1px}
.nfse-catalog-options .smart-option{min-height:34px!important;border-radius:7px!important;padding:8px 9px!important;font-size:8.5px!important}
.nfse-catalog-options .smart-option.active{background:#e7f2fd!important;color:#075fbf!important;font-weight:700!important}
.nfse-catalog-options .smart-option.preferred:before{content:"★";margin-right:5px;color:#0b66d7}
.nfse-catalog-loading,.nfse-catalog-empty{padding:10px;color:#7d8fa0;font-size:8px;text-align:center}
input[data-nfse-money],input[data-nfse-percent]{font-variant-numeric:tabular-nums}
.nfse-form-grid select{cursor:pointer}
.nfse-doc-status{line-height:1.35}
.nfse-issuer-foot .nfse-foot-left{min-width:0}
@media screen and (max-width:960px){#page-nfse{padding-bottom:calc(var(--mobile-nav-h) + 20px + env(safe-area-inset-bottom))}.nfse-page-hero{align-items:flex-start;flex-direction:column}.nfse-page-hero-status{white-space:normal;width:100%;box-sizing:border-box}.nfse-metric-grid{grid-template-columns:1fr 1fr}.nfse-work-head{align-items:stretch;flex-direction:column}.nfse-tabs{display:grid;grid-template-columns:repeat(3,1fr)}.nfse-work-actions{width:100%;display:grid;grid-template-columns:1fr auto}.nfse-work-actions #nfseNewManual,.nfse-work-actions #nfseNewProduction{grid-column:1/-1;width:100%}.nfse-work-actions input{min-width:0;width:100%}.nfse-doc-row{grid-template-columns:1fr auto;gap:7px}.nfse-doc-client,.nfse-doc-meta{grid-column:1/2}.nfse-doc-row>.nfse-status-pill{grid-column:2/3;grid-row:1}.nfse-doc-action{grid-column:1/3;justify-content:space-between}.nfse-issuer-modal{width:100%!important;max-height:96vh!important;border-radius:16px 16px 0 0!important;align-self:end}.nfse-issuer-steps{grid-template-columns:repeat(4,1fr);padding:6px}.nfse-issuer-steps button{display:flex;flex-direction:column;align-items:center;text-align:center;padding:6px 2px}.nfse-issuer-steps button>span{width:24px;height:24px}.nfse-issuer-steps button small{display:none}.nfse-issuer-body{max-height:66vh!important}.nfse-section-head{flex-direction:column}.nfse-form-grid{display:block}.nfse-form-grid .field{margin-bottom:7px}.nfse-review-grid{grid-template-columns:1fr 1fr}.nfse-issuer-foot{gap:7px;flex-direction:column}.nfse-foot-left{width:100%;display:grid;grid-template-columns:repeat(2,1fr)}.nfse-foot-right{width:100%;display:grid;grid-template-columns:1fr 1fr}.nfse-payment-config-grid{grid-template-columns:1fr}.nfse-payment-config-head{flex-direction:column}.nfse-payment-config-head .btn{width:100%}}

/* ========================================================================
   CONFIGURAÇÕES — CENTRAL ADMINISTRATIVA ORGANIZADA
   ======================================================================== */
#page-config{padding-bottom:24px}
.settings-shell{display:grid;grid-template-columns:250px minmax(0,1fr);gap:12px;align-items:start}
.settings-sidebar{position:sticky;top:8px;overflow:hidden;padding:0!important}
.settings-sidebar-head{padding:18px 18px 14px;border-bottom:1px solid var(--hair);background:linear-gradient(180deg,#fff 0%,#f8fbfe 100%)}
.settings-kicker{display:block;color:#0b66d7;font-size:7.2px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;margin-bottom:4px}
.settings-sidebar-head h2,.settings-pane-head h2{margin:0;color:#163b59;font-size:17px;line-height:1.15}
.settings-sidebar-head p,.settings-pane-head p{margin:6px 0 0;color:#71869a;font-size:8.3px;line-height:1.45}
.settings-admin-badge,.settings-lock-chip,.settings-production-chip{display:inline-flex;align-items:center;gap:5px;margin-top:10px;border:1px solid #d5e3ef;background:#f6f9fc;color:#567085;border-radius:999px;padding:5px 8px;font-size:7.3px;font-weight:750}
.settings-lock-chip{margin-top:0;background:#f8fafc}
.settings-production-chip{margin-top:0;border-color:#bfe3cd;background:#f2fbf5;color:#167149;text-transform:uppercase;letter-spacing:.04em}
.settings-nav{display:grid;gap:4px;padding:8px}
.settings-nav button{width:100%;display:grid;grid-template-columns:34px minmax(0,1fr) 14px;align-items:center;gap:8px;border:1px solid transparent;background:transparent;color:#31506a;text-align:left;border-radius:10px;padding:9px 8px;cursor:pointer;transition:.15s ease}
.settings-nav button:hover{background:#f5f9fd;border-color:#e0eaf2}
.settings-nav button.active{background:#eaf4ff;border-color:#c9e0f8;color:#075fbf}
.settings-nav-icon{width:30px;height:30px;border-radius:9px;background:#eef4f9;display:grid;place-items:center;font-size:9px;font-weight:850;color:#4c6d89}
.settings-nav button.active .settings-nav-icon{background:#0b66d7;color:#fff}
.settings-nav button b{display:block;font-size:8.5px;line-height:1.25}
.settings-nav button small{display:block;margin-top:2px;color:#8495a5;font-size:6.9px;line-height:1.3}
.settings-nav-arrow{font-size:18px;color:#9cabb8;line-height:1}
.settings-content{min-width:0}
.settings-pane{display:none}
.settings-pane.active{display:block}
.settings-pane-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:5px 3px 11px}
.settings-pane-head>.btn{flex:0 0 auto}
.settings-card{margin-bottom:10px}
.settings-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.settings-card-head h3,.settings-backup-box h3{margin:0;color:#24445e;font-size:10px}
.settings-card-head p,.settings-backup-box p{margin:4px 0 0;color:#768a9b;font-size:7.5px;line-height:1.4}
.settings-card-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid var(--hair)}
.settings-help{font-size:7.4px;color:#8092a1}
.settings-info-note,.settings-warning-note{margin-top:10px;padding:9px 10px;border:1px solid #d7e5f0;background:#f7fbff;border-radius:9px;color:#5e778b;font-size:7.7px;line-height:1.45}
.settings-warning-note{border-color:#ecd8ab;background:#fffaf0;color:#7a621f}
.settings-status-grid{margin-top:12px}
.settings-advanced{margin-top:12px;border:1px solid #dbe6ef;border-radius:11px;background:#fbfdff;overflow:hidden}
.settings-advanced>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;cursor:pointer;user-select:none;color:#2e506b;background:#f8fbfe}
.settings-advanced>summary::-webkit-details-marker{display:none}
.settings-advanced>summary span:first-child{min-width:0}
.settings-advanced>summary b{display:block;font-size:8.6px}
.settings-advanced>summary small{display:block;margin-top:2px;color:#8092a1;font-size:7px;line-height:1.35}
.settings-details-chevron{font-size:14px;color:#6e879b;transition:transform .16s ease}
.settings-advanced[open] .settings-details-chevron{transform:rotate(180deg)}
.settings-advanced-body{padding:11px 12px;border-top:1px solid #e3ebf2;background:#fff}
.settings-tech-actions{display:flex;justify-content:flex-end;margin-bottom:8px}
.settings-backup-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.settings-backup-box{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:start;border:1px solid #dce7f0;background:#fbfdff;border-radius:11px;padding:13px}
.settings-backup-box .btn{grid-column:2;justify-self:start;margin-top:2px}
.settings-backup-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#eaf4ff;color:#0b66d7;font-size:18px;font-weight:850}
.settings-server-tools{margin-top:10px}
.settings-server-tools .settings-advanced-body{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.settings-server-tools .settings-advanced-body p{margin:0;max-width:720px}
#page-config .cert-config-panel,#page-config #nfseIntegrationPanel,#page-config #nfsePaymentConfigPanel{grid-column:auto!important}
#page-config .split{display:block}
@media screen and (max-width:960px){
  .settings-shell{grid-template-columns:1fr;gap:9px}
  .settings-sidebar{position:static}
  .settings-sidebar-head{padding:13px}
  .settings-nav{grid-template-columns:1fr 1fr;gap:6px}
  .settings-nav button{grid-template-columns:30px minmax(0,1fr);padding:8px}
  .settings-nav-arrow{display:none}
  .settings-pane-head{flex-direction:column;align-items:stretch;padding:4px 2px 9px}
  .settings-pane-head>.btn,.settings-pane-head>.settings-lock-chip{align-self:stretch;justify-content:center}
  .settings-card-actions{align-items:stretch;flex-direction:column}
  .settings-card-actions .btn{width:100%}
  .settings-backup-grid{grid-template-columns:1fr}
  .settings-backup-box{grid-template-columns:36px minmax(0,1fr)}
  .settings-backup-icon{width:34px;height:34px}
  .settings-server-tools .settings-advanced-body{align-items:stretch;flex-direction:column}
  .settings-server-tools .btn{width:100%}
}



/* ===== PADRÃO VISUAL — ícone de usuário monocromático ===== */
.settings-nav-icon-user::before{
  content:"";width:14px;height:14px;background:currentColor;display:block;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-5 0-9 2.5-9 5.5V22h18v-2.5C21 16.5 17 14 12 14Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-5 0-9 2.5-9 5.5V22h18v-2.5C21 16.5 17 14 12 14Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.cash-city-selected{background:#eaf3ff!important;border-color:#b9d5f5!important;color:#0b66d7!important}


/* ==========================================================================
   PASSO 288K - CENTRAL FISCAL
   ========================================================================== */

.fiscal-profile-config{
  overflow:hidden;
}

.fiscal-profile-config-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}

.fiscal-profile-config-head .section-title{
  margin:3px 0 4px;
}

.fiscal-safety-chip{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 11px;
  border:1px solid #cbddea;
  border-radius:999px;
  background:#f5f9fc;
  color:#47677f;
  font-size:10px;
  font-weight:800;
  white-space:nowrap;
}

.fiscal-profile-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:14px;
}

.fiscal-profile-card{
  min-width:0;
  padding:17px;
  border:1px solid #dbe5ed;
  border-radius:15px;
  background:#fff;
  box-shadow:0 7px 22px rgba(35,70,100,.055);
}

.fiscal-profile-card.principal{
  border-color:#bcd7e8;
  box-shadow:0 9px 24px rgba(30,91,136,.08);
}

.fiscal-profile-card.test{
  background:#fbfcfd;
}

.fiscal-profile-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
}

.fiscal-profile-type,
.fiscal-profile-state{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:23px;
  padding:0 8px;
  border-radius:999px;
  font-size:8.7px;
  font-weight:900;
  letter-spacing:.055em;
}

.fiscal-profile-type{
  background:#eaf3f9;
  color:#255d85;
}

.fiscal-profile-type.test{
  background:#eff2f4;
  color:#687987;
}

.fiscal-profile-state.active{
  background:#e8f6ed;
  color:#277247;
}

.fiscal-profile-state.inactive{
  background:#f0f2f4;
  color:#74818c;
}

.fiscal-profile-title{
  display:flex;
  align-items:center;
  gap:11px;
  padding-bottom:14px;
  border-bottom:1px solid #e6edf2;
}

.fiscal-profile-avatar{
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#e7f2f9;
  color:#176397;
  font-size:17px;
  font-weight:900;
}

.fiscal-profile-avatar.test{
  background:#edf0f3;
  color:#697986;
}

.fiscal-profile-title h4{
  margin:0 0 3px;
  color:#203b50;
  font-size:14px;
  line-height:1.2;
}

.fiscal-profile-title span{
  color:#728493;
  font-size:10.5px;
  font-weight:700;
}

.fiscal-profile-info-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin-top:13px;
}

.fiscal-profile-info-grid>div{
  min-width:0;
  padding:10px 11px;
  border:1px solid #e4ebf1;
  border-radius:10px;
  background:#f9fbfc;
}

.fiscal-profile-info-grid span{
  display:block;
  margin-bottom:3px;
  color:#81909d;
  font-size:8.5px;
  font-weight:800;
  letter-spacing:.035em;
  text-transform:uppercase;
}

.fiscal-profile-info-grid strong{
  display:block;
  overflow:hidden;
  color:#29485f;
  font-size:10.5px;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.fiscal-profile-info-grid small{
  display:block;
  margin-top:3px;
  color:#8796a2;
  font-size:8.5px;
  line-height:1.3;
}

.fiscal-channel-title{
  margin:13px 0 7px;
  color:#768998;
  font-size:8.7px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.fiscal-channel-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.fiscal-channel-card{
  display:grid;
  grid-template-columns:30px minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  min-width:0;
  padding:10px;
  border:1px solid #dfe8ef;
  border-radius:11px;
  background:#fff;
}

.fiscal-channel-card.available{
  border-color:#b9ddc8;
  background:#f4fbf7;
}

.fiscal-channel-card.blocked{
  border-color:#e4d7d9;
  background:#fcf8f8;
}

.fiscal-channel-card.restricted{
  border-color:#c5d9e8;
  background:#f5f9fc;
}

.fiscal-channel-card.conditional{
  background:#fafbfc;
}

.fiscal-channel-icon{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#eaf2f7;
  color:#315f7d;
  font-size:11px;
  font-weight:900;
}

.fiscal-channel-card.available .fiscal-channel-icon{
  background:#dff2e6;
  color:#287447;
}

.fiscal-channel-card.blocked .fiscal-channel-icon{
  background:#f2e9ea;
  color:#975b62;
}

.fiscal-channel-card>div:nth-child(2){
  min-width:0;
}

.fiscal-channel-card span{
  display:block;
  color:#7d8d99;
  font-size:8.3px;
  font-weight:800;
  text-transform:uppercase;
}

.fiscal-channel-card strong{
  display:block;
  margin-top:1px;
  color:#2f4c61;
  font-size:10.3px;
  line-height:1.2;
}

.fiscal-channel-card small{
  display:block;
  margin-top:2px;
  overflow:hidden;
  color:#84939e;
  font-size:8px;
  line-height:1.35;
  font-size:11.5px;
  text-overflow:ellipsis;
}

.fiscal-channel-card i{
  font-style:normal;
  font-size:10px;
  font-weight:900;
}

.fiscal-channel-card.available i{
  color:#318453;
}

.fiscal-channel-card.blocked i{
  color:#986168;
}

.fiscal-channel-card.restricted i{
  color:#3678a8;
}

.fiscal-profile-message{
  margin-top:11px;
  padding:9px 10px;
  border-left:3px solid #77a9cb;
  border-radius:8px;
  background:#f5f9fc;
  color:#5e7587;
  font-size:9.3px;
  line-height:1.45;
}

.fiscal-profile-message.test{
  border-left-color:#b5c0c8;
  background:#f5f7f8;
}

.fiscal-profile-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:15px;
  padding-top:14px;
  border-top:1px solid #e1e9ef;
}

.fiscal-profile-footer>div{
  min-width:0;
}

.fiscal-profile-footer b{
  display:block;
  margin-bottom:2px;
  color:#35566e;
  font-size:9.5px;
}

.fiscal-profile-footer>div span{
  display:block;
  color:#7b8d9b;
  font-size:9px;
  line-height:1.35;
}

.fiscal-national-lock{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:27px;
  padding:0 10px;
  border:1px solid #ead6d9;
  border-radius:999px;
  background:#fff7f7;
  color:#94545c;
  font-size:8.7px;
  font-weight:900;
  white-space:nowrap;
}

@media(max-width:980px){
  .fiscal-profile-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:620px){
  .fiscal-profile-config-head,
  .fiscal-profile-footer{
    align-items:stretch;
    flex-direction:column;
  }

  .fiscal-safety-chip,
  .fiscal-national-lock{
    align-self:flex-start;
  }

  .fiscal-profile-info-grid,
  .fiscal-channel-grid{
    grid-template-columns:1fr;
  }

  .fiscal-profile-card{
    padding:14px;
    border-radius:13px;
  }
}


/* ========================================================================== 
   V66 — NFS-e: painel mais limpo, moderno e padronizado com a tabela do Caixa
   Mantém todas as funções; altera somente apresentação da página e da listagem.
   ========================================================================== */

/* As duas frases removidas no layout aprovado. */
#page-nfse .nfse-page-hero p,
#page-nfse .nfse-module-note{
  display:none!important;
}

/* Hero mais limpo, sem excesso de informação. */
#page-nfse .nfse-page-shell{gap:11px}
#page-nfse .nfse-page-hero{
  min-height:76px;
  padding:16px 18px!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#ffffff 0%,#f7fbff 100%)!important;
}
#page-nfse .nfse-page-hero h2{
  margin:4px 0 0!important;
  font-size:18px!important;
  letter-spacing:-.01em;
}
#page-nfse .nfse-page-kicker{
  font-size:8px!important;
  letter-spacing:.065em!important;
}
#page-nfse .nfse-page-env-statuses{gap:8px!important}
#page-nfse .nfse-page-hero-status{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 13px!important;
  border-radius:10px!important;
}

/* Métricas: cartões mais arejados e ícones lineares discretos. */
#page-nfse .nfse-metric-grid{gap:10px!important}
#page-nfse .nfse-metric-card{
  position:relative;
  min-height:92px!important;
  padding:15px 16px 14px 76px!important;
  border-radius:13px!important;
  background:#fff!important;
  overflow:hidden;
}
#page-nfse .nfse-metric-card::before{
  content:"";
  position:absolute;
  left:18px;
  top:50%;
  width:42px;
  height:42px;
  transform:translateY(-50%);
  border-radius:12px;
  background:#eaf4ff;
}
#page-nfse .nfse-metric-card::after{
  content:"";
  position:absolute;
  left:30px;
  top:50%;
  width:18px;
  height:18px;
  transform:translateY(-50%);
  background:#0b66d7;
  -webkit-mask-repeat:no-repeat;
  -webkit-mask-position:center;
  -webkit-mask-size:contain;
  mask-repeat:no-repeat;
  mask-position:center;
  mask-size:contain;
}
#page-nfse .nfse-metric-card:nth-child(1)::after{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 3.5h6l3 3v12a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-13a2 2 0 0 1 2-2Z'/%3E%3Cpath d='M13.5 3.5v3h3'/%3E%3Cpath d='m8.6 14.1 2 2 4.6-4.8'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 3.5h6l3 3v12a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-13a2 2 0 0 1 2-2Z'/%3E%3Cpath d='M13.5 3.5v3h3'/%3E%3Cpath d='m8.6 14.1 2 2 4.6-4.8'/%3E%3C/svg%3E");
}
#page-nfse .nfse-metric-card:nth-child(2)::after{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5.5' y='3.5' width='13' height='17' rx='2.6'/%3E%3Cpath d='M8.7 8h5.4M8.7 11.4h3.7'/%3E%3Cpath d='m12.8 16.8 4.3-4.3 1.4 1.4-4.3 4.3-2 .6.6-2Z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5.5' y='3.5' width='13' height='17' rx='2.6'/%3E%3Cpath d='M8.7 8h5.4M8.7 11.4h3.7'/%3E%3Cpath d='m12.8 16.8 4.3-4.3 1.4 1.4-4.3 4.3-2 .6.6-2Z'/%3E%3C/svg%3E");
}
#page-nfse .nfse-metric-card:nth-child(3)::after{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-3.54 5.05L12 10.59l3.54-3.54 1.41 1.41L13.41 12l3.54 3.54-1.41 1.41L12 13.41l-3.54 3.54-1.41-1.41L10.59 12 7.05 8.46l1.41-1.41Z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-3.54 5.05L12 10.59l3.54-3.54 1.41 1.41L13.41 12l3.54 3.54-1.41 1.41L12 13.41l-3.54 3.54-1.41-1.41L10.59 12 7.05 8.46l1.41-1.41Z'/%3E%3C/svg%3E");
}
#page-nfse .nfse-metric-card:nth-child(4)::after{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 13h3v8H4v-8Zm6-6h3v14h-3V7Zm6-4h3v18h-3V3Z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 13h3v8H4v-8Zm6-6h3v14h-3V7Zm6-4h3v18h-3V3Z'/%3E%3C/svg%3E");
}
#page-nfse .nfse-metric-card span{font-size:8.5px!important;color:#506a82!important}
#page-nfse .nfse-metric-card strong{font-size:21px!important;color:#173b5d!important;margin-top:5px!important}
#page-nfse .nfse-metric-card small{font-size:8px!important;color:#8092a4!important;margin-top:6px!important}

/* Barra de trabalho mais compacta e alinhada. */
#page-nfse .nfse-work-panel{
  padding:10px 12px 12px!important;
  border-radius:13px!important;
}
#page-nfse .nfse-work-head{gap:14px!important}
#page-nfse .nfse-tabs{gap:6px!important}
#page-nfse .nfse-tabs button{
  height:34px!important;
  padding:0 14px!important;
  border-radius:8px!important;
}
#page-nfse .nfse-work-actions{gap:7px!important}
#page-nfse .nfse-work-actions input{
  height:34px!important;
  min-width:320px!important;
  border-radius:8px!important;
}
#page-nfse .nfse-work-actions .btn{
  height:34px!important;
  border-radius:8px!important;
}

/* --------------------------------------------------------------------------
   LISTAGEM DESKTOP — mesma leitura visual da tabela do Fechamento de Caixa.
   -------------------------------------------------------------------------- */
@media screen and (min-width:961px){
  #page-nfse .nfse-document-list{
    display:block!important;
    margin-top:10px!important;
    border:1px solid #d4e3f1;
    border-radius:10px;
    overflow:hidden;
    background:#fff;
  }

  #page-nfse .nfse-list-head,
  #page-nfse .nfse-doc-row{
    display:grid!important;
    grid-template-columns:minmax(300px,1.65fr) minmax(120px,.52fr) minmax(112px,.50fr) minmax(220px,1fr) minmax(115px,.46fr) minmax(128px,.52fr)!important;
    align-items:center!important;
    column-gap:16px!important;
  }

  #page-nfse .nfse-list-head{
    min-height:38px;
    padding:0 14px;
    background:#0b66d7;
    color:#fff;
    font-size:9px;
    font-weight:800;
  }
  #page-nfse .nfse-list-head>div:nth-child(5){text-align:right}

  #page-nfse .nfse-doc-row{
    min-height:59px;
    padding:9px 14px!important;
    border:0!important;
    border-bottom:1px solid #dce8f2!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:none!important;
    transform:none!important;
    transition:background .14s ease!important;
  }
  #page-nfse .nfse-doc-row:nth-child(odd){background:#f8fbfe!important}
  #page-nfse .nfse-doc-row:last-child{border-bottom:0!important}
  #page-nfse .nfse-doc-row:hover{
    background:#eef6fd!important;
    border-color:#dce8f2!important;
  }

  #page-nfse .nfse-doc-client strong{
    font-size:10px!important;
    color:#173b5d!important;
  }
  #page-nfse .nfse-doc-client small,
  #page-nfse .nfse-doc-meta small{
    margin-top:3px!important;
    color:#7890a5!important;
    font-size:8px!important;
  }
  #page-nfse .nfse-doc-meta b{
    color:#284a67!important;
    font-size:11px!important;
  }
  #page-nfse .nfse-doc-value{
    text-align:right!important;
    color:#173b5d!important;
    font-size:10.5px!important;
    font-weight:800!important;
  }
  #page-nfse .nfse-doc-action{
    justify-content:flex-end!important;
    flex-wrap:nowrap!important;
  }
  #page-nfse .nfse-doc-action .btn{
    height:30px!important;
    min-width:96px;
    border-radius:8px!important;
  }
}

/* DARK — mesma estrutura, apenas convertida para a paleta escura do sistema. */
html[data-theme="dark"] #page-nfse .nfse-page-hero{
  background:linear-gradient(135deg,#0e2231 0%,#102837 100%)!important;
  border-color:#29495f!important;
}
html[data-theme="dark"] #page-nfse .nfse-page-hero h2{color:#eaf4fa!important}
html[data-theme="dark"] #page-nfse .nfse-metric-card{
  background:#102433!important;
  border-color:#29495f!important;
}
html[data-theme="dark"] #page-nfse .nfse-metric-card::before{background:#17364b!important}
html[data-theme="dark"] #page-nfse .nfse-metric-card::after{background:#70b8ea!important}
html[data-theme="dark"] #page-nfse .nfse-metric-card span{color:#91aabc!important}
html[data-theme="dark"] #page-nfse .nfse-metric-card strong{color:#eef7fb!important}
html[data-theme="dark"] #page-nfse .nfse-metric-card small{color:#7f99ac!important}

@media screen and (min-width:961px){
  html[data-theme="dark"] #page-nfse .nfse-document-list{
    background:#0c1d2a!important;
    border-color:#29495f!important;
  }
  html[data-theme="dark"] #page-nfse .nfse-list-head{
    background:#155b84!important;
    color:#f4f9fc!important;
  }
  html[data-theme="dark"] #page-nfse .nfse-doc-row,
  html[data-theme="dark"] #page-nfse .nfse-doc-row:nth-child(odd){
    background:#0f2230!important;
    border-bottom-color:#29465a!important;
  }
  html[data-theme="dark"] #page-nfse .nfse-doc-row:nth-child(even){background:#102736!important}
  html[data-theme="dark"] #page-nfse .nfse-doc-row:hover{background:#153044!important}
  html[data-theme="dark"] #page-nfse .nfse-doc-client strong,
  html[data-theme="dark"] #page-nfse .nfse-doc-meta b,
  html[data-theme="dark"] #page-nfse .nfse-doc-value{color:#e8f2f8!important}
  html[data-theme="dark"] #page-nfse .nfse-doc-client small,
  html[data-theme="dark"] #page-nfse .nfse-doc-meta small{color:#89a4b7!important}
}

/* Mobile: mantém os cards atuais e apenas remove as frases já aprovadas. */
@media screen and (max-width:960px){
  #page-nfse .nfse-metric-card{
    min-height:76px!important;
    padding:11px 10px!important;
  }
  #page-nfse .nfse-metric-card::before,
  #page-nfse .nfse-metric-card::after{display:none!important}
  #page-nfse .nfse-list-head{display:none!important}
}


/* ==========================================================================
   V66 — acabamento final aprovado da listagem NFS-e
   ========================================================================== */
@media screen and (min-width:961px){
  #page-nfse .nfse-list-shell{
    margin-top:10px!important;
  }

  #page-nfse .nfse-document-list{
    margin-top:0!important;
  }

  #page-nfse .nfse-list-head{
    border-radius:0!important;
    background:#0b66d7!important;
    color:#fff!important;
  }

  #page-nfse .nfse-list-head>div:nth-child(5){
    text-align:right!important;
  }

  #page-nfse .nfse-list-head>div:last-child{
    text-align:right!important;
  }

  html[data-theme="dark"] #page-nfse .nfse-list-head{
    background:#155b84!important;
    color:#f4f9fc!important;
  }
}


/* ==========================================================================
   V67 — filtros por coluna da listagem NFS-e
   Mantém as abas Emitidas / Rascunhos / Canceladas exatamente no lugar original.
   ========================================================================== */
@media screen and (min-width:961px){
  #page-nfse .nfse-list-head .nfse-head-cell{
    min-width:0;
    display:flex;
    align-items:center;
    gap:6px;
  }
  #page-nfse .nfse-list-head .nfse-head-cell>span{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  #page-nfse .nfse-list-head .nfse-head-value{
    justify-content:flex-end;
  }
  #page-nfse .nfse-col-filter-btn{
    width:24px!important;
    height:24px!important;
    min-width:24px!important;
    flex:0 0 24px!important;
    padding:0!important;
    margin:0!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    border:1px solid rgba(255,255,255,.28)!important;
    border-radius:7px!important;
    background:rgba(255,255,255,.10)!important;
    color:#fff!important;
    font-size:9px!important;
    line-height:1!important;
    box-shadow:none!important;
    cursor:pointer!important;
    transition:background .14s ease,border-color .14s ease,transform .14s ease!important;
  }
  #page-nfse .nfse-col-filter-btn:hover,
  #page-nfse .nfse-col-filter-btn.open{
    background:rgba(255,255,255,.20)!important;
    border-color:rgba(255,255,255,.50)!important;
  }
  #page-nfse .nfse-col-filter-btn.filtered,
  #page-nfse .nfse-col-filter-btn.sorted{
    background:#fff!important;
    border-color:#fff!important;
    color:#0b66d7!important;
  }
}

.nfse-column-filter-menu{
  position:fixed;
  z-index:100000;
  box-sizing:border-box;
  padding:14px;
  overflow:auto;
  border:1px solid #cbddea;
  border-radius:12px;
  background:#fff;
  color:#284862;
  box-shadow:0 14px 36px rgba(18,52,77,.18);
  font-size:12px;
}
.nfse-column-filter-title{
  margin:0 0 10px;
  font-size:13px;
  font-weight:800;
  color:#173b5d;
}
.nfse-column-filter-search{
  width:100%;
  height:39px;
  box-sizing:border-box;
  border:1px solid #cdddea;
  border-radius:9px;
  background:#fff;
  color:#27465f;
  padding:0 11px;
  outline:none;
  font:inherit;
}
.nfse-column-filter-search:focus{border-color:#6aa9e9;box-shadow:0 0 0 2px rgba(11,102,215,.08)}
.nfse-column-filter-list{
  max-height:160px;
  margin-top:10px;
  overflow:auto;
  border:1px solid #e1ebf3;
  border-radius:7px;
  background:#fbfdff;
}
.nfse-column-filter-option{
  display:flex;
  align-items:flex-start;
  gap:9px;
  padding:9px 10px;
  border-bottom:1px solid #edf3f8;
  cursor:pointer;
  line-height:1.25;
}
.nfse-column-filter-option:last-child{border-bottom:0}
.nfse-column-filter-option:hover{background:#f0f7fd}
 .nfse-column-filter-option input{width:16px;height:16px;margin:0;accent-color:#0b66d7;flex:0 0 16px}
.nfse-column-filter-option span{min-width:0;overflow-wrap:anywhere}
.nfse-column-filter-empty{padding:14px 9px;text-align:center;color:#7c91a4}
.nfse-column-filter-tools,
.nfse-column-filter-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
}
.nfse-column-filter-tools{justify-content:space-between}
.nfse-column-filter-actions{justify-content:flex-end;padding-top:8px;border-top:1px solid #e5eef5}
.nfse-column-filter-menu button{
  height:34px;
  border:1px solid #cdddea;
  border-radius:7px;
  background:#fff;
  color:#3f5d75;
  padding:0 11px;
  font-size:10.5px;
  font-weight:750;
  cursor:pointer;
}
.nfse-column-filter-menu button:hover{background:#f3f8fd}
.nfse-column-filter-menu button.apply{background:#0b66d7;border-color:#0b66d7;color:#fff}


.nfse-column-sort-tools{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:0 0 10px;
}
.nfse-column-filter-menu .nfse-sort-btn{
  height:36px;
  border-radius:9px;
  font-size:10.5px;
  text-align:center;
}
.nfse-column-filter-menu .nfse-sort-btn.active{
  background:#eaf4ff;
  border-color:#86b7ea;
  color:#0b66d7;
}

html[data-theme="dark"] .nfse-column-filter-menu{
  background:#102433;
  border-color:#315269;
  color:#dbeaf3;
  box-shadow:0 16px 40px rgba(0,0,0,.42);
}
html[data-theme="dark"] .nfse-column-filter-title{color:#ecf5fa}
html[data-theme="dark"] .nfse-column-filter-search{
  background:#0c1d2a;
  border-color:#315269;
  color:#e7f1f7;
}
html[data-theme="dark"] .nfse-column-filter-list{background:#0c1d2a;border-color:#29495f}
html[data-theme="dark"] .nfse-column-filter-option{border-bottom-color:#213d50}
html[data-theme="dark"] .nfse-column-filter-option:hover{background:#153044}
html[data-theme="dark"] .nfse-column-filter-actions{border-top-color:#29495f}
html[data-theme="dark"] .nfse-column-filter-menu button{background:#17364b;border-color:#315269;color:#dcebf4}
html[data-theme="dark"] .nfse-column-filter-menu button:hover{background:#1d435b}
html[data-theme="dark"] .nfse-column-filter-menu button.apply{background:#2377b5;border-color:#2377b5;color:#fff}
html[data-theme="dark"] .nfse-column-filter-menu .nfse-sort-btn.active{background:#173f5a;border-color:#4e86aa;color:#9ed3f4}
