
        .nfe-form{font-family:'Inter',sans-serif;font-size:13px;color:#1f2937;background:#f8f9fa;padding:0;border:none;border-radius:0 0 var(--radius-lg) var(--radius-lg);max-width:100%;margin:0 auto}
        .nfe-form *{box-sizing:border-box;margin:0;padding:0}
        .nfe-form-row{display:flex;flex-wrap:wrap;gap:0}
        .nfe-form-cell{padding:10px 12px;border-right:1px solid #e9edf2;border-bottom:1px solid #e9edf2;flex:1;position:relative;min-width:120px}
        .nfe-form-cell:last-child{border-right:none}
        .nfe-form-cell .fl{font-size:11px;font-weight:700;text-transform:uppercase;color:#6b7280;display:block;margin-bottom:4px}
        .nfe-form-cell input,.nfe-form-cell select,.nfe-form-cell textarea{width:100%;border:1.5px solid #d1d5db;border-radius:6px;padding:8px 10px;font-size:13px;font-family:inherit;outline:none;background:#fff;transition:border-color .15s,box-shadow .15s}
        .nfe-form-cell input:focus,.nfe-form-cell select:focus,.nfe-form-cell textarea:focus{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 2px rgba(37,99,235,.15)}
        .nfe-form-cell input[readonly]{background:#f2f4f7;color:#6b7280;cursor:default;border-color:#e9edf2}
        .nfe-form-cell select option{color:#333;background:#fff}

        /* Header info empresa */
        .nfe-emit-emp-bar{display:flex;align-items:center;gap:16px;padding:12px 16px;background:#f6f7f9;border-bottom:1px solid #e9edf2;font-size:12px}
        .nfe-emit-emp-bar .emp-nome{font-weight:700;color:#0f172a;font-size:13px}
        .nfe-emit-emp-bar .emp-detail{color:#6b7280}
        .nfe-emit-emp-bar .doc-tag{background:#0f172a;color:#fff;padding:3px 10px;border-radius:6px;font-size:11px;font-weight:700;white-space:nowrap}
        .nfe-emit-emp-bar .nf-num{font-family:'IBM Plex Mono',monospace;font-weight:800;color:#0f172a;font-size:13px}
        .nfe-emit-emp-bar .chave-display{font-family:'IBM Plex Mono',monospace;font-size:10px;color:#9ca3af;word-break:break-all;max-width:300px}

        /* Accordion sections */
        .nfe-section{border:1px solid #e9edf2;border-radius:8px;margin:8px 12px;overflow:visible;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.04)}
        .nfe-section-toggle{width:100%;display:flex;align-items:center;gap:8px;padding:10px 14px;background:#fff;border:none;cursor:pointer;font-size:13px;font-weight:700;color:#374151;transition:background .15s;font-family:inherit;text-align:left}
        .nfe-section-toggle:hover{background:#f2f4f7}
        .nfe-section-toggle .arrow{transition:transform .2s;font-size:10px;color:#9ca3af;flex-shrink:0}
        .nfe-section.open>.nfe-section-toggle .arrow{transform:rotate(90deg)}
        .nfe-section-toggle .section-badge{margin-left:auto;font-size:10px;font-weight:600;color:#6b7280;background:#f2f4f7;padding:2px 8px;border-radius:10px}
        .nfe-section-body{display:none;padding:0;background:#fff}
        .nfe-section.open>.nfe-section-body{display:block}

        /* Product search row */
        .nfe-prod-search{display:flex;gap:8px;align-items:flex-end;padding:12px 14px;background:#f8f9fa;border-bottom:1px solid #e9edf2;flex-wrap:wrap}
        .nfe-prod-search .search-main{flex:3;position:relative;min-width:200px}
        .nfe-prod-search .search-main input{width:100%;border:1.5px solid #d1d5db;border-radius:8px;padding:10px 14px;font-size:14px;font-family:inherit;outline:none;transition:border-color .15s}
        .nfe-prod-search .search-main input:focus{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 3px rgba(37,99,235,.15)}
        .nfe-prod-search .search-fields{display:flex;gap:6px;align-items:flex-end;flex-wrap:wrap}
        .nfe-prod-search .search-fields .sf-item{display:flex;flex-direction:column;gap:2px}
        .nfe-prod-search .search-fields .sf-item label{font-size:10px;font-weight:700;text-transform:uppercase;color:#6b7280}
        .nfe-prod-search .search-fields .sf-item input{width:80px;border:1.5px solid #d1d5db;border-radius:6px;padding:8px;font-size:13px;font-family:inherit;outline:none}
        .nfe-prod-search .btn-add{background:var(--verde2);color:#fff;border:none;padding:9px 18px;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap;border-radius:8px;transition:opacity .15s}
        .nfe-prod-search .btn-add:hover{opacity:.85}

        /* Items table */
        .nfe-emit-items-table{width:100%;border-collapse:collapse}
        .nfe-emit-items-table th{font-size:11px;font-weight:700;text-transform:uppercase;background:#f9fafb;color:var(--texto2);border-bottom:1px solid var(--borda);padding:8px 10px;text-align:center}
        .nfe-emit-items-table td{font-size:13px;padding:8px 10px;border-bottom:1px solid #f0f0f0;text-align:center}
        .nfe-emit-items-table tr:nth-child(even){background:#f9fafb}
        .nfe-emit-items-table tr:hover{background:#f2f4f7}
        .nfe-emit-items-table td:first-child,.nfe-emit-items-table td:nth-child(2){text-align:left}
        .nfe-emit-items-table td input{border:1.5px solid #d1d5db;padding:5px 8px;font-size:13px;text-align:center;width:100%;border-radius:5px;transition:border-color .15s}
        .nfe-emit-items-table td input:focus{border-color:#2563eb;background:#eff6ff}
        .nfe-emit-items-table .btn-rm{background:none;border:none;color:#dc2626;cursor:pointer;font-size:16px;padding:4px;border-radius:4px;transition:background .15s}
        .nfe-emit-items-table .btn-rm:hover{background:#fef2f2}

        /* Tax summary */
        .nfe-emit-calc-summary{display:flex;flex-wrap:wrap;gap:0;padding:0}
        .nfe-emit-calc-summary .calc-item{flex:1;min-width:90px;padding:8px 10px;border-right:1px solid #e9edf2;border-bottom:1px solid #e9edf2;text-align:center;background:#fff}
        .nfe-emit-calc-summary .calc-item:last-child{border-right:none}
        .nfe-emit-calc-summary .calc-item .fl{font-size:9px;font-weight:700;text-transform:uppercase;color:#9ca3af;display:block}
        .nfe-emit-calc-summary .calc-item .fv{font-size:13px;font-weight:600;color:#1f2937;display:block;margin-top:1px}
        .nfe-emit-calc-summary .calc-item .fv.fv-total{font-size:15px;font-weight:800;color:#0b3d2a}

        /* Footer */
        .nfe-emit-footer{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:#fff;border-top:2px solid #e9edf2;border-radius:0 0 var(--radius-lg) var(--radius-lg)}
        .nfe-emit-footer .total{font-size:16px;font-weight:800;color:#0b3d2a}
        .nfe-emit-footer .total small{font-size:11px;font-weight:600;color:#6b7280}
        .nfe-emit-footer .btn-emitir{background:var(--azul);color:#fff;border:none;padding:11px 30px;font-size:14px;font-weight:700;cursor:pointer;border-radius:10px;transition:all .15s;box-shadow:0 4px 12px -4px rgba(37,99,235,.4)}
        .nfe-emit-footer .btn-emitir:hover{background:#1d4ed8;transform:translateY(-1px);box-shadow:0 8px 18px -6px rgba(37,99,235,.45)}
        .nfe-emit-footer .btn-emitir:disabled{background:#9ca3af;cursor:wait;box-shadow:none;transform:none}
        .nfe-emit-footer .btn-cancel{background:#f2f4f7;color:var(--texto2);border:1px solid var(--borda);padding:10px 20px;font-size:13px;font-weight:600;cursor:pointer;border-radius:8px;font-family:inherit;transition:all .15s}
        .nfe-emit-footer .btn-cancel:hover{background:#e9ecf1;border-color:#d0d5dd}

        #nfe-emit-resultado{display:none;margin-top:12px;padding:12px;font-size:13px;border-radius:8px}
        .nfe-form.pdv-mode .nfe-section{margin:4px 8px}
        .nfe-emit-cliente-resumo{padding:6px 12px;background:var(--azul2);border-left:3px solid var(--azul);font-size:12px;color:#1e40af;display:none}

        @media screen{
          [data-tema="escuro"] .nfe-form{background:#0f172a;color:#e8eef8}
          [data-tema="escuro"] .nfe-form-cell{border-color:#243049}
          [data-tema="escuro"] .nfe-form-cell .fl{color:#8795ab}
          [data-tema="escuro"] .nfe-form-cell input,[data-tema="escuro"] .nfe-form-cell select,[data-tema="escuro"] .nfe-form-cell textarea{background:#0b1220;color:#e8eef8;border-color:#3b4a66}
          [data-tema="escuro"] .nfe-form-cell input:focus,[data-tema="escuro"] .nfe-form-cell select:focus,[data-tema="escuro"] .nfe-form-cell textarea:focus{background:#0e1626;border-color:#60a5fa}
          [data-tema="escuro"] .nfe-form-cell input[readonly]{background:#1a2438;color:#94a3b8;border-color:#243049}
          [data-tema="escuro"] .nfe-form-cell select option{background:#0b1220;color:#e8eef8}
          [data-tema="escuro"] .nfe-emit-emp-bar{background:#131c2e;border-color:#243049}
          [data-tema="escuro"] .nfe-emit-emp-bar .emp-nome,[data-tema="escuro"] .nfe-emit-emp-bar .nf-num{color:#e8eef8}
          [data-tema="escuro"] .nfe-emit-emp-bar .doc-tag{background:#2563eb;color:#fff}
          [data-tema="escuro"] .nfe-emit-emp-bar .chave-display{color:#8795ab}
          [data-tema="escuro"] .nfe-section{border-color:#243049;background:#131c2e;box-shadow:none}
          [data-tema="escuro"] .nfe-section-toggle{background:#131c2e;color:#e8eef8}
          [data-tema="escuro"] .nfe-section-toggle:hover{background:#1a2438}
          [data-tema="escuro"] .nfe-section-toggle .arrow{color:#8795ab}
          [data-tema="escuro"] .nfe-section-toggle .section-badge{background:#1f2b44;color:#a8b6cc}
          [data-tema="escuro"] .nfe-section-body{background:#131c2e}
          [data-tema="escuro"] .nfe-prod-search{background:#0f172a;border-color:#243049}
          [data-tema="escuro"] .nfe-prod-search .search-main input,[data-tema="escuro"] .nfe-prod-search .search-fields .sf-item input{background:#0b1220;color:#e8eef8;border-color:#3b4a66}
          [data-tema="escuro"] .nfe-prod-search .search-main input:focus{background:#0e1626;border-color:#60a5fa}
          [data-tema="escuro"] .nfe-prod-search .search-fields .sf-item label{color:#8795ab}
          [data-tema="escuro"] .nfe-emit-items-table th{background:#1a2438;color:#a8b6cc;border-bottom-color:#243049}
          [data-tema="escuro"] .nfe-emit-items-table td{border-bottom-color:#1f2b44}
          [data-tema="escuro"] .nfe-emit-items-table tr:nth-child(even){background:#111a2c}
          [data-tema="escuro"] .nfe-emit-items-table tr:hover{background:#1a2438}
          [data-tema="escuro"] .nfe-emit-items-table td input{background:#0b1220;color:#e8eef8;border-color:#3b4a66}
          [data-tema="escuro"] .nfe-emit-items-table td input:focus{background:#0e1626;border-color:#60a5fa}
          [data-tema="escuro"] .nfe-emit-items-table .btn-rm:hover{background:rgba(248,113,113,.14)}
          [data-tema="escuro"] .nfe-emit-calc-summary .calc-item{background:#131c2e;border-color:#243049}
          [data-tema="escuro"] .nfe-emit-calc-summary .calc-item .fl{color:#8795ab}
          [data-tema="escuro"] .nfe-emit-calc-summary .calc-item .fv{color:#e8eef8}
          [data-tema="escuro"] .nfe-emit-calc-summary .calc-item .fv.fv-total{color:#4ade80}
          [data-tema="escuro"] .nfe-emit-footer{background:#131c2e;border-top-color:#243049}
          [data-tema="escuro"] .nfe-emit-footer .total{color:#4ade80}
          [data-tema="escuro"] .nfe-emit-footer .total small{color:#8795ab}
          [data-tema="escuro"] .nfe-emit-footer .btn-cancel{background:#1f2b44}
          [data-tema="escuro"] .nfe-emit-footer .btn-cancel:hover{background:#26324c;border-color:#3b4a66}
          [data-tema="escuro"] .nfe-emit-cliente-resumo{color:#93c5fd}
        }
      