@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/lib/inter/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/lib/inter/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Cada produto WTech tem um único acento. O do Juris é o latão (--jr-brand); cores de estado ficam separadas dele. */
:root, [data-bs-theme="dark"] {
  --jr-bg: #0a0c11; --jr-surface: #10131a; --jr-surface-2: #171b24; --jr-line: #242934; --jr-line-strong: #333a47; --jr-text: #e8eaef; --jr-muted: #a0a7b5;
  --jr-brand: #d9b777; --jr-accent: #d9b777; --jr-accent-hover: #e6c88f; --jr-on-accent: #1a1408; --jr-info: #7aa7ff; --jr-violet: #a48bfa; --jr-hl: rgba(217, 183, 119, .3); --jr-hl-line: #d9b777; --jr-search: rgba(164, 139, 250, .3);
  --jr-low: #6fb7a8; --jr-mid: #e8c547; --jr-high: #f0883e; --jr-crit: #f4685f; --jr-sheet: #2a2f3a; --jr-shadow: 0 16px 48px rgba(0, 0, 0, .5);
  --bs-body-bg: var(--jr-bg); --bs-body-color: var(--jr-text); --bs-border-color: var(--jr-line); --bs-secondary-color: var(--jr-muted); --bs-link-color-rgb: 217, 183, 119; --bs-link-hover-color-rgb: 230, 200, 143;
  --bs-tertiary-bg: var(--jr-surface-2);
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --bs-body-font-size: .9375rem;
}
[data-bs-theme="light"] {
  --jr-bg: #f7f6f3; --jr-surface: #ffffff; --jr-surface-2: #f0eee9; --jr-line: #e2dfd8; --jr-line-strong: #cbc7bd; --jr-text: #1a1c22; --jr-muted: #5a5f6b;
  --jr-brand: #86622a; --jr-accent: #86622a; --jr-accent-hover: #6f5021; --jr-on-accent: #ffffff; --jr-info: #2a5bc4; --jr-violet: #6741d9; --jr-hl: rgba(134, 98, 42, .22); --jr-hl-line: #86622a; --jr-search: rgba(103, 65, 217, .2);
  --jr-low: #1f7a68; --jr-mid: #946800; --jr-high: #b5540f; --jr-crit: #c8332a; --jr-sheet: #d9dce3; --jr-shadow: 0 16px 48px rgba(30, 28, 20, .16);
  --bs-body-bg: var(--jr-bg); --bs-body-color: var(--jr-text); --bs-border-color: var(--jr-line); --bs-secondary-color: var(--jr-muted); --bs-link-color-rgb: 134, 98, 42; --bs-link-hover-color-rgb: 111, 80, 33;
}
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -.015em; }
a { text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--jr-brand); outline-offset: 2px; }
.mono { font-variant-numeric: tabular-nums; font-size: .875rem; white-space: nowrap; }
.btn { --bs-btn-border-radius: 8px; font-weight: 500; }
.btn-sm { --bs-btn-border-radius: 8px; }
.btn-primary { --bs-btn-color: var(--jr-on-accent); --bs-btn-hover-color: var(--jr-on-accent); --bs-btn-active-color: var(--jr-on-accent); --bs-btn-disabled-color: var(--jr-on-accent); --bs-btn-bg: var(--jr-accent); --bs-btn-border-color: var(--jr-accent); --bs-btn-hover-bg: var(--jr-accent-hover); --bs-btn-hover-border-color: var(--jr-accent-hover); --bs-btn-active-bg: var(--jr-accent-hover); --bs-btn-active-border-color: var(--jr-accent-hover); --bs-btn-disabled-bg: var(--jr-accent); --bs-btn-disabled-border-color: var(--jr-accent); }
.btn-outline-secondary { --bs-btn-color: var(--jr-text); --bs-btn-border-color: var(--jr-line-strong); --bs-btn-hover-bg: var(--jr-surface-2); --bs-btn-hover-color: var(--jr-text); --bs-btn-hover-border-color: var(--jr-line-strong); --bs-btn-active-bg: var(--jr-surface-2); --bs-btn-active-color: var(--jr-text); --bs-btn-active-border-color: var(--jr-line-strong); --bs-btn-disabled-color: var(--jr-muted); --bs-btn-disabled-border-color: var(--jr-line); }
.btn svg, .icon-btn svg { width: 16px; height: 16px; vertical-align: -3px; }
.form-control, .form-select { background-color: var(--jr-surface-2); border-color: var(--jr-line); color: var(--jr-text); border-radius: 8px; }
.form-control:focus, .form-select:focus { background-color: var(--jr-surface-2); color: var(--jr-text); border-color: var(--jr-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--jr-brand) 22%, transparent); }
.form-control::placeholder { color: var(--jr-muted); }
input[type="search"].form-control { padding-left: 34px; background-repeat: no-repeat; background-position: 11px center; background-size: 15px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a919f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E"); }
.table { --bs-table-bg: transparent; --bs-table-hover-bg: var(--jr-surface-2); --bs-table-color: var(--jr-text); --bs-table-hover-color: var(--jr-text); --bs-table-border-color: var(--jr-line); }
.table th { color: var(--jr-muted); font-weight: 500; font-size: .8125rem; white-space: nowrap; }
.table a:not(.btn) { color: var(--jr-text); text-decoration: none; font-weight: 500; }
.table a:not(.btn):hover { color: var(--jr-brand); text-decoration: underline; }
.cell-hint { color: var(--jr-muted); font-size: .75rem; margin-top: 2px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--jr-surface); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Shell */
.app-shell { display: flex; height: 100vh; }
.sidebar { width: 264px; flex: none; display: flex; flex-direction: column; background: var(--jr-surface); border-right: 1px solid var(--jr-line); transition: width .15s ease; overflow: hidden; }
.sidebar-brand, .auth-brand { display: flex; align-items: center; gap: 10px; }
.sidebar-brand { height: 56px; padding: 0 16px; flex: none; white-space: nowrap; color: var(--jr-text); text-decoration: none; }
.sidebar-brand:hover { color: var(--jr-text); }
.brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--jr-accent); color: var(--jr-on-accent); }
.brand-mark svg { width: 16px; height: 16px; }
.brand-name { font-size: .95rem; }
.brand-name { font-weight: 500; } .brand-name strong { color: var(--jr-brand); font-weight: 650; }
.sidebar-nav { flex: 1; overflow: hidden auto; padding: 4px 8px; }
.nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sidebar-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-item { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; color: var(--jr-muted); text-decoration: none; font-size: .875rem; white-space: nowrap; margin-bottom: 2px; }
.nav-item svg { width: 17px; height: 17px; flex: none; }
a.nav-item:hover { background: var(--jr-surface-2); color: var(--jr-text); }
.nav-item.is-active { background: var(--jr-surface-2); color: var(--jr-text); box-shadow: inset 2px 0 0 var(--jr-brand); }
.nav-item.is-disabled { opacity: .62; cursor: not-allowed; }
.nav-tag { margin-left: auto; flex: none; font-size: .75rem; color: var(--jr-muted); font-variant-numeric: tabular-nums; }
.nav-tag.is-alert { min-width: 20px; padding: 0 6px; border-radius: 999px; text-align: center; font-weight: 600; color: var(--jr-crit); background: color-mix(in srgb, var(--jr-crit) 16%, transparent); }
.nav-tag[hidden] { display: none; }
.sidebar-toggle:hover { color: var(--jr-text); }
.sidebar-toggle svg { width: 17px; height: 17px; flex: none; transition: transform .15s ease; }
.sidebar-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 40; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 56px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--jr-line); background: var(--jr-surface); }
.topbar-org { display: flex; align-items: center; gap: 8px; color: var(--jr-muted); }
.topbar-org svg { width: 16px; height: 16px; flex: none; }
.topbar-org select { max-width: 260px; }
.topbar-spacer { flex: 1; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: 6px; background: none; color: var(--jr-muted); text-decoration: none; }
.icon-btn:hover { background: var(--jr-surface-2); color: var(--jr-text); }
.icon-btn.is-danger:hover { color: var(--jr-crit); }
.page { flex: 1; overflow-y: auto; padding: 24px; outline: 0; }
.page > * { max-width: 1240px; margin-inline: auto; }
.workspace-main { flex: 1; min-height: 0; display: flex; outline: 0; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.5rem; font-weight: 650; margin: 0; }
.page-sub { color: var(--jr-muted); margin: 4px 0 0; font-size: .875rem; }

