/* INICIO MONITOR 7D*/
:root{
    --mon-border: #252729; 
}

/* Container principal que segura as duas colunas */
.monitor-container {
    display: flex;
    width: 100%;
    min-height: 500px;
    font-family: 'Ubuntu', sans-serif;
    box-sizing: border-box;
    margin-top: 20px;
    padding-right: 20px;
    padding-left: 20px;
}

.monitor-left{
    flex: 0 0 20%; 
    /* border:1px solid #252729; */
}

.monitor-center {
    flex: 0 0 60%; 
    box-sizing: border-box;
    /* border:1px solid var(--mon-border); */
}

.monitor-center-header{
    width: calc(100% - 2px);
    height:50px;
    margin-top:0;
    display:flex;
    border: 1px solid var(--mon-border);
}

.monitor-right{
    flex: 0 0 20%; 
    /* border:1px solid #252729; */
    border-left:none;
}

/* CENTER HEADER */

.monitor-center-header-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    font-size:15px;
    border-right:1px solid var(--mon-border);
    user-select: none;
}

.monitor-center-header-item.active{
    border-bottom: 3px solid #91a3bd;
    color:white;
    font-weight: normal;
    letter-spacing: 1.5px;
}

.monitor-center-header-item:last-child {
    border-right:none;
}

.monitor-center-header-item:hover {
    background-color: #1c232e;
}

.monitor-center-header-filter {
    flex: none;   /* ← cancela o flex:1 */
    width: 40px;
}

/* NOTICIAS ITENS*/

.new-feed{
    width:100%;
    min-height: 90px;
    border:1px solid var(--mon-border);
    border-top:none;
}

/* LEFT */

.monitor-box{
    box-sizing: border-box;
    color: #e0e0e0;
    /* min-height: 300px; */
    border:1px solid var(--mon-border);
    max-height: 293px;
    overflow: auto;
}

.monitor-box.margin-top{
    margin-top:15px;
}

.monitor-box.right{
    margin-right:15px;
}

.monitor-box.left{
    margin-left:15px;
}

.monitor-box-header{
    height: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color:white;
    letter-spacing: 1.5px;
    font-size:13px;
    background-color: #1d242f;

}
 
/* INICIO RANK ATIVOS */

.monitor-box-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #1d242f;
    white-space: nowrap;
}

.monitor-box-rank-item:last-child {
    border-bottom: none;
}

.rank-pos {
    font-size: 11px;
    color: #555;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.rank-ticker {
    font-size: 12px;
    font-weight: 500;
    color: #e0e0e0;
    width: 60px;
    flex-shrink: 0;
    overflow: hidden;
}

.rank-bar-wrap {
    flex: 1;
    background: #1d242f;
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
}

.rank-bar {
    height: 6px;
    border-radius: 4px;
}

.rank-count {
    font-size: 12px;
    color: #aaa;
    width: 70px;
    text-align: right;
    flex-shrink: 0;
}

/* FIM RANK ATIVOS */

/* INICIO FOLLOWING TICKERS*/

.monitor-box-following {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: auto;
    max-height:600px;
}

.monitor-box-following:hover button{
    background-color: #0f1520;;
}

.following-input-wrap {
    display: flex;
    align-items: center;
    background: #0f1520;
    border: 1px solid #2a3347;
    border-radius: 6px;
    padding: 0 8px 0 5px;
    gap: 6px;
    transition: border 0.2s;
}



.following-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #e0e0e0;
    font-size: 13px;
    padding: 8px 0;
    text-transform: uppercase;
    outline: none;
    letter-spacing: 1px;
}

.following-add-btn {
    background: none;
    border: none;
    color: #1a54a6;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 2px;
    display: flex;
    align-items: center;
    justify-content: flex-end; 
    width: 24px;                
    transition: color 0.2s, transform 0.1s;
    flex-shrink: 0;
}



.following-add-btn:hover  { color: #60a5fa; }
.following-add-btn:active { transform: scale(0.9); }

.following-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.following-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0f1520;
    border: 1px solid #2a3347;
    border-radius: 6px;
    padding: 8px 12px;
    transition: border 0.2s, opacity 0.25s, transform 0.25s;
}

.following-item:hover {
    border-color: #3B82F6;
}

.following-item-enter {
    opacity: 0;
    transform: translateY(-6px);
}

.following-item-exit {
    opacity: 0;
    transform: translateX(10px);
}

.following-ticker {
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0;
    letter-spacing: 1px;
}

.following-remove {
    background: none;
    border: none;
    color: #3a3a3a;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    justify-content: flex-end; 
    width: 24px;                
}

