/* Search/filter banner */
.search-filter-banner {
    position: sticky;
    top: 120px;
    z-index: 900;
    background: #fff;
    padding: 30px 10px 10px;
    margin-bottom: 10px;
    border-radius: 0 0 20px 20px;
}

.search-filter-banner #iskanje_forma {
    overflow: hidden;
    padding: 2px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.container-wrap .main-content #form-left-side,
.container-wrap .main-content #form-right-side {
    display: flex;
    align-items: center;
}

.container-wrap .main-content #form-left-side {
    gap: 10px;
    flex-wrap: wrap;
}

.container-wrap .main-content #form-left-side p {
    padding: 0;
    white-space: nowrap;
}

.container-wrap .main-content #form-left-side input#iskalni_niz {
    width: 250px;
}

.container-wrap .main-content #form-right-side {
    gap: 16px;
}

#fund-match-count {
    white-space: nowrap;
}

#fund-filter-open-inline,
#fund-filter-clear-inline,
.fund-filter-apply,
.fund-filter-close {
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
}

#fund-filter-open-inline {
    border: 0;
    background: #e30613;
    color: #fff;
    padding: 16px 28px;
    font-weight: 800;
}

#fund-filter-open-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#fund-filter-clear-inline {
    display: none;
    border: 1px solid #d2d2d2;
    background: #fff;
    color: #444;
    padding: 16px 20px;
}

/* Filter sidebar */
.fund-filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.fund-filter-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.fund-filter-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(520px, 92vw);
    height: 100vh;
    background: #fff;
    box-shadow: -8px 0 22px rgba(0, 0, 0, 0.22);
    z-index: 1003;
    transform: translateX(105%);
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
}

.fund-filter-panel.is-open {
    transform: translateX(0);
}

.fund-filter-head,
.fund-filter-foot {
    padding: 16px 22px;
}

.fund-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 100px;
}

.fund-filter-body {
    padding: 10px 22px 20px;
    overflow-y: auto;
}

.filter-group {
    padding: 12px 0 14px;
    border-bottom: 1px solid #d6d6d6;
}

.filter-group h4 {
    margin: 0 0 10px;
    font-size: 22px;
}

.chip-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 10px;
    background: #fff;
    padding: 7px 12px;
    margin: 0 8px 8px 0;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color .2s ease, color .2s ease;
}

.chip-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.chip-option .chip-icon {
    height: 16px;
    object-fit: contain;
}

.chip-option.is-active {
    background: #e30613;
    color: #fff;
}

.chip-option.is-active .chip-icon {
    filter: brightness(0) invert(1);
}

.risk-unified .risk-cells {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border: 1px solid #d1d1d1;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 8px;
}

.risk-unified .risk-cell {
    text-align: center;
    padding: 8px 0;
    background: #f3f3f3;
    color: #555;
    font-weight: 700;
    border-right: 1px solid #d8d8d8;
}

.risk-unified .risk-cell:last-child {
    border-right: 0;
}

.risk-unified .risk-cell.is-active {
    background: #e30613;
    color: #fff;
}

.risk-unified .risk-range-slider {
    position: relative;
    height: 0;
    margin: 10px 2px 8px;
    background: #d0d0d0;
    border-radius: 999px;
}

.risk-unified .risk-range-slider.ui-widget.ui-widget-content {
    border: 0;
    background: #d0d0d0;
}

.risk-unified .risk-range-slider .ui-slider-range {
    background: #e30613;
    border: 0;
}

.risk-unified .risk-range-slider .ui-slider-handle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e30613;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px #d5d5d5;
    cursor: grabbing;
    top: 50%;
    margin-top: -41px;
}

.risk-unified .risk-range-slider .ui-slider-handle:focus {
    outline: none;
}

.risk-mobile-stepper {
    display: none;
}

.risk-mobile-stepper-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.risk-mobile-stepper-label {
    min-width: 36px;
    font-size: 13px;
    font-weight: 700;
    color: #444;
}

.risk-mobile-stepper-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #d2d2d2;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.fund-filter-foot {
    margin-top: auto;
    border-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fund-match-count-sidebar {
    width: 100%;
    font-size: 16px;
    font-weight: 700;
}

.fund-filter-apply {
    width: calc(70%);
    border: 1px solid #d2d2d2;
    background: #fff;
    color: #444;
    padding: 16px 20px;
    margin: 5px 8px 0 0;
}

