.legacy-form fieldset>legend{padding:0 6px!important;background:var(--ec-surface)!important;color:var(--ec-text)!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important}
@media(max-width:699px){.product-list .search-bar label:not(.check){order:1}.product-list .search-bar a{grid-column:1/-1;order:2;min-height:56px!important;font-size:16px!important}.product-list .search-bar .check{order:3}.product-list .search-bar button{order:4}.product-list .search-bar{grid-template-columns:1fr auto!important}.product-list tr:after{color:var(--ec-primary)!important}}
@media(max-width:699px){.list-window:not(.product-list) tr td:nth-child(2){color:var(--ec-text)!important}.list-window:not(.product-list) tr td:nth-child(n+3):before{display:inline!important;content:attr(data-label) ": ";color:var(--ec-muted)!important;font-weight:600}.list-window:not(.product-list) tr td:nth-child(n+3){grid-column:1/-1!important;color:var(--ec-text)!important}}

/* Camada visual compartilhada: listas, pesquisas e formulários do sistema inteiro. */
.authenticated-shell .legacy-window>.window-title,.authenticated-shell .legacy-window>h1.window-title{position:relative;margin:0!important;padding:8px 0 25px!important;letter-spacing:-.035em!important}
.authenticated-shell .legacy-window>.window-title:after,.authenticated-shell .legacy-window>h1.window-title:after{content:"";display:block;width:44px;height:4px;margin-top:13px;border-radius:999px;background:linear-gradient(90deg,var(--ec-primary),color-mix(in srgb,var(--ec-primary) 25%,transparent))}
.authenticated-shell .list-window>.search-bar{position:relative;align-items:end;margin-bottom:16px!important;padding:16px!important;border:1px solid var(--ec-line)!important;border-radius:16px!important;background:linear-gradient(135deg,color-mix(in srgb,var(--ec-primary) 7%,var(--ec-surface)),var(--ec-surface))!important;box-shadow:0 12px 30px #0000000a}
.authenticated-shell .list-window>.search-bar:before{content:"Localize, filtre e avance";position:absolute;top:10px;left:17px;color:var(--ec-muted);font-size:9px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
.authenticated-shell .list-window>.search-bar label:not(.check){padding-top:12px;font-weight:750!important}
.authenticated-shell .list-window>.search-bar input:not([type]),.authenticated-shell .list-window>.search-bar input[type="text"]{box-shadow:inset 0 1px 0 #ffffff12,0 1px 2px #00000008}
.authenticated-shell .list-window>.search-bar button,.authenticated-shell .list-window>.search-bar a{gap:7px;box-shadow:0 7px 16px color-mix(in srgb,var(--ec-primary) 25%,transparent);transition:transform .16s ease,filter .16s ease,box-shadow .16s ease}
.authenticated-shell .list-window>.search-bar button:hover,.authenticated-shell .list-window>.search-bar a:hover{filter:brightness(1.08);transform:translateY(-1px);box-shadow:0 10px 22px color-mix(in srgb,var(--ec-primary) 32%,transparent)}
.authenticated-shell .list-window>.search-bar .check{padding:0 4px;font-weight:700!important}
.authenticated-shell .product-list>.search-bar{grid-template-columns:minmax(280px,1fr) auto auto!important;gap:12px!important;align-items:end!important}
.authenticated-shell .product-list>.search-bar:after{content:"Pesquisa por código, descrição, barras ou referência";position:absolute;left:17px;bottom:7px;color:var(--ec-muted);font-size:9px;opacity:.8}
.authenticated-shell .product-list>.search-bar label:not(.check){min-width:0}
.authenticated-shell .product-list>.search-bar .low-stock{display:flex;align-items:center;gap:8px;min-height:42px;padding:0 4px!important;white-space:nowrap;color:var(--ec-text)}
.authenticated-shell .product-list>.search-bar .low-stock input{width:17px!important;height:17px!important;margin:0;accent-color:var(--ec-primary)}
.authenticated-shell .product-list>.search-bar .search-actions{display:flex;gap:8px;align-items:center}
.authenticated-shell .product-list>.search-bar{padding-bottom:25px!important}
.authenticated-shell .product-list>.search-bar:after{bottom:5px!important}
.authenticated-shell .list-window:not(.view-cards) thead th{cursor:pointer;user-select:none;transition:color .16s,background .16s}
.authenticated-shell .list-window:not(.view-cards) thead th:hover,.authenticated-shell .list-window:not(.view-cards) thead th:focus-visible{color:var(--ec-primary)!important;background:color-mix(in srgb,var(--ec-primary) 8%,var(--ec-surface));outline:0}
.authenticated-shell .list-window:not(.view-cards) thead th[aria-sort]::after{margin-left:6px;color:var(--ec-primary);font-size:12px}
.authenticated-shell .list-window:not(.view-cards) thead th[aria-sort="ascending"]::after{content:"↑"}
.authenticated-shell .list-window:not(.view-cards) thead th[aria-sort="descending"]::after{content:"↓"}
.authenticated-shell .product-list>.search-bar .search-actions button,.authenticated-shell .product-list>.search-bar .search-actions a{min-width:112px!important;white-space:nowrap}
.authenticated-shell .list-window>table{overflow:hidden;border:1px solid var(--ec-line)!important;border-radius:16px!important;background:var(--ec-surface)!important;box-shadow:0 10px 26px #00000008}
.authenticated-shell .list-window thead{background:color-mix(in srgb,var(--ec-primary) 7%,var(--ec-surface))}
.authenticated-shell .list-window th{padding-top:15px!important;padding-bottom:15px!important;color:var(--ec-muted)!important;font-weight:850!important;letter-spacing:.075em;text-transform:uppercase}
.authenticated-shell .list-window tbody tr{transition:background .16s ease,box-shadow .16s ease}
@media(min-width:700px){.authenticated-shell .list-window tbody tr:hover{background:color-mix(in srgb,var(--ec-primary) 6%,transparent)!important;box-shadow:inset 3px 0 0 var(--ec-primary)}.authenticated-shell .list-window tbody tr:last-child td{border-bottom:0!important}}
.authenticated-shell .data-view-toolbar{margin:0 0 16px!important;padding:13px 14px!important;border:1px solid var(--ec-line)!important;border-radius:14px!important;background:var(--ec-surface)!important;box-shadow:0 7px 18px #00000008}
.authenticated-shell .data-view-toolbar input,.authenticated-shell .data-view-toolbar select{min-height:42px!important;border-radius:9px!important}
.authenticated-shell .list-window>.data-view-toolbar{position:relative;grid-template-columns:minmax(300px,1fr) auto auto!important;gap:14px!important;padding:17px!important;border-color:color-mix(in srgb,var(--ec-primary) 18%,var(--ec-line))!important;background:linear-gradient(135deg,color-mix(in srgb,var(--ec-primary) 5%,var(--ec-surface)),var(--ec-surface))!important;box-shadow:0 10px 25px #0000000b!important}
.authenticated-shell .list-window>.data-view-toolbar:before{content:"Refine a visualização";position:absolute;top:8px;left:17px;color:var(--ec-muted);font-size:9px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
.authenticated-shell .data-view-toolbar .quick-filter{padding-top:12px}
.authenticated-shell .data-view-toolbar .quick-filter>span:first-child,.authenticated-shell .data-view-toolbar .page-size>span{color:var(--ec-muted)!important;font-size:10px!important;font-weight:850!important;letter-spacing:.08em;text-transform:uppercase}
.authenticated-shell .data-view-toolbar .quick-filter input{min-height:46px!important;border-color:var(--ec-line)!important;background:var(--ec-bg)!important;box-shadow:inset 0 1px 0 #ffffff0d,0 2px 5px #00000008!important}
.authenticated-shell .data-view-toolbar .filter-status{margin-top:7px!important;font-size:10px!important;font-weight:700!important}
.authenticated-shell .data-view-toolbar .view-switch{min-height:46px;align-self:end;padding:4px;border-radius:11px;background:var(--ec-bg);box-shadow:inset 0 1px 2px #0000000b}
.authenticated-shell .data-view-toolbar .view-switch button{min-height:38px;padding-inline:14px;border-radius:8px;transition:background .16s,color .16s,box-shadow .16s}
.authenticated-shell .data-view-toolbar .view-switch button.is-active{box-shadow:0 4px 10px color-mix(in srgb,var(--ec-primary) 30%,transparent)}
.authenticated-shell .data-view-toolbar .page-size{min-width:112px;align-self:end;padding-top:12px}
.authenticated-shell .data-view-toolbar .page-size select{margin-top:5px!important;padding-inline:12px!important;border-color:var(--ec-line)!important;background:var(--ec-bg)!important;font-weight:750!important}
.authenticated-shell .success-message{display:flex;align-items:center;gap:9px;border-color:color-mix(in srgb,var(--ec-success) 52%,var(--ec-line));box-shadow:0 8px 20px #00000008}.authenticated-shell .success-message:before{content:"✓";display:grid;width:22px;height:22px;place-items:center;border-radius:50%;background:var(--ec-success);color:var(--ec-surface);font-weight:900}
.authenticated-shell .validation{padding:13px 15px;border:1px solid color-mix(in srgb,var(--ec-danger) 50%,var(--ec-line));border-radius:11px;background:color-mix(in srgb,var(--ec-danger) 8%,transparent)}
.authenticated-shell .legacy-form fieldset,.authenticated-shell .legacy-form details{box-shadow:0 10px 25px #00000008}.authenticated-shell .legacy-form fieldset>legend{font-size:14px!important;letter-spacing:-.01em}.authenticated-shell .legacy-form input:not([type="checkbox"]),.authenticated-shell .legacy-form select,.authenticated-shell .legacy-form textarea{box-shadow:inset 0 1px 0 #ffffff0d;transition:border-color .16s ease,box-shadow .16s ease}.authenticated-shell .legacy-form input:focus,.authenticated-shell .legacy-form select:focus,.authenticated-shell .legacy-form textarea:focus{box-shadow:0 0 0 4px color-mix(in srgb,var(--ec-primary) 18%,transparent)!important}
.authenticated-shell .command-bar{padding-top:14px!important;border-top:1px solid color-mix(in srgb,var(--ec-line) 72%,transparent)!important}.authenticated-shell .command-bar a{transition:border-color .16s ease,background .16s ease}.authenticated-shell .command-bar a:hover{border-color:var(--ec-primary)!important;background:color-mix(in srgb,var(--ec-primary) 9%,var(--ec-surface))!important}.authenticated-shell .command-bar button{box-shadow:0 8px 19px color-mix(in srgb,var(--ec-primary) 28%,transparent)}
@media(max-width:699px){.authenticated-shell .legacy-window>.window-title,.authenticated-shell .legacy-window>h1.window-title{padding-bottom:20px!important;font-size:clamp(25px,8vw,33px)!important}.authenticated-shell .list-window>.search-bar{gap:11px!important;padding:14px!important;border-radius:14px!important}.authenticated-shell .list-window>table{border-radius:14px!important}.authenticated-shell .list-window tbody tr{padding-left:14px!important;padding-right:46px!important}.authenticated-shell .data-view-toolbar{padding:11px!important;border-radius:12px!important}}
@media(max-width:699px){.authenticated-shell .list-window>.data-view-toolbar{grid-template-columns:1fr!important;gap:9px!important;padding:14px!important}.authenticated-shell .list-window>.data-view-toolbar:before{top:7px;left:14px}.authenticated-shell .data-view-toolbar .quick-filter{padding-top:12px}.authenticated-shell .data-view-toolbar .view-switch{display:flex;justify-content:center}.authenticated-shell .data-view-toolbar .page-size{min-width:0}.authenticated-shell .data-view-toolbar .page-size select{width:100%}}

/* Hover dos cards: no tema escuro, preservar o fundo escuro e o contraste do texto. */
html[data-theme="dark"] .authenticated-shell .list-window.view-cards tbody tr:hover,
html[data-theme="dark"] .authenticated-shell .list-window.view-cards tbody tr:hover td,
html[data-theme="dark"] .authenticated-shell .list-window.view-cards tbody tr:hover td:before,
html[data-theme="dark"] .authenticated-shell .list-window.view-cards tbody tr:hover td a{background:var(--ec-surface)!important;color:var(--ec-text)!important}
html[data-theme="dark"] .authenticated-shell .list-window.view-cards tbody tr:hover{border-color:var(--ec-primary)!important;box-shadow:0 11px 26px #0008!important}
@media(prefers-color-scheme:dark){html[data-theme="auto"] .authenticated-shell .list-window.view-cards tbody tr:hover,html[data-theme="auto"] .authenticated-shell .list-window.view-cards tbody tr:hover td,html[data-theme="auto"] .authenticated-shell .list-window.view-cards tbody tr:hover td:before,html[data-theme="auto"] .authenticated-shell .list-window.view-cards tbody tr:hover td a{background:var(--ec-surface)!important;color:var(--ec-text)!important}}

/* Hover neutro em qualquer tema: apenas a borda muda, o conteúdo permanece intacto. */
.authenticated-shell .list-window tbody tr:hover,
.authenticated-shell .list-window tbody tr:hover td,
.authenticated-shell .list-window tbody tr:hover td:before,
.authenticated-shell .list-window tbody tr:hover td a{background:var(--ec-surface)!important;color:inherit!important}
.authenticated-shell .list-window tbody tr:hover{border-color:var(--ec-primary)!important;box-shadow:inset 3px 0 0 var(--ec-primary)!important}

/* Toolbar alinhado: filtro, modo de visualização e paginação partem da mesma base. */
.authenticated-shell .list-window>.data-view-toolbar{align-items:start!important}
.authenticated-shell .list-window>.data-view-toolbar:before{display:none}
.authenticated-shell .list-window>.data-view-toolbar .quick-filter{padding-top:0!important}
.authenticated-shell .list-window>.data-view-toolbar .quick-filter>span:first-child,
.authenticated-shell .list-window>.data-view-toolbar .page-size>span{display:block!important;min-height:15px!important;margin-bottom:5px!important;line-height:15px!important}
.authenticated-shell .list-window>.data-view-toolbar .page-size{align-self:start!important;padding-top:0!important}
.authenticated-shell .list-window>.data-view-toolbar .view-switch{align-self:start!important;margin-top:20px!important;margin-bottom:0!important}
@media(max-width:699px){.authenticated-shell .list-window>.data-view-toolbar .view-switch{margin-top:0!important}}
@media(max-width:699px){.authenticated-shell .product-list>.search-bar{grid-template-columns:1fr!important;gap:10px!important}.authenticated-shell .product-list>.search-bar:after{display:none}.authenticated-shell .product-list>.search-bar .low-stock{min-height:38px}.authenticated-shell .product-list>.search-bar .search-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.authenticated-shell .product-list>.search-bar .search-actions button,.authenticated-shell .product-list>.search-bar .search-actions a{min-width:0!important;min-height:46px!important}}

/* Em cards, o grupo deve seguir a mesma margem dos demais campos. */
.authenticated-shell .product-list.view-cards tbody tr td:nth-child(4){margin-left:0!important;max-width:100%!important;overflow:visible!important;text-align:left!important;text-overflow:clip!important;white-space:normal!important;overflow-wrap:anywhere!important}

/* Cards de listas: o conteúdo cresce com títulos longos sem cortar os últimos campos. */
.authenticated-shell .list-window.view-cards tbody{align-items:start!important}
.authenticated-shell .sidebar-user .sidebar-user-label{margin:0 0 2px!important;color:var(--ec-muted)!important;font-size:9px!important;font-weight:800!important;letter-spacing:.08em!important;text-transform:uppercase}
.authenticated-shell .list-window.view-cards tbody tr:not(.empty-list){height:auto!important;min-height:180px!important;overflow:visible!important;align-content:flex-start!important;padding-bottom:20px!important;line-height:1.25!important}
.authenticated-shell .list-window.view-cards tbody tr:not(.empty-list) td{flex:0 0 auto!important;min-height:0!important;white-space:normal!important;overflow-wrap:break-word!important}
.authenticated-shell .list-window.view-cards tbody tr:not(.empty-list) td:nth-child(2){line-height:1.25!important;overflow-wrap:anywhere!important;word-break:normal!important}
@media(max-width:699px){.authenticated-shell .list-window.view-cards tbody tr:not(.empty-list){min-height:150px!important;padding-bottom:18px!important}}

/* Formulários: ações compactas e hierarquia consistente em todos os módulos. */
.authenticated-shell .legacy-form{max-width:980px!important;margin-inline:auto!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important}
.authenticated-shell .legacy-form .window-title{font-family:inherit!important}
.authenticated-shell .legacy-form fieldset{background:color-mix(in srgb,var(--ec-surface) 96%,var(--ec-primary))!important}
.authenticated-shell .legacy-form .command-bar{display:flex!important;justify-content:flex-start!important;gap:10px!important;max-width:980px!important}
.authenticated-shell .legacy-form .command-bar a,.authenticated-shell .legacy-form .command-bar button{width:auto!important;min-width:150px!important;padding-inline:22px!important;flex:0 0 auto!important}
.authenticated-shell .danger-zone{max-width:980px!important;margin-inline:auto!important}
.authenticated-shell .danger-zone button{width:auto!important;min-width:180px!important;padding-inline:22px!important}
.authenticated-shell .app-menu-head{padding-bottom:20px!important;border-bottom-color:color-mix(in srgb,var(--ec-primary) 22%,var(--ec-line))!important}
.authenticated-shell .app-menu-identity>span{background:linear-gradient(145deg,var(--ec-primary),color-mix(in srgb,var(--ec-primary) 55%,#10294b))!important;font-size:18px!important}
.authenticated-shell .app-menu-identity strong{font-size:18px!important;letter-spacing:-.02em!important}
.authenticated-shell .app-menu-identity small{max-width:300px!important;line-height:1.35!important}
.authenticated-shell .app-menu-grid a{background:color-mix(in srgb,var(--ec-surface) 94%,var(--ec-primary))!important;border-color:var(--ec-line)!important}
.authenticated-shell .app-menu-grid a:hover,.authenticated-shell .app-menu-grid a:focus{border-color:var(--ec-primary)!important;transform:translateY(-2px)!important;box-shadow:0 8px 20px #00000012!important}
.authenticated-shell .desktop-sidebar nav a:hover,.authenticated-shell .desktop-sidebar nav a:focus,.authenticated-shell .desktop-sidebar nav button:hover,.authenticated-shell .desktop-sidebar nav button:focus,.authenticated-shell .desktop-sidebar nav a:hover span,.authenticated-shell .desktop-sidebar nav button:hover span{background:color-mix(in srgb,var(--ec-primary) 22%,#0b1218)!important;color:#fff!important;text-shadow:0 1px 2px #000!important}
@media(min-width:700px){.authenticated-shell main.container>form.legacy-form:has(+ form.danger-zone)+form.danger-zone{position:relative!important;margin-top:-66px!important;margin-left:calc((100% - min(980px,100%)) / 2 + 320px)!important}}
@media(max-width:699px){.authenticated-shell .legacy-form .command-bar{display:grid!important;grid-template-columns:1fr 1.35fr!important}.authenticated-shell .legacy-form .command-bar a,.authenticated-shell .legacy-form .command-bar button,.authenticated-shell .danger-zone button{width:100%!important;min-width:0!important}}

/* Relatórios gerenciais */
.reports-page{max-width:1200px;margin:0 auto}.reports-header{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:22px}.reports-kicker{color:var(--ec-primary);font-size:11px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}.reports-header h1{margin:7px 0;color:var(--ec-text);font-size:clamp(30px,4vw,46px);letter-spacing:-.05em}.reports-header p{margin:0;color:var(--ec-muted)}.reports-actions button,.reports-filter button{min-height:42px;padding:0 16px;border:1px solid var(--ec-primary);border-radius:10px;background:var(--ec-primary);color:#fff;font-weight:800}.reports-filter{display:flex;align-items:end;gap:10px;margin-bottom:16px;padding:14px;border:1px solid var(--ec-line);border-radius:14px;background:var(--ec-surface)}.reports-filter label{display:grid;gap:5px;color:var(--ec-muted);font-size:11px;font-weight:800}.reports-filter input{min-height:40px;padding:0 10px;border:1px solid var(--ec-line);border-radius:8px;background:var(--ec-bg);color:var(--ec-text)}.report-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.report-kpis article,.report-panel,.reports-footer-note{border:1px solid var(--ec-line);border-radius:16px;background:var(--ec-surface);box-shadow:0 8px 24px #0000000a}.report-kpis article{min-width:0;padding:18px}.report-kpis span,.report-kpis small{display:block;color:var(--ec-muted);font-size:11px}.report-kpis strong{display:block;margin:12px 0 5px;color:var(--ec-text);font-size:25px}.reports-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:14px;margin-top:14px}.report-panel{min-width:0;min-height:340px;padding:18px;overflow:hidden}.report-panel header{display:flex;justify-content:space-between;gap:12px;min-width:0}.report-panel header span{color:var(--ec-primary);font-size:10px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.report-panel h2{margin:5px 0;color:var(--ec-text);font-size:20px;overflow-wrap:anywhere}.report-panel header b{color:var(--ec-muted);font-size:10px}.report-bars{display:flex;align-items:end;gap:8px;height:230px;margin-top:20px;padding-top:20px;border-bottom:1px solid var(--ec-line)}.report-bars>div{display:flex;min-width:0;flex:1;height:100%;flex-direction:column;align-items:center;justify-content:end;gap:6px}.report-bars small{color:var(--ec-muted);font-size:9px}.report-bars i{display:block;width:min(28px,70%);min-height:4px;border-radius:6px 6px 0 0;background:linear-gradient(180deg,var(--ec-primary),color-mix(in srgb,var(--ec-primary) 45%,var(--ec-surface)))}.report-bars em{color:var(--ec-muted);font-size:9px;font-style:normal}.report-table{display:grid;gap:5px;margin-top:18px;min-width:0}.report-table>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;padding:11px 0;border-bottom:1px solid var(--ec-line)}.report-table b{color:var(--ec-text);font-size:12px;overflow-wrap:anywhere}.report-table small{color:var(--ec-muted);font-size:10px}.report-table strong{grid-column:2;grid-row:1/3;color:var(--ec-text);font-size:12px}.report-empty{color:var(--ec-muted);overflow-wrap:anywhere}.reports-footer-note{display:flex;flex-wrap:wrap;gap:18px;margin-top:14px;padding:16px;color:var(--ec-muted);font-size:12px}.reports-footer-note span{font-weight:850;color:var(--ec-text)}.reports-footer-note b{font-weight:700}
@media(max-width:800px){.report-kpis{grid-template-columns:repeat(2,1fr)}.reports-grid{grid-template-columns:1fr}.reports-header{align-items:stretch;flex-direction:column}.reports-filter{align-items:stretch;flex-direction:column}}
@media print{.desktop-sidebar,.app-header,.reports-actions,.reports-filter{display:none!important}.authenticated-shell>.container{margin:0!important;width:100%!important;padding:0!important}.reports-page{max-width:none}.report-kpis article,.report-panel,.reports-footer-note{box-shadow:none}}

/* Ações do relatório: separação clara, foco visível e boa leitura em telas estreitas. */
.reports-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.reports-actions button,.reports-actions a{display:inline-flex;min-height:42px;align-items:center;justify-content:center;padding:0 16px;border:1px solid var(--ec-primary);border-radius:10px;background:var(--ec-primary);color:#fff;font-weight:800;text-decoration:none;white-space:nowrap}
.reports-actions a{border-color:var(--ec-line);background:var(--ec-surface);color:var(--ec-primary)}
.reports-actions button:hover,.reports-actions button:focus-visible,.reports-actions a:hover,.reports-actions a:focus-visible{border-color:var(--ec-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--ec-primary) 18%,transparent);outline:0}
@media(max-width:800px){.reports-actions{justify-content:flex-start}.reports-actions button,.reports-actions a{flex:1 1 140px}}
.reports-types{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.reports-types a{padding:10px 14px;border:1px solid var(--ec-line);border-radius:10px;background:var(--ec-surface);color:var(--ec-muted);font-size:12px;font-weight:800;text-decoration:none}.reports-types a:hover,.reports-types a.active{border-color:var(--ec-primary);background:color-mix(in srgb,var(--ec-primary) 12%,var(--ec-surface));color:var(--ec-primary)}.report-section{margin-top:16px}.report-section>h2{margin:0;color:var(--ec-text);font-size:24px}.report-section>p{margin:5px 0 14px;color:var(--ec-muted)}.report-table-wide{max-width:none;padding:18px;border:1px solid var(--ec-line);border-radius:16px;background:var(--ec-surface);box-shadow:0 8px 24px #0000000a}
.report-drilldown{color:inherit;text-decoration:none;border-bottom:1px dashed color-mix(in srgb,var(--ec-primary) 55%,transparent);transition:color .15s ease,border-color .15s ease}.report-drilldown:hover,.report-drilldown:focus-visible{color:var(--ec-primary);border-bottom-color:var(--ec-primary)}
.order-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.order-actions form{margin:0}.order-actions button{min-height:38px;padding:0 14px;border-radius:9px;font-weight:800}.order-actions .btn-danger{border:1px solid #dc3545;background:transparent;color:#dc3545}.order-actions .btn-danger:hover,.order-actions .btn-danger:focus-visible{background:#dc3545;color:#fff}@media(max-width:699px){.order-actions{justify-content:stretch}.order-actions form,.order-actions button{flex:1}}
.sidebar-user-avatar,.user-avatar-thumb,.user-avatar-preview img{object-fit:cover}.sidebar-user-avatar{width:42px;height:42px;flex:0 0 42px;border-radius:50%;border:2px solid color-mix(in srgb,var(--ec-primary) 55%,#fff)}.user-avatar-thumb,.user-avatar-initial{display:grid;width:32px;height:32px;place-items:center;border-radius:50%;background:var(--ec-primary);color:#fff;font-size:12px;font-weight:800}.user-avatar-preview img{width:68px;height:68px;border-radius:16px;border:1px solid var(--ec-line)}
.commercial-workspace{max-width:1120px;margin:0 auto;padding:2rem 0 3rem}.commercial-hero{display:flex;justify-content:space-between;gap:2rem;align-items:end;padding:2rem;border:1px solid var(--ec-line);border-radius:1.5rem;background:linear-gradient(135deg,#0f2b58,#176ee9);color:#fff}.commercial-hero span,.commercial-panel header span{font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;opacity:.74}.commercial-hero h1{margin:.35rem 0;font-size:clamp(1.7rem,4vw,3rem);max-width:700px}.commercial-hero p{margin:0;opacity:.86;max-width:650px}.commercial-actions{display:flex;gap:.65rem;flex-wrap:wrap}.commercial-actions a,.commercial-filter button{padding:.75rem 1rem;border-radius:.75rem;background:#fff;color:#124a9f;font-weight:800;text-decoration:none;border:0}.commercial-filter{margin:1rem 0;display:flex;gap:.75rem;align-items:end;padding:1rem;border:1px solid var(--ec-line);border-radius:1rem;background:var(--ec-surface)}.commercial-filter label{display:grid;gap:.3rem;font-size:.78rem;font-weight:800;color:var(--ec-muted)}.commercial-filter input{min-height:2.7rem;padding:.45rem .6rem;border:1px solid var(--ec-line);border-radius:.65rem;background:var(--ec-bg);color:var(--ec-text)}.commercial-filter button{background:var(--ec-primary);color:#fff}.commercial-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}.commercial-kpis article,.commercial-panel{border:1px solid var(--ec-line);border-radius:1rem;background:var(--ec-surface);padding:1.2rem}.commercial-kpis span,.commercial-kpis small{display:block;color:var(--ec-muted)}.commercial-kpis strong{display:block;margin:.4rem 0;font-size:1.6rem}.commercial-kpis .negative{color:#d33}.commercial-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin-top:1rem}.commercial-panel header{display:flex;justify-content:space-between;gap:1rem;align-items:start;margin-bottom:.8rem}.commercial-panel h2{margin:.25rem 0 0;font-size:1.1rem}.commercial-panel header a{color:var(--ec-primary);font-weight:700;text-decoration:none}.commercial-wide{grid-column:1/-1}.commercial-table a,.commercial-ranking>div{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:.7rem;align-items:center;padding:.8rem 0;border-top:1px solid var(--ec-line);text-decoration:none;color:var(--ec-text)}.commercial-table b,.commercial-ranking b{display:block}.commercial-table small,.commercial-ranking small{color:var(--ec-muted)}.commercial-table span{font-size:.82rem;color:var(--ec-muted)}.commercial-table>a:hover{color:var(--ec-primary)}.commercial-ranking>div{grid-template-columns:1fr auto}.commercial-ranking strong{text-align:right}.commercial-empty{color:var(--ec-muted);padding:.8rem 0}.commercial-roadmap{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap;margin-top:1rem;padding:1rem;border-radius:1rem;background:color-mix(in srgb,var(--ec-primary) 9%,transparent);color:var(--ec-muted)}.commercial-roadmap b{color:var(--ec-text)}.commercial-roadmap span{padding:.35rem .6rem;background:var(--ec-surface);border:1px solid var(--ec-line);border-radius:999px;font-size:.8rem}@media(max-width:760px){.commercial-workspace{padding:1rem 0 2rem}.commercial-hero{display:block;padding:1.35rem}.commercial-actions{margin-top:1rem}.commercial-filter{display:grid;grid-template-columns:1fr 1fr}.commercial-filter button{grid-column:1/-1}.commercial-kpis,.commercial-grid{grid-template-columns:1fr}.commercial-wide{grid-column:auto}.commercial-table a{grid-template-columns:1fr 1fr}.commercial-table a>strong{grid-column:2}.commercial-table span{display:block}.commercial-ranking>div{grid-template-columns:1fr auto}}

/* Vendas e pedidos */
.sales-workspace{max-width:1120px!important;margin-inline:auto!important}.sales-workspace .page-header{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:18px}.sales-workspace .page-header span{color:var(--ec-primary);font-size:11px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.sales-workspace .page-header h1{margin:5px 0;font-size:clamp(30px,4vw,44px);letter-spacing:-.05em}.sales-workspace .page-header p{margin:0;color:var(--ec-muted)}.sales-workspace .search-bar{padding:16px;border:1px solid var(--ec-line);border-radius:14px;background:var(--ec-surface)}.sales-workspace .search-bar label{display:block;margin-bottom:7px;color:var(--ec-muted);font-size:12px;font-weight:800}.sales-workspace .search-bar>div{display:flex;gap:10px}.sales-workspace .search-bar input{min-height:44px;flex:1;padding:0 13px;border:1px solid var(--ec-line);border-radius:10px;background:var(--ec-bg);color:var(--ec-text)}.sales-workspace .search-bar button,.sales-workspace .btn-secondary{min-height:44px;padding:0 16px;border:1px solid var(--ec-primary);border-radius:10px;background:var(--ec-primary);color:#fff;font-weight:800;text-decoration:none}.sales-workspace .data-view-toolbar{display:flex!important;justify-content:space-between;margin:12px 0;padding:12px 0!important;border:0!important;background:transparent!important;box-shadow:none!important}.sales-list{display:grid;gap:10px}.sales-list article{display:grid;grid-template-columns:minmax(0,1fr) 120px 150px;gap:16px;align-items:center;padding:18px;border:1px solid var(--ec-line);border-radius:14px;background:var(--ec-surface);transition:border-color .16s,transform .16s}.sales-list article:hover{border-color:var(--ec-primary);transform:translateY(-1px)}.sales-list small,.sales-list p,.sales-list span{color:var(--ec-muted);font-size:12px}.sales-list h2{margin:5px 0;font-size:17px}.sales-list p{margin:0}.sales-list article>div:nth-child(2){display:grid;gap:4px}.sales-list article>strong{text-align:right;font-size:18px}@media(max-width:700px){.sales-workspace .page-header{align-items:stretch;flex-direction:column}.sales-workspace .search-bar>div{flex-direction:column}.sales-workspace .data-view-toolbar{align-items:start;flex-direction:column;gap:4px}.sales-list article{grid-template-columns:1fr;gap:10px}.sales-list article>strong{text-align:left}}
.sales-workspace>header,.sales-workspace>form,.sales-workspace>.data-view-toolbar,.sales-workspace>.sales-list,.sales-workspace>.commercial-roadmap{width:100%;box-sizing:border-box}.sales-list>a{display:block;color:inherit;text-decoration:none}.sales-list>a:hover article{border-color:var(--ec-primary);box-shadow:0 10px 24px color-mix(in srgb,var(--ec-primary) 12%,transparent)}

/* Segurança da conta: fluxo curto, legível e consistente com os formulários do shell. */
.account-security-page{max-width:980px;margin:0 auto;padding:2rem 0 3rem}.account-security-page .page-header{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}.account-security-page .page-header>div>span{color:var(--ec-primary);font-size:.72rem;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.account-security-page .page-header h1{margin:.35rem 0;font-size:clamp(2rem,4vw,3rem);letter-spacing:-.05em}.account-security-page .page-header p{margin:0;color:var(--ec-muted)}.account-security-page .page-header a{white-space:nowrap}.account-security-form{max-width:none!important}.account-security-form .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.account-security-form .command-bar{justify-content:flex-end!important}.account-security-form .command-bar a,.account-security-form .command-bar button{min-width:150px!important}@media(max-width:700px){.account-security-page{padding:1rem 0 2rem}.account-security-page .page-header{align-items:stretch;flex-direction:column}.account-security-form .form-grid{grid-template-columns:1fr}.account-security-form .command-bar{grid-template-columns:1fr!important}}

/* Novos módulos: mesma superfície, hierarquia e densidade do shell moderno. */
.authenticated-shell .stock-movements-page,.authenticated-shell .stock-movement-form{max-width:1120px;margin-inline:auto}.authenticated-shell .stock-movements-page .window-title,.authenticated-shell .stock-movement-form .window-title{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:clamp(30px,4vw,44px);letter-spacing:-.05em}.authenticated-shell .stock-movements-page .search-bar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:end;gap:12px;padding:16px;border:1px solid var(--ec-line);border-radius:14px;background:var(--ec-surface)}.authenticated-shell .stock-movements-page .search-bar label{display:grid;gap:7px;color:var(--ec-muted);font-size:12px;font-weight:800}.authenticated-shell .stock-movements-page .search-bar input{min-height:44px;padding:0 13px;border:1px solid var(--ec-line);border-radius:10px;background:var(--ec-bg);color:var(--ec-text)}.authenticated-shell .stock-movements-page .search-bar button,.authenticated-shell .stock-movements-page .search-bar a{min-height:44px;padding:0 16px;border:1px solid var(--ec-primary);border-radius:10px;background:var(--ec-primary);color:#fff;font-weight:800;text-decoration:none}.authenticated-shell .stock-movements-page table{overflow:hidden;border:1px solid var(--ec-line);border-radius:14px;background:var(--ec-surface)}.authenticated-shell .stock-movements-page tbody tr:hover{background:color-mix(in srgb,var(--ec-primary) 8%,var(--ec-surface))}.authenticated-shell .stock-movement-form{max-width:980px}.authenticated-shell .stock-movement-form .command-bar{display:flex;justify-content:flex-start;gap:10px}
.authenticated-shell .settlement-form{display:grid;gap:8px;min-width:310px;padding:9px;border:1px solid var(--ec-line);border-radius:10px;background:var(--ec-bg)}.authenticated-shell .settlement-fields{display:grid;grid-template-columns:repeat(4,minmax(72px,1fr));gap:6px}.authenticated-shell .settlement-fields label{display:grid;gap:4px;color:var(--ec-muted);font-size:10px;font-weight:800}.authenticated-shell .settlement-fields input{width:100%;min-width:0;min-height:34px;padding:4px 6px;border:1px solid var(--ec-line);border-radius:7px;background:var(--ec-surface);color:var(--ec-text);font-size:12px}.authenticated-shell .settlement-form button{justify-self:start;min-height:34px;padding-inline:13px}@media(max-width:699px){.authenticated-shell .settlement-form{min-width:0}.authenticated-shell .settlement-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.authenticated-shell .stock-movements-page .search-bar{grid-template-columns:1fr}.authenticated-shell .stock-movements-page .search-bar button,.authenticated-shell .stock-movements-page .search-bar a{width:100%}.authenticated-shell .stock-movements-page{overflow-x:auto}.authenticated-shell .stock-movement-form .command-bar{display:grid;grid-template-columns:1fr}.authenticated-shell .stock-movement-form .command-bar>*{width:100%!important}}
.sales-page-actions{display:flex;gap:8px;flex-wrap:wrap}.sales-order-form{max-width:980px!important;margin-inline:auto!important}.sales-order-form .form-grid{grid-template-columns:1fr 1fr}.sales-order-form .order-line{display:grid;grid-template-columns:minmax(0,1fr) 130px 150px;gap:8px;margin-bottom:8px}.sales-order-form .order-line select,.sales-order-form .order-line input{min-height:42px;padding:0 10px;border:1px solid var(--ec-line);border-radius:9px;background:var(--ec-bg);color:var(--ec-text)}.sales-order-form .btn-secondary{min-height:40px;padding:0 14px;border:1px solid var(--ec-primary);border-radius:9px;background:color-mix(in srgb,var(--ec-primary) 10%,var(--ec-surface));color:var(--ec-primary);font-weight:800}@media(max-width:700px){.sales-page-actions,.sales-order-form .form-grid,.sales-order-form .order-line{display:grid;grid-template-columns:1fr}}
.skip-link{position:fixed;left:1rem;top:-5rem;z-index:2000;padding:.7rem 1rem;border-radius:.65rem;background:#1267ee;color:#fff;font-weight:750;text-decoration:none;transition:top .15s ease}.skip-link:focus{top:1rem;outline:3px solid #9bc4ff;outline-offset:2px}main.container:focus{outline:2px solid transparent}.pwa-install-button{position:fixed;right:1.25rem;bottom:1.25rem;z-index:1000;border:1px solid #3b82f6;border-radius:999px;padding:.7rem 1rem;background:#1267ee;color:#fff;font:inherit;font-weight:750;box-shadow:0 12px 28px rgba(18,103,238,.28);cursor:pointer}.pwa-install-button:hover{filter:brightness(1.08)}
.authenticated-shell .financial-renegotiation-form{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin-top:8px;padding:9px;border:1px solid var(--ec-line);border-radius:10px;background:color-mix(in srgb,var(--ec-primary) 5%,var(--ec-surface))}.authenticated-shell .financial-renegotiation-form label{display:grid;gap:4px;color:var(--ec-muted);font-size:10px;font-weight:800}.authenticated-shell .financial-renegotiation-form input{width:112px;min-height:34px;padding:5px 7px;border:1px solid var(--ec-line);border-radius:7px;background:var(--ec-bg);color:var(--ec-text);font:600 12px inherit}.authenticated-shell .financial-renegotiation-form button{min-height:34px;padding:5px 10px}.authenticated-shell .financial-renegotiation-form input:focus{outline:2px solid var(--ec-primary);border-color:var(--ec-primary)}
