.remate-listado {
    margin: 32px 0;
    color: #1A1A1A;
}

.remate-listado__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid #EEEEEE;
    padding-bottom: 18px;
}

.remate-listado__title {
    margin: 0;
    color: #2A3364;
    font-size: 30px;
    line-height: 1.2;
}

.remate-listado__date {
    margin: 8px 0 0;
    color: #4f5368;
}

.remate-listado__pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 0 !important;
    border-radius: 6px;
    background: #3639CA;
    box-shadow: none !important;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.remate-listado__pdf:hover,
.remate-listado__pdf:focus {
    background: #2A3364;
    color: #fff;
}

.remate-listado__pdf:focus-visible {
    outline: 3px solid #3639CA;
    outline-offset: 3px;
}

.remate-listado__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.remate-listado__search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: center;
    margin: 0 0 18px;
}

.remate-listado__search-label {
    margin: 0;
}

.remate-listado .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.remate-listado__search-input {
    display: block;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #EEEEEE;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    color: #1A1A1A;
    font: inherit;
}

.remate-listado .remate-listado__search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #2A3364 !important;
    border-radius: 8px;
    background: #2A3364 !important;
    background-color: #2A3364 !important;
    box-shadow: none !important;
    color: #fff !important;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    opacity: 1 !important;
    text-decoration: none !important;
    appearance: none;
}

.remate-listado .remate-listado__search-clear[hidden] {
    display: none;
}

.remate-listado .remate-listado__search-clear:hover,
.remate-listado .remate-listado__search-clear:focus,
.remate-listado .remate-listado__search-clear:active,
.remate-listado .remate-listado__search-clear:visited {
    border-color: #1f274f !important;
    background: #1f274f !important;
    background-color: #1f274f !important;
    color: #fff !important;
    opacity: 1 !important;
    text-decoration: none !important;
}

.remate-listado .remate-listado__search-clear:disabled {
    border-color: #EEEEEE !important;
    background: #EEEEEE !important;
    background-color: #EEEEEE !important;
    color: #4f5368 !important;
    cursor: not-allowed;
    opacity: 1 !important;
}

.remate-listado .remate-listado__search-clear:focus-visible {
    outline: 3px solid #3639CA;
    outline-offset: 3px;
}

.remate-listado__search-input:focus {
    border-color: #3639CA;
    outline: 3px solid rgba(54, 57, 202, 0.18);
    outline-offset: 0;
}

.remate-listado__search-count {
    grid-column: 1 / -1;
    margin: 2px 0 0;
    color: #2A3364;
    font-weight: 700;
}

.remate-listado__search-status {
    grid-column: 1 / -1;
    margin: 12px 0 0;
    padding: 12px 14px;
    border: 1px solid #EEEEEE;
    border-radius: 8px;
    background: #EEEEEE;
    color: #1A1A1A;
    font-weight: 700;
}

.remate-lote-card {
    overflow: hidden;
    border: 1px solid #EEEEEE;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(42, 51, 100, 0.08);
}

.remate-lote-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #EEEEEE;
}

.remate-lote-card__media img,
.remate-lote-card__image-button img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    object-fit: cover;
    object-position: center;
}

.remate-lote-card__image-button {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit;
    cursor: zoom-in;
    appearance: none;
}

.remate-lote-card__image-button:focus-visible {
    outline: 3px solid #3639CA;
    outline-offset: -3px;
}

.remate-lote-card__placeholder {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #EEEEEE;
    color: #4f5368;
    font-weight: 700;
}

.remate-lote-card__placeholder-icon {
    display: block;
    width: 42px;
    height: 32px;
    border: 2px solid #2A3364;
    border-radius: 6px;
    opacity: 0.65;
}

.remate-lote-card__placeholder-icon::before {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: #2A3364;
}

.remate-lote-card__body {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 14px;
}

.remate-lote-card__lote {
    margin: 0 0 8px;
    color: #2A3364;
    font-size: 18px;
    font-weight: 800;
}

.remate-lote-card__name {
    margin: 0 0 12px;
    color: #1A1A1A;
    font-size: 16px;
    line-height: 1.35;
}

.remate-lote-card__details {
    margin: 0;
}

.remate-lote-card__details div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #EEEEEE;
    padding: 8px 0;
}

.remate-lote-card__details dt {
    color: #2A3364;
    font-weight: 600;
}

.remate-lote-card__details dd {
    margin: 0;
    color: #1A1A1A;
    font-weight: 700;
    text-align: right;
}

.remate-listado__empty {
    padding: 18px;
    background: #EEEEEE;
    border: 1px solid #EEEEEE;
    border-radius: 8px;
    color: #1A1A1A;
}

.remate-listados-preview__main {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto;
}

.remate-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.82);
}

.remate-lightbox[hidden] {
    display: none;
}

.remate-lightbox__image {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    object-fit: contain;
}

.remate-lightbox__close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    background: rgba(42, 51, 100, 0.88);
    color: #fff;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
}

.remate-lightbox__close:hover,
.remate-lightbox__close:focus {
    background: #3639CA;
}

.remate-lightbox__close:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.remate-lightbox-is-open {
    overflow: hidden;
}

.remate-listado .remate-listado__back-top {
    position: fixed;
    right: 20px;
    bottom: 108px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #2A3364 !important;
    border-radius: 999px;
    background: #2A3364 !important;
    background-color: #2A3364 !important;
    box-shadow: 0 8px 18px rgba(42, 51, 100, 0.24) !important;
    color: #fff !important;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 160ms ease, transform 160ms ease;
    text-decoration: none !important;
    appearance: none;
}

.remate-listado .remate-listado__back-top[hidden] {
    display: none;
}

.remate-listado .remate-listado__back-top.is-visible {
    opacity: 1 !important;
    pointer-events: auto;
    transform: translateY(0);
}

.remate-listado .remate-listado__back-top:hover,
.remate-listado .remate-listado__back-top:focus,
.remate-listado .remate-listado__back-top:active,
.remate-listado .remate-listado__back-top:visited {
    border-color: #1f274f !important;
    background: #1f274f !important;
    background-color: #1f274f !important;
    color: #fff !important;
    opacity: 1 !important;
    text-decoration: none !important;
}

.remate-listado .remate-listado__back-top:focus-visible {
    outline: 3px solid #3639CA;
    outline-offset: 3px;
}

@media (max-width: 960px) {
    .remate-listado__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .remate-listado__header {
        display: block;
    }

    .remate-listado__title {
        font-size: 24px;
    }

    .remate-listado__pdf {
        width: 100%;
        margin-top: 16px;
    }

    .remate-listado__grid {
        grid-template-columns: 1fr;
    }

    .remate-listado__search {
        grid-template-columns: 1fr;
    }

    .remate-listado__search-clear {
        width: 100%;
    }

    .remate-listado .remate-listado__back-top {
        right: 12px;
        bottom: 102px;
        width: auto;
        max-width: calc(100vw - 24px);
        min-height: 38px;
        padding: 9px 13px;
        background: #2A3364 !important;
        background-color: #2A3364 !important;
        color: #fff !important;
    }
}
