/* Rev. 3.4.0 — Relatórios técnicos (cores sempre pelas variáveis do tema) */
.tr-jump { display: flex; gap: 6px; flex-wrap: wrap; position: sticky; top: 56px; z-index: 5; padding: 8px 0; background: var(--bg, var(--app-bg, transparent)); }
.field-body .tr-jump { top: 54px; }
.tr-jump a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink-2); font-size: 12.5px; font-weight: 500; text-decoration: none; }
.tr-jump a:hover { background: var(--hover); color: var(--ink); }
.tr-jump .n { font-size: 11px; color: var(--ink-3); }
.tr-editor { display: grid; gap: 14px; min-width: 0; }
.tr-section { scroll-margin-top: 110px; }
.tr-section .panel-head h2 { display: flex; align-items: center; gap: 8px; }
.tr-save-bar { position: sticky; bottom: 0; background: var(--panel); z-index: 3; border-radius: 0 0 var(--radius) var(--radius); }
.tr-pending-box { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 12px; margin-top: 6px; background: color-mix(in srgb, var(--signal) 5%, transparent); }
.tr-pending-box .field { margin: 10px 0 0; }
.tr-pend { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--signal); background: var(--signal-100); }
.tr-pend.ok { color: var(--leaf); background: var(--leaf-100); }
.tr-head-badges { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.tr-callout { margin-bottom: 12px; }

/* etapas */
.tr-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; padding: 0; }
.tr-steps li { display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); min-width: 0; }
.tr-steps li > span { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--line-2); color: var(--ink-3); }
.tr-steps li b { font-size: 13px; }
.tr-steps li small { color: var(--ink-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-steps li.done > span { background: var(--leaf-100); color: var(--leaf); }
.tr-steps li.current { border-color: var(--petrol-400); box-shadow: 0 0 0 1px var(--petrol-400) inset; }
.tr-steps li.current > span { background: var(--petrol); color: #fff; }

/* fotos */
.tr-drop { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); cursor: pointer; background: var(--hover); }
.tr-drop.over { border-color: var(--petrol); background: color-mix(in srgb, var(--petrol) 8%, transparent); }
.tr-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100% !important; }
.tr-drop-ic { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: grid; place-items: center; background: var(--panel); color: var(--petrol); border: 1px solid var(--line); }
.tr-drop b { display: block; font-size: 13.5px; }
.tr-drop small { display: block; color: var(--ink-3); font-size: 12px; }
.tr-upload-list { display: grid; gap: 6px; margin-top: 10px; }
.tr-up { display: grid; grid-template-columns: minmax(0, 1fr) 120px auto; gap: 10px; align-items: center; font-size: 12px; }
.tr-up span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-up .bar { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; display: block; }
.tr-up .bar i { display: block; height: 100%; width: 0; background: var(--petrol); transition: width .2s; }
.tr-up.ok .bar i { background: var(--leaf); width: 100%; }
.tr-up.bad small { color: var(--coral); }
.tr-photos { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.tr-photo { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: box-shadow .2s, opacity .2s; scroll-margin-top: 110px; }
.tr-photo.dragging { opacity: .35; }
.tr-photo.moved { box-shadow: 0 0 0 2px var(--petrol-400); }
.tr-ghost { position: fixed; left: 0; top: 0; z-index: 4000; pointer-events: none; opacity: .92; box-shadow: var(--shadow-pop); transform-origin: 0 0; list-style: none; }
.tr-photo-img { position: relative; aspect-ratio: 4 / 3; background: var(--line-2); }
.tr-photo-img img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.tr-photo-n { position: absolute; left: 8px; top: 8px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: rgba(17, 24, 39, .78); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.tr-photo-mark { position: absolute; left: 38px; top: 8px; width: 24px; height: 24px; border-radius: 99px; background: rgba(225, 29, 72, .9); color: #fff; display: grid; place-items: center; font-size: 12px; }
.tr-handle { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(17, 24, 39, .72); color: #fff; display: grid; place-items: center; cursor: grab; touch-action: none; }
.tr-handle:active { cursor: grabbing; }
.tr-photo-body { padding: 8px 10px 4px; display: grid; gap: 2px; min-width: 0; }
.tr-photo-body b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-photo-body span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 1.2em; }
.tr-photo-actions { display: flex; gap: 2px; align-items: center; padding: 6px 8px 8px; margin-top: auto; }
.tr-photo-actions .btn { margin-right: auto; }

/* editor da foto */
.tr-photo-dialog { width: min(1100px, calc(100vw - 24px)); max-width: none; padding: 0; }
.tr-photo-dialog[open] { display: flex; flex-direction: column; max-height: calc(100vh - 24px); }
.tr-dlg-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; padding: 14px 18px; overflow: auto; min-height: 0; }
.tr-tools { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: 8px; }
.tr-tools button[data-tool], .tr-tools button[data-undo], .tr-tools button[data-clear] { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--ink-2); font: 500 12px var(--font); cursor: pointer; }
.tr-tools button[data-tool].active { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.tr-tool-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.tr-colors { display: inline-flex; gap: 4px; }
.tr-colors button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: var(--c); cursor: pointer; padding: 0; }
.tr-colors button.active { outline: 2px solid var(--petrol); outline-offset: 1px; }
.tr-tools select { width: auto; }
.tr-canvas-wrap { position: relative; display: flex; justify-content: center; align-items: flex-start; background: repeating-conic-gradient(var(--line-2) 0 25%, transparent 0 50%) 0 0 / 16px 16px; border-radius: var(--radius-sm); overflow: auto; min-height: 220px; }
.tr-canvas-wrap canvas { display: block; touch-action: none; cursor: crosshair; max-width: 100%; }
.tr-text-input { position: absolute; z-index: 2; min-width: 160px; height: auto !important; min-height: 32px !important; padding: 4px 8px; font: 600 16px var(--font) !important; background: rgba(255, 255, 255, .92); border: 1px dashed currentColor; border-radius: 6px; resize: both; }
.tr-meta .field { margin-bottom: 10px; }
.tr-photo-dialog footer { align-items: center; }
.tr-photo-dialog footer [data-tr-dlg-msg] { margin-right: auto; }

/* materiais */
.tr-mats { display: grid; gap: 10px; }
.tr-mat { display: grid; grid-template-columns: minmax(0, 3fr) 80px 80px 130px minmax(0, 2fr) 30px; gap: 8px; align-items: end; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.tr-mat .field { margin: 0; min-width: 0; }
.tr-mat-del { margin-bottom: 0; }

/* assinaturas */
.tr-signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tr-sign h3 { font-size: 13px; margin: 0 0 8px; }
.tr-sign .sign-pad { margin-bottom: 10px; }
.tr-sign .form-grid { margin-bottom: 8px; }
.tr-sign-done { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; margin-bottom: 8px; background: #fff; color: #111827; }
.tr-sign-done img { width: 140px; height: 60px; object-fit: contain; }
.tr-sign-done span { display: grid; font-size: 12.5px; }
.tr-sign-done small { color: #6b7280; }
.tr-submit .btn-block { height: 40px !important; font-size: 14px; }
.tr-missing { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; color: var(--signal); }
.tr-missing li { display: flex; gap: 6px; align-items: center; }

/* leitura e portal */
.tr-text { white-space: normal; line-height: 1.55; overflow-wrap: anywhere; }
.tr-view { display: grid; gap: 14px; }
.tr-view-photos { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.tr-view-photos li { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 14px; align-items: start; }
.tr-view-photos img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line); display: block; }
.tr-view-photos p { margin: 4px 0 0; overflow-wrap: anywhere; }
.tr-view-pending { border-color: color-mix(in srgb, var(--signal) 40%, var(--line)); }

/* conversa */
.tr-comments { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.tr-comments li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; scroll-margin-top: 110px; }
.tr-comments li.is-pending .tr-comment-body { border-left: 3px solid var(--signal); padding-left: 10px; }
.tr-comment-meta { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 12.5px; }
.tr-comment-meta span { color: var(--ink-3); font-size: 11.5px; }
.tr-comment-text { font-size: 13.5px; line-height: 1.5; margin-top: 2px; overflow-wrap: anywhere; }
.tr-comment-text .mention { color: var(--petrol); font-weight: 600; }
.tr-comment-edit { margin-top: 4px; }
.tr-comment-edit form { margin-top: 6px; display: grid; gap: 6px; }
.tr-comment-form .field { margin-bottom: 8px; }
.tr-comment-form .mention-picker { position: absolute; left: 0; right: 0; bottom: 100%; z-index: 30; }

/* cabeçalho */
.tr-executor-opts { display: flex; gap: 18px; flex-wrap: wrap; }
.tr-links { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.tr-links span { display: inline-flex; gap: 6px; align-items: center; }
.tr-field-head h1 { font-size: 18px; margin: 8px 0 6px; }

@media (max-width: 900px) {
  .tr-dlg-body { grid-template-columns: minmax(0, 1fr); }
  .tr-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .tr-steps { grid-template-columns: 1fr; }
  .tr-signs { grid-template-columns: minmax(0, 1fr); }
  .tr-mat { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 30px; }
  .tr-mat .tr-mat-desc, .tr-mat .tr-mat-notes { grid-column: 1 / -1; }
  .tr-mat .tr-mat-qty { grid-column: 1; } .tr-mat .tr-mat-unit { grid-column: 2; } .tr-mat .tr-mat-kind { grid-column: 1 / 3; }
  .tr-mat .tr-mat-del { grid-column: 3; grid-row: 3; }
  .tr-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tr-photo-actions .btn { padding: 0 8px; }
  .tr-photo-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .tr-photo-dialog[open] { max-height: 100dvh; }
  .tr-dlg-body { padding: 10px; }
  .tr-tools span:not(.tr-colors):not(.tr-tool-sep), .tr-tools button span { display: none; }
  .tr-view-photos li { grid-template-columns: minmax(0, 1fr); }
  .tr-up { grid-template-columns: minmax(0, 1fr) 80px; } .tr-up small { grid-column: 1 / -1; }
  .tr-jump { top: 52px; }
}
@media (max-width: 380px) { .tr-photos { grid-template-columns: minmax(0, 1fr); } }
.tr-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.tr-view .panel-head h2, .tr-aside .panel-head h2 { display: flex; align-items: center; gap: 6px; }

/* Rev. 3.4.1 — atendimento no local, etapas, tamanho das fotos, anexos, tipos e contadores */
.tr-service-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; }
.tr-service h3 { display: flex; align-items: center; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin: 0 0 8px; }
.tr-place-addr { margin: 0 0 4px; font-weight: 500; overflow-wrap: anywhere; }
.tr-place-actions { margin-top: 10px; flex-wrap: wrap; }
.tr-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tr-flow li { display: grid; justify-items: center; gap: 3px; padding: 8px 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); text-align: center; min-width: 0; }
.tr-flow li i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--ink-3); font-style: normal; }
.tr-flow li b { font-size: 12.5px; }
.tr-flow li span { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.tr-flow li.done i { background: var(--leaf-100); color: var(--leaf); }
.tr-flow li.next { border-color: var(--petrol-400); box-shadow: 0 0 0 1px var(--petrol-400) inset; }
.tr-flow-metrics { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 0; color: var(--ink-3); }
.tr-flow-metrics b { color: var(--ink); font-weight: 600; }
.tr-geo { margin: 12px 0 8px; }
.tr-step-form .field { margin-bottom: 8px; }
.tr-step-btn { height: 44px !important; font-size: 14.5px; }
.tr-step-skip { margin-top: 6px; text-align: center; }

.tr-photo-hint { margin: 10px 0 0; line-height: 1.6; }
.tr-photo-hint svg { vertical-align: -2px; }
.tr-photos { grid-auto-flow: dense; }
.tr-photo.is-large { grid-column: span 2; }
.tr-photo.is-large .tr-photo-img { aspect-ratio: 16 / 9; }
.tr-photo [data-tr-size] .tr-size-on, .tr-photo.is-large [data-tr-size] .tr-size-off { display: none; }
.tr-photo.is-large [data-tr-size] .tr-size-on { display: inline-flex; }
.tr-photo [data-tr-size][aria-pressed="true"] { color: var(--petrol); background: color-mix(in srgb, var(--petrol) 10%, transparent); }
.tr-photo .tr-photo-img { cursor: grab; }
.tr-photo .tr-photo-img img { cursor: zoom-in; }
.tr-placeholder { border: 2px dashed var(--petrol-400); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--petrol) 6%, transparent); min-height: 120px; }
.tr-placeholder.is-large { grid-column: span 2; }
body.tr-dragging, body.tr-dragging * { cursor: grabbing !important; user-select: none !important; }
.tr-photos.is-file-over { outline: 2px dashed var(--petrol-400); outline-offset: 6px; border-radius: var(--radius-sm); }
.tr-view-photos li.is-large { grid-template-columns: minmax(0, 1fr); }
.tr-view-photos li.is-large img { max-height: 560px; object-fit: contain; background: var(--line-2); }