.following-remove:hover {
    color: #ef4444;
}

.following-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #555;
    padding: 20px 0;
}

@keyframes shake {
    0%,100% { transform: translateX(0); }
    25%      { transform: translateX(-4px); }
    75%      { transform: translateX(4px); }
}

.following-input-error {
    border-color: #ef4444 !important;
    animation: shake 0.3s ease;
}

/** FILTROS **/
.monitor-filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 0 14px;
    background: #0f1520;
    border-bottom: 1px solid var(--mon-border);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
}

.monitor-filter-bar.filter-bar-visible {
    max-height: 80px;
    opacity: 1;
    padding: 12px 14px;
}

.filter-group {
    flex: 1;        /* ← cada grupo ocupa espaço igual */
    display: flex;
    flex-direction: row;
    gap: 4px;
}

.filter-label {
    font-size: 10px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 25px;
    margin-right:10px;
}


.filter-input {
    width: 100%;    /* ← input/select preenche o grupo inteiro */
    box-sizing: border-box;
    background: #1a2235;
    border: 1px solid #2a3347;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 12px;
    padding: 6px 10px;
    outline: none;
    text-transform: uppercase;
    transition: border 0.2s;
    cursor: pointer;
}

.filter-group input{
    width:200px ;

}

.filter-group select{
    width:200px;
}

.filter-input:focus {
    border-color: #3B82F6;
}

.filter-clear-btn {
    background: none;
    border: 1px solid #2a3347;
    border-radius: 6px;
    color: #555;
    font-size: 11px;
    padding: 6px 10px;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 4px;
    transition: color 0.2s, border 0.2s;
    margin-bottom: 1px;
}

.filter-clear-btn:hover {
    color: #ef4444;
    border-color: #ef4444;
}

.filter-clear-visible {
    display: flex !important;
}

/** FIM FILTROS */
/** INICIO NEWS FEED **/

.monitor-center-content {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 96vh;
}