/* Blocos */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile-head { display: flex; align-items: center; gap: 8px; color: var(--jr-muted); font-size: .8125rem; }
.tile-head svg { width: 15px; height: 15px; }
.tile-value { font-size: 1.625rem; font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile-hint { color: var(--jr-muted); font-size: .75rem; margin-top: 2px; }
.state-empty { text-align: center; padding: 40px 20px; color: var(--jr-muted); }
.state-empty p { font-size: .875rem; max-width: 46ch; margin: 0 auto 12px; }
.state-error { display: flex; gap: 10px; padding: 14px; border: 1px solid color-mix(in srgb, var(--jr-crit) 50%, var(--jr-line)); border-radius: 8px; background: color-mix(in srgb, var(--jr-crit) 8%, var(--jr-surface)); font-size: .875rem; }
.state-error svg { color: var(--jr-crit); width: 18px; height: 18px; flex: none; margin-top: 2px; }
.state-error p { margin: 4px 0 8px; }
.notice { display: flex; gap: 8px; padding: 10px 12px; border-radius: 6px; font-size: .8125rem; margin-bottom: 12px; }
.notice svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.notice.is-warning { background: color-mix(in srgb, var(--jr-mid) 10%, var(--jr-surface)); color: var(--jr-text); border: 1px solid color-mix(in srgb, var(--jr-mid) 40%, var(--jr-line)); }
.meter { margin-bottom: 12px; font-size: .8125rem; }
.meter-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; color: var(--jr-muted); flex-wrap: wrap; }
.meter-track { height: 6px; border-radius: 3px; background: var(--jr-surface-2); overflow: hidden; }
.meter-fill { height: 100%; background: var(--jr-brand); transition: width .3s ease; }
.meter-fill.is-danger { background: var(--jr-crit); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; font-size: .875rem; }
.facts dt { color: var(--jr-muted); font-weight: 400; } .facts dd { margin: 0; }
.invite-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }

