/* The site's main sheet: the live site's own theme stylesheet, on top of static/base.css */

html {
    scroll-behavior: smooth;
}

html, body {
	scrollbar-width: thin;
}

body::-webkit-scrollbar {
  	width: 6px; /* Width of the scrollbar */
}

body::-webkit-scrollbar-track {
	-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
	background-color: whitesmoke;
}

body::-webkit-scrollbar-thumb {
  	background-clip: padding-box; /* Clip the background of the thumb */
	-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
	background-color: gray;
}

.no-scroll {
  overflow: hidden;
}

.no-scroll .container {
	padding-right: 21px;
}
#custom-toc {
    background-color: white;
    border: 1px solid #E6E6E6;
    border-radius: 8px;
	padding-left: 0;
}

#custom-toc ul {
	margin-bottom: 0;
}

#custom-toc .title {
	margin-bottom: 15px;
    font-size: 17px;
	padding-left: 10px;
}

#custom-toc ul li {
    font-size: 14px;
	border-left: none;
}

#custom-toc ul li.active {
	border-left: 1px solid;
}
.flex {
    box-sizing: border-box;
    display: flex;
    flex: 0 1 auto;
    flex-direction: row;
    flex-wrap: wrap;
}

.article-title h1 {
	text-align: center;
    font-size: 30px;
    letter-spacing: -0.01rem;
    font-weight: 400;
	margin-top: 30px;
}