.fund-filter-close {
    border: 1px solid #d2d2d2;
    background: #fff;
    color: #444;
    padding: 16px 20px;
    margin: 5px 0 0;
}

/* Fund cards */
section.fonds.listing {
    margin-top: 40px;
}

section.fonds.listing .fonds-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
}

section.fonds.listing .fond-card {
    position: relative;
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
    min-width: 255px;
    border: 1px solid transparent;
    border-radius: 20px;
    box-shadow: 5px 5px 10px #A6ABBD;
    padding: 16px 14px 14px;
    display: flex;
    flex-direction: column;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    overflow: hidden;
}

section.fonds.listing .fond-card:hover {
    border-color: #e30613;
    box-shadow: 20px 20px 10px -10px rgba(34, 33, 81, 0.15);
    transform: translateY(-5px);
}

section.fonds.listing .fond-card > * {
    position: relative;
}

section.fonds.listing .fond-card-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}

section.fonds.listing .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 16px;
    margin-bottom: 4px;
}

section.fonds.listing .card-title-wrap {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
}

section.fonds.listing .card-title {
    font-size: 1.333rem;
    letter-spacing: -0.02em;
    line-height: 1.02;
    color: #1f1f1f;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    padding: 10px 0 6px;
}

section.fonds.listing .title-red-line {
    width: 54px;
    height: 4px;
    background: #e30613;
    border-radius: 2px;
    margin: 8px 0;
}

section.fonds.listing .card-isin {
    font-size: .85rem;
    color: #767676;
    letter-spacing: 0.01em;
    word-break: break-word;
}

section.fonds.listing .card-row {
    display: flex;
    border-bottom: 1px solid #d4d4d4;
}

section.fonds.listing .card-row:last-child {
    border-bottom: 0;
}

section.fonds.listing .card-cell {
    flex: 1;
    min-height: 50px;
    padding: 8px 10px 7px 0;
    position: relative;
}

section.fonds.listing .card-cell + .card-cell {
    padding-left: 10px;
    border-left: 1px solid #d4d4d4;
}

section.fonds.listing .card-row.single .card-cell {
    flex-basis: 100%;
    padding-right: 0;
}

section.fonds.listing .cell-main {
    font-size: 23px;
    line-height: 1;
    font-weight: 700;
    color: #3c3c3c;
    margin: 0 0 6px;
}