/* Upload */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px; margin-bottom: 12px; border: 1px dashed var(--jr-line); border-radius: 8px; background: var(--jr-surface); cursor: pointer; text-align: center; }
.dropzone svg { width: 22px; height: 22px; color: var(--jr-brand); }
.dropzone-title { font-weight: 500; }
.dropzone-hint { font-size: .8125rem; color: var(--jr-muted); }
.dropzone:hover, .dropzone.is-over { border-color: var(--jr-brand); }
.dropzone:focus-within { outline: 2px solid var(--jr-brand); outline-offset: 2px; }
.dropzone.is-busy { opacity: .7; pointer-events: none; }
.dropzone.is-disabled { opacity: .55; cursor: not-allowed; }
.upload-results { list-style: none; padding: 0; margin: 0 0 16px; font-size: .875rem; }
.upload-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; flex-wrap: wrap; }
.upload-row svg { width: 16px; height: 16px; flex: none; }
.upload-row.is-ok svg { color: var(--jr-low); } .upload-row.is-error svg { color: var(--jr-crit); }

/* Workspace */
.workspace { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.workspace.is-message { padding: 24px; }
.ws-header { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--jr-line); flex-wrap: wrap; flex: none; }
.ws-title { min-width: 0; flex: 1 1 200px; }
.ws-title h1 { font-size: .9375rem; font-weight: 600; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-meta { display: flex; gap: 10px; align-items: center; font-size: .75rem; color: var(--jr-muted); margin-top: 2px; flex-wrap: wrap; }
.ws-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ws-history { max-width: 240px; }
.ws-split { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 46%); }
.ws-viewer { min-height: 0; min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--jr-line); }
.ws-panel { min-height: 0; min-width: 0; display: flex; flex-direction: column; background: var(--jr-surface); }
.ws-tabs { display: flex; gap: 0; padding: 0 6px; border-bottom: 1px solid var(--jr-line); overflow-x: auto; scrollbar-width: none; flex: none; }
.ws-tab { padding: 10px 7px; border: 0; background: none; color: var(--jr-muted); font-size: .8125rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.ws-tab:hover { color: var(--jr-text); }
.ws-tab.is-active { color: var(--jr-text); border-bottom-color: var(--jr-brand); }
.ws-tab-count { margin-left: 5px; font-size: .75rem; color: var(--jr-muted); font-variant-numeric: tabular-nums; }
.ws-tabbody { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; outline: 0; }
.ws-progress { padding: 8px 0 16px; }
.ws-progress h2 { font-size: .9375rem; margin: 0 0 8px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.sec-title { font-size: .75rem; font-weight: 600; color: var(--jr-muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 6px; }
.prose { font-size: .9375rem; line-height: 1.55; margin: 0; white-space: pre-wrap; }
.sev-row { display: flex; gap: 6px; flex-wrap: wrap; }
.sev-chip { padding: 4px 10px; border: 1px solid var(--jr-line); border-radius: 6px; background: var(--jr-surface-2); color: var(--jr-text); font-size: .8125rem; }
.sev-chip strong, .is-baixa { --sev: var(--jr-low); } .is-media { --sev: var(--jr-mid); } .is-alta { --sev: var(--jr-high); } .is-critica { --sev: var(--jr-crit); }
.risk-card, .clause-card { border: 1px solid var(--jr-line); border-radius: 8px; padding: 12px; background: var(--jr-bg); }
.risk-card.is-current, .clause-card.is-current, .field-list li.is-current, .rec-list li.is-current { border-color: var(--jr-brand); box-shadow: 0 0 0 1px var(--jr-brand); }
.risk-card header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.risk-card header .ev, .clause-card header .ev { margin-left: auto; }
.risk-cat { font-size: .75rem; color: var(--jr-muted); }
.risk-card h3, .clause-card h3 { font-size: .9rem; font-weight: 600; margin: 0 0 6px; line-height: 1.35; }
.clause-card header { display: flex; align-items: flex-start; gap: 8px; }
.clause-card p, .risk-clause { font-size: .875rem; margin: 0 0 6px; }
.risk-dl { font-size: .8125rem; margin: 6px 0 0; }
.risk-dl dt { color: var(--jr-muted); font-weight: 500; margin-top: 6px; } .risk-dl dd { margin: 0; }
.risk-review { display: flex; align-items: center; gap: 5px; font-size: .75rem; color: var(--jr-muted); margin: 8px 0 0; }
.risk-review svg { width: 13px; height: 13px; }
.ev { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.ev-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; color: var(--jr-brand); font-size: .75rem; }
.ev-link:hover { text-decoration: underline; }
.ev-link svg { width: 12px; height: 12px; }
.ev-unverified { font-size: .75rem; color: var(--jr-mid); }
.ev-none { font-size: .75rem; color: var(--jr-muted); }
.ev-quote { margin: 6px 0; padding: 2px 0 2px 10px; border-left: 2px solid var(--jr-line); font-size: .8125rem; color: var(--jr-muted); font-family: Georgia, 'Times New Roman', serif; }
.field-list, .missing-list { list-style: none; padding: 0; margin: 0; }
.field-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 6px; border-bottom: 1px solid var(--jr-line); font-size: .875rem; }
.field-label { display: block; color: var(--jr-muted); font-size: .75rem; }
.missing-list li { padding: 6px 0; font-size: .875rem; color: var(--jr-muted); }
.missing-list strong { color: var(--jr-text); font-weight: 500; }
.rec-list { padding-left: 20px; margin: 0; font-size: .875rem; }
.rec-list li { padding: 8px 6px; border-radius: 6px; }
.rec-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .75rem; color: var(--jr-muted); }

/* Visualizador */
.viewer-toolbar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--jr-line); flex-wrap: wrap; background: var(--jr-surface); flex: none; }
.page-input { width: 58px; }
.viewer-total, .viewer-count { font-size: .75rem; color: var(--jr-muted); white-space: nowrap; }
.viewer-search { display: flex; align-items: center; gap: 4px; margin-left: auto; min-width: 200px; flex: 0 1 300px; }
.viewer-search > svg { width: 15px; height: 15px; color: var(--jr-muted); flex: none; }
.viewer-notice { padding: 6px 12px; font-size: .8125rem; color: var(--jr-mid); background: color-mix(in srgb, var(--jr-mid) 10%, var(--jr-surface)); flex: none; }
.viewer-stage { flex: 1; min-height: 0; overflow: auto; padding: 16px; background: var(--jr-sheet); outline-offset: -2px; }
.viewer-sheet { position: relative; margin: 0 auto; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .35); line-height: 0; }
.viewer-canvas { display: block; }
.viewer-image { display: block; width: 100%; height: auto; }
.hl-layer { position: absolute; inset: 0; pointer-events: none; }
.hl-box, .hl-search { position: absolute; border-radius: 2px; mix-blend-mode: multiply; }
.hl-box { background: rgba(255, 196, 0, .5); outline: 1px solid rgba(180, 120, 0, .7); }
.hl-search { background: rgba(124, 92, 255, .28); }
.hl-box.is-search-current { background: rgba(124, 92, 255, .55); outline-color: #5a3fd6; }
.viewer-text-note { font-size: .75rem; color: var(--jr-muted); margin-bottom: 8px; }
.viewer-text { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--jr-surface); color: var(--jr-text); padding: 20px; border-radius: 4px; font-family: Georgia, 'Times New Roman', serif; font-size: .9375rem; line-height: 1.55; margin: 0; }
mark.hl { background: rgba(255, 196, 0, .4); color: inherit; outline: 1px solid rgba(255, 196, 0, .7); }
mark.hl-search { background: var(--jr-search); color: inherit; }
mark.is-search-current { background: var(--jr-violet); color: #000; }

/* Chat */
.chat { display: flex; flex-direction: column; height: 100%; min-height: 320px; gap: 10px; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 92%; padding: 8px 12px; border-radius: 8px; font-size: .875rem; }
.chat-msg.is-user { align-self: flex-end; background: var(--jr-accent); color: var(--jr-on-accent); }
.chat-msg.is-assistant { align-self: flex-start; background: var(--jr-surface-2); }
.chat-text { margin: 0; white-space: pre-wrap; line-height: 1.5; overflow-wrap: anywhere; }
.chat-error { margin: 4px 0 0; color: var(--jr-crit); font-size: .8125rem; }
.cite { display: inline-block; margin: 0 2px; padding: 0 5px; border: 1px solid var(--jr-brand); border-radius: 4px; background: none; color: var(--jr-brand); font-size: .75rem; line-height: 1.5; vertical-align: 1px; }
.cite:hover { background: color-mix(in srgb, var(--jr-brand) 15%, transparent); }
.cite.is-invalid { border-color: var(--jr-crit); color: var(--jr-crit); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; flex: none; }
.chat-buttons { flex: none; }
.chat-foot { display: flex; gap: 8px; align-items: center; font-size: .75rem; color: var(--jr-muted); flex: none; }
.chat-foot select { max-width: 180px; }

/* Autenticação e sobreposições */
.auth-card { background: var(--jr-surface); border: 1px solid var(--jr-line); border-radius: 10px; padding: 24px; }
.auth-card h1 { font-size: 1.25rem; font-weight: 600; margin: 0 0 16px; }
.auth-foot { text-align: center; color: var(--jr-muted); font-size: .75rem; margin-top: 14px; }
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 60; max-width: 380px; }
.toast-item.is-error { border-color: var(--jr-crit); } .toast-item.is-success { border-color: var(--jr-low); }
.confirm-dialog { background: var(--jr-surface); color: var(--jr-text); border: 1px solid var(--jr-line); border-radius: 10px; padding: 20px; max-width: 420px; }
.confirm-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.confirm-dialog h2 { font-size: 1.05rem; margin: 0 0 8px; }
.confirm-dialog p { font-size: .875rem; color: var(--jr-muted); }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Formulários e listas dos módulos */
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.form-dialog { width: min(680px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); overflow-y: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.form-grid .is-wide { grid-column: 1 / -1; }
.form-grid label { font-size: .8125rem; color: var(--jr-muted); margin-bottom: 4px; display: block; }
.form-check-row { display: flex; align-items: center; gap: 8px; }
.form-check-row label { margin: 0; }
.form-hint { font-size: .75rem; color: var(--jr-muted); margin: 4px 0 0; }
.form-error { color: var(--jr-crit); font-size: .875rem; margin: 0 0 12px; }
.list-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.list-filters > * { width: auto; min-width: 200px; }
.list-filters > input[type="search"] { flex: 1 1 320px; max-width: 480px; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.row-actions .btn { padding: 2px 6px; line-height: 1; }
.row-actions svg { width: 16px; height: 16px; }
.preview-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .875rem; line-height: 1.5; margin: 0 0 14px; padding: 12px; background: var(--jr-surface-2); border-radius: 6px; max-height: 45vh; overflow-y: auto; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline time { font-size: .75rem; color: var(--jr-muted); display: block; }
.timeline p { margin: 2px 0 0; font-size: .875rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.group-title { font-size: .875rem; font-weight: 600; margin: 16px 0 8px; }
.group-title:first-child { margin-top: 0; }
.group-title.is-danger { color: var(--jr-crit); }
.result-list { list-style: none; margin: 0; padding: 0; }
.result-list li { padding: 12px 0; border-top: 1px solid var(--jr-line); }
.result-list li:first-child { border-top: 0; }
.result-list blockquote { margin: 6px 0 0; font-size: .875rem; color: var(--jr-muted); overflow-wrap: anywhere; }
.search-form { display: flex; gap: 8px; }
.assistant-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.assistant-chat { height: calc(100vh - 230px); min-height: 380px; margin: 0; }
.conversation-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.conversation-list li { display: flex; align-items: center; gap: 4px; }
.conversation-list .conversation-open { flex: 1; min-width: 0; text-align: left; background: none; border: 0; color: var(--jr-text); padding: 6px 8px; border-radius: 6px; font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-list .conversation-open:hover, .conversation-list .conversation-open.is-active { background: var(--jr-surface-2); }

@media (max-width: 767.98px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .assistant-layout { grid-template-columns: minmax(0, 1fr); }
  .assistant-chat { height: 70vh; }
}

@media (max-width: 991.98px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; transform: translateX(-100%); transition: transform .15s ease; width: 264px !important; }
  .is-open .sidebar { transform: none; }
  .app-shell { height: 100dvh; }
  .workspace-main { overflow-y: auto; }
  .workspace { min-height: auto; }
  .ws-split { display: block; }
  .ws-viewer { height: 70vh; border-right: 0; border-bottom: 1px solid var(--jr-line); }
  .ws-panel { min-height: 60vh; }
  .ws-tabbody { overflow: visible; }
  .chat-log { max-height: 50vh; }
}
.ws-pad { padding: 16px; }

/* Menu lateral: seções, busca, usuário */
.nav-section { padding: 16px 10px 6px; font-size: .75rem; font-weight: 600; color: var(--jr-muted); white-space: nowrap; }
.command-trigger { display: flex; align-items: center; gap: 8px; flex: none; height: 36px; margin: 0 12px 4px; padding: 0 8px 0 10px; border: 1px solid var(--jr-line); border-radius: 8px; background: var(--jr-surface-2); color: var(--jr-muted); font-size: .8125rem; white-space: nowrap; overflow: hidden; }
.command-trigger:hover { border-color: var(--jr-line-strong); color: var(--jr-text); }
.command-trigger svg { width: 15px; height: 15px; flex: none; }
.command-trigger kbd { margin-left: auto; }
kbd { padding: 1px 5px; border: 1px solid var(--jr-line-strong); border-radius: 4px; background: none; color: var(--jr-muted); font-family: inherit; font-size: .75rem; line-height: 1.4; }
.sidebar-foot { flex: none; border-top: 1px solid var(--jr-line); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px 6px; min-width: 0; }
.user-avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--jr-brand) 20%, var(--jr-surface)); color: var(--jr-brand); font-size: .8125rem; font-weight: 600; }
.user-email { flex: 1; font-size: .8125rem; white-space: nowrap; }
.sidebar-toggle { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 18px; border: 0; background: none; color: var(--jr-muted); font-size: .8125rem; white-space: nowrap; }
.sidebar-collapsed .sidebar { width: 58px; }
.sidebar-collapsed .nav-label, .sidebar-collapsed .nav-tag, .sidebar-collapsed .brand-name, .sidebar-collapsed .command-trigger kbd, .sidebar-collapsed #logout { display: none; }
.sidebar-collapsed .nav-section { height: 1px; padding: 0; margin: 8px 10px; background: var(--jr-line); }
.sidebar-collapsed .command-trigger { margin-inline: 11px; padding: 0; justify-content: center; }
.sidebar-collapsed .sidebar-toggle svg { transform: rotate(180deg); }
[data-bs-theme="dark"] .theme-icon-moon, [data-bs-theme="light"] .theme-icon-sun { display: none; }
.simulated-banner { display: flex; align-items: center; gap: 8px; padding: 6px 16px; font-size: .8125rem; color: var(--jr-text); background: color-mix(in srgb, var(--jr-mid) 12%, var(--jr-surface)); border-bottom: 1px solid var(--jr-line); flex: none; }
.simulated-banner[hidden] { display: none; }
.simulated-banner svg { width: 15px; height: 15px; flex: none; color: var(--jr-mid); }
.bottom-nav { display: none; }