.custom-search-form {
	position: relative;
	display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.custom-search-form label {
	width: 100%;
    box-sizing: border-box;
	z-index: 410;
	margin: 0;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

/* the magnifier (an inline SVG of the glyph the site drew from an icon font), in
   the box the glyph's line gave it: 1em wide, 1.6em high, the glyph centred */
.search-icon {
    display: flex;
    align-items: center;
    height: 1.6em;
    font-size: 20px;
    transition: opacity .2s ease;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc; /* Adjust color as needed */
    pointer-events: none; /* Makes the icon unclickable, allowing interaction with the input field */
}

.custom-search-form input {
	width: 100%;
    box-sizing: border-box;
	background-color: #42618c;
	color: white;
}

input.custom-search-field {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
    padding: 5px;
    border-radius: 3px;
    margin-right: 5px;
	padding-left: 40px; /* Search Icon */
}

.search-dropdown {
	position: absolute;
	top: 100%;
    left: 0;
	background-color: #fff;
    width: 100%;
    min-height: 10px;
    border: 1px solid darkgrey;
	z-index: 410;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
	padding: 5px;
	text-decoration: none;
	color: #333;
	cursor: pointer;
	border-bottom: 1px solid rgb(233 237 240);
	min-width: 61px;
}

.search-dropdown-item.active {
    background-color: #e0e0e0;
}

.search-dropdown-item:last-child {
    border-bottom: none;
	border-width: 0;
}

.table_dividend_calendar_aside_wrapper .search-dropdown-item:hover {
    background-color: initial;
}

.search-dropdown-item:hover {
	background-color: #f5f5f5;
}

.no-results {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100px;
    justify-content: center;
    border-bottom: 1px solid rgb(233 237 240);
}

.no-results-bold {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.no-results-normal {
  font-size: .9rem;
}

.search-input-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 400;
}

.search-dropdown-hint {
    display: flex;
    background-color: #e9edf0;
    padding: 5px;
    gap: 20px;
    user-select: none;
}

.search-dropdown-hint .item-svg {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-dropdown-categories {
  display: flex;
  justify-content: space-around;
  padding: 0.5rem;
  border-bottom: 1px solid #ccc;
}

.search-dropdown-categories input[type="radio"] {
  display: none;
}

.search-dropdown-categories label {
  cursor: pointer;
    text-align: center;
    border-radius: 1rem;
    user-select: none;
	white-space: nowrap;
	font-size: 14px;
	padding: 0 7px;
}

.search-dropdown-categories input[type="radio"]:checked + label {
    background-color: #e1effa;
    color: #333;
}

.search-dropdown-categories input[type="radio"]:not(:checked) + label:hover {
  background-color: #f1f1f1;
}

.suggestion-image {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.close-search-btn {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 32px;
    height: 90%;
    background-color: #42618c;
}

.search-icon svg,
.close-search-btn > svg {
    display: block;
    width: 1em;
    height: 1em;
}

/* the cross, as the magnifier */
.close-search-btn > svg {
    font-size: 15px;
    transition: opacity .2s ease;
    position: absolute;
    left: 10px;
    top: 53%;
    transform: translateY(-50%);
    color: #ccc;
    pointer-events: none;
}

.reset-search-btn {
    display: none;
    position: absolute;
    right: 50px;
    bottom: 0;
    cursor: pointer;
    width: 60px;
    height: 90%;
    background-color: #42618c;
    color: #ccc;
    align-items: center;
    padding-left: 5px;
    box-sizing: content-box;
    top: 50%;
    transform: translateY(-50%);
}

.reset-search-btn::after {
    content: "|";
    color: #ccc;
    margin-left: 9px;
    height: 100%;
    font-size: 24px;
    top: 50%;
    display: flex;
    align-items: flex-start;
    pointer-events: none;
    font-weight: 100;
    user-select: none;
    background-color: #42618c;
}

.content {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.stock-name-wrapper {
    display: flex;
    flex-direction: column;
    margin-right: 10px;
}

.stock-name {
}

.ticker {
    font-size: 0.8rem;
    align-self: flex-start;
}

.category {
    font-size: 0.8rem;
    align-self: flex-end;
}

.custom-page-container {
    display: grid;
    grid-template-columns: minmax(250px, 844px) minmax(336px, 1fr);
    grid-gap: 10px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.custom-page-container.alone {
	grid-template-columns: 1fr;
}

.custom-page-container.no-right {
	grid-template-columns: minmax(336px, 1fr) minmax(250px, 844px);
}

.toc-container {
    position: sticky;
    top: 10px;
	height: fit-content;
    overflow: auto;
}

.site-content {
    max-width: 844px;
	margin-bottom: 0;
}
.custom-page-container.alone .site-content, .custom-page-container-no-sidebar-with-ads .site-content {
	max-width: 100%;
}

.stock-data-container {
    border-bottom: 1px solid #e9ecef;
  border-radius: 4px;
  flex-wrap: wrap;
  padding: 20px;
  width: 100%;
  display: grid;
    grid-column: auto;
    grid-template-rows: auto auto;
    gap: 16px;
	background-color: white;
}

.stock-data-container .top-container {
  display: flex;
  align-items: center;
  height: fit-content;
	max-width: 1022px;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
    row-gap: 16px;
}

.featured-image {
  max-height: 100%;
  max-width: 50px;
  margin-right: 10px;
}

.featured-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.stock-info {
  display: flex;
  flex-direction: column;
margin-right: 10px;
}

.stock-name-banner,
.stock-ticker-banner {
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.stock-name-banner {
    font-size: 26px;
    font-weight: 600;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.stock-data-container .mid-container {
    max-width: 1022px;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
}

.stock-data-item-category {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.category-link,
.tag-link {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 20px;
  text-decoration: none;
}

.category-link {
  background-color: #e1effa; /* Light blue background */
    color: #212529; /* Dark grey text color */
}

.tag-link {
  background-color: #e2e3e5; /* Light grey background */
  color: #212529; /* Dark grey text color */
}

.stock-data-container.index .low-container {
	grid-template-columns: auto auto auto auto auto;
	    justify-content: inherit;
}

.change-value {
  font-weight: bold;
}

.main-label {
    font-size: 14px;
    text-transform: uppercase;
}

.main-value {
    font-size: 19px;
    font-weight: bold;
}

/* Hide right column on medium screens */
@media screen and (max-width: 1024px) {
	.custom-page-container {
    	grid-template-columns: minmax(auto, 844px) minmax(180px, 1fr);
		grid-gap: 15px;
	}
	#stock_template .custom-page-container {
    	grid-template-columns: minmax(auto, 844px) minmax(336px, 1fr);
    	max-width: calc(100vw - 30px);
	}
	#stock_template .left-side.alone {
	}
	.custom-page-container.no-right {
		grid-template-columns: 1fr;
	}
	.custom-page-container.no-right .site-content {
		max-width: 100%;
	}
	.toc-container {
        display: none;
    }
    .stock-data-container {
        padding: 10px;
    }
	.site-content {
		overflow: hidden;
	}
	.main-page-wrapper .container article {
		padding: 0 15px;
	}
	.stock-name-banner {
		font-size: 22px;
	    max-width: calc(100vw - 140px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
	}
	.stock-ticker-banner {
		font-size: 14px;
	}
	.mid-container {
		font-size: 14px;
	}
	.main-label {
		font-size: 12px;
	}
	.main-value {
		font-size: 16px;
	}
	.no-scroll .container {
    	padding-right: 15px !important;
	}
	.grid-empresas {
        grid-template-columns: repeat(5, 1fr) !important;
    }
    .article-section-custom {
        padding: 15px !important;
    }
    .stock-data-container .top-container {
        flex-wrap: wrap; /* Allow the flex container to wrap onto the next line */
    }

    .stock-data-container .stock-data-item-category {
        width: 100%;    /* Make the last child take the full width of the container */
        order: 1;       /* Ensure it's positioned below other elements */
    }
}
/* Hide left column (TOC) on small screens */
@media screen and (max-width: 768px) {
	.custom-page-container {
    	grid-template-columns: minmax(auto, 844px) !important;
    	grid-gap: 0;
	}
	.search-dropdown-hint {
		display: none;
	}
	.right-sidebar {
	order: -1;
	}
	.author-review-date-container {
		flex-direction: column;
    }
    #stock_template .table_dividend_calendar_aside_wrapper, #stock_template .aside-similar-companies {
        margin-bottom: 10px;
    }
    #stock_template aside .stay-at-bottom, #stock_template aside .where-to-buy-aside {
        display: none;
    }
    .author-container, .reviewer-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 5px;
    }
    
    .author-info, .reviewer-info, .date-container {
    width: 100%;
    }
    
    .author-review-date-container {
      justify-content: space-between;
      align-items: center;
      background-color: #f0f0f0;
      padding: 10px;
      border-radius: 10px;
      margin-bottom: 7px;
    }
    
    .author-review-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
    }
    
    .author-container,
    .reviewer-container {
      width: 50%;
      display: flex;
      align-items: center;
    }
    
    .date-container {
      width: 100%;
      margin-top: 10px;
      display: flex;
      justify-content: center;
    }
    
    .author-avatar, .reviewer-avatar {
      border-radius: 100%;
      overflow: hidden;
      margin-right: 10px;
    }
    
    .author-name,
    .reviewer-name,
    .date-label,
    .date-value {
      font-size: 14px;
    }
    
    .reviewer-label,
    .author-label {
      font-size: 13px;
    }
    
    .author-name,
    .reviewer-name {
      font-weight: bold;
    }
    
    .date-label {
      margin-right: 5px;
      color: gray;
    }
	#stock_template .stock-name-wrapper .stock-name {
		max-width: inherit;
	}
	.stock-name-wrapper .stock-name {
    	font-size: 15px;
		max-width: 80px;
		text-overflow: ellipsis;
		overflow: hidden;
		white-space: nowrap;
	}
	.dividend_table.dividendYield .stock-name-wrapper .stock-name {
		max-width: 240px;
	}
	form .stock-name-wrapper .stock-name {
		font-size: 15px;
		max-width: initial;
		text-overflow: initial;
		overflow: initial;
		white-space: initial;
	}
	.dividend_table td.align-left {
		max-width: 150px;
	}
	form input.custom-search-field {
    	font-size: 16px;
	}
	.pro-contras-broker .buttons {
		display: grid;
		gap: 5px;
		margin-bottom: 20px;
	}
	.tabla-brokers td.align-left {
	  white-space: break-spaces !important;
	}
	.grid-empresas {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}
@media screen and (max-width: 576px) {
	input[type="checkbox"] {
	    width: 25px;
        height: 25px;
	}
	.dividend_table td a {
		width: 150px;
	}
	.dividend_table.sectores td.align-left {
		white-space: pre-line;
		width: 100px;
		min-width: initial;
	}
	.dividend_table.dividendYield .stock-name-wrapper .stock-name {
		max-width: 160px;
	}
	.nuestro-equipo-wrapper {
		grid-template-columns: 1fr !important;
	}
	.nuestro-equipo-wrapper .author-name {
		font-size: 14px !important; 
	}
	.grid-empresas {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
	
@media screen and (max-width: 420px) {
	.search-dropdown-categories label {
		white-space: nowrap;
		font-size: 13px;
		padding: 0 5px;
	}
	.grid-empresas {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media screen and (max-width: 370px) {
    .grid-empresas {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.nuestro-equipo-wrapper {
	display: grid;
    grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.nuestro-equipo-wrapper .team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 18px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background-color: #f7f9fc;
}

.nuestro-equipo-wrapper .author-name {
	font-size: 16px;
	text-align: center;
}

.nuestro-equipo-wrapper .team-role {
    font-size: 13px;
    color: #64748b;
}

figure.scrollWrapper {
  overflow: auto;
}

.dividend_table {
	width: 100%;	
	margin-bottom: 0;
}

.dividend_table th {
	padding-left: 5px !important;
    padding-bottom: 5px !important;
    font-size: 14px;
}

.dividend_table td {
	border-bottom: none;
    border-width: 0;
}

.dividend_table tbody tr {
	border-bottom: 1px solid var(--brdcolor-gray-300);
}

.dividend_table td.align-left {
	display: flex;
	min-width: max-content; /*NO COMPATIBLE CON IOS CHROME MOBILE*/
}

.dividend_table td.align-left, .dividend_table th.align-left {
	 text-align: start;
	margin-left: 0;
}

.dividend_table td, .dividend_table th {
	 padding: 0 0;
	 text-align: end;
	 white-space: nowrap;
}

.dividend_table.sectores td {
	white-space: pre-line;
}

.dividend_table td a {
	min-width: 100%;
}

.dividend_table td a .suggestion-image {
	width: 40px;
    height: 40px;
}

.dividend_table tbody tr:hover {
	background-color: #f0f0f0;
}

td.index span {
	padding: 2px 4px;
    font-size: 80%;
    border-radius: 8px;
    background-color: #42618c1c;
}

.index.ibex35 span, span.index.ibex35 {
	background-color: #cacaf4;
}

.index.ibex-medium span, span.index.ibex-medium {
	background-color: lightsteelblue;
}

.index.nasdaq span, span.index.nasdaq {
	background-color: lightgray;
}

.index.nyse span, span.index.nyse {
	background-color: powderblue;
}

.custom-search-form.non-clickable {
	z-index: 0;
}

.custom-search-form.non-clickable {
	z-index: 0;
	border-radius: 20px;
}

.custom-search-form.non-clickable input {
	border-radius: 20px;
    background-color: #f0f0f1;
    color: inherit;
    padding-left: 50px;
}

.custom-search-form.non-clickable input[disabled] {
	opacity: 1 !important;
}

.custom-search-form.non-clickable .search-icon {
    color: white;
    background-color: #42618c;
    padding: 0 7px;
    border-radius: 100%;
}

.custom-fade-container {
  position: relative;
  overflow: hidden;
	pointer-events: none;
}

.custom-fade-container::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px; /* Adjust the height of the fade effect */
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  pointer-events: none;
	z-index: 1;
}

.custom-fade-container::after {
content: "Ver más";
    position: absolute;
    bottom: 0;
    left: 50%;
    padding: 8px 12px;
    background-color: #dddddd;
    color: #333;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    user-select: none;
    pointer-events: all;
    width: 30%;
    border-radius: 20px;
    transform: translateX(-50%);
	z-index: 2;
}

.autogenerated-template .custom-fade-container::after {
    bottom: 10px;
}

.custom-fade-container.expanded {
  max-height: none;
}

.custom-fade-container.expanded::before,
.custom-fade-container.expanded::after {
  display: none;
}

.custom-fade-container-clickable {
  position: relative;
  overflow: hidden;
}

.custom-fade-container-clickable.expanded::before {
  display: none;
}

.custom-fade-container-clickable::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  pointer-events: none;
	z-index: 1;
}

.custom-fade-container-clickable .show-more {
    display: none;
    position: absolute;
    bottom: 0;
    left: 50%;
    padding: 8px 12px;
	background-color: #ddddddc2;
	color: #333;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    user-select: none;
    width: 180px;
    border-radius: 20px;
    transform: translateX(-50%);
    z-index: 2;
}

.custom-fade-container-clickable:not(.expanded) .show-more {
  display: block;
}

.prefooter {
    background-color: #f9f9f9;
}

article.dividend-calendar {
    border-bottom: 1px solid #f0f0f0;
    padding: 5px 0 !important;
	margin: 0 !important;
}

article.dividend-calendar:hover .stock-name-wrapper {
    color: #3b83e9;
    transition: ease-out .3s;
}

article.dividend-calendar .data {
	display: flex;
    justify-content: space-between;
	font-size: 14px;
	margin-left: 34px;
}

img.filter-checks {
    filter: contrast(1.5) brightness(0.5) hue-rotate(63deg);
	width: 12px;
}

.tabla-brokers tbody td img {
    filter: contrast(1.5) brightness(0.5) hue-rotate(63deg);
}

article.dividend-calendar .stockData {
	display: flex;
    justify-content: space-between;
	margin-bottom: 3px;
}

article.dividend-calendar .stockData img {
	height: 24px;
    width: 24px;
}

article.dividend-calendar .stockData .category {
	display: flex;
    align-self: center;
}

article.dividend-calendar .stockData .category {
	padding: 0 4px;
    font-size: 80%;
    border-radius: 8px;
	background-color: #42618c99;
    color: white;
	white-space: nowrap;
	background-color: #42618c1c;
	color: #8d8d8d;
}

article.dividend-calendar .stockData .search-dropdown-item {
	padding: 0;
	border-bottom: none;
}

article.dividend-calendar .stockData .search-dropdown-item .stock-name-wrapper {
	flex-direction: row;
	margin-right: 5px;
}

article.dividend-calendar .stockData .search-dropdown-item .stock-name-wrapper .stock-name {
    max-width: initial;
    white-space: initial;
}

article.dividend-calendar .stockData .search-dropdown-item .stock-name-wrapper .ticker {
	margin-left: 5px;
	display: flex;
    align-self: center;
}

article.dividend-calendar .stockData .search-dropdown-item .stock-name-wrapper .ticker::before {
    content: "(";
}

article.dividend-calendar .stockData .search-dropdown-item .stock-name-wrapper .ticker::after {
    content: ")";
}

article.dividend-calendar .data .light {
    font-weight: 400;
    color: #a6a6a6;
}

article.dividend-calendar .data .bold {
    font-weight: 500;
    color: var(--text-color);
}

.article-section-custom {
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    background: #FFFFFF;
    border: 1px solid #E6E6E6;
    border-radius: 8px;
    margin-bottom: 10px;
}

.grid-empresas {
    display: grid;
    grid-column-gap: 20px;
    grid-template-columns: repeat(6, 1fr);
    grid-row-gap: 20px;
}

.grid-empresas a {
    aspect-ratio: 1.37 / 1;
    overflow: hidden;
    display: flex;
}

.grid-empresas img:hover {
    border-color: #a6b8c3;
}

.grid-empresas img {
display: block;
    width: 100%;
    transition: filter .3s;
    user-select: none;
    border-radius: 11px;
    border: 4px solid;
    border-color: #13396f;
    border-radius: 11px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.15);
    object-fit: cover;
    height: 100%;
}

.promo_dividends_text {
	display: flex;
    background: linear-gradient(246deg,#097c5c 10%,#1c4b9d);
    align-items: center;
    gap: 10px;
    max-width: fit-content;
    margin: auto;
    border-radius: 8px;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
	font-weight: 600;
}

.promo_dividends_text img {
	background-color: white;
    padding: 5px 5px;
    box-sizing: content-box;
    border-radius: 8px;
}

/*------------------ PUBLICIDAD -----------------*/

.custom-page-container .right-sidebar {
	display: flex;
    flex-direction: column;
}

.custom-page-container .right-sidebar .right-sidebar-stocks {
	flex-grow: 1;
}

.main-page-wrapper .container article.no-sidebar-with-ads {
	max-width: 100% !important;
    margin: auto;
}

.custom-page-container-no-sidebar-with-ads {
	display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(250px, 1022px) minmax(160px, 1fr);
    grid-gap: 10px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.custom-page-container-no-sidebar-with-ads .left-sidebar {
    position: sticky;
    top: 100px;
    height: 90vh;
    overflow: auto;
    height: calc(100vh - 110px);
}

.right-sidebar-stocks {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.custom-page-container-no-sidebar-with-ads .right-sidebar .child, .right-sidebar-stocks .child {
    position: sticky;
    top: 100px;
}

.right-sidebar-stocks .first-child, .right-sidebar-stocks .second-child {
    height: 1000px;
    margin-bottom: 100px;
}

.right-sidebar-stocks .first-child {
}

.right-sidebar-stocks .second-child {
}

.right-sidebar-stocks {
    justify-content: initial;
}

.right-sidebar-stocks .first-child,
.right-sidebar-stocks .second-child
{
    margin-bottom: 10px;
}

.right-sidebar-stocks .second-child
{
    flex-grow: 1;
}

.custom-page-container .right-sidebar .right-sidebar-stocks > :last-child {
    margin-bottom: 0 !important;
}

.advertisement-header .text {
	color: #979797;
    position: relative;
    display: inline;
    margin: 0 5px;
    white-space: nowrap;
}

@media screen and (max-width: 1024px) {
	.custom-page-container-no-sidebar-with-ads {
		grid-template-columns: minmax(auto, 1022px) minmax(160px, 1fr);
	}
	.custom-page-container-no-sidebar-with-ads .left-sidebar {
		display: none;
	}
	.custom-page-container.no-right aside > *:not(:first-child) {
    	display: none;
	}
}

@media screen and (max-width: 768px) {
	.custom-page-container-no-sidebar-with-ads {
		grid-template-columns: 1fr;
	}
	.right-sidebar-stocks {
		display: none;
	}
	.custom-page-container .sidebar-content {
	    order: -1;
	}
	.tooltip-message .tooltip-text {
	    position: fixed !important;
	    bottom: 10px;
	    right: 0;
	    left: 0 !important;
	    margin: auto !important;
	    width: calc(100vw - 20px) !important;
        box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px !important;
	}
}

@media screen and (min-width: 1025px) {
	.author-review-container {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
	}
	.date-container {
		justify-content: center;
	}
}

/* Animation to fade in the close button */
@keyframes fade-in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* Animation that slides the ad container up from the bottom */
@keyframes slide-up {
  0%   { bottom: -100%; }
  100% { bottom: 0; }
}

.table_dividend_calendar_aside_wrapper {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 10px;
}

.table_dividend_calendar_aside_wrapper .similar-calendar-companies, .title-grid-similar-companies {
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    display: block;
    width: 100%;
    position: relative;
    color: gray;
}
.table_dividend_calendar_aside_wrapper .similar-calendar-companies::after, .title-grid-similar-companies::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%; /* Position starting from the middle */
    transform: translateX(-50%); /* Shift back by half of its own width */
    width: 85%;
    height: 1px;
    background-color: #00000029;
}

.custom-calendar-button {
    background-color: #13396F;
    border-radius: 100px 100px 100px 100px;
    margin-top: 10px;
    width: 100%;
}

.custom-calendar-button:hover {
    transition: ease-out .3s;
    background-color: #315c98;
}

.stock-chart-container .search-dropdown-item:hover {
    background-color: initial;
    cursor: initial;
}

.stock-chart-container .search-dropdown-item .suggestion-image {
    border-radius: 100%;
}

.stock-chart-container .price-wrapper .price-change .arrow {
    scale: .9;
    margin-bottom: -1px;
}

.stock-chart-container .search-dropdown-item .content .market-state {
    height: 30px;
    align-self: center;
}

.stock-chart-container .arrow_box .date {
    font-size: smaller;
}

.button-stock-chart-container button.active {
    border-bottom: solid 2px #0081f2;
    box-shadow: none;
    color: #0081f2;
}
.stock-chart-container h2.stock-name {
    margin: 0 !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 25.6px;
    color: rgb(51, 51, 51);
}
.stock-chart-container h2.stock-name::after {
    content: none;
}

/* BANNER NAVEGACION STOCKS */
.mini-banner-wrapper {
    width: 100%;
    background-color: #f4f4f4;
    overflow-x: auto; /* will cause horizontal scrolling if content overflows */
    white-space: nowrap; /* prevents the list items from breaking onto the next line */
    position: sticky;
    top: 0; /* Stick to the top of the viewport */
    z-index: 10;
    background-position: bottom left;
    background-repeat: no-repeat;
    background-size: 100% 2px;
}
.mini-banner-wrapper .mini-banner {
    display: flex;
    align-items: center;
    height: 40px;
    max-width: 1022px;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
    justify-content: space-between;
    padding: 10px 10px;
}

.mini-banner-wrapper .mini-banner .toc-nav ul {
    list-style: none;
    display: inline-flex; /* makes list items display in a line, but they won't wrap */
    margin-bottom: 0;
    list-style-type: none; /* removes the default bullet points */
    padding-left: 0;
}

.mini-banner-wrapper .mini-banner .toc-nav ul li {
    margin-bottom: 0;
    border-right: 1px solid #33333359;
}

.mini-banner-wrapper .mini-banner .toc-nav ul li:last-child {
    border-right: none;
}

.mini-banner-wrapper .mini-banner .toc-nav button {
    text-decoration: none;
    color: #333;
    padding: 5px 6px;
    margin: 0 4px;
    border-radius: 3px;
    transition: background-color 0.2s;
    text-transform: none;
    font-size: 16px;
    font-weight: 400;
    user-select: none;
}

.mini-banner-wrapper .mini-banner .toc-nav button:hover {
    background-color: #ddd;
    box-shadow: none;
    border-radius: 8px;
}

.mini-banner-wrapper .mini-banner .toc-nav button.active {
    font-weight: bold;
}

.mini-banner-wrapper .mini-banner .toc-anchor {
    display: block;
    position: relative;
    top: -100px;  /* Adjust this value based on your site's header height to ensure smooth scrolling */
    visibility: hidden;
}

.mini-banner-wrapper .mini-banner h1 {
    font-size: initial;
    margin-bottom: 0 !important;
    text-wrap: nowrap;
        white-space: nowrap; /* Keeps the content in a single line */
    overflow: hidden; /* Hide content that exceeds the container */
    text-overflow: ellipsis; /* Display ... for hidden content */
    min-width: 140px;
    padding-right: 10px;
}

.custom-fade-container.expanded {
    pointer-events: auto;
}

/* ------------------------------ SHORTCODE PROXIMO DIVIDENDO ------------------------------ */
.section-next-dividend {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 10px;
    margin-bottom: 25px;
}

.section-next-dividend .change-rectangle {
    display: flex;
    background-color: #F4F5F7;
    border-radius: 10px;
    flex-direction: column;
    padding: 20px 10px;
    margin-right: 10px;
}
.section-next-dividend .change-rectangle-inside {
    border-radius: 10px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

.section-next-dividend .change-text, .section-next-dividend .payment-label {
    font-size: 12px;
    color: #13396F;
}

.section-next-dividend .top .payment-label {
    font-size: 14px;
    font-weight: 500;
}
.section-next-dividend .top .payment-value {
    font-size: 18px;
    font-weight: 500;
}

.section-next-dividend .change-value-text {
    font-size: 15px;
    background-color: #dddddd;
    padding: 3px 8px;
    border-radius: 20px;
}

.section-next-dividend .change-value-text.incremento {
    background-color: #62E9B5;
}

.section-next-dividend .change-value-text.decremento {
    background-color: #F44336;
    color: white;
}

.section-next-dividend .change-value {
    font-size: 18px;
}

.section-next-dividend .change-value.incremento {
    color: #4CAF50;
}

.section-next-dividend .change-value.decremento {
    color: #F44336;
}

.section-next-dividend .paymento-info-column {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.section-next-dividend .paymento-info-column-individual:first-child {
    width: 40%;
}

.section-next-dividend .paymento-info-column-individual {
    display: flex;
    flex-direction: column;
}

.section-next-dividend .payment-info {
    display: grid;
    grid-template-rows: auto auto;
    gap: 12px 25px;
    align-items: center;
}

.section-next-dividend .payment-value {
    font-size: 16px;
    color: #333;
    text-align: left;
}

.section-next-dividend .timer-box {
    display: flex;
    align-items: baseline;
    flex-direction: column;
    justify-content: center;
}

.section-next-dividend .timer {
    display: flex;
    align-items: baseline;
}

.section-next-dividend .timer-value {
    font-size: 20px;
    color: #333333e8;
    font-weight: 400;
    font-family: 'Orbitron';
    transform: scaleX(0.8) scaleY(1.2);
    width: 33px;
}

.section-next-dividend  .timer-unit {
    font-size: 14px;  /* Estimated size */
    color: #888;  /* Placeholder color for lighter text */
    margin-right: 10px;  /* Space between units */
}

.section-next-dividend  .timer-label {
    font-size: 14px;  /* Estimated size */
    color: #888;  /* Placeholder color for lighter text */
    padding-left: 3px;
}

.section-next-dividend .confirmation {
    position: absolute;
    margin-top: 6px;
    right: 30px;
    padding: 1px 10px 1px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    color: #62e9b5;
    display: flex;
    align-items: center;
    border: 1px solid #62E9B5;
}

.section-next-dividend .confirmation::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    background-color: #62E9B5;
    border-radius: 50%;
    margin-right: 8px;
}

.section-next-dividend .confirmation.no-disponible {
    border-color: #df5b4a;
    color: #df5b4a;
}
.section-next-dividend .confirmation.no-disponible::before {
    background-color: #df5b4a;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Hide the checkbox */
.accordion-checkbox {
    display: none;
}

.accordion {
    border-radius: 10px;
    transition: margin-bottom 0.3s ease-in; /* Smoothly adjust spacing between accordions */
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 20px;
    background-color: #f5f5f5;
    margin-bottom: 0;
    border-radius: 10px;
}

.arrow {
    transition: transform 0.3s ease-in; /* Consistent easing function */
    color: steelblue;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out; /* Delay the padding transition */
    background-color: #fff;
    padding: 0 20px; /* Consistent padding for left and right */
}
/* Use the :checked pseudo-class to style the open state */
.accordion-checkbox:checked + .accordion-header + .accordion-content {
    max-height: 1000px; /* Adjust as necessary */
    padding: 0 20px;
}

.accordion-content p {
    margin-bottom: 0;    
}

/* Rotate the arrow when the accordion is open */
.accordion-checkbox:checked + .accordion-header .arrow {
    transform: rotate(90deg);
}

.faq-container .accordion h2, .faq-container .accordion h3 {
    margin-top: 0 !important;
    font-family: inherit;
    margin-bottom: 0 !important;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
}

.faq-container .accordion h2::after {
    content: none;
}

.accordion-content > :first-child {
    padding-top: 10px;
    margin-top: 0;    
}

.accordion-content > :last-child {
    padding-bottom: 10px;
    margin-bottom: 0;
}

.accordion-content p:not(:last-child) {
    margin-bottom: 10px;
}

.article-section-custom p:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 1024px) {
    .section-next-dividend  {
        grid-template-columns: auto;
        grid-template-rows: auto auto auto;
        gap: 10px;
    }
    .section-next-dividend .timer-box {
        margin-top: 10px;
    }
    .section-next-dividend .change-rectangle {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .section-next-dividend .change-rectangle-inside {
        padding-left: 10px;
        width: 100%;
        flex-direction: row;
        gap: 20px;
    }
    .section-next-dividend .change-rectangle-inside .change-value {
        font-size: 18px;
    }
    .article-section-custom .content .pros-contras {
        grid-template-columns: 1fr;
    }
}

.extra-bottom-shortcode-info {
    color: #181B31;
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #F3F4F5;
    display: flex;
    margin-top: 10px;
}

.extra-bottom-shortcode-info .extra-bottom-shortcode-info-left-band {
    min-width: 7px;
    min-height: 100%;
    border-radius: 10px 0 0 10px;
}

.extra-bottom-shortcode-info .extra-bottom-shortcode-info-left-band.green {
    background-color: #4db27f;
}

.extra-bottom-shortcode-info .extra-bottom-shortcode-info-left-band.red {
    background-color: #df5b4a;
}

.extra-bottom-shortcode-info .extra-bottom-shortcode-info-content {
    width: 100%;
    padding: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
}

.extra-bottom-shortcode-info .extra-bottom-shortcode-info-content-bottom {
    color: #7B7D89;
    display: flex;
    font-size: 0.75rem;
    margin-top: 8px;
    align-items: center;
    font-weight: 500;
    line-height: 1.25;
    justify-content: space-between;
}

.extra-bottom-shortcode-info .extra-bottom-shortcode-info-content-bottom svg.svg-cross {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

.extra-bottom-shortcode-info .extra-bottom-shortcode-info-content-bottom svg.svg-cross.green {
    fill: #4db27f;
}

.extra-bottom-shortcode-info .extra-bottom-shortcode-info-content-bottom svg.svg-cross.red {
    fill: #df5b4a;
}

.extra-bottom-shortcode-info .extra-bottom-shortcode-info-content-bottom button, .tooltip-message button {
    margin-top: -5px;
    margin-left: 5px;
    margin-bottom: -5px;
    padding: 3px;
    font-size: 1.125rem;
        flex: 0 0 auto;
    color: rgba(0, 0, 0, 0.54);
    padding: 12px;
    overflow: visible;
    font-size: 1.5rem;
    text-align: center;
    transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    border-radius: 50%;
    color: inherit;
    border: 0;
    cursor: pointer;
    margin: 0;
    display: inline-flex;
    outline: 0;
    padding: 0;
    position: relative;
    align-items: center;
    user-select: none;
    border-radius: 0;
    vertical-align: middle;
    -moz-appearance: none;
    justify-content: center;
    text-decoration: none;
    background-color: transparent;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.extra-bottom-shortcode-info .extra-bottom-shortcode-info-content-bottom button:hover, .tooltip-message button:hover {
    background-color: transparent;
    box-shadow: none;
}

.extra-bottom-shortcode-info .extra-bottom-shortcode-info-content-bottom .info-left {
    display: flex;
    align-items: end;
}

.extra-bottom-shortcode-info .tooltip-hover, .tooltip-message.tooltip-hover {
    position: relative;
    display: inline-block;
}

.extra-bottom-shortcode-info .tooltip-text, .tooltip-message .tooltip-text {
    font-size: 12px;
    visibility: hidden;
    width: 360px;
    background-color: #f9f9f9;
    padding: 10px;
    position: absolute;
    z-index: 100;
    margin-top: 5px;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border: 1px solid #E6E6E6;
    border-radius: 8px;
}

.tooltip-message .tooltip-text .tooltip-title {
    font-size: 15px;
    margin-bottom: 14px;
    display: block;
    font-weight: 700;
    text-align: center;
}

.tooltip-message .tooltip-text p:last-child {
    margin-bottom: 0;   
}

.extra-bottom-shortcode-info .tooltip-hover:hover .tooltip-text, .tooltip-message.tooltip-hover:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.article-section-custom .pros-contras .left li::before {
    background-image: url(/wp-content/uploads/check-nobackground1.svg);
    width: 12px;
    height: 12px;
    top: 5px;
    border: none;
    filter: contrast(1.5) brightness(.5) hue-rotate(63deg);
    content: "";
    left: -20px;
    position: absolute;
    border-radius: 50%;
}

.article-section-custom .pros-contras .right li::before {
    background-image: url(/wp-content/uploads/red_cross.-nobackground3.svg);
    width: 12px;
    height: 12px;
    top: 5px;
    border: none;
    filter: contrast(1.5) brightness(.5) hue-rotate(63deg);
    content: "";
    left: -20px;
    position: absolute;
    border-radius: 50%;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Styles for the main company details */

.company-profile .company-details .label {
    font-weight: bold;
    color: #333;
}

/* Styles for the company description section */
.company-profile .company-description {
    padding: 5px;
}

/* Styles for shareholders and top executives sections */

.company-profile .shareholders .chart {
    grid-column: span 1;
}

.company-profile .shareholders .list, .company-profile .top-executives .list {
    grid-column: span 1;
}

/* Styles for the compensation note */

.company-profile .company-header {
}

.company-profile .company-header .company-row {
    display: flex;
    flex-direction: unset;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid gainsboro;
    row-gap: 2px;
    padding: 5px;
    box-sizing: border-box;
    text-align: left;
    line-height: 1;
}

.company-profile .company-header .company-row .main-label, .company-profile .company-description .main-label {
    font-size: 12px;
}

.company-profile .company-header .company-row .main-value {
    font-size: 16px;
    text-align: right;
}

aside.sidebar-content {
    position: relative;
    height: 100%;
}

aside .stay-at-bottom {
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.custom-fade-container::after {
    bottom: 10px !important;
}

/* Deberia ser 650 pero el apexcharts tiene un bug a la hora de calcularlo. Lo calculan distinto en el resize up que en el resize down */

.icon-ex-dividend::before {
    content: url('/wp-content/uploads/Vector_ex_dividend.svg');
    margin-right: 8px;
}

.icon-record-date::before {
    content: url('/wp-content/uploads/Vector_record_date.svg');
    margin-right: 8px;
}

.icon-payment-date::before {
    content: url('/wp-content/uploads/Vector_payment_date.svg');
    margin-right: 8px;
}

.icon-ex-dividend, .icon-record-date, .icon-payment-date {
    display: flex;
    align-items: center;
    padding-right: 5px !important;
}

figure.calendario-dividendos table tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--brdcolor-gray-300);
}

figure.calendario-dividendos table td {
    padding: 10px 0;
    border-bottom: 0;
}

#stock_template section {
    scroll-margin-top: 0;
}

.fake-h2 {
    margin-top: 10px;
    font-family: 'Nunito';
    margin-bottom: 24px;
    font-weight: 600;
    color: #242424;
    display: block;
    line-height: 1.4;
    font-size: 24px;
    position: relative;
}

.fake-h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80%;
    height: 1px;
    background-color: #D8D8D8;
}

.aside-similar-companies {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 10px;
}

.grid-similar-companies {
    display: grid;
    grid-column-gap: 10px;
    grid-template-columns: repeat(3, 1fr);
    grid-row-gap: 10px;
}

.grid-similar-companies a {
    aspect-ratio: 1.37 / 1;
    overflow: hidden;
    display: flex;
}

.grid-similar-companies img:hover {
    border-color: #a6b8c3;
}

.grid-similar-companies img {
    display: block;
    width: 100%;
    transition: filter .3s;
    user-select: none;
    border-radius: 11px;
    border: 2px solid;
    border-color: #13396f;
    border-radius: 11px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.15);
    object-fit: cover;
    height: 100%;
}

.description-grid-similar-companies {
    display: block;
    padding: 5px 0 10px;
    font-size: 13px;
}

.where-to-buy-aside {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 10px;
}

.where-to-buy-aside .broker-card {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-radius: 8px;
}

.where-to-buy-aside .broker-card .broker-container-buy {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.where-to-buy-aside .broker-logo {
    width: 50px; /* Adjust as needed */
    margin-right: 10px;
    align-self: start;
}

.where-to-buy-aside .broker-info {
    flex-grow: 1;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.where-to-buy-aside .open-account-btn {
    padding: 5px 20px;
    background-color: #4CB442;
    color: whitesmoke;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 12px;
    text-align: center;
    display: flex;
    position: relative;
    justify-content: center;
    gap: 5px;
    transition: all .3s;
}
.where-to-buy-aside .open-account-btn svg {
    fill: whitesmoke;
}
.where-to-buy-aside .open-account-btn:hover {
    transition: ease-out .3s;
    background-color: #7deb73;
    color: #fff;
}

.where-to-buy-aside span.h2-where-to-buy-aside {
    margin-bottom: 10px;
    font-size: 16px;
    padding-bottom: 0;
    font-weight: 600;
    color: #242424;
    display: block;
}

.where-to-buy-aside .description-where-to-buy-aside {
    font-size: 14px;
    display: block;
    line-height: 1.4;
}

#stock_template .left-side {
    max-width: calc(100vw - 30px);
    margin: auto;
	width: 100%;
}

.main-page-wrapper .container article#stock_template {
	padding: inherit;
}

#stock_template section > :last-child {
}

