﻿:root {
    --free-topbar-h: 56px;
}

.free-topbar {
    position: sticky;
    top: 0;
    z-index: 1200;
    color: #fff;
    background: linear-gradient(155deg, #1861ac 0%, #ff7a18 100%);
    box-shadow: 0 8px 22px rgba(0,0,0,.10);
}

    .free-topbar .small {
        opacity: .9;
    }

.free-hero {
    border: 0;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(155deg, #1861ac 0%, #ff7a18 100%);
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0,0,0,.10);
}

    .free-hero .free-hero-muted {
        color: rgba(255,255,255,.85);
    }

.free-filters-sticky {
    position: sticky;
    top: calc(var(--free-topbar-h) + 2px);
    z-index: 1150;
}

    .free-filters-sticky .card {
        background: rgba(255,255,255,.92);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(0,0,0,.06);
        box-shadow: 0 8px 22px rgba(0,0,0,.08);
    }

.idx-badge {
    min-width: 2rem;
}

.free-sticky {
    position: sticky;
    top: 0.3rem;
    z-index: 1020;
}

@media (max-width: 768px) {
    .free-sticky {
        top: -4rem;
    }

    .free-filters-sticky {
        top: calc(var(--free-topbar-h) + 29px);
    }
}

.idx-badge {
    min-width: 2rem;
}

/* charts */
.chart-wrap {
    height: 320px;
}

    .chart-wrap canvas {
        height: 100% !important;
        width: 100% !important;
    }

.matrix-tile {
    cursor: pointer;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.06);
    background: #fff;
    transition: transform .12s ease, box-shadow .12s ease;
    padding: 10px 8px;
}

    .matrix-tile:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 18px rgba(0,0,0,.14);
    }

    .matrix-tile:focus {
        outline: 3px solid rgba(59,130,246,.35);
        outline-offset: 2px;
    }


.label {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.3em;
    border: 1px solid;
    font-weight: 500;
    line-height: 1;
}

.label-primary {
    color: #2772aa !important;
    background-color: #e8f1ff;
    border-color: #2772aa;
}

.label-primary-emphasis {
    color: var(--bs-primary-text-emphasis) !important;
    background-color: #b7c9e6;
    border-color: var(--bs-primary-text-emphasis);
}

.label-indigo {
    color: #6610f2 !important;
    background-color: #f1e8ff;
    border-color: #6610f2;
}

.label-warning {
    color: #e1881a !important;
    background-color: #fbece1;
    border-color: #e1881a;
}

/* Стиль для ссылок-допменю */
.link-item a {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    background-color: #edf1f6;
    color: #2c4560;
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: background-color 0.4s ease, color 0.4s ease; /* Плавный переход при наведении */
    margin-bottom: 0.3rem;
}


/* -- dataupload -- */

.btns-with-arrow {
    overflow: visible;
}

.attention-arrow-svg {
    position: absolute;
    left: -120px; /* насколько далеко стрелка слева от кнопок */
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* чтобы не мешала кликам */
    animation: arrow-nudge 1.1s ease-in-out infinite;
}

@keyframes arrow-nudge {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }

    50% {
        transform: translateY(-50%) translateX(10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .attention-arrow-svg {
        animation: none;
    }
}

/* чтобы на телефонах не налезала */
@media (max-width: 576px) {
    .attention-arrow-svg {
        display: none;
    }
}