/* Blocos */
.panel { background: var(--jr-surface); border: 1px solid var(--jr-line); border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.panel-title { display: flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 600; margin: 0 0 12px; }
.panel-title svg { width: 16px; height: 16px; color: var(--jr-high); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head .panel-title { margin: 0; }
.panel-link { display: inline-flex; align-items: center; gap: 4px; font-size: .8125rem; text-decoration: none; }
.panel-link:hover { text-decoration: underline; }
.panel-link svg { width: 14px; height: 14px; }
.panel-filter { flex: 0 1 300px; }
.panel-quiet { color: var(--jr-muted); font-size: .875rem; margin: 0; }
.tile { display: block; background: var(--jr-surface); border: 1px solid var(--jr-line); border-radius: 12px; padding: 14px 16px; color: inherit; text-decoration: none; }
a.tile { transition: border-color .12s ease; }
a.tile:hover { border-color: var(--jr-line-strong); color: inherit; }
.tile.is-danger .tile-value, .tile.is-danger .tile-head svg { color: var(--jr-crit); }
.tile.is-active .tile-head svg { color: var(--jr-info); }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 500; white-space: nowrap; color: var(--pill); background: color-mix(in srgb, var(--pill) 14%, transparent); }
.status-pill.is-info { --pill: var(--jr-info); } .status-pill.is-success { --pill: var(--jr-low); } .status-pill.is-danger { --pill: var(--jr-crit); } .status-pill.is-muted { --pill: var(--jr-muted); }
.status-pill.is-info::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: jr-pulse 1.4s ease-in-out infinite; }
@keyframes jr-pulse { 50% { opacity: .35; } }
.sev-badge { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: .75rem; font-weight: 600; background: color-mix(in srgb, var(--sev) 15%, transparent); }
.risk-card[class*="is-"] { border-left: 3px solid var(--sev, var(--jr-line)); }
.risk-card.is-current { border-left-color: var(--jr-brand); }
.state-loading { position: relative; min-height: 170px; overflow: hidden; color: transparent; font-size: .875rem; user-select: none; border-radius: 12px; background: repeating-linear-gradient(to bottom, var(--jr-surface-2) 0 14px, transparent 14px 34px); }
.state-loading .spinner-border { display: none; }
.state-loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--jr-bg) 60%, transparent), transparent); animation: jr-shimmer 1.4s linear infinite; }
@keyframes jr-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.state-empty-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--jr-brand) 14%, transparent); color: var(--jr-brand); }
.state-empty-icon svg { width: 24px; height: 24px; }
.state-empty h2, .chat-empty h2 { font-size: 1.0625rem; font-weight: 600; color: var(--jr-text); margin: 12px 0 4px; }
.notice.is-info { background: color-mix(in srgb, var(--jr-info) 9%, var(--jr-surface)); color: var(--jr-text); border: 1px solid color-mix(in srgb, var(--jr-info) 30%, var(--jr-line)); }
.notice.is-info svg { color: var(--jr-info); } .notice.is-warning svg { color: var(--jr-mid); }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--jr-surface-2); }
.list-filters > .segmented { min-width: 0; }
.segment { padding: 4px 12px; border: 0; border-radius: 8px; background: none; color: var(--jr-muted); font-size: .8125rem; font-weight: 500; white-space: nowrap; }
.segment:hover { color: var(--jr-text); }
.segment.is-active { background: var(--jr-surface); color: var(--jr-text); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.group-count { margin-left: 6px; font-weight: 500; color: var(--jr-muted); font-variant-numeric: tabular-nums; }
dialog[open] { animation: jr-rise .14s ease-out; }
@keyframes jr-rise { from { opacity: 0; transform: translateY(6px); } }
.confirm-dialog, .palette { box-shadow: var(--jr-shadow); }
.confirm-dialog { border-radius: 12px; }

/* Visão geral */
.dash-grid, .detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.agenda, .mini-list { list-style: none; margin: 0; padding: 0; }
.agenda-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--jr-line); }
.agenda-row:first-child { border-top: 0; padding-top: 0; }
.agenda-row:last-child { padding-bottom: 0; }
.agenda-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 46px; flex: none; border-radius: 8px; background: var(--jr-surface-2); line-height: 1.1; }
.agenda-date strong { font-size: 1.0625rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.agenda-date span { font-size: .75rem; color: var(--jr-muted); }
.agenda-text { flex: 1; min-width: 0; }
.agenda-title { font-weight: 500; font-size: .9375rem; overflow-wrap: anywhere; }
.agenda-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: .8125rem; color: var(--jr-muted); }
.agenda-row.is-overdue .agenda-date { background: color-mix(in srgb, var(--jr-crit) 15%, transparent); color: var(--jr-crit); }
.agenda-row.is-overdue .agenda-date span { color: inherit; }
.agenda-row.is-overdue .agenda-when { color: var(--jr-crit); font-weight: 500; }
.agenda-row.is-today .agenda-date { background: color-mix(in srgb, var(--jr-high) 15%, transparent); color: var(--jr-high); }
.agenda-row.is-today .agenda-date span { color: inherit; }
.agenda-row.is-today .agenda-when { color: var(--jr-high); font-weight: 500; }
.mini-list li { padding: 9px 0; border-top: 1px solid var(--jr-line); }
.mini-list li:first-child { border-top: 0; padding-top: 0; }
.mini-list li:last-child { padding-bottom: 0; }
.mini-title { font-weight: 500; font-size: .875rem; }
.mini-title a { color: inherit; text-decoration: none; }
.mini-title a:hover { color: var(--jr-brand); text-decoration: underline; }
.mini-meta { font-size: .8125rem; color: var(--jr-muted); }
.quick-actions { display: grid; gap: 4px; margin: -4px -6px; }
.quick-action { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; color: var(--jr-text); font-size: .875rem; text-decoration: none; }
.quick-action:hover { background: var(--jr-surface-2); color: var(--jr-text); }
.quick-action svg { width: 16px; height: 16px; color: var(--jr-brand); flex: none; }

