.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.forecast-table-scroll-wrap {
    position: relative;
    --forecast-table-fish-col-width: 10rem;
}

.forecast-table-scroll-wrap:not(.forecast-table-scroll-wrap--scrollable) .forecast-table-scroll-nav {
    display: none;
}

.forecast-table-scroll-nav {
    position: absolute;
    top: 50%;
    z-index: 40;
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 1px solid #c4c6cf;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: #1a365d;
    box-shadow: 0 4px 12px rgba(0, 32, 69, 0.12);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

@media (min-width: 1024px) {
    .forecast-table-scroll-wrap--scrollable .forecast-table-scroll-nav {
        display: flex;
    }
}

.forecast-table-scroll-nav:hover:not(:disabled) {
    background: #ffffff;
}

.forecast-table-scroll-nav:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.forecast-table-scroll-nav--prev {
    left: calc(var(--forecast-table-fish-col-width) + 0.25rem);
}

.forecast-table-scroll-nav--next {
    right: 0.5rem;
}

.forecast-table-scroll-nav .material-symbols-outlined {
    font-size: 1.75rem !important;
    line-height: 1;
}

.dark .forecast-table-scroll-nav {
    background: rgba(15, 23, 42, 0.95);
    border-color: #334155;
    color: #f1f5f9;
}

.forecast-detail-table {
    --forecast-table-fish-col-width: 10rem;
  /* (1200px − w-40) / 28 слотов — как в макете на 7 дней */
    --forecast-table-slot-col-width: 37px;
    table-layout: fixed;
    width: calc(
        var(--forecast-table-fish-col-width)
        + var(--forecast-table-days-count, 7) * 4 * var(--forecast-table-slot-col-width)
    );
    font-size: 16px;
    line-height: 1.5rem;
}

.forecast-detail-table col.forecast-table-col-fish {
    width: var(--forecast-table-fish-col-width);
}

.forecast-detail-table col.forecast-table-col-slot {
    width: var(--forecast-table-slot-col-width);
}

/*
 * Safari/WebKit: position:sticky на первой колонке ломается, если ячейка стала flex/grid
 * (см. utility flex на td). Контент вынесен во внутренний div, здесь явно табличная ячейка.
 */
.forecast-detail-table thead th:first-child,
.forecast-detail-table tbody td:first-child {
    display: table-cell;
    vertical-align: middle;
}

.forecast-detail-table thead th,
.forecast-detail-table tbody td {
    font-size: 16px;
    overflow: visible;
}

.forecast-detail-table tbody tr[data-catch-fish] td:not(:first-child) {
    overflow-x: visible;
}

.forecast-detail-table .catch-score-trigger-clip {
    overflow-x: clip;
}

.forecast-detail-table .material-symbols-outlined {
    font-size: 1.5rem !important;
    line-height: 1.5rem;
}

.forecast-detail-table .catch-score-cell {
    z-index: 0;
    overflow: visible;
}

.forecast-detail-table .catch-score-cell:hover,
.forecast-detail-table .catch-score-cell:focus-visible,
.forecast-detail-table .catch-score-cell.catch-score-cell--tip-open {
    z-index: 100;
}

.forecast-detail-table .catch-score-cell > .catch-score-trigger-clip {
    transform-origin: center;
    transition: transform 0.18s ease;
}

.forecast-detail-table .catch-score-cell:hover > .catch-score-trigger-clip,
.forecast-detail-table .catch-score-cell:focus-visible > .catch-score-trigger-clip,
.forecast-detail-table .catch-score-cell.catch-score-cell--tip-open > .catch-score-trigger-clip {
    transform: scale(1.1);
}

.forecast-detail-table .catch-score-cell--no-data {
    cursor: default;
}

.forecast-detail-table .catch-score-cell--no-data:hover > .catch-score-trigger-clip,
.forecast-detail-table .catch-score-cell--no-data:focus-visible > .catch-score-trigger-clip,
.forecast-detail-table .catch-score-cell--no-data.catch-score-cell--tip-open > .catch-score-trigger-clip {
    transform: none;
}

/* Узел может быть в document.body (обход overflow + баги iOS с transform + fixed) */
.catch-score-tip {
    position: fixed;
    left: -10000px;
    top: 0;
    box-sizing: border-box;
    width: min(17.5rem, calc(100vw - 2rem));
    max-width: min(17.5rem, calc(100vw - 2rem));
    max-height: none;
    overflow-x: hidden;
    overflow-y: visible;
    margin: 0;
    padding: 0.625rem 0.75rem;
    border: 1px solid #c4c6cf;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #181c1e;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 32, 69, 0.12);
    z-index: 2147483647;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: none;
    -webkit-overflow-scrolling: auto;
    transform: translateZ(0);
}

.catch-score-tip.catch-score-tip--visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

@media (hover: none), (pointer: coarse) {
    .catch-score-tip {
        max-height: min(22rem, 70vh);
        max-height: min(22rem, 70dvh);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Тултип по иконке погоды (слот таблицы) */
.forecast-detail-table tbody > tr:first-of-type td:not(:first-child) .forecast-weather-icon-hit {
    cursor: help;
    -webkit-tap-highlight-color: transparent;
}

.forecast-weather-tip {
    position: fixed;
    box-sizing: border-box;
    left: 0;
    top: 0;
    max-width: min(14rem, calc(100vw - 2rem));
    padding: 0.4rem 0.55rem;
    border-radius: 0.375rem;
    border: 1px solid #c4c6cf;
    background: #ffffff;
    color: #181c1e;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0, 32, 69, 0.14);
    z-index: 2147483646;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateZ(0);
}

.forecast-weather-tip.forecast-weather-tip--visible {
    visibility: visible;
    opacity: 1;
}

@media (hover: none), (pointer: coarse) {
    .forecast-weather-tip {
        transition: none;
    }
}

.error-page-hero-pattern {
    background-image: radial-gradient(circle at 2px 2px, #e2e8f0 1px, transparent 0);
    background-size: 40px 40px;
}

.error-page-code {
    font-size: clamp(4.5rem, 16vw, 7.5rem);
    letter-spacing: -0.04em;
}
