.incoming-page .filter-panel { margin-bottom: 24px; }
.incoming-filter-row { display: flex; flex-wrap: wrap; gap: 22px; align-items: end; }
.incoming-picker { width: min(100%, 450px); }
.incoming-mode { display: grid; gap: 8px; }
.incoming-mode-buttons { display: flex; padding: 4px; border: 1px solid #dce7f3; border-radius: 14px; background: #edf3f9; }
.incoming-mode-buttons button { border: 0; border-radius: 10px; padding: 12px 15px; color: #5c7190; background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.incoming-mode-buttons button.active { color: #2164d9; background: #fff; box-shadow: 0 2px 8px #183a6317; }
.incoming-card { margin-top: 20px; }
.incoming-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.incoming-metric { min-width: 0; min-height: 90px; padding: 16px; border: 1px solid #e0eaf5; border-radius: 14px; background: #f8fbfe; color: #607590; font-size: 13px; font-weight: 600; }
.incoming-metric strong { display: block; padding-top: 8px; color: #1b3555; font-size: 24px; }
.incoming-info { display: inline-block; color: #7192bc; cursor: help; }
.incoming-note { color: #69809f; font-size: 13px; line-height: 1.5; margin: 16px 0 0; }
.incoming-note:empty { display: none; }
.incoming-table-scroll { overflow: auto; border: 1px solid #e0eaf5; border-radius: 14px; }
.incoming-table { width: 100%; min-width: 760px; table-layout: fixed; }
.incoming-table th, .incoming-table td { padding: 14px 12px; }
.incoming-table th { white-space: normal; overflow-wrap: anywhere; }
.incoming-table th:first-child { width: 22%; }
.incoming-table th:nth-child(3), .incoming-table th:nth-child(5) { width: 11%; }
.incoming-table tbody th { text-align: left; }
.incoming-matrix { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; color: #294663; font-variant-numeric: tabular-nums; }
.incoming-matrix th, .incoming-matrix td { padding: 15px 17px; border-right: 1px solid #e1e9f3; border-bottom: 1px solid #e1e9f3; min-width: 115px; text-align: right; white-space: nowrap; }
.incoming-matrix thead th { position: sticky; top: 0; z-index: 2; background: #f0f5fc; color: #526d8d; font-weight: 800; text-align: center; }
.incoming-matrix thead small { display: block; font-size: 9px; text-transform: uppercase; color: #8193ab; margin-bottom: 6px; }
.incoming-matrix th:first-child { position: sticky; left: 0; z-index: 1; min-width: 300px; max-width: 340px; white-space: normal; text-align: left; background: #fff; box-shadow: 5px 0 8px -7px #17355370; }
.incoming-matrix thead th:first-child { z-index: 3; background: #edf3fc; }
.incoming-matrix .matrix-total { border-left: 2px solid #6194ed; border-right: 2px solid #6194ed; font-weight: 800; min-width: 150px; }
.incoming-matrix thead .matrix-total { background: #e5eeff; }
.incoming-matrix tbody tr.incoming-excluded-row th:first-child,
.incoming-matrix tbody tr.incoming-excluded-row td { background: #fff0f1; }
.incoming-repeats { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; color: #294663; }
.incoming-repeats th, .incoming-repeats td { padding: 12px 14px; border-right: 1px solid #e1e9f3; border-bottom: 1px solid #e1e9f3; text-align: left; vertical-align: top; min-width: 105px; }
.incoming-repeats thead th { background: #f0f5fc; color: #526d8d; font-size: 11px; text-transform: uppercase; }
.incoming-repeats tbody th { min-width: 150px; font-weight: 700; }
.incoming-repeats .incoming-repeat-comment { min-width: 240px; max-width: 380px; white-space: normal; overflow-wrap: anywhere; }
.incoming-repeats tbody tr.repeat-first th, .incoming-repeats tbody tr.repeat-first td { border-top: 2px solid #cbdcf0; }
.incoming-repeat-pagination { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: #526d8d; }
.incoming-repeat-pagination .outline-control { width: auto; min-width: 84px; min-height: 36px; padding: 0 14px; border-color: #cddced; border-radius: 9px; color: #285f9c; font: 700 12px Manrope,sans-serif; cursor: pointer; }
.incoming-repeat-pagination .outline-control:hover:not(:disabled) { border-color: #9fbee9; background: #edf4ff; color: #1e5bbd; }
.incoming-repeat-pagination .outline-control:disabled { opacity: .45; cursor: default; }
.incoming-repeat-pagination span { color: #7085a0; font-size: 12px; font-weight: 700; white-space: nowrap; }
.incoming-topics-scroll { max-height: 680px; overflow: auto; border: 1px solid #e0eaf5; border-radius: 14px; }
.incoming-topics { width: 100%; border-collapse: separate; border-spacing: 0; color: #294663; font-size: 13px; font-variant-numeric: tabular-nums; }
.incoming-topics th, .incoming-topics td { padding: 12px; border-right: 1px solid #e1e9f3; border-bottom: 1px solid #e1e9f3; text-align: center; min-width: 105px; }
.incoming-topics thead th { position: sticky; top: 0; z-index: 2; background: #f0f5fc; color: #526d8d; font-weight: 800; }
.incoming-topics thead small, .incoming-topics td small { display: block; color: #8193ab; font-size: 11px; margin-top: 4px; }
.incoming-topics th:first-child, .incoming-topics td:nth-child(2), .incoming-topics td:nth-child(3) { text-align: left; min-width: 150px; max-width: 240px; overflow-wrap: anywhere; }
.incoming-topics th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 5px 0 8px -7px #17355370; }
.incoming-topics thead th:first-child { z-index: 3; background: #edf3fc; }
.incoming-topics .incoming-topic-total { background: #f3f7ff; font-weight: 700; }
.incoming-topics select,.incoming-topics input { display:block; width:100%; min-width:0; box-sizing:border-box; margin-top:7px; border:1px solid #d2e1f2; border-radius:7px; padding:5px; background:#fff; color:#425d7d; font:inherit; font-size:11px; }
.incoming-topics select { max-width:220px; }
.incoming-topic-sort { border:0; padding:0; background:transparent; color:#225fb9; font:inherit; font-weight:800; cursor:pointer; }
.incoming-matrix td.incoming-rate-high { background:#c6e9d0; color:#176b42; font-weight:800; }
.incoming-matrix td.incoming-rate-mid { background:#fff0b7; color:#7c6314; font-weight:800; }
.incoming-matrix td.incoming-rate-low { background:#f8d9dc; color:#a83743; font-weight:800; }
@media (max-width: 1000px) { .incoming-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .incoming-summary { grid-template-columns: 1fr; } .incoming-mode-buttons button { padding: 10px; font-size: 12px; } }

/* Детальные таблицы входящей линии: всё содержимое ячеек по центру */
.incoming-table th,
.incoming-table td,
.incoming-table tbody th { text-align: center; }
.incoming-matrix th,
.incoming-matrix td,
.incoming-matrix th:first-child { text-align: center; }
.incoming-repeats th,
.incoming-repeats td { text-align: center; }
.incoming-topics th:first-child,
.incoming-topics td:nth-child(2),
.incoming-topics td:nth-child(3) { text-align: center; }