/* Documentos */
.dropzone { border-radius: 12px; border-color: var(--jr-line-strong); transition: border-color .12s ease, background-color .12s ease; }
.dropzone.is-over { background: color-mix(in srgb, var(--jr-brand) 8%, var(--jr-surface)); }
.dropzone.is-compact { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 10px; padding: 14px 18px; }
.doc-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.doc-name svg { width: 16px; height: 16px; flex: none; color: var(--jr-muted); }
.upload-progress { padding: 6px 0; }
.upload-progress .upload-row { padding: 0 0 6px; }
.upload-row .spinner-border { flex: none; }

/* Detalhe do processo */
.breadcrumbs { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; font-size: .8125rem; color: var(--jr-muted); min-width: 0; }
.breadcrumbs a { color: var(--jr-muted); text-decoration: none; flex: none; }
.breadcrumbs a:hover { color: var(--jr-text); text-decoration: underline; }
.breadcrumbs svg { width: 13px; height: 13px; flex: none; }
.breadcrumbs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts.is-stacked { display: block; }
.facts.is-stacked dt { font-size: .8125rem; margin-top: 10px; }
.facts.is-stacked dt:first-child { margin-top: 0; }
.facts.is-stacked dd { overflow-wrap: anywhere; }
.timeline li { position: relative; display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 0 0 16px 20px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--jr-brand); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 18px; bottom: 0; width: 1px; background: var(--jr-line-strong); }

