/* === ANALISE DE MERCADO === */
.am-section { margin-bottom: 24px; background: white; border-radius: 10px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.am-section h3 { font-size: 16px; color: #1a3c7d; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #e0e0e0; }
.am-trend-grid { display: grid; grid-template-columns: 200px 1fr 280px; gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .am-trend-grid { grid-template-columns: 1fr; } }
.am-trend-indicator {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; border-radius: 10px; text-align: center; min-height: 180px;
}
.am-trend-indicator .arrow { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.am-ipc-info { margin-top: 14px; border: 1px solid #e0e8ff; border-radius: 8px; overflow: hidden; }
.am-ipc-info-toggle { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #f0f4ff; cursor: pointer; user-select: none; font-size: 12px; font-weight: 600; color: #1a3c7d; border: none; width: 100%; text-align: left; }
.am-ipc-info-toggle:hover { background: #e0eaff; }
.am-ipc-info-toggle .am-ipc-chevron { margin-left: auto; transition: transform 0.2s; font-style: normal; }
.am-ipc-info-body { display: none; padding: 16px 18px; background: #fff; font-size: 12.5px; color: #333; line-height: 1.65; }
.am-ipc-info-body.open { display: block; }
.am-ipc-def { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 700px) { .am-ipc-def { grid-template-columns: 1fr; } }
.am-ipc-def-box { background: #f8f9fa; border-radius: 6px; padding: 10px 12px; }
.am-ipc-def-box h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #1a3c7d; margin: 0 0 5px; }
.am-ipc-niveis { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.am-ipc-nivel { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; padding: 6px 10px; border-radius: 5px; }
.am-ipc-nivel.critico { background: #fee2e2; color: #991b1b; }
.am-ipc-nivel.elevado { background: #ffedd5; color: #9a3412; }
.am-ipc-nivel.moderado { background: #fef9c3; color: #854d0e; }
.am-ipc-nivel.baixo { background: #dcfce7; color: #166534; }
.am-trend-indicator .label { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.am-trend-indicator .variacao { font-size: 13px; opacity: 0.9; }
.am-trend-alta { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #991b1b; }
.am-trend-baixa { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; }
.am-trend-estavel { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.am-chart-container { position: relative; min-height: 200px; background: #fafafa; border-radius: 8px; padding: 10px; }
.am-chart-container canvas { width: 100% !important; }
.am-recomendacao {
  background: #f0f4ff; border-radius: 10px; padding: 16px; border-left: 4px solid #1a3c7d;
  display: flex; flex-direction: column; gap: 10px;
}
.am-recomendacao .titulo { font-size: 13px; font-weight: 700; color: #1a3c7d; text-transform: uppercase; letter-spacing: 0.5px; }
.am-recomendacao .texto { font-size: 13px; color: #333; line-height: 1.5; }
.am-recomendacao .cotacao { font-size: 12px; color: #666; padding-top: 8px; border-top: 1px solid #ddd; }
.am-recomendacao .cotacao strong { color: #1a3c7d; font-size: 14px; }
.am-toolbar { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.am-toolbar button { padding: 6px 14px; border-radius: 6px; font-size: 12px; cursor: pointer; border: 1px solid #ddd; background: white; transition: all 0.2s; }
.am-toolbar button:hover { background: #f0f4ff; border-color: #1a3c7d; }
.am-toolbar button.primary { background: #1a3c7d; color: white; border-color: #1a3c7d; }
.am-toolbar button.primary:hover { background: #0f2b5e; }
.am-opp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; }
.am-opp-card {
  background: white; border-radius: 10px; padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08); border-top: 3px solid #1a3c7d;
}
.am-opp-card .opp-label { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.am-opp-card .opp-value { font-size: 28px; font-weight: 700; color: #1a3c7d; margin: 6px 0; }
.am-opp-card .opp-detail { font-size: 12px; color: #666; }
.am-opp-card.destaque { border-top-color: #27ae60; }
.am-opp-card.destaque .opp-value { color: #27ae60; }
.am-opp-card.info { border-top-color: #2980b9; }
.am-opp-card.info .opp-value { color: #2980b9; }
.am-news-toolbar { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.am-news-toolbar input { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; min-width: 220px; }
.am-news-toolbar select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; }
.badge-automatica { background: #dbeafe; color: #1e40af; }
.badge-manual { background: #d1fae5; color: #065f46; }
.badge-reajuste { background: #fee2e2; color: #991b1b; }
.badge-oportunidade { background: #d1fae5; color: #065f46; }
.badge-concorrencia { background: #fef3c7; color: #92400e; }
.badge-regulamentacao { background: #e0e7ff; color: #3730a3; }
.badge-mercado { background: #f3f4f6; color: #374151; }
.badge-alta-prio { background: #fee2e2; color: #991b1b; font-weight: 700; }
.badge-media-prio { background: #fef3c7; color: #92400e; }
.badge-baixa-prio { background: #d1fae5; color: #065f46; }
.am-link { color: #1a3c7d; text-decoration: none; }
.am-link:hover { text-decoration: underline; }
.am-loading { text-align: center; padding: 40px; color: #888; font-size: 14px; }
.am-empty { text-align: center; padding: 30px; color: #aaa; font-size: 13px; }