/* Vorka México · captura del reporte trimestral (Reportes Sparks › Trimestres) */
.trim .en-nota, .rep .trim-cards + .en-nota { text-align: left; }
.trim-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; padding: 4px 16px 0; }
.trim-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 4px; align-content: start; background: var(--bg); transition: border-color .15s; text-decoration: none; color: inherit; }
.trim-card:hover { border-color: var(--fg-3); }
.trim-card.pub { border-color: var(--good); }
.trim-card-h { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.trim-card-h b { font-size: 15px; }
.trim-card-p { font-size: 13px; color: var(--accent); font-weight: 600; }
.trim-card-d { font-size: 12.5px; color: var(--fg-2); line-height: 1.4; }
.rep-mes .pill.mute { justify-self: start; }

.trim-pub { margin: 12px 16px 0; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); display: grid; gap: 12px; }
.trim-pub.on { background: var(--good-soft); border-color: transparent; }
.trim-pub-t { display: flex; gap: 12px; align-items: flex-start; }
.trim-pub-t svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.trim-pub-t b { display: block; font-size: 15px; }
.trim-pub-t small { display: block; font-size: 13px; color: var(--fg-2); line-height: 1.45; margin-top: 2px; }
.trim-pub .btn { justify-self: start; }

.trim-red { margin: 8px 16px 12px; border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: var(--bg); }
.trim-red-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.trim-red-h b { font-size: 16px; }
.trim-red-h .link { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.trim-red-h .link svg { width: 16px; height: 16px; }
.trim-met { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.3fr) 32px; gap: 6px; align-items: center; padding: 3px 0; }
.trim-met-h span { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); padding: 0 4px; }
.trim-met input, .trim-tot input { width: 100%; min-width: 0; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; font-size: 14.5px; background: var(--bg); color: var(--fg); }
.trim-met input[data-k="valor"], .trim-met input[data-k="variacion"], .trim-tot input { font-variant-numeric: tabular-nums; font-weight: 650; }
.trim-met input:focus, .trim-tot input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.trim-x { width: 32px; height: 40px; border-radius: 10px; color: var(--fg-3); font-size: 20px; line-height: 1; }
.trim-x:hover { color: var(--terra); background: var(--terra-soft); }
.trim-tot { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; padding: 4px 16px 0; }
.trim-tot label { display: grid; gap: 4px; font-size: 13px; color: var(--fg-2); font-weight: 600; }

@media (max-width: 640px) {
  .trim-met-h { display: none; }
  .trim-met { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px; grid-template-areas: "e e x" "v p p" "n n n"; padding: 8px 0; border-top: 1px solid var(--line); }
  .trim-met:first-of-type { border-top: 0; }
  .trim-met [data-k="etiqueta"] { grid-area: e; font-weight: 650; }
  .trim-met [data-k="valor"] { grid-area: v; }
  .trim-met [data-k="variacion"] { grid-area: p; }
  .trim-met [data-k="nota"] { grid-area: n; }
  .trim-met .trim-x { grid-area: x; }
}
.trim-red-h { gap: 12px; } .trim-red-h b { margin-right: auto; }
.trim-fuente { margin: 6px 4px 0; font-size: 12.5px; }
.trim-ig-prev { margin: 0 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.trim-ig-prev div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; font-size: 14.5px; }
.trim-ig-prev div + div { border-top: 1px solid var(--line); }
.trim-ig-prev b { font-variant-numeric: tabular-nums; }
.fb-sel { align-items: flex-start; cursor: default; }
.fb-sel select { margin-top: 6px; width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; font: inherit; font-size: 14px; background: var(--bg); color: var(--fg); }
.emp-l { margin: 0 12px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-height: 52vh; overflow-y: auto; }
.emp-h, .emp-f { display: grid; grid-template-columns: minmax(0, 1fr) 84px 84px; gap: 8px; padding: 9px 12px; align-items: center; font-size: 13.5px; }
.emp-h { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); background: var(--bg-2, transparent); }
.emp-f + .emp-f, .emp-h + .emp-f { border-top: 1px solid var(--line); }
.emp-f > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emp-f small { color: var(--fg-3); margin-right: 4px; }
.emp-ok { color: var(--fg-3); } .emp-new { color: var(--verde, #1f8a5b); font-weight: 700; text-decoration: none; }
.emp-falta { color: var(--terra, #c0392b); font-weight: 650; } .emp-warn { color: #b7791f; font-weight: 650; } .emp-x { color: var(--fg-3); font-size: 12.5px; }