/* Conversas e pesquisa */
.chat-empty { color: var(--jr-muted); font-size: .875rem; padding: 12px 0; }
.chat-empty:has(h2) { margin: auto; max-width: 560px; text-align: center; }
.chat-empty p { margin: 0 0 12px; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-empty:has(h2) .chat-suggestions { justify-content: center; }
.chat-suggestion { padding: 6px 12px; border: 1px solid var(--jr-line-strong); border-radius: 999px; background: none; color: var(--jr-text); font-size: .8125rem; text-align: left; }
.chat-suggestion:hover { border-color: var(--jr-brand); background: color-mix(in srgb, var(--jr-brand) 8%, transparent); }
.chat-msg { border-radius: 12px; }
.typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--jr-muted); animation: jr-pulse 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.result-head { display: flex; align-items: center; gap: 8px; font-weight: 500; min-width: 0; }
.result-head svg { width: 15px; height: 15px; flex: none; color: var(--jr-muted); }
.result-head a { overflow-wrap: anywhere; }
.result-page { flex: none; margin-left: auto; padding: 0 7px; border-radius: 6px; background: var(--jr-surface-2); color: var(--jr-muted); font-size: .75rem; font-weight: 400; }

/* Busca rápida */
.palette { width: min(620px, calc(100vw - 24px)); max-width: none; margin: 12vh auto auto; padding: 0; border: 1px solid var(--jr-line-strong); border-radius: 14px; background: var(--jr-surface); color: var(--jr-text); overflow: hidden; }
.palette::backdrop { background: rgba(0, 0, 0, .55); }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--jr-line); }
.palette-input svg { width: 17px; height: 17px; flex: none; color: var(--jr-muted); }
.palette-input input { flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: none; color: inherit; font-size: .9375rem; }
.palette-input input::placeholder { color: var(--jr-muted); }
.palette-list { max-height: min(50vh, 400px); overflow-y: auto; padding: 6px; }
.palette-group { padding: 8px 10px 4px; font-size: .75rem; font-weight: 600; color: var(--jr-muted); }
.palette-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--jr-text); font-size: .875rem; text-decoration: none; }
.palette-item.is-active { background: var(--jr-surface-2); color: var(--jr-text); }
.palette-item svg { width: 16px; height: 16px; flex: none; color: var(--jr-muted); }
.palette-item.is-active svg { color: var(--jr-brand); }
.palette-text { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.palette-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--jr-muted); font-size: .8125rem; }
.palette-empty { margin: 0; padding: 24px; text-align: center; color: var(--jr-muted); font-size: .875rem; }
.palette-foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--jr-line); color: var(--jr-muted); font-size: .75rem; }

