/* Correções de scroll horizontal e área administrativa. */
.table-scroll{position:relative;isolation:isolate}
.dre-table{border-collapse:separate;border-spacing:0}
.dre-table th,.dre-table td{background:#fff}
.dre-table th{position:sticky;top:0;z-index:4}
.dre-table th:first-child,.dre-table td:first-child{background:#fff;z-index:3;box-shadow:2px 0 0 #d1d5db}
.dre-table th:first-child{z-index:5;background:#f3f4f6}
.dre-table tr.result td{background:#eff6ff}
.dre-table tr.result td:first-child{background:#eff6ff}
.dre-table tr.section td,.dre-table tr.section td:first-child{background:#f3f4f6}
.dre-table tr.manual-row td:first-child{background:#f3f4f6}
.remove-line{border:0;background:transparent;color:var(--red);font-size:16px;cursor:pointer;vertical-align:middle}
.admin-table .dre-table th,.admin-table .dre-table td{white-space:nowrap}
.admin-table .dre-table td:first-child{min-width:170px}
.admin-table select,.admin-table .btn{font-size:11px}
.template-name{border:1px solid var(--line);border-radius:6px;padding:7px;font-weight:700;min-width:260px}
.rule header{gap:12px}
.visual-editor-list{display:grid;gap:16px;margin-top:18px}.rule-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.editor-table{width:100%;border-collapse:collapse;font-size:12px}.editor-table th,.editor-table td{padding:8px;border-bottom:1px solid var(--rule-soft);text-align:left;background:#fff}.editor-table th{font-size:10px;text-transform:uppercase;color:var(--muted);white-space:nowrap}.editor-table input,.editor-table select{width:100%;padding:7px;border:1px solid var(--line);border-radius:6px;background:#fff}.visual-template{overflow:hidden}.visual-template .table-scroll{margin-top:12px}
.rule-field-label{display:flex;align-items:center;gap:6px}.tax-tooltip{position:relative;display:inline-flex}.tax-tooltip-trigger{width:17px;height:17px;padding:0;border:1px solid #9aa9a0;border-radius:50%;background:#fff;color:#374151;font:700 11px/15px var(--font-mono,monospace);cursor:help}.tax-tooltip-panel{position:absolute;z-index:20;left:0;bottom:calc(100% + 8px);display:none;width:min(310px,75vw);padding:12px;border:1px solid var(--line);border-radius:9px;background:#111827;color:#f7fbf8;box-shadow:0 10px 24px rgba(25,55,41,.22);font-size:12px;font-weight:400;line-height:1.45}.tax-tooltip-panel strong,.tax-tooltip-panel span,.tax-tooltip-panel small{display:block}.tax-tooltip-panel span{margin-top:5px}.tax-tooltip-panel small{margin-top:8px;color:#d1d5db}.tax-tooltip-panel a{color:#fff;text-decoration:underline}.tax-tooltip:hover .tax-tooltip-panel,.tax-tooltip:focus-within .tax-tooltip-panel{display:block}

/* Identidade visual G360: dourado, azul, grafite e cinza claro. */
:root{--bg:#f3f4f6;--surface:#fff;--ink:#111827;--muted:#6b7280;--line:#d1d5db;--green:#2563eb;--green-pale:#eff6ff;--navy:#111827;--amber:#9b5c00;--blue:#2563eb}.auth-copy,.topbar{background:#111827}.brand-g360{display:flex;align-items:center;line-height:0}.brand-g360 img{display:block;width:104px;height:42px;object-fit:contain;object-position:left center}.topbar .brand-g360{min-width:112px}.auth-copy .brand-g360 img{width:154px;height:58px}.auth-copy p{color:#d1d5db}.feature-list{color:#f3f4f6}.feature-list span,.auth-switch,.eyebrow{color:#2563eb}.btn{background:#111827;border-radius:7px}.btn.success{background:#2563eb}.btn.secondary{background:#fff;color:#111827;border-color:#d1d5db}.field input:focus,.field select:focus{border-color:#2563eb;box-shadow:0 0 0 3px #eff6ff}.main-nav button{color:#d1d5db}.main-nav button.active,.main-nav button:hover{box-shadow:inset 0 -3px #2563eb}.plan-card{background:linear-gradient(135deg,#111827 8%,#111827 55%,#2563eb 130%)}.plan-card p{color:#e5e7eb}.plan-card .btn{color:#111827}.company-row:hover{border-color:#2563eb}.company-icon{background:#eff6ff;color:#2563eb}.status.pro{color:#1d4ed8;background:#eff6ff}.tabs button.active{color:#2563eb;border-color:#2563eb}.dre-table td input:focus{border-color:#2563eb}.dre-table tr.result,.dre-table tr.result td:first-child{background:#eff6ff}.compare .regime.best{border-color:#2563eb;background:#eff6ff}.bar i{background:#2563eb}.insight{border-left-color:#2563eb}.modal{background:#0009}.tax-tooltip-panel{background:#111827}.tax-tooltip-trigger{color:#2563eb;border-color:#2563eb}@media(max-width:480px){.topbar .brand-g360 img{width:84px;height:34px}.topbar .brand-g360{min-width:84px}}
