.fm-report-page,.fm-report-editor{display:grid;gap:18px}.fm-report-page .toolbar,.fm-report-editor .toolbar,.fm-report-card-head,.fm-report-editor-title,.fm-report-editor-actions,.fm-report-actions,.fm-report-history-item{display:flex;align-items:center;justify-content:space-between;gap:14px}.fm-report-page h2,.fm-report-editor h2{margin:0}.fm-report-card,.fm-report-editor-card{padding:22px;border:1px solid #d9e4e7;border-radius:16px;background:linear-gradient(145deg,#fff 0%,#f9fbfb 100%);box-shadow:0 8px 26px #10373d0d}.fm-report-kicker{font-size:11px;font-weight:800;letter-spacing:.12em;color:#007b82}.fm-report-card-head h3{margin:8px 0 4px;font-size:22px}.fm-report-card-head p,.fm-report-editor-title p,.fm-report-config-grid p{margin:4px 0;color:#64777a}.fm-report-badge,.fm-report-version{display:inline-flex;align-items:center;padding:7px 11px;border:1px solid #d7e5e6;border-radius:999px;background:#f2f8f8;color:#21555b;font-size:12px;font-weight:700;white-space:nowrap}.fm-report-filters{margin-top:22px;padding:16px;border-radius:12px;background:#f3f7f7}.fm-report-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(155px,1fr));gap:12px}.fm-report-filter{display:grid;gap:6px;color:#37585d;font-size:12px;font-weight:700}.fm-report-filter-control{display:flex;gap:6px}.fm-report-filter select,.fm-report-filter input,.fm-report-page-size select,.fm-report-initial-row select,.fm-report-initial-row input,.fm-report-sort-row select,.fm-report-aggregate-row select,.fm-report-name input,.fm-report-justification input{min-width:0;width:100%;height:38px;padding:7px 9px;border:1px solid #cbd9dc;border-radius:8px;background:white;color:#143a40}.fm-report-filter-control select{max-width:115px}.fm-report-actions{justify-content:flex-end;margin-top:16px}.fm-report-page-size{display:flex;align-items:center;gap:8px;margin-right:auto;color:#526b6f;font-size:12px}.fm-report-page-size select{width:82px}.fm-report-actions button,.fm-report-editor-actions button,.fm-report-history-item button{min-height:38px}.fm-report-actions button:not(.secondary),.fm-report-editor-actions button:not(.secondary),.fm-report-history-item button:not(.secondary){background:#006c72;color:white}.fm-report-note{margin:0;color:#62777b;font-size:12px}.fm-report-summary{display:flex;justify-content:space-between;gap:18px;margin:16px 0;padding:13px 16px;border-left:3px solid #e1b341;border-radius:8px;background:#fffaf0}.fm-report-summary>div{display:flex;flex-wrap:wrap;gap:20px}.fm-report-summary span{color:#51656a;text-transform:capitalize}.fm-report-table-wrap{max-height:58vh;overflow:auto;border:1px solid #e0e8e9;border-radius:10px}.fm-report-table{min-width:880px}.fm-report-table th{position:sticky;top:0;background:#edf4f4;z-index:1}.fm-report-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:12px}.fm-report-pager span{margin-right:auto;color:#617679;font-size:12px}.fm-report-editor-card{display:grid;gap:18px}.fm-report-config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.fm-report-config-grid>section{min-width:0;padding:16px;border:1px solid #e0e9ea;border-radius:12px;background:#fff}.fm-report-config-grid h4,.fm-report-initial h4{margin:0 0 8px;color:#16474e}.fm-report-check-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:300px;overflow:auto}.fm-report-field-row,.fm-report-option{display:flex;align-items:center;gap:7px;min-height:28px;color:#3f5d61;font-size:12px}.fm-report-field-row{justify-content:space-between;border-bottom:1px solid #f0f3f3}.fm-report-field-row label{display:flex;align-items:center;gap:7px}.fm-report-field-row button{min-width:30px;padding:3px 7px}.fm-report-initial{margin-top:15px;padding-top:12px;border-top:1px solid #e6eded}.fm-report-initial-row{display:grid;grid-template-columns:1fr 1fr 1fr 34px;gap:6px;margin:7px 0}.fm-report-initial-row button{padding:3px}.fm-report-aggregate-list,.fm-report-sort-list{display:grid;gap:6px;max-height:320px;overflow:auto}.fm-report-aggregate-row,.fm-report-sort-row{display:grid;grid-template-columns:minmax(0,1fr) 120px;align-items:center;gap:8px;min-height:37px;color:#405c61;font-size:12px}.fm-report-sort-row{grid-template-columns:minmax(0,1fr) 100px 130px}.fm-report-name,.fm-report-justification{display:grid;gap:7px;max-width:620px;color:#37585d;font-size:12px;font-weight:700}.fm-report-editor-actions{justify-content:flex-start}.fm-report-history{display:grid;gap:8px}.fm-report-history-item{padding:12px 14px;border:1px solid #e0e9ea;border-radius:10px;background:#fff}.fm-report-history-item>div:first-child{display:grid;gap:4px}.fm-report-history-item span{color:#687b7e;font-size:12px}.fm-report-history-item>div:last-child{display:flex;gap:7px}.fm-report-editor section>h3{color:#174a50}
@media(max-width:1050px){.fm-report-filter-grid{grid-template-columns:repeat(2,minmax(140px,1fr))}.fm-report-config-grid{grid-template-columns:1fr}.fm-report-check-list{max-height:240px}}
@media(max-width:620px){.fm-report-card,.fm-report-editor-card{padding:14px}.fm-report-card-head,.fm-report-page .toolbar,.fm-report-editor .toolbar,.fm-report-history-item{align-items:flex-start;flex-direction:column}.fm-report-filter-grid{grid-template-columns:1fr}.fm-report-actions{align-items:stretch;flex-wrap:wrap}.fm-report-actions button{flex:1}.fm-report-summary{align-items:flex-start;flex-direction:column}.fm-report-initial-row{grid-template-columns:1fr 1fr}.fm-report-sort-row{grid-template-columns:1fr 90px 110px}.fm-report-page-size{width:100%;margin:0}.fm-report-page-size select{flex:1}.fm-report-history-item>div:last-child{flex-wrap:wrap}}
.fm-report-scope-card{display:grid;gap:22px}.fm-report-scope-card h3{margin:0 0 5px;color:#16474e}.fm-report-scope-card p{margin:0}.fm-report-scope-grid{display:grid;grid-template-columns:repeat(3,minmax(190px,1fr));gap:16px;padding:18px;border:1px solid #e0e9ea;border-radius:12px;background:#f7fafa}.fm-report-scope-field{display:grid;gap:7px;color:#37585d;font-size:12px;font-weight:700}.fm-report-scope-field select{width:100%;min-width:0;height:42px;padding:8px 11px;border:1px solid #cbd9dc;border-radius:9px;background:#fff;color:#143a40;font:inherit}.fm-report-scope-actions{display:flex;align-items:center;justify-content:space-between;gap:14px}.fm-report-scope-actions button{min-height:40px;background:#006c72;color:white}.fm-report-scope-note{display:grid;gap:5px;padding:15px 18px;border-left:3px solid #e1b341;border-radius:9px;background:#fffaf0;color:#53686c;font-size:13px}.fm-report-scope-note b{color:#16474e}
@media(max-width:760px){.fm-report-scope-grid{grid-template-columns:1fr}.fm-report-scope-actions{align-items:stretch;flex-direction:column}.fm-report-scope-actions button{width:100%}}
#app>nav .menu-items button[data-report-admin-menu][hidden]{display:none!important}
.fm-report-quality-alert{padding:12px 14px;border:1px solid #e7c4bd;border-left:4px solid #a33b2d;border-radius:9px;background:#fff7f4;color:#703328;font-size:12px}.fm-report-quality-alert ul{display:grid;gap:5px;margin:8px 0 0;padding-left:19px}.fm-report-data-warning{background:#fff1ed!important;color:#8c3024!important;font-weight:700}

/* Foco visivel para quem navega por teclado: linhas clicaveis e tabelas roláveis */
tr[onclick]:focus-visible,.table-wrap[tabindex]:focus-visible{outline:3px solid var(--fm-primary,#2563eb);outline-offset:-3px;background:#eff6ff}

/* Aviso de sessao prestes a expirar por inatividade (desktop) */
#sessao-aviso{position:fixed;right:20px;bottom:20px;z-index:60;display:flex;align-items:center;gap:14px;max-width:420px;padding:14px 16px;border-radius:12px;background:#172033;color:#fff;box-shadow:0 12px 32px rgba(15,23,42,.35);font-size:14px}
#sessao-aviso[hidden]{display:none}
#sessao-aviso button{flex:none;background:#fff;color:#172033;font-weight:700}
#sessao-aviso button:hover{background:#e6ecf5}
