/* =========================================================================
   eqf-rankings — Shortcode listado de rankings
   ========================================================================= */

.eqf-doc-filters{
  	padding: 24px 32px 0px;
	border-radius: 0 0 8px 8px;
  	display: flex;
  	flex-direction: column;
  	gap: 32px;
}

.eqf-doc-filters__select{
	display: flex;
  	align-items: center;
  	justify-content: space-between;
  	gap:16px;
  
  	.eqf-doc-filters-grid__select{
      display: flex;
      flex-direction: column;
      align-items: left;
      justify-content:left;
      width: 100%;      
  	}
  
  	.eql-doc-select{
        width: 100%;
        background: #F5F5F5;
        border: 1px solid var(--Linea-Footer);
        border-radius: 8px;
        padding: 10px 14px;
        font-size: 14px;
        color: #44403c;
        cursor: pointer;
        background-image: url(data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2378716c' d='M6 8L1 3h10z'/%3E%3C/svg%3E);
    	background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 32px;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
      
        &:focus{
          outline: none;
          border-color: #E20333;
          box-shadow: 0 0 0 3px color-mix(in srgb, #E20333 25%, transparent);
        }
  	}  
}

.eql-doc-label{
	font-size: 11px;
    font-weight:600;
    color: #78716c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

input[type=text].eql-doc-input {
        width: 100%;
        background: #F5F5F5;
        border: 1px solid var(--Linea-Footer);
        border-radius: 8px;
        padding: 10px 14px;
        font-size: 14px;
        color: #44403c;
        cursor: pointer;
        background-image: url(data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2378716c' d='M6 8L1 3h10z'/%3E%3C/svg%3E);
    	background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 32px;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
      
        &:focus{
          outline: none;
          border-color: #E20333;
          box-shadow: 0 0 0 3px color-mix(in srgb, #E20333 25%, transparent);
        }
 }  

.eqf-doc-filters{
.eqf-doc-filters__btn{
 	display:flex;
  	align-items:center;
  	justify-content: center;
  	gap: 16px;
  
  	.eqf-btn{
  		display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 32px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        min-width: 200px;
        border: 2px solid transparent;
  	}
	      
  	.eqf-apply{
      color: #fff;
      background-color: #E20333;

      &:hover{
        color: #E20333;
        background-color: #fff; 
        box-shadow: 0 4px 12px color-mix(in srgb, #E20333 30%, transparent);
        border: 1px solid #E20333;
      }
  }
      
  	.eqf-clear{
      color: #E20333;
      background-color: #fff;
      border: 1px solid #E20333;
        
      &:hover{
        background: color-mix(in srgb, #e20333 8%, #ffffff);
        color: #E20333;
        border: white;
        box-shadow: 0 4px 12px color-mix(in srgb, #E20333 15%, transparent);
      }
  	}
  }
}

.eqf-doc-grid{
  display: flex;
  flex-direction: column;
}


.eqf-doc-grid__text{
	width: 100%;
  
  .eqf-doc-grid__text-title{
    margin: 24px 0 16px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 12px;
    font-weight: 700;
  }
}

.eqf-doc-grid__cards{
	display: grid;
  	grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.eqf-ranking-card {
	display: flex;
	padding: 20px 24px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	color: inherit;
	min-width: 0;
	gap: 12px;
  	
}

.eqf-doc-header{
	border-right: 1px solid #e5e7eb;
  	padding-right: 24px;
}

.eqf-ranking-card .eqf-doc-body {
	display:flex;
	flex-direction:column;
	border-left: none;
	padding-left: 0;
  	width:100%;
}

.eqf-ranking-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
  	width:100%;
}

.eqf-ranking-card__content{
	display:flex;
	flex-direction:column;
	align-items: flex-start;
	justify-content: space-between;
  	width:100%;
	height:100%;
}

.eqf-doc-date{
	font-size: 14px;
    color: var(--Bot-La-RFEG);
    font-weight: 500;
    margin-bottom: 6px;
}

.eqf-doc-tag--sub{
	font-size: 10px;
    font-weight: 500;
  	line-height: 12px;
  	border: 1px solid var(--Bot-La-RFEG);
	border-radius: 100px;
  	background-color: var(--Bot-La-RFEG);
  	color: white;
  	padding:4px 12px;
	text-transform: uppercase;
}

.eqf-doc-title{
    font-weight: 500;
    font-size: var(--p-size-m) !important;
    line-height: 22px !important;
    text-transform: capitalize !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

/* Botones CSV / PDF ------------------------------------------------------- */

.eqf-ranking-card__btns {
	display: flex;
	gap: 8px;
	margin-top: auto;
	padding-top: 4px;


.eqf-ranking-card__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .4px;
	text-decoration: none;
	transition: background .15s, color .15s;
	line-height: 1;
}

.eqf-ranking-card__btn svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.eqf-ranking-card__btn--csv {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.eqf-ranking-card__btn--csv:hover {
  background: #15803d;
  color: #fff;
}

.eqf-ranking-card__btn--pdf {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.eqf-ranking-card__btn--pdf:hover {
  background: #dc2626;
  color: #fff;
}

.eqf-ranking-card__btn--disabled {
  opacity: .4;
  pointer-events: none;
  cursor: default;
}

}
/* Filtro de texto --------------------------------------------------------- */

.eqf-doc-filters__text {
	display: flex;
	flex-direction: column;
}

.eql-doc-input {
	width: 100%;
	background: #F5F5F5;
	border: 1px solid #e7e5e4;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14px;
	color: #44403c;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;

	&:focus {
		outline: none;
		border-color: #E20333;
		box-shadow: 0 0 0 3px color-mix(in srgb, #E20333 25%, transparent);
	}

	&::placeholder {
		color: #a8a29e;
	}
}

/* Popup CSV --------------------------------------------------------------- */

.eqf-rankings-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.eqf-rankings-popup[hidden] {
	display: none;
}

.eqf-rankings-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.eqf-rankings-popup__content {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 8px;
	padding: 24px;
	width: 90%;
	max-width: 640px;
	max-height: 85vh;
	overflow-y: auto;
}

.eqf-rankings-popup__close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: transparent;
	border: none;
	font-size: 1.25rem;
	line-height: 1;
	padding: 4px;
	cursor: pointer;
	color: #333;

	&:hover {
		color: #000;
	}
}

.eqf-rankings-popup__title {
	font-weight: 700;
	font-size: 1rem;
	margin: 0 0 16px;
	padding-right: 32px;
	color: #1c1917;
}

.eqf-rankings-popup__loader {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 0;
}

.eqf-rankings-popup__loader[hidden] {
	display: none;
}

@keyframes eqf-spin {
	to { transform: rotate(360deg); }
}

.eqf-rankings-popup__spinner {
	display: block;
	width: 32px;
	height: 32px;
	border: 3px solid #e5e7eb;
	border-top-color: #E20333;
	border-radius: 50%;
	animation: eqf-spin 0.7s linear infinite;
}

.eqf-rankings-popup__table {
	width: 100%;
	border-collapse: collapse;
  	border-bottom: 1px solid rgb(69, 80, 96);
	font-size: 12px;
}

.eqf-rankings-popup__table thead th {
	padding: 10px 12px;
	text-align: left;
	font-weight: 600;
	border-bottom: 2px solid #e5e7eb;
	white-space: nowrap;
}

.eqf-rankings-popup__table tbody td {
	padding: 10px 12px;
	border-bottom: 1px solid #f3f4f6;
}

.eqf-rankings-popup__table tbody tr:last-child td {
	border-bottom: none;
}

.eqf-rankings-popup__col--pos {
	width: 50px;
	text-align: center;
}

.eqf-rankings-popup__col--total {
	width: 100px;
	text-align: right;
	white-space: nowrap;
}

@media (max-width: 768px) {
    .eqf-doc-grid__cards {
        grid-template-columns: 1fr;
    }
}

/*PAGINACIÓN*/
.eqf-doc-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 36px;
	margin-top: 36px;
}
.eqf-doc-pager .eqf-doc-pager-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--Bot-Competi);
    border-radius: 4px;
    color: var(--Bot-Competi);
    background: white;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    transition:
        background 0.3s ease,
        color 0.3s ease;
}
.eqf-doc-pager .eqf-doc-pager-item:hover {
    background: var(--Bot-Competi);
    color: white;

    box-shadow: none;
    cursor: pointer;
}
.eqf-doc-pager .eqf-doc-pager-item--active {
    background: var(--Bot-Competi);
    color: white;
    border-color: var(--Bot-Competi);
}
.eqf-doc-pager-ellipsis {
    color: var(--Bot-Competi);
    font-size: 25px;
}
.eqf-doc-pager-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--Bot-Competi) !important;
    background: transparent;
    border-radius: 9px;
    text-decoration: none;
    box-shadow: none;
}
.eqf-doc-pager-arrow svg {
    width: 100%;
    height: 100%;
    stroke: var(--Bot-Competi);
}
.eqf-doc-pager-arrow:hover {
    background: transparent;
    box-shadow: none;
}
.eqf-doc-pager-arrow--disabled {
    color: #d1d5db !important;
    pointer-events: none;
}
.eqf-doc-pager-arrow--disabled svg {
    stroke: #d1d5db !important;
}