.nfe-dashboard { max-width: 1500px; padding-bottom: 3rem; }
.nfe-heading, .nfe-heading-title, .nfe-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nfe-heading { margin-bottom: 1.5rem; flex-wrap: wrap; }
.nfe-heading-title { justify-content: flex-start; }
.nfe-heading h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0; }
.nfe-dashboard p { color: var(--text-secondary); line-height: 1.5; }
.nfe-heading p { margin-top: .4rem; max-width: 750px; }
.nfe-dashboard .card { padding: 1.3rem; margin-bottom: 1.3rem; }
.nfe-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 1rem; }
.nfe-filters .input-group { margin-bottom: 0; min-width: 190px; }
.nfe-filters .input-group label { display: block; margin-bottom: .4rem; }
.nfe-filters input:not([type=checkbox]), .nfe-filters select { width: 100%; padding: .7rem; color: var(--text-primary); background: var(--surface-color, #161b22); border: 1px solid var(--border-color, #30363d); border-radius: 8px; }
.nfe-filters p { flex: 1; font-size: .85rem; min-width: 230px; }
.nfe-check { display: flex; align-items: center; gap: .5rem; padding-bottom: .7rem; cursor: pointer; }
.nfe-check input { width: 17px; height: 17px; }
.nfe-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.nfe-kpis article { display: flex; flex-direction: column; gap: .5rem; }
.nfe-kpis strong { font-size: 2.2rem; color: #58a6ff; }
.nfe-kpis span, .nfe-kpis small, .nfe-muted { color: var(--text-secondary); }
.nfe-section-heading { margin-bottom: 1rem; flex-wrap: wrap; }
.nfe-section-heading h2 { font-size: 1.2rem; margin: 0; }
.nfe-section-heading p { font-size: .85rem; margin: .4rem 0 0; }
.nfe-local-filters { margin-bottom: 1rem; }
.nfe-grow { flex: 1; }
.nfe-note { padding: .8rem 1rem; border-left: 3px solid #58a6ff; background: rgba(88, 166, 255, .06); font-size: .85rem; }
.nfe-table-wrap { overflow-x: auto; margin-top: 1rem; }
.nfe-table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: left; }
.nfe-table th { padding: .8rem; color: var(--text-secondary); font-weight: 500; border-bottom: 1px solid var(--border-color, #30363d); }
.nfe-table td { padding: 1rem .8rem; border-bottom: 1px solid var(--border-color, #30363d); vertical-align: top; }
.nfe-table td strong, .nfe-table td small { display: block; }
.nfe-table td small { font-size: .72rem; color: var(--text-secondary); margin-top: .4rem; overflow-wrap: anywhere; }
.nfe-tag { display: inline-block; background: rgba(88, 166, 255, .12); color: #58a6ff; border-radius: 5px; padding: .15rem .4rem; font-size: .7rem; margin-bottom: .4rem; }
.nfe-table details { min-width: 210px; max-width: 540px; }
.nfe-dashboard summary { cursor: pointer; padding: .3rem 0; }
.nfe-table summary b { color: #3fb950; margin-left: .6rem; white-space: nowrap; }
.nfe-value { overflow-wrap: anywhere; white-space: pre-wrap; }
.nfe-distribution { margin: .9rem 0; }
.nfe-distribution > div:first-child { display: flex; justify-content: space-between; gap: .7rem; }
.nfe-distribution > div:first-child > span:last-child { white-space: nowrap; color: var(--text-secondary); }
.nfe-bar { height: 6px; border-radius: 3px; background: rgba(88, 166, 255, .13); margin-top: .4rem; overflow: hidden; }
.nfe-bar span { display: block; background: #58a6ff; height: 100%; border-radius: inherit; }
.nfe-error { padding: 1rem; border: 1px solid #ff7b72; border-radius: 8px; color: #ff7b72; margin-bottom: 1rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.nfe-empty { padding: 2rem; text-align: center; color: var(--text-secondary); }
.nfe-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.nfe-dashboard .nfe-warning { color: #e3b341; }
.nfe-rules { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 450px; overflow-y: auto; padding: 1rem; background: var(--surface-color, #161b22); border-radius: 8px; margin-top: .8rem; }
.nfe-dashboard button:focus-visible, .nfe-dashboard summary:focus-visible { outline: 2px solid #58a6ff; outline-offset: 3px; }
@media (max-width: 900px) { .nfe-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nfe-table th, .nfe-table td { padding: .7rem .5rem; } }
@media (max-width: 540px) { .nfe-heading-title { align-items: flex-start; } .nfe-kpis { grid-template-columns: 1fr; } .nfe-filters .input-group { width: 100%; } .nfe-dashboard .card { padding: .9rem; } }

.produto-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color, #30363d); padding-bottom: 1rem; }
.produto-tab { padding: .55rem 1.1rem; border-radius: 8px; border: 1px solid var(--border-color, #30363d); background: transparent; color: var(--text-secondary); cursor: pointer; font-size: .9rem; transition: background .15s, color .15s, border-color .15s; }
.produto-tab:hover { color: var(--text-primary); border-color: #58a6ff; }
.produto-tab.active { background: #58a6ff; border-color: #58a6ff; color: #0d1117; font-weight: 600; }

.back-to-top { position: fixed; left: 1.75rem; bottom: 1.75rem; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: none; background: #58a6ff; color: #0d1117; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); transition: transform .15s, box-shadow .15s; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.back-to-top:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.back-to-top-fade-enter-active, .back-to-top-fade-leave-active { transition: opacity .2s, transform .2s; }
.back-to-top-fade-enter-from, .back-to-top-fade-leave-to { opacity: 0; transform: translateY(10px); }
@media (max-width: 540px) { .back-to-top { left: 1rem; bottom: 1rem; width: 42px; height: 42px; } }