/* CARD */
.news-feed {
    padding: 14px 16px;
    border-bottom: 1px solid var(--mon-border);
    border-left: 1px solid var(--mon-border);
    border-right: 1px solid var(--mon-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background 0.2s;
    /* cursor: pointer; */
}

.news-feed.intraday{
    background: #0f1520;
    border-left: 1px solid #1a54a6;
}

.news-feed:hover {
    background: #0f1520;
}

/* HEADER */
.news-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.news-feed-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.news-feed-date {
    font-size: 11px;
    color: #555;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}

/* BADGES BDI */
.badge-bdi {
    font-size: 10px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #1a2a1a;
    color: #4ade80;
    border: 1px solid #2a4a2a;
}

.badge-bdi.bdi-fii {
    background: #1a1a2e;
    color: #818cf8;
    border-color: #2a2a4a;
}

.badge-bdi.bdi-fiagro {
    background: #2a1a0a;
    color: #fb923c;
    border-color: #4a2a0a;
}

.badge-bdi.bdi-bdr {
    background: #1a2a2a;
    color: #22d3ee;
    border-color: #0a3a3a;
}

/* BADGE CATEGORIA */
.badge-category {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: #1d242f;
    color: #91a3bd;
    border: 1px solid #2a3347;
}

/* CONTEUDO */
.news-feed-content {
    font-size: 14px;
    color: #c0c8d4;
    line-height: 1.6;
}

/* FOOTER */
.news-feed-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
}

.news-feed-tickers {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

/* BADGE TICKER */
.badge-ticker {
    font-size: 10px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 1.5px;
    background: #0f1a2e;
    color: #3B82F6;
    border: 1px solid #1e3a5f;
    transition: background 0.2s, border 0.2s;
}

.badge-ticker:hover {
    background: #1e3a5f;
    border-color: #3B82F6;
}

/* ACTIONS */
.news-feed-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.news-action {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}

.news-action:hover {
    color: #91a3bd;
}

.news-action i {
    font-size: 13px;
}

/* Like ativo */
.news-action.liked {
    color: #ef4444;
}

.news-action.liked i {
    animation: heartPop 0.3s ease;
}

@keyframes heartPop {
    0%   { transform: scale(1);   }
    50%  { transform: scale(1.4); }
    100% { transform: scale(1);   }
}



/* PILLS DE FORMATAÇÃO */ 

/* BADGE TICKER SIMPLES - inline no texto */
.bt {
    font-size: 10px;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 3px;
    letter-spacing: 1.5px;
    background: #0f1a2e;
    color: #3B82F6;
    border: 1px solid #1e3a5f;
    display: inline-block;
    vertical-align: middle;
    margin: 0 1px;
}

/* BADGE TICKER RODAPÉ */
.bt-footer {
    font-size: 10px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 1.5px;
    background: #0f1a2e;
    color: #3B82F6;
    border: 1px solid #1e3a5f;
}

/* PILL TICKER + VALOR */
.vol-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
    padding: 1px 7px;
    vertical-align: middle;
    margin: 0 1px;
}



/* Vol → neutro, discreto */
.vol-pill-blue {
    background: #111827;
    border: 1px solid #1f2937;
}
.vol-pill-blue .vol-ticker { color: #6b7280; }
.vol-pill-blue .vol-num    { 
    color: #f59e0b; 
    color: #7a879a;
}

.vol-ticker {
    font-size: 10px;
    font-weight: normal;
    letter-spacing: 1px;
    color: #3B82F6;
    color: gray;
}

.vol-num {
    font-size: 10px;
    color: #91a3bd;
    font-weight: bold;
}

.vol-pill-low {
    background: #1f0f0f;
    border: 1px solid #4a1f1f;
    
    background: #111827;
    border: 1px solid #1f2937;
    color: #7a879a;
}
.vol-pill-low  {
    color: #f87171;
}
.vol-pill-low .vol-num {
    color: #ef4444;
}

.vol-pill-high {
    background: #0f1f14;
    border: 1px solid #1a4a2a;

    background: #111827;
    border: 1px solid #1f2937;
    color: #7a879a;
}

.vol-pill-high  {
    color: #4ade80;
}
.vol-pill-high .vol-num {
    color: #22c55e;
}

/** TABELA INTRADAY CUSTOMIZADA */

.intraday-table {
    display: flex;
    gap: 1px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #1a2235;
}

.intraday-price,
.intraday-cell {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 4px;
    background: #111827;
    gap: 2px;
}

.intraday-price {
    flex: 1.2; /* ← preço um pouco mais largo */
    border-right: 1px solid #1a2235;
}

.intraday-cell:not(:last-child) {
    border-right: 1px solid #1a2235;
}

.intraday-period {
    font-size: 9px;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intraday-val {
    font-size: 12px;
    font-weight: 500;
}

.up { color: #22c55e; }
.dn { color: #ef4444; }

/* css para contribuições de pts IBOV*/
.context {
    font-size: 12px;
    color: #6b7280;
}

.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.col-header {
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 3px;
    margin-bottom: 4px;
    text-align: center;
}

.col-up-header {
    background: #052015;
    color: #10b981;
    border: 1px solid #064d2a;
}

.col-dn-header {
    background: #1a0510;
    color: #f43f5e;
    border: 1px solid #4a0a20;
}

.col-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    border-radius: 3px;
    margin-bottom: 3px;
}

.col-up-item {
    background: #041510;
    border-left: 2px solid #10b981;
}

.col-dn-item {
    background: #14040c;
    border-left: 2px solid #f43f5e;
}

.col-ticker {
    font-size: 10px;
    letter-spacing: 1px;
}

.col-up-item .col-ticker { color: #6ee7b7; }
.col-dn-item .col-ticker { color: #fda4af; }

.col-val {
    font-size: 11px;
    font-weight: 500;
}

.up { color: #10b981; }
.dn { color: #f43f5e; }

/* fim css para contribuições de pts IBOV*/
/* bagde para pontuação do IBOV + pts + percentual */

.b-ibov {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* background: #14040c;
    border: 1px solid #4a0a20; */
    border-radius: 4px;
    padding: 2px 10px;
    vertical-align: middle;
    font-size: 13px;
}

.b-ibov-pts { color: #91a3bd; }

.b-ibov-sep { color: #3a1020; }

.b-ibov-var {
    color: #f43f5e;
    font-weight: 500;
}

.b-ibov-pct { color: #f43f5e; }

/* CSS para tabela de volume cinza*/

.vol-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.vol-header-a {
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 3px;
    margin-bottom: 4px;
    text-align: center;
    background: #0e1420;
    color: #64748b;
    border: 1px solid #1e2a3a;
}

.vol-item-a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    border-radius: 3px;
    margin-bottom: 3px;
    background: #090e18;
    border-left: 2px solid #1e2a3a;
}

.vol-ticker-a {
    font-size: 10px;
    color: #64748b;
    letter-spacing: 1px;
}

.vol-val-a {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
}


/** FIM  NEWS FEED **/

.news-read-more{
    color:white;
    font-weight: bold;
    cursor:pointer;
    font-size:12px;
    margin-top:5px;
    display:inline-block;
    user-select: none;
}

.news-read-more:hover{
    text-decoration:underline;
}

.news-feed-content-extra{
    margin-top:8px;
    font-size:14px;
    color:#444;
    line-height:1.4;
}

/* CSS PARA TABELA HTMO DO CONTENT */

.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.tbl th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 10px;
    text-align: center;
    font-weight: 600;
}

.tbl td {
    padding: 6px 10px;
}

.a th {
    color: #475569;
    border-bottom: 1px solid #1e2a3a;
    background: #090e18;
}

.a tr:nth-child(even) td { background: #090e18; }
.a tr:nth-child(odd) td  { background: #060c14; }

.a td { border-bottom: 1px solid #0d1520; }

.td-ticker {
    color: #94a3b8;
    letter-spacing: 1px;
    font-weight: 500;
}

.td-price {
    color: #e8eaed;
    color: #C8CCD8;
    font-weight: 500;
}

.td-range {
    color: #475569;
    font-size: 11px;
}

.td-delta { color: #818cf8; }
.td-trade { color: #64748b; }
.td-vol   { color: #64748b; }

.up      { color: #10b981; font-weight: 500; }
.dn      { color: #f43f5e; font-weight: 500; }
.neutral { color: #94a3b8; }

/* BADGE DE RODA PÉ DA NOTICIA COM O PREÇO */

.ft-pill {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border-radius: 5px;
    overflow: hidden;
    font-size: 11px;
    border: 1px solid #1e3a5f;
}

.ft-pill-ticker {
    background: #0f1a2e;
    color: #3B82F6;
    font-weight: 500;
    padding: 4px 8px;
    letter-spacing: 1.5px;
    font-size: 10px;
}

.ft-pill-price {
    background: #090e18;
    color: #e0e0e0;
    padding: 4px 7px;
    font-weight: 500;
}

.ft-pill-pct {
    background: #090e18;
    padding: 4px 7px;
    border-left: 1px solid #1a2235;
}

/* Autor */

/* Avatar B */
.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #141a1f;
    border: 2px solid #2a6e4a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #6ee7a8;
    flex-shrink: 0;
}

/* Author block */
.news-feed-author {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
}
.author-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.author-name-row {
    display: flex;
    align-items: center;
    gap: 5px;
}
.author-name {
    font-size: 14px;
    font-weight: 700;
    color: #f2f2f2;
}

.author-name a {
   text-decoration:none;   
}

.author-handle {
    font-size: 11px;
    color: #555;
}
.author-badge-verified {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.author-badge-verified-gold {
    width: 14px;
    height: 14px;
    margin-left: 5px;
    vertical-align: middle;
    position: relative;
    top: -2px; 
}

/* Badge 4 — label prefix */
.v4-tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #222630;
    user-select: none;
}
.v4-label {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: #1a1d28;
    color: #444;
}
.v4-value {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    letter-spacing: 0.03em;
}

.v4-tag.bdi .v4-value { background: #0b1a14;  color: #2d8f51;  }
.v4-tag.sym .v4-value { background: #0e1828; color: #5290d8;}

.v4-tag.cat .v4-label { border-color: #1e2830; }
.v4-tag.cat .v4-value { background: #121920; color:#444 }

/* fim badge com preço */


/*inicio css comentários */

.news-comments-section {
    border-top: 1px solid #1a1d22;
    margin-top: 4px;
    padding-top: 12px;
    /* margin-left: 10px; */
}

.news-comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-item {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    
}

.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1a1d28;
    border: 1px solid #2a2d38;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #7a8090;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-author-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
}

.comment-author {
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.comment-date {
    font-size: 10px;
    color: #444;
}

.comment-text {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    word-break: break-word;
    text-align: justify;
}

.comments-show-all {
    font-size: 11px;
    color: #5ab8d4;
    cursor: pointer;
    margin-bottom: 10px;
    display: inline-block;
}

.comments-show-all:hover {
    text-decoration: underline;
}

.comments-empty,
.comments-loading {
    font-size: 12px;
    color: #444;
    padding: 4px 0;
}

.comment-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.comment-input {
    flex: 1;
    background: #141720;
    border: 1px solid #242830;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12px;
    color: #d0d0d0;
    outline: none;
    transition: border-color 0.15s;
}

.comment-input:focus {
    border-color: #2a4860;
}

.comment-input::placeholder {
    color: #383c48;
}



/*fim  css comentários */