/* TIP takip masası: grafiğe öncelik, tek filtre rafı ve sayısal kontrol tablosu.
   Mevcut Segoe UI ailesi korunur. Beyaz #fff, laboratuvar zemini #eef3f8,
   lacivert #172d46, kobalt #2454cc, petrol #087f80, uyarı #a45e08.
   Dekoratif kart dizisi yerine sayaç bandı; renk yalnız seri veya durum taşır. */
.tip-insights-page { color: var(--tip-text-primary, #172d46); font-variant-numeric: tabular-nums; }
.tip-insights-page > .flex.items-center.justify-between { flex-wrap: wrap; gap: 16px; border-left: 0; padding: 4px 0; }
.tip-insights-page > .flex.items-center.justify-between > .flex { flex-wrap: wrap; }
.tip-insights-page h1 { font-size: 26px; line-height: 1.25; font-weight: 650; letter-spacing: -.5px; }
.tip-insights-page h2 { line-height: 1.4; }
.tip-insights-page :where(select, input[type="search"]) { min-height: 38px; border: 1px solid var(--tip-border, #ccd6e2); border-radius: 6px; padding: 7px 10px; color: var(--tip-text-primary, #172d46); background: var(--tip-surface, #fff); font: inherit; }
.tip-insights-page select { padding-right: 28px; }
.tip-insights-page :is(button, input, select, summary, a, [tabindex]):focus-visible { outline: 3px solid #527fd6; outline-offset: 3px; }
.tip-insights-page button:disabled { opacity: .55; cursor: wait; }
.tip-insights-page .tip-insights-tabs { flex-wrap: wrap; align-items: stretch; overflow: visible; gap: 6px; background: transparent; border: 0; border-bottom: 1px solid var(--tip-border, #d3dfeb); box-shadow: none; border-radius: 0; padding: 3px 3px 8px; }
.tip-insights-page .tip-insights-tab { font-weight: 600; min-height: 44px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.tip-insights-page .tip-insights-tab svg { flex-shrink: 0; }
.tip-insights-page .tip-insights-tab span { min-width: 0; }
@media (max-width: 600px) {
    .tip-insights-page .tip-insights-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .tip-insights-page .tip-insights-tab { transition: none; }
}
.tip-insights-page .tip-insights-tab.active { box-shadow: inset 0 -2px 0 var(--tip-accent, #2454cc); }
.tip-insights-page > .bg-white.shadow, .tip-insights-page > .grid > .bg-white.shadow { box-shadow: none; border: 1px solid var(--tip-border, #d6e0eb); }
.tip-insights-page table th { font-weight: 600; }
.tip-insights-page table td, .tip-insights-page table th { padding-block: 10px; }
.tip-insights-page .font-mono { font-family: inherit; }
.tip-volume-page { display: flex; flex-direction: column; gap: 18px; padding: 8px 8px 32px; }
.insights-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.insights-page-heading p { margin-top: 8px; color: var(--tip-text-secondary, #536980); font-size: 14px; max-width: 78ch; }
.insights-update { display: grid; gap: 4px; text-align: right; color: var(--tip-text-secondary, #536980); font-size: 12px; flex-shrink: 0; }
.insights-filter-strip { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; padding: 16px 18px; background: var(--tip-surface, #fff); border: 1px solid var(--tip-border, #d6e0eb); border-radius: 8px; }
.insights-filter-strip > label:not(.insights-auto-refresh), .insights-section-heading > label { display: grid; gap: 6px; color: var(--tip-text-secondary, #536980); font-size: 12px; font-weight: 600; }
.insights-filter-strip select { min-width: 155px; font-size: 14px; font-weight: 400; }
.insights-filter-strip .insights-auto-refresh { display: flex; align-items: center; gap: 8px; margin-left: auto; min-height: 38px; font-size: 13px; color: var(--tip-text-secondary, #536980); }
.tip-volume-page input[type="checkbox"] { width: 16px; height: 16px; accent-color: #2454cc; flex-shrink: 0; }
.insights-primary-button { background: #2454cc; color: #fff; border-radius: 6px; min-height: 38px; padding: 8px 20px; font-size: 14px; font-weight: 600; }
.insights-primary-button:hover { background: #193fa6; }
.insights-count-strip { display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; border-bottom: 1px solid var(--tip-border, #d6e0eb); padding: 0 0 18px; gap: 20px; }
.insights-count-strip > div { display: grid; align-content: start; gap: 8px; padding-left: 18px; border-left: 1px solid var(--tip-border, #d6e0eb); }
.insights-count-strip > div:first-child { padding-left: 0; border-left: 0; }
.insights-count-strip span { color: var(--tip-text-secondary, #536980); font-size: 12px; min-height: 36px; }
.insights-count-strip strong { font-size: 27px; font-weight: 650; line-height: 1.2; }
.insights-count-strip .insights-count-range strong { font-size: 18px; padding-top: 5px; }
.insights-chart-panel, .insights-data-panel { min-width: 0; background: var(--tip-surface, #fff); border: 1px solid var(--tip-border, #d6e0eb); border-radius: 10px; overflow: hidden; }
.insights-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--tip-border, #d6e0eb); }
.insights-section-heading h2 { font-size: 18px; font-weight: 650; }
.insights-section-heading p { color: var(--tip-text-secondary, #536980); font-size: 13px; margin-top: 5px; max-width: 78ch; }
.insights-section-heading select { font-size: 13px; font-weight: 400; }
.insights-chart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
.insights-chart-main { min-width: 0; padding: 10px 12px 14px; }
.insights-volume-chart { width: 100%; height: 390px; }
.insights-volume-chart[hidden] { display: none; }
.insights-chart-footnote { margin: 10px 14px 0; color: var(--tip-text-secondary, #536980); font-size: 12px; line-height: 1.6; max-width: 90ch; }
.insights-unit-picker { border-left: 1px solid var(--tip-border, #d6e0eb); padding: 18px 14px; background: var(--tip-surface-subtle, #f6f8fc); min-width: 0; }
.insights-picker-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 8px; }
.insights-picker-heading h3 { font-size: 14px; font-weight: 650; }
.insights-picker-heading > span { font-size: 12px; color: var(--tip-text-secondary, #536980); }
.insights-search-label { display: block; font-size: 12px; margin-bottom: 5px; }
.insights-unit-picker input[type="search"] { width: 100%; min-width: 0; font-size: 13px; }
.insights-picker-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 10px; }
.insights-picker-actions button { min-height: 32px; padding: 5px 8px; border: 1px solid var(--tip-border, #d6e0eb); background: var(--tip-surface, #fff); border-radius: 5px; color: var(--tip-text-secondary, #536980); font-size: 12px; }
.insights-picker-actions button:hover { color: var(--tip-accent, #2454cc); border-color: #8ca9dc; }
.insights-unit-list { max-height: 295px; overflow-y: auto; scrollbar-width: thin; }
.insights-unit-choice { display: flex; align-items: start; gap: 8px; padding: 11px 2px; cursor: pointer; border-bottom: 1px solid var(--tip-border, #d6e0eb); }
.insights-unit-choice input { margin-top: 2px; }
.insights-line-swatch { display: inline-block; flex-shrink: 0; width: 16px; height: 3px; background: var(--series-color); margin: 9px 0 0; vertical-align: middle; }
.insights-unit-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; }
.insights-unit-name small { display: block; font-size: 11px; font-weight: 400; line-height: 1.5; margin-top: 4px; color: var(--tip-text-secondary, #536980); }
.insights-unit-choice > strong { font-size: 13px; font-weight: 600; }
.insights-picker-note, .insights-picker-empty { color: var(--tip-text-secondary, #536980); font-size: 11px; line-height: 1.6; margin-top: 12px; }
.insights-empty { display: grid; place-content: center; min-height: 390px; padding: 24px; color: var(--tip-text-secondary, #536980); text-align: center; font-size: 14px; }
.insights-notice { padding: 14px 18px; background: var(--tip-surface-subtle, #eef3f8); border-left: 3px solid #a45e08; border-radius: 4px; font-size: 14px; }
.insights-notice-error { border-left-color: #c53636; }
.insights-table-scroll { overflow: auto; max-height: 460px; scrollbar-width: thin; }
.insights-volume-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.insights-volume-table :is(th, td) { padding: 12px 22px; border-bottom: 1px solid var(--tip-border, #e3e9f0); text-align: left; }
.insights-volume-table thead th { position: sticky; top: 0; background: var(--tip-surface-subtle, #f4f7fa); color: var(--tip-text-secondary, #536980); font-size: 12px; z-index: 1; }
.insights-volume-table tbody th { min-width: 180px; }
.insights-volume-table tbody td:not(.insights-number) { color: var(--tip-text-secondary, #536980); font-size: 12px; }
.insights-volume-table .insights-number { text-align: right; white-space: nowrap; }
.insights-volume-table .insights-line-swatch { margin: 0 10px 0 0; }
.insights-volume-table tfoot { background: var(--tip-surface-subtle, #f4f7fa); font-weight: 650; }
.insights-period-toggle { cursor: pointer; padding: 16px 22px; font-size: 13px; color: var(--tip-accent, #2454cc); background: transparent; }
.insights-period-toggle::before { content: '+'; display: inline-block; width: 18px; font-weight: 600; }
.insights-period-toggle[aria-expanded="true"]::before { content: '−'; }
.insights-period-details .insights-volume-table th { white-space: nowrap; }
@media (max-width: 1100px) {
    .insights-chart-layout { grid-template-columns: minmax(0, 1fr); }
    .insights-unit-picker { border-left: 0; border-top: 1px solid var(--tip-border, #d6e0eb); }
    .insights-unit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
}
@media (max-width: 650px) {
    .tip-volume-page { padding: 14px 8px 30px; gap: 18px; }
    .insights-page-heading, .insights-section-heading { flex-direction: column; align-items: stretch; }
    .insights-update { text-align: left; display: flex; flex-wrap: wrap; gap: 12px; }
    .insights-filter-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 12px; }
    .insights-filter-strip select { min-width: 0; width: 100%; }
    .insights-filter-strip .insights-auto-refresh { margin-left: 0; }
    .insights-filter-strip .insights-primary-button { grid-column: 1 / -1; }
    .insights-count-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .insights-count-strip > div:nth-child(3) { border-left: 0; padding-left: 0; }
    .insights-count-strip strong { font-size: 24px; }
    .insights-count-strip .insights-count-range strong { font-size: 15px; }
    .insights-section-heading { padding: 16px; }
    .insights-volume-chart, .insights-empty { height: 320px; min-height: 320px; }
    .insights-unit-list { grid-template-columns: minmax(0, 1fr); }
    .insights-volume-table :is(th, td) { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) { .tip-insights-page * { transition: none !important; animation: none !important; } }
