﻿
/* ===== Cotações agropecuárias regionais (Scot Consultoria) ===== */
.agro-destaques { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); padding: 20px; text-align: left; }
.agro-destaques-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.agro-destaques .agro-destaques-topo h2 { margin: 0; padding: 0; font-size: 1.125rem; font-weight: 800; color: #111827; text-align: left; }
.agro-destaques-topo p { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .8125rem; color: #525c66; }
.agro-destaques-topo .ic { width: 15px; height: 15px; }
.agro-dest-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.agro-dest { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px; border-radius: 12px; background: #f8fafc; border: 1px solid #eef0f3; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.agro-dest:hover { border-color: color-mix(in srgb, var(--primary, #1d4ed8) 45%, #fff); box-shadow: 0 4px 14px rgba(15, 23, 42, .08); }
.agro-dest:focus-visible, .agro-cat:focus-visible, .agro-chip:focus-visible, .agro-btn:focus-visible { outline: 3px solid var(--primary, #1d4ed8); outline-offset: 2px; }
.agro-dest-tit { font-size: .8125rem; font-weight: 700; color: #525c66; }
.agro-dest-valor { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; color: #111827; line-height: 1.15; }
.agro-dest-un { font-size: .75rem; color: #525c66; }
.agro-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.agro-cat { display: flex; align-items: center; gap: 14px; height: 100%; min-height: 76px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1.5px solid #e5e7eb; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); text-decoration: none; color: inherit; text-align: left; transition: border-color .15s, box-shadow .15s; }
.agro-cat:hover { border-color: var(--primary, #1d4ed8); box-shadow: 0 4px 14px rgba(15, 23, 42, .08); }
.agro-cat-icone { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: 12px; background: rgba(var(--primary-rgb, 29, 78, 216), .1); color: var(--primary, #1d4ed8); }
.agro-cat-icone .ic { width: 24px; height: 24px; }
.agro-cat-boi-gordo, .agro-cat-vaca-gorda, .agro-cat-novilha-gorda { background: #fee2e2; color: #991b1b; }
.agro-cat-reposicao { background: #ffedd5; color: #9a3412; }
.agro-cat-soja-e-milho { background: #ecfccb; color: #3f6212; }
.agro-cat-leite { background: #e0f2fe; color: #075985; }
.agro-cat-atacado { background: #fef3c7; color: #92400e; }
.agro-cat-couro-e-sebo { background: #f5e6d3; color: #6b3f1d; }
.agro-cat-indicadores-scot, .agro-cat-mercado-futuro { background: #e0e7ff; color: #3730a3; }
.agro-cat-boi-no-mundo { background: #cffafe; color: #155e75; }
.agro-cat-equivalentes { background: #ede9fe; color: #5b21b6; }
.agro-cat-bolsas { background: #d1fae5; color: #065f46; }
.agro-cat-texto { display: flex; flex-direction: column; min-width: 0; }
.agro-cat-texto strong { font-size: 1rem; font-weight: 800; color: #111827; }
.agro-cat-texto small { font-size: .8125rem; color: #525c66; line-height: 1.35; }
.agro-cat-seta { width: 20px; height: 20px; margin-left: auto; flex: none; color: #94a3b8; }

/* Detalhe */
.agro-trocar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.agro-chip { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1.5px solid #e5e7eb; background: #fff; color: #374151; font-weight: 700; font-size: .875rem; text-decoration: none; white-space: nowrap; }
.agro-chip .ic { width: 16px; height: 16px; }
.agro-chip:hover { border-color: var(--primary, #1d4ed8); }
.agro-chip.is-ativa { background: var(--primary, #1d4ed8); border-color: var(--primary, #1d4ed8); color: #fff; }
.agro-info { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 14px 18px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); text-align: left; }
.agro-info-data { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .9375rem; color: #374151; }
.agro-info-data .ic { width: 18px; height: 18px; color: #525c66; flex: none; }
.agro-acoes { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.agro-busca { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1.5px solid #d1d5db; border-radius: 12px; background: #fff; }
.agro-busca:focus-within { border-color: var(--primary, #1d4ed8); outline: 3px solid rgba(var(--primary-rgb, 29, 78, 216), .25); }
.agro-busca .ic { width: 18px; height: 18px; color: #525c66; }
.agro-busca input { border: 0; outline: 0; background: transparent; font-size: 1rem; min-width: 190px; color: #111827; }
.agro-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--primary, #1d4ed8); color: #fff; font-weight: 800; font-size: .9375rem; cursor: pointer; }
.agro-btn .ic { width: 18px; height: 18px; }
.agro-btn:hover { filter: brightness(1.1); }

.agro-tabela-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); overflow: hidden; text-align: left; }
.agro-tabela-card .agro-tabela-titulo { margin: 0; padding: 16px 18px 12px; font-size: 1.0625rem; font-weight: 800; color: #111827; text-align: left; }
.agro-rolagem { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.agro-rolagem:focus-visible { outline: 3px solid var(--primary, #1d4ed8); outline-offset: -3px; }
.agro-tabela { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.agro-tabela th, .agro-tabela td { padding: 10px 12px; text-align: center; border-bottom: 1px solid #eef0f3; white-space: nowrap; }
.agro-th { font-size: .8125rem; font-weight: 800; border-bottom: 1px solid rgba(15, 23, 42, .08); }
.agro-th-esc { background: var(--primary, #1d4ed8); color: #fff; }
.agro-th-med { background: color-mix(in srgb, var(--primary, #1d4ed8) 28%, #fff); color: #111827; }
.agro-th-cla { background: color-mix(in srgb, var(--primary, #1d4ed8) 10%, #fff); color: #111827; }
.agro-th-ama { background: #fef3c7; color: #78350f; }
.agro-th-lar { background: #ea8a12; color: #fff; }
.agro-tabela tbody tr:nth-child(even) { background: #f8fafc; }
.agro-tabela tbody tr:hover { background: color-mix(in srgb, var(--primary, #1d4ed8) 6%, #fff); }
.agro-tabela tbody tr[hidden] { display: none; }
.agro-tabela .agro-td-rot { text-align: left; font-weight: 700; color: #111827; }
.agro-tabela tbody th.agro-td-rot { position: sticky; left: 0; z-index: 1; background: inherit; box-shadow: 1px 0 0 #eef0f3; }
.agro-tabela tbody tr:nth-child(odd) th.agro-td-rot { background: #fff; }
.agro-tabela tbody tr:nth-child(even) th.agro-td-rot { background: #f8fafc; }
.agro-sem-resultado { margin: 0; padding: 18px; text-align: center; color: #525c66; }

@media (max-width: 1023px) {
    .agro-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
    .agro-destaques { padding: 16px; }
    .agro-dest-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .agro-dest-lista li:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .agro-cats { grid-template-columns: 1fr; }
    .agro-info { flex-direction: column; align-items: stretch; }
    .agro-acoes { flex-direction: column; align-items: stretch; }
    .agro-busca input { min-width: 0; width: 100%; }
    .agro-btn { justify-content: center; }
    .agro-tabela { font-size: .875rem; }
    .agro-tabela th, .agro-tabela td { padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) { .agro-dest, .agro-cat { transition: none; } }

.agro-trocar { padding: 10px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); }

/* Ícones de variação: subiu (verde), desceu (vermelho), estável (neutro). Forma e sinal, não só cor. */
.agro-var { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 7px; vertical-align: middle; flex: none; }
.agro-var svg { display: block; }
.agro-var-alta { background: #d1fae5; color: #047857; }
.agro-var-baixa { background: #fee2e2; color: #b42318; }
.agro-var-estavel { background: #e5e7eb; color: #4b5563; }
.agro-tabela td .agro-var { margin-left: 6px; }
.agro-dest-var { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .9375rem; font-weight: 800; }
.agro-dest-var-alta { color: #047857; }
.agro-dest-var-baixa { color: #b42318; }
.agro-dest-var-estavel { color: #4b5563; }
.agro-legenda { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 0; padding: 0; font-size: .875rem; font-weight: 600; color: #374151; }
.agro-legenda li { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 599px) { .agro-var { width: 20px; height: 20px; border-radius: 6px; } .agro-var svg { width: 13px; height: 13px; } .agro-legenda { gap: 8px 14px; } }


.agro-trocar { scrollbar-width: none; }
.agro-trocar::-webkit-scrollbar { display: none; }
.agro-chip svg { flex: none; }
.agro-chip.is-ativa { box-shadow: 0 2px 8px rgba(15, 23, 42, .25); }