/* Avisos */
.toast-item { display: flex; align-items: flex-start; gap: 8px; padding: 10px 8px 10px 12px; border-radius: 10px; background: var(--jr-surface-2); border: 1px solid var(--jr-line-strong); font-size: .875rem; box-shadow: var(--jr-shadow); animation: jr-rise .14s ease-out; }
.toast-item > span { flex: 1; min-width: 0; padding-top: 1px; }
.toast-item > svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--jr-info); }
.toast-item.is-error > svg { color: var(--jr-crit); } .toast-item.is-success > svg { color: var(--jr-low); }
.toast-close { width: 24px; height: 24px; }
.toast-close svg { width: 14px; height: 14px; }

/* Entrada */
.auth-layout { display: grid; grid-template-columns: minmax(380px, 46%) minmax(0, 1fr); min-height: 100vh; }
.auth-aside { display: flex; flex-direction: column; gap: 32px; padding: 40px 48px; background: var(--jr-surface); border-right: 1px solid var(--jr-line); }
.auth-pitch { margin-block: auto; }
.auth-pitch h2 { max-width: 20ch; font-size: 1.875rem; font-weight: 650; line-height: 1.2; margin: 0 0 24px; }
.auth-pitch ul { list-style: none; display: grid; gap: 16px; margin: 0; padding: 0; max-width: 44ch; }
.auth-pitch li { display: flex; gap: 12px; color: var(--jr-muted); }
.auth-pitch svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--jr-brand); }
.auth-main { display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 440px; margin: auto; padding: 24px; }
.auth-brand-compact { display: none; justify-content: center; margin-bottom: 20px; }
.auth-card { border-radius: 14px; }
.auth-lead { margin: -10px 0 16px; color: var(--jr-muted); font-size: .875rem; }
.password-field { position: relative; }
.password-field input { padding-right: 42px; }
.password-toggle { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--jr-muted); font-size: .8125rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--jr-line); }
.auth-switch { margin: 14px 0 0; text-align: center; color: var(--jr-muted); font-size: .875rem; }
.btn-link-inline { padding: 0; border: 0; background: none; color: var(--jr-brand); font-weight: 500; }
.btn-link-inline:hover { text-decoration: underline; }

