/* Path: Индикаторы_new/css/main.css */
@font-face {
    font-family: "Roboto";
    src: url("/scanner/Roboto/Roboto-VariableFont_wdth,wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("/scanner/Roboto/Roboto-Italic-VariableFont_wdth,wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
*, *::before, *::after {
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: Roboto, "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif !important;
    font-size: var(--fs-body);
    line-height: 1.35;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--background-color);
    color: var(--text-color);
}    
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--scroll-track-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb-color);
    border-radius:4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--scroll-thumb-hover-color);
}

/* контейнер контента страницы */
main {
    width: 100%;
    margin: 0 auto;
    padding-top: 8px;
    padding-bottom: 16px;
}

/* Стили для скрытия элементов */
.hd {
    display: none !important;
}

/* Контейнер блоков с контентом */
.layout {
    /* max-width: 1460px; */
    max-width: calc(100% - 64px);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    margin: 0 auto;
    align-items: stretch;
    font-family: 'Roboto', sans-serif;
    flex: 1;
}


/* Блок с контентом */
.card {
    position: relative;
    background: var(--card-color);
    border-radius: 16px;
    padding: 14px;
    border: 1px solid rgba(17, 24, 39, 0.75);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
    font-family: 'Roboto', sans-serif;
}


/* Обертка селектора */
.select-wrapper {
    position: relative;
    width: 100%;
    overscroll-behavior: contain;
    font-family: 'Roboto', sans-serif;
}


/* Выпадающий список в селекторе */
.select-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #101726;
    border: 1px solid #2b3a57;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    max-height: 240px;
    overflow-y: auto;
    padding: 4px 0;
    display: none;
    z-index: 60;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-thumb-color) var(--scroll-track-color);
}

/* Элемент выпадающего списка селектора */
.select-item {
    padding: 8px 12px;
    font-size: 1em;
    line-height: 1.2;
    cursor: pointer;
    overscroll-behavior: contain;
    font-family: 'Roboto', sans-serif;
}

.select-item:hover, .select-item.active {
    background: #243b5a;
}

/* Команда/чемпионат присутствует в списке матчей выбранной даты (*_by_date) */
.select-item.team-by-date,
.select-item.championship-by-date,
.select-item.country-by-date {
    font-weight: 500;
}

.select-item__date-note {
    font-size: 0.7em;
    font-weight: 400;
    color: var(--text-secondary-color);
    margin-left: 6px;
    white-space: nowrap;
}

/* Поля ввода селектора */
.select-input {
    background: var(--input-background-color);
    color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    padding: 10px 10px;
    font-size: 1em;
    height: 36px;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.select-input:hover {
    border-color: rgba(148, 163, 184, 0.35);
}

.select-input:focus-visible {
    outline: none;
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.12);
}

.select-input::placeholder { 
    color: var(--input-placeholder-color); 
}

/* Кнопки */
.button-primary, .button-secondary {
    background: var(--accent-color);
    border: 1px solid transparent; 
    color:#fff;
    padding: 0 14px;
    font-size: 12px;
    height: 36px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    font-family: 'Roboto', sans-serif;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e5f2ff;
}

.button-primary:hover {
    background: var(--accent-hover-color);
} 

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(148, 163, 184, 0.16);
}

.button-block {
    width: 100%;
}

.buttons-section {
    background: var(--input-background-color);
    border: none;
    border-radius: 10px;
    padding: 4px;
    font-size: 1em;
    width: 100%;
    display: flex;
    font-family: 'Roboto', sans-serif;
}

.buttons-section-item {
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary-color);
}

.buttons-section-item:active {
    background: var(--accent-color);
    color: var(--text-color);
} 

.loader {
  color: #fff;
  font-size: 40px;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  position: relative;
  text-indent: -9999em;
  animation: mulShdSpin 1.2s infinite linear;
  transform: translateZ(0);
}

@keyframes mulShdSpin {
  0%,
  100% {
    box-shadow: 0 -3em 0 0.2em, 
    2em -2em 0 0em, 3em 0 0 -1em, 
    2em 2em 0 -1em, 0 3em 0 -1em, 
    -2em 2em 0 -1em, -3em 0 0 -1em, 
    -2em -2em 0 0;
  }
  12.5% {
    box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em, 
    3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, 
    -2em 2em 0 -1em, -3em 0 0 -1em, 
    -2em -2em 0 -1em;
  }
  25% {
    box-shadow: 0 -3em 0 -0.5em, 
    2em -2em 0 0, 3em 0 0 0.2em, 
    2em 2em 0 0, 0 3em 0 -1em, 
    -2em 2em 0 -1em, -3em 0 0 -1em, 
    -2em -2em 0 -1em;
  }
  37.5% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em,
     3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, 
     -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em;
  }
  50% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em,
     3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, 
     -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em;
  }
  62.5% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em,
     3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, 
     -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em;
  }
  75% {
    box-shadow: 0em -3em 0 -1em, 2em -2em 0 -1em, 
    3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, 
    -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0;
  }
  87.5% {
    box-shadow: 0em -3em 0 0, 2em -2em 0 -1em, 
    3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, 
    -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em;
  }
}
  


@media (max-width: 1470px) {
    .layout {
        flex-direction: column;
        /* max-width: 960px; */
    }

    .card {
        margin: 0 auto;
    }

    .loader {
        font-size: 30px;
    }
}

@media (min-width: 1470px) {
    .layout {
        flex-direction: row;
        /* max-width: 1460px; */
    }

    .card {
        margin: 0;
    }
}
