/* Apenas Origem e campanhas. Leitura em 13px, sem escala global. */
#ov-origem { --oc-reading: 13px; font-size: var(--oc-reading); line-height: 1.5; }
#ov-origem .card { min-width: 0; overflow: hidden; border: 1px solid var(--aia-line); border-radius: 12px; background: var(--aia-surface); box-shadow: 0 2px 8px rgb(34 54 79 / 3%); }
#ov-origem .card-header, #ov-origem .oc-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px; border-bottom: 1px solid var(--aia-line); }
#ov-origem .oc-heading-copy { flex: 1; min-width: 180px; }
#ov-origem .subheader { color: var(--aia-ink); font-size: var(--oc-reading); font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none; }
#ov-origem .oc-caption { margin-top: 3px; color: var(--aia-muted); font-size: var(--oc-reading); line-height: 1.4; }
#ov-origem .oc-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 36px; height: 36px; border: 1px solid var(--aia-line); border-radius: 10px; background: var(--aia-accent-soft); color: var(--aia-accent); }
#ov-origem .form-select, #ov-origem label, #ov-origem .small { font-size: var(--oc-reading); }
#ov-origem .form-select { min-height: 34px; border-color: var(--aia-line); border-radius: 8px; color: var(--aia-ink); background-color: var(--aia-surface); }
#ov-origem .oc-table-scroll { overflow: auto; max-height: 420px; }
#ov-origem .oc-distribution-scroll { max-height: 360px; }
#ov-origem .table { width: 100%; color: var(--aia-ink); font-size: var(--oc-reading); }
#ov-origem .table th { padding: 10px 18px; border-color: var(--aia-line); background: var(--aia-soft); color: var(--aia-muted); font-size: var(--oc-reading); font-weight: 500; letter-spacing: 0; text-transform: none; white-space: nowrap; }
#ov-origem .table td { padding: 12px 18px; border-color: var(--aia-line); line-height: 1.45; font-variant-numeric: tabular-nums; }
#ov-origem .table tbody tr:last-child td { border-bottom: 0; }
#ov-origem .table tbody tr[data-key]:hover td, #ov-origem #tbConvertidos tr:hover td { background: var(--aia-soft); }
#ov-origem .oc-funnel-table { min-width: 660px; table-layout: fixed; }
#ov-origem .oc-funnel-table th:first-child { width: 48%; }
#ov-origem .oc-funnel-table th:not(:first-child) { width: 13%; }
#ov-origem .oc-name { display: block; overflow-wrap: anywhere; color: var(--aia-ink); }
#ov-origem .oc-count { display: block; font-weight: 600; }
#ov-origem .oc-rate { display: block; color: var(--aia-muted); font-size: var(--oc-reading); font-weight: 400; }
#ov-origem .oc-distribution { table-layout: fixed; }
#ov-origem .oc-distribution th:first-child { width: 56%; }
#ov-origem .oc-distribution td:nth-child(2) { width: 19%; text-align: right; white-space: nowrap; }
#ov-origem .oc-distribution td:nth-child(3) { width: 25%; }
#ov-origem .oc-converted { display: block; color: #398365; font-size: var(--oc-reading); }
#ov-origem .oc-post { display: inline-block; margin-top: 3px; color: var(--aia-accent); text-decoration: none; }
#ov-origem .progress { height: 6px; border-radius: 6px; background: var(--aia-line); }
#ov-origem .progress-bar { border-radius: 6px; }
#ov-origem .card-footer { padding: 12px 18px; border-top: 1px solid var(--aia-line); background: var(--aia-surface); color: var(--aia-muted); font-size: var(--oc-reading); }
#ov-origem .oc-footline { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 7px 18px; }
#ov-origem .oc-details { color: var(--aia-muted); font-size: var(--oc-reading); }
#ov-origem .oc-details summary { width: fit-content; cursor: pointer; color: var(--aia-accent); }
#ov-origem .oc-details summary:focus-visible { outline: 2px solid var(--aia-accent); outline-offset: 3px; border-radius: 3px; }
#ov-origem .oc-details > div { margin-top: 8px; max-width: 90ch; line-height: 1.6; }
#ov-origem .oc-details p { margin: 0 0 6px; }
#ov-origem .oc-warning { margin-top: 7px; color: var(--aia-muted); }
#ov-origem .oc-coverage-body { padding: 18px; }
#ov-origem .oc-coverage-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
#ov-origem .oc-coverage-item { min-width: 0; }
#ov-origem .oc-coverage-item + .oc-coverage-item { padding-left: 24px; border-left: 1px solid var(--aia-line); }
#ov-origem .oc-coverage-label { color: var(--aia-muted); }
#ov-origem .oc-coverage-value { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 10px; color: var(--aia-muted); }
#ov-origem .oc-coverage-value b { color: var(--aia-ink); font-size: 24px; font-weight: 600; line-height: 1.2; }
#ov-origem .oc-converted-scroll { max-height: 320px; overflow: auto; }
#ov-origem .oc-converted-scroll .table { min-width: 1050px; }
#ov-origem #tbConvertidos td:nth-child(4), #ov-origem #tbConvertidos td:nth-child(6), #ov-origem #tbConvertidos td:nth-child(7) { white-space: normal; overflow-wrap: anywhere; min-width: 170px; }
[data-bs-theme="dark"] #ov-origem .oc-converted { color: #95d0b4; }
@media (max-width: 767.98px) {
  #ov-origem .card-header, #ov-origem .oc-heading { padding: 14px; gap: 9px; }
  #ov-origem .card-header > .ms-auto { margin-left: 45px !important; flex-wrap: wrap; }
  #ov-origem .table th, #ov-origem .table td { padding-left: 12px; padding-right: 12px; }
  #ov-origem .card-footer, #ov-origem .oc-coverage-body { padding: 14px; }
  #ov-origem .oc-coverage-grid { grid-template-columns: 1fr; gap: 16px; }
  #ov-origem .oc-coverage-item + .oc-coverage-item { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--aia-line); }
}