@media (max-width: 1099.98px) {
  .dash-grid, .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-side { order: -1; }
}
@media (max-width: 991.98px) {
  .sidebar-collapsed .nav-label, .sidebar-collapsed .brand-name, .sidebar-collapsed .command-trigger kbd { display: inline; }
  .sidebar-collapsed .nav-tag:not([hidden]) { display: inline; }
  .sidebar-collapsed #logout { display: inline-grid; }
  .sidebar-collapsed .nav-section { height: auto; padding: 16px 10px 6px; margin: 0; background: none; }
  .sidebar-collapsed .command-trigger { margin: 0 12px 4px; padding: 0 8px 0 10px; justify-content: flex-start; }
  .sidebar-toggle { display: none; }
  .auth-layout { display: block; }
  .auth-aside { display: none; }
  .auth-brand-compact { display: flex; }
  .auth-main { min-height: 100vh; }
}
@media (max-width: 767.98px) {
  .page { padding: 16px; }
  .tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .topbar-org { flex: 1; min-width: 0; }
  .topbar-org select { max-width: none; }
  .topbar-spacer { display: none; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); flex: none; border-top: 1px solid var(--jr-line); background: var(--jr-surface); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 54px; border: 0; background: none; color: var(--jr-muted); font-size: .75rem; text-decoration: none; }
  .bottom-item svg { width: 19px; height: 19px; }
  .bottom-item.is-active { color: var(--jr-brand); }
  .toasts { left: 16px; bottom: 72px; max-width: none; }
  .panel-filter { flex-basis: 100%; }
  .list-filters > * { min-width: 0; width: 100%; }
  .list-filters > .segmented { width: auto; }

  /* Tabela vira lista de cartões: cada célula traz o rótulo da coluna. */
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { padding: 12px 0; border-top: 1px solid var(--jr-line); }
  .table-cards tr:first-child { border-top: 0; padding-top: 0; }
  .table-cards tr:last-child { padding-bottom: 0; }
  .table-cards td { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; border: 0; text-align: right; overflow-wrap: anywhere; }
  .table-cards td::before { content: attr(data-label); flex: none; color: var(--jr-muted); font-size: .8125rem; }
  .table-cards td:first-child { padding-top: 0; text-align: left; font-size: 1rem; }
  .table-cards td:first-child::before, .table-cards td.cell-actions::before { display: none; }
  .table-cards td.cell-actions { justify-content: flex-end; padding-top: 6px; }
  .table-responsive:has(.table-cards) { overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