section.fonds.listing .cell-main.sri {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

section.fonds.listing .cell-main.sri .value {
    min-width: 16px;
}

section.fonds.listing .cell-main.text {
    font-size: 18px;
    line-height: 1.08;
    word-break: break-word;
}

section.fonds.listing .cell-main.pdf-doc {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0;
}

section.fonds.listing .cell-main.pdf-doc .pdf-na {
    font-size: 12px;
    font-weight: 400;
    color: #666;
}

section.fonds.listing .cell-label {
    font-size: 12px;
    line-height: 1.05;
    color: #707070;
}

section.fonds.listing .gibanje-vrednosti-title {
    display: inline-block;
    position: relative;
    z-index: 6;
    cursor: help;
    pointer-events: auto;
}

section.fonds.listing .risk-scale {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
}

section.fonds.listing .risk-step {
    width: 8px;
    border-radius: 1px;
    background: #cfcfcf;
    display: inline-block;
}

section.fonds.listing .risk-step:nth-child(1) { height: 4px; }
section.fonds.listing .risk-step:nth-child(2) { height: 6px; }
section.fonds.listing .risk-step:nth-child(3) { height: 8px; }
section.fonds.listing .risk-step:nth-child(4) { height: 10px; }
section.fonds.listing .risk-step:nth-child(5) { height: 12px; }
section.fonds.listing .risk-step:nth-child(6) { height: 14px; }
section.fonds.listing .risk-step:nth-child(7) { height: 16px; }
section.fonds.listing .risk-step.is-active { background: #595959; }

section.fonds.listing .sustain-icons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

section.fonds.listing .sustain-icon {
    height: 24px;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 6;
    cursor: help;
    pointer-events: auto;
}

section.fonds.listing .sustain-icon.eko-icon {
    height: 27px;
}

section.fonds.listing .sustain-icon.uwz-icon {
    filter: brightness(126%);
}

section.fonds.listing .sustain-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

section.fonds.listing .pdf-link {
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 6;
    position: relative;
    cursor: zoom-in;
}

section.fonds.listing .pdf-link img {
    height: 34px;
    width: auto;
    transition: transform .15s ease;
}

section.fonds.listing .pdf-link .pdf-link-txt {
    font-size: .75rem;
    font-weight: 300;
    color: #7b7b7b;
    text-align: right;
}

section.fonds.listing .pdf-link:hover img {
    transform: scale(1.12);
}

section.fonds.listing .pdf-link:hover .pdf-link-txt {
    color: #e30613;
}

/* Not-selectable section */
.container-wrap .main-content details.not-selectable-details {
    margin-top: 20px;
    margin-bottom: 32px;
}

.container-wrap .main-content details.not-selectable-details > summary {
    cursor: pointer;
    font-size: 22px;
    padding: 32px 0 10px;
    border-bottom: 1px dotted #999;
    list-style: none;
    margin-bottom: 20px;
}

.container-wrap .main-content details.not-selectable-details > summary::-webkit-details-marker {
    display: none;
}

.container-wrap .main-content details.not-selectable-details > summary::before {
    content: '+';
    display: inline-block;
    margin-right: 8px;
    color: #e30613;
    font-weight: 700;
}

.container-wrap .main-content details.not-selectable-details[open] > summary::before {
    content: '-';
}

/* Table in expandable details */
.container-wrap .main-content .ufos-tabela-container {
    overflow-x: auto;
    border-radius: 20px;
}

.container-wrap .main-content .ufos-tabela {
    width: 100%;
    border-radius: 20px;
    border-collapse: initial;
}

.container-wrap .main-content .ufos-tabela td,
.container-wrap .main-content .ufos-tabela th {
    border-style: solid;
    border-width: 0 1px 1px 0;
}

.container-wrap .main-content .ufos-tabela tr.even {
    background: #F6F6F6;
}

.container-wrap .main-content .ufos-tabela .headings {
    background-color: #dd0000;
    color: #fff;
    text-align: left;
    font-size: 14px;
}

.container-wrap .main-content .ufos-tabela .regijabold { background: #DEDEDE; }
.container-wrap .main-content .ufos-tabela .razred_sub { background: #B3B3B3; color: #FFF; font-size: 11pt; }
.container-wrap .main-content .ufos-tabela .kategorija { background: #dedede96; }
.container-wrap .main-content .ufos-tabela tr:first-child th:first-child { background-color: #e30613; border-top-left-radius: 20px; }
.container-wrap .main-content .ufos-tabela tr:first-child th:last-child { border-top-right-radius: 20px; }
.container-wrap .main-content .ufos-tabela tr:last-child td:last-child { border-bottom-right-radius: 20px; }
.container-wrap .main-content .ufos-tabela tr:last-child td:first-child { border-bottom-left-radius: 20px; }

body[data-button-style*="rounded"] #to-top {
    display: none;
}

/* Generic content typography */
.container-wrap .main-content h3 { padding: 10px 0; }
.container-wrap .main-content h4 { margin: 15px 0 5px; padding: 0; }

/* Responsive */
@media (max-width: 1280px) {
    section.fonds.listing .fond-card {
        flex: 0 0 calc(33.333% - 14px);
        max-width: calc(33.333% - 14px);
    }
}

@media (max-width: 960px) {
    section.fonds.listing .fond-card {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    .search-filter-banner {
        position: static;
        top: auto;
    }

    #fund-filter-open-inline {
        position: fixed;
        right: 16px;
        bottom: 16px;
        z-index: 1004;
        margin: 0;
    }
}

@media (max-width: 640px) {
    .fund-filter-head {
        margin-top: 32px;
    }

    .fund-filter-panel {
        width: 100vw;
        max-width: 100vw;
    }

    .fund-filter-close,
    .fund-filter-apply {
        width: 100%;
        margin-top: 0;
    }

    #fund-match-count {
        margin: 10px 0 0;
        text-align: right;
    }

    section.fonds.listing .fond-card {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: 0;
    }

    section.fonds.listing .card-title {
        font-size: 30px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .risk-mobile-stepper {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        margin-top: 12px;
    }
    #fund-filter-open-inline.is-hidden {
        display: none !important;
    }
    
}