.tr-atts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.tr-atts li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.tr-att-ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--hover); color: var(--petrol); }
.tr-att-main { display: grid; min-width: 0; }
.tr-att-name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-att-actions { display: flex; gap: 2px; align-items: center; }
.tr-att-form { display: grid; gap: 8px; }
.tr-drop-sm { padding: 10px 12px; }
.tr-drop-sm .tr-drop-ic { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
.tr-att-pick { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.tr-att-pick span { padding: 3px 9px; border-radius: 999px; background: var(--hover); border: 1px solid var(--line); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-att-row { display: flex; gap: 8px; }
.tr-att-row input { flex: 1; min-width: 0; }

.tr-kind-row { display: flex; gap: 6px; align-items: stretch; }
.tr-kind-row > select, .tr-kind-row > .sd-search-select { flex: 1; min-width: 0; }
.tr-kind-row .btn { flex: 0 0 auto; }

.tr-col-n { width: 92px; }
.tr-count { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
a.tr-count:hover { color: var(--petrol); }
.tr-count.is-zero { color: var(--ink-3); font-weight: 400; }
.tr-count svg { opacity: .85; }
tr.is-muted td { opacity: .6; }


@media (max-width: 900px) { .tr-service-body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) {
  .tr-photo.is-large { grid-column: 1 / -1; }
  .tr-flow li { padding: 7px 2px; }
  .tr-flow li b { font-size: 12px; }
  .tr-att-row { flex-direction: column; }
  .tr-atts li { grid-template-columns: 28px minmax(0, 1fr); }
  .tr-att-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (max-width: 380px) { .tr-photo.is-large { grid-column: auto; } }
.tr-photo[hidden], .tr-placeholder[hidden] { display: none !important; }

/* Rev. 3.4.2 — atendimento no local só no celular (na página de campo aparece sempre) */
@media (min-width: 901px) { body:not(.field-body) .tr-mobile-only { display: none !important; } }

/* Rev. 3.4.2 — avisos de salvamento discretos nas telas de relatórios (canto, sem cobrir o conteúdo) */
body:has(.tr-editor, .tr-view, .tr-list, .tr-create, .tr-head, .tr-kinds) .toasts {
  top: auto; left: auto; right: 18px; bottom: 18px; transform: none; width: min(340px, calc(100vw - 36px)); align-items: flex-end; gap: 6px; }
body:has(.tr-editor, .tr-view, .tr-list, .tr-create, .tr-head, .tr-kinds) .toasts .toast,
body:has(.tr-editor, .tr-view, .tr-list, .tr-create, .tr-head, .tr-kinds) .toasts .flash-toast {
  width: auto; max-width: 100%; min-height: 0; padding: 9px 14px; border-radius: 10px; font-size: 13px; font-weight: 500; box-shadow: 0 6px 22px #0003; }
@media (max-width: 680px) {
  body:has(.tr-editor, .tr-view, .tr-list, .tr-create, .tr-head, .tr-kinds) .toasts { right: 12px; left: 12px; bottom: 12px; width: auto; align-items: center; }
}
.tr-saved-note { color: var(--leaf); }

/* solicitações internas */
.tr-internal { border-style: dashed; }
.tr-ir-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.tr-ir-list li { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 11px; background: var(--hover); display: grid; gap: 3px; }
.tr-ir-body { font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.tr-ir-edit summary { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); }
.tr-ir-edit form { display: grid; gap: 6px; margin-top: 6px; }
.tr-ir-form .field { margin-bottom: 8px; }

/* editor de texto com formatação */
.rte { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--input-bg, var(--panel)); overflow: hidden; }
.rte:focus-within { border-color: var(--petrol-400); box-shadow: 0 0 0 3px color-mix(in srgb, var(--petrol) 14%, transparent); }
.rte-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-bottom: 1px solid var(--line-2); background: var(--hover); }
.rte-bar button { min-width: 30px; height: 28px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); font: 600 13px var(--font); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.rte-bar button:hover { background: var(--panel); color: var(--ink); }
.rte-bar button.on { background: var(--panel); color: var(--petrol); box-shadow: inset 0 0 0 1px var(--line); }
.rte-bar .sep { width: 1px; height: 18px; margin: 5px 3px; background: var(--line); }
.rte-area { min-height: 110px; max-height: 70vh; overflow-y: auto; padding: 10px 12px; outline: none; font-size: 14px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.rte-area.is-big { min-height: 170px; }
.rte-area:empty::before { content: attr(data-placeholder); color: var(--ink-4, var(--ink-3)); pointer-events: none; }
.rte-area p, .tr-rich p { margin: 0 0 .6em; }
.rte-area ul, .rte-area ol, .tr-rich ul, .tr-rich ol { margin: 0 0 .6em; padding-left: 1.4em; }
.rte-area h3, .tr-rich h3 { font-size: 15px; margin: .4em 0 .4em; }
.rte-area blockquote, .tr-rich blockquote { margin: 0 0 .6em; padding: 4px 12px; border-left: 3px solid var(--line); color: var(--ink-2); }
.rte-area a, .tr-rich a { color: var(--petrol); text-decoration: underline; }
.tr-rich > :last-child { margin-bottom: 0; }

/* conversa: marcar pendência como resolvida */
.tr-resolve-btn { border-color: color-mix(in srgb, var(--leaf) 45%, var(--line)); color: var(--leaf); }
.tr-resolve-btn:hover { background: var(--leaf-100); }

/* responsáveis adicionais */
.tr-members { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.tr-members-search { border: 0 !important; border-bottom: 1px solid var(--line-2) !important; border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important; box-shadow: none !important; }
.tr-members-list { max-height: 190px; overflow-y: auto; padding: 6px 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 10px; }
.tr-members-list label { display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.tr-members-list label:hover { background: var(--hover); }
.tr-members-list label[hidden] { display: none; }
.tr-members-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tr-members-chips span { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--hover); border: 1px solid var(--line); }

/* lista de relatórios */
.tr-list .tr-col-uf { width: 46px; }
.tr-list td.fl-col, .tr-list th.fl-col { width: 44px; text-align: center; padding-left: 4px; padding-right: 4px; }
.tr-list .field-link { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 7px; color: var(--petrol); border: 1px solid var(--line); }
.tr-list .field-link:hover { background: var(--hover); }
.tr-list .field-link.is-off { opacity: .35; pointer-events: none; }
@media (max-width: 680px) { .rte-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .rte-bar::-webkit-scrollbar { display: none; } .rte-bar button { flex: 0 0 auto; } }
.tr-saved-warn { color: var(--signal); }
.tr-ir-tab { max-width: 860px; }
