:root { color-scheme: light; --ink: #19352f; --muted: #687872; --green: #16624e; --border: #e1e8e3; --surface: #fff; --background: #f5f7f4; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); font-family: Inter, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #68b99a; outline-offset: 4px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 220px; display: flex; flex-direction: column; padding: 31px 22px 24px; border-right: 1px solid var(--border); background: #fff; }
.brand { display: flex; gap: 11px; align-items: center; font-size: 26px; font-weight: 650; letter-spacing: -1px; line-height: 1; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 39px; border-radius: 11px 3px 11px 3px; background: var(--green); color: #fff; font-size: 24px; }
.brand-subtitle { display: block; margin-top: 7px; font-size: 9px; font-weight: 600; letter-spacing: 3.5px; color: var(--muted); }
nav { margin-top: 48px; }
.nav-active { display: flex; align-items: center; gap: 13px; padding: 12px; background: #eaf3ed; color: #17573f; border-radius: 7px; font-weight: 600; }
.nav-active > span { font-size: 21px; line-height: 1; }
.sidebar-footer { margin-top: auto; display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.status-dot { height: 6px; width: 6px; border-radius: 50%; background: #6fa484; }
.workspace { margin-left: 220px; }
.topbar { height: 76px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding: 0 44px; font-size: 12px; color: var(--muted); background: #fff; }
.topbar-product { color: #86928c; }
main { max-width: 1420px; margin: 0 auto; padding: 44px 44px 28px; }
.eyebrow { margin: 0 0 9px; color: var(--green); font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(27px, 3vw, 36px); font-weight: 600; letter-spacing: -1.1px; }
.page-heading > p:last-child { color: var(--muted); margin: 10px 0 28px; max-width: 710px; }
h2 { font-size: 16px; font-weight: 600; margin: 0; letter-spacing: -.2px; }
.upload-panel { padding: 26px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.upload-heading, .items-heading, .result-heading, .detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.upload-heading > span, .items-heading > span { color: var(--muted); font-size: 12px; }
.file-field { position: relative; display: flex; gap: 20px; align-items: center; min-height: 142px; border: 1px dashed #aec8b7; background: #fafcf9; border-radius: 8px; padding: 25px 32px; margin: 20px 0; cursor: pointer; transition: background .15s, border-color .15s; }
.file-field:hover, .file-field.dragover, .file-field:focus-within { background: #eff6ef; border-color: var(--green); }
.file-icon { font-size: 26px; font-weight: 400; width: 49px; height: 49px; display: grid; place-items: center; border: 1px solid #d9e6dc; border-radius: 10px; background: #fff; color: var(--green); flex-shrink: 0; }
.file-field strong { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
#file-description { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.file-field input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-actions { display: flex; align-items: center; gap: 21px; flex-wrap: wrap; }
.primary-button { border: 1px solid var(--green); background: var(--green); color: #fff; font-weight: 600; border-radius: 7px; padding: 11px 19px; min-width: 162px; display: flex; align-items: center; justify-content: space-between; gap: 27px; }
.primary-button:hover:enabled { background: #104e3e; }
.text-button { padding: 8px 0; background: transparent; border: 0; color: var(--green); font-size: 12px; font-weight: 600; }
.text-button:hover { text-decoration: underline; }
.feedback { padding: 12px 14px; margin: 20px 0 0; border-radius: 6px; background: #eff5ef; font-size: 13px; }
.feedback.error { background: #fff0ec; color: #91402e; }
.result-heading { margin: 30px 0 17px; }
.result-heading .eyebrow { margin-bottom: 5px; }
.result-heading h2 { font-size: 23px; letter-spacing: -.6px; }
.reading-badge { padding: 5px 11px; color: #486b55; background: #eaf0e9; font-size: 11px; border-radius: 5px; white-space: nowrap; }
.note-summary { display: grid; grid-template-columns: 1fr 1fr 1.3fr 1fr; border: 1px solid var(--border); background: #fff; border-radius: 9px; }
.summary-field { padding: 17px 21px; border-right: 1px solid var(--border); }
.summary-field:last-child { border: 0; }
.field-label { font-size: 11px; color: var(--muted); display: block; margin-bottom: 5px; }
.field-value { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px 2px; }
.party-name { font-weight: 500; font-size: 12px; }
.party-document { font-size: 12px; color: var(--muted); margin-top: 3px; }
.note-key { grid-column: 1 / -1; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.items-panel { border: 1px solid var(--border); background: #fff; border-radius: 9px; overflow: hidden; }
.items-heading { padding: 19px 22px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 940px; font-size: 12px; }
th { background: #f7f9f6; text-align: left; font-size: 10px; font-weight: 500; color: #697a6f; white-space: nowrap; padding: 12px 16px; border-block: 1px solid var(--border); }
td { padding: 19px 16px; vertical-align: top; border-bottom: 1px solid #edf0ed; }
tr:last-child td { border-bottom: 0; }
tbody tr.selected { background: #f0f6ef; }
.product-cell { min-width: 225px; max-width: 330px; }
.product-name { font-weight: 600; font-size: 12px; overflow-wrap: anywhere; }
.cell-secondary { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.code { font-variant-numeric: tabular-nums; }
td .text-button { padding: 0; }
.group-note { display: block; color: #8b7053; font-size: 10px; margin-top: 6px; }
#item-details { margin-top: 23px; }
.detail-heading { margin-bottom: 13px; }
.tax-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.tax-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.tax-card h3 { font-size: 13px; margin: 0 0 15px; font-weight: 600; }
.tax-card dl { margin: 0; }
.tax-field { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 6px 0; font-size: 12px; }
.tax-field dt { color: var(--muted); }
.tax-field dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.result-note, .privacy-note { color: var(--muted); font-size: 11px; line-height: 1.7; }
.result-note { margin-top: 16px; }
.privacy-note { margin: 20px 2px; }
.visually-hidden { position: fixed; top: 0; left: 0; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.comparison-panel { margin: 4px 0 24px; padding: 22px; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.comparison-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.comparison-heading p { color: var(--muted); font-size: 12px; margin: 7px 0 0; }
.comparison-heading button { white-space: nowrap; }
.comparison-summary { margin-top: 23px; display: flex; gap: 8px; flex-direction: column; padding: 15px 18px; border-radius: 7px; background: #edf4ee; color: var(--green); }
.comparison-summary.divergente { background: #fff2e7; color: #854620; }
.comparison-summary.inconclusivo, .comparison-summary.simulacao { background: #f8f3de; color: #74601b; }
.comparison-summary.versao { background: #fbe7e3; color: #8a2a17; border-left: 4px solid #b3412b; }
.comparison-summary span { font-size: 12px; }
.comparison-summary + .comparison-summary { margin-top: 8px; }
.engine-version { margin: 13px 0 23px; color: var(--muted); font-size: 11px; }
.comparison-notice { font-size: 12px; line-height: 1.65; color: var(--muted); }
.comparison-item { margin: 20px 0; }
.comparison-item h3 { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.comparison-item-context { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.comparison-table { min-width: 720px; }
.comparison-table th { white-space: normal; }
.comparison-table td:first-child { min-width: 205px; }
.difference-status { color: #a34d25; font-size: 11px; font-weight: 600; }
.match-status { color: var(--green); font-size: 11px; }
.matching-fields { margin: 13px 0; }
.matching-fields summary, .comparison-context summary { cursor: pointer; color: var(--green); font-size: 12px; padding: 9px 0; }
.comparison-context { padding-top: 10px; border-top: 1px solid var(--border); }
.comparison-context p { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 900px) { .comparison-heading { align-items: flex-start; flex-direction: column; } .comparison-panel { padding: 18px 14px; } }
@media (min-width: 1600px) { main { padding-top: 55px; } }
@media (max-width: 1050px) { .sidebar { width: 185px; padding-inline: 16px; } .workspace { margin-left: 185px; } main { padding: 32px 26px; } .topbar { padding-inline: 26px; } .upload-heading { flex-wrap: wrap; gap: 6px; } .tax-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .sidebar { position: static; width: auto; padding: 18px 20px; flex-direction: row; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--border); } .brand { font-size: 23px; } .brand-mark { width: 31px; height: 35px; } .sidebar nav { display: none; } .sidebar-footer { margin: 0; font-size: 10px; } .workspace { margin-left: 0; } .topbar { height: 48px; padding-inline: 20px; } main { padding: 28px 18px; } .page-heading > p:last-child { font-size: 13px; } .upload-panel { padding: 20px 17px; } .file-field { padding: 22px 17px; gap: 13px; } .file-icon { width: 38px; height: 42px; } .file-field strong { font-size: 13px; } #file-description { font-size: 11px; } .note-summary { grid-template-columns: 1fr 1fr; } .summary-field { padding: 14px; } .summary-field:nth-child(2) { border-right: 0; } .summary-field:nth-child(-n+2) { border-bottom: 1px solid var(--border); } .field-value { font-size: 12px; } .parties { grid-template-columns: 1fr; gap: 13px; } .detail-heading { align-items: flex-start; } }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-panel { width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 32px; }
.login-panel .brand { margin-bottom: 24px; }
.login-panel h1 { font-size: 22px; margin: 0 0 6px; }
.login-panel p { margin: 0 0 20px; color: var(--muted); }
.login-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-weight: 600; font-size: 13px; }
.login-field input { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--border); border-radius: 7px; }
.login-panel .primary-button { width: 100%; }

