﻿/* ═══════════════════════════════════════════════════════════════════════
   Gelir Kiti (rvr-*) — Gelir Yönetimi rapor ekranlarının kabuğu.
   report-kit.css'in (rk-*) ÜSTÜNE gelir; renk/aralık değişkenleri oradan okunur.
   Eski revenue-pages-*.css aileleriyle sınıf paylaşmaz.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Modül gezinmesi (rvn-*) — tüm nakit ekranlarının üst şeridi ─────────
   Üst satır: modül · 6 grup · Tüm Raporlar. Alt satır: aktif grubun ekranları.
   Kaynak: RevenueReportCatalog (Presentation/Components/Revenue). */
.rvn {
    background: var(--rk-card);
    border: 1px solid var(--rk-line);
    border-radius: var(--rk-radius);
    box-shadow: var(--rk-shadow);
    overflow: hidden;
}
.rvn-pending { min-height: 50px; }
.rvn-top {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 8px 6px 12px;
    min-height: 50px;
}
.rvn-brand {
    display: inline-flex; align-items: center; gap: 9px;
    padding-right: 14px; margin-right: 2px;
    border-right: 1px solid var(--rk-line);
    color: var(--rk-ink); text-decoration: none; white-space: nowrap;
    font-size: .86rem; font-weight: 800; letter-spacing: -.005em;
}
.rvn-brand-icon {
    width: 30px; height: 30px; border-radius: 9px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #0f766e, #14b8a6); color: #fff; font-size: .8rem;
}
.rvn-brand:hover { color: var(--rk-accent); }
.rvn-groups { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.rvn-groups::-webkit-scrollbar { display: none; }
.rvn-group {
    --g: var(--rk-accent);
    display: inline-flex; align-items: center; gap: 7px;
    height: 36px; padding: 0 12px; border-radius: 9px;
    color: var(--rk-ink-2); text-decoration: none; white-space: nowrap;
    font-size: .79rem; font-weight: 650;
    transition: background .12s, color .12s;
}
.rvn-group i { font-size: .76rem; color: var(--g); opacity: .85; }
.rvn-group:hover { background: #f1f5f9; color: var(--rk-ink); }
.rvn-group.active {
    background: color-mix(in srgb, var(--g) 11%, #fff);
    color: color-mix(in srgb, var(--g) 80%, #0f172a);
    font-weight: 780;
}
.rvn-group.active i { opacity: 1; }
/* İşlemler ve Tanımlar raporlardan ince bir çizgiyle ayrılır */
.rvn-group-ops { color: var(--rk-muted); }
.rvn-group:not(.rvn-group-ops) + .rvn-group-ops { margin-left: 12px; position: relative; }
.rvn-group:not(.rvn-group-ops) + .rvn-group-ops::before {
    content: ""; position: absolute; left: -8px; top: 9px; bottom: 9px; width: 1px; background: var(--rk-line);
}
.rvn-all {
    display: inline-flex; align-items: center; gap: 7px;
    height: 34px; padding: 0 12px; border-radius: 9px;
    border: 1px solid var(--rk-line); background: #fff;
    color: var(--rk-ink); text-decoration: none; white-space: nowrap;
    font-size: .76rem; font-weight: 700;
}
.rvn-all:hover, .rvn-all.active { border-color: #bfdbfe; background: var(--rk-accent-soft); color: var(--rk-accent); }
.rvn-sub {
    --g: var(--rk-accent);
    display: flex; align-items: stretch; gap: 2px;
    padding: 0 10px;
    border-top: 1px solid var(--rk-line-2);
    background: linear-gradient(180deg, #fbfcfe, #f8fafc);
    overflow-x: auto; scrollbar-width: thin;
}
.rvn-tab {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 12px 9px;
    border-bottom: 2px solid transparent;
    color: var(--rk-muted); text-decoration: none; white-space: nowrap;
    font-size: .77rem; font-weight: 650;
    transition: color .12s, border-color .12s;
}
.rvn-tab i { font-size: .72rem; }
.rvn-tab:hover { color: var(--rk-ink); }
.rvn-tab.active { color: var(--rk-ink); border-bottom-color: var(--g); font-weight: 780; }
.rvn-tab.active i { color: var(--g); }
@media (max-width: 1100px) {
    .rvn-brand-text { display: none; }
    .rvn-brand { padding-right: 8px; }
}
@media (max-width: 760px) {
    .rvn-group span, .rvn-all span { display: none; }
    .rvn-group { padding: 0 10px; }
}
/* Eski (cf-/cfm-) işlem ekranlarında şerit sayfa kenarına yapışmasın */
.cf-page > .rvn, .cfm-page > .rvn, .rc > .rvn { margin-bottom: 14px; }

/* ── Başlık satırı (rvr-head) ─────────────────────────────────────────── */
.rvr-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    padding: 4px 2px 0;
}
.rvr-head-main { min-width: 0; flex: 1 1 420px; }
.rvr-head-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rvr-head-title h1 {
    margin: 0; font-size: 1.42rem; font-weight: 800; letter-spacing: -.018em;
    color: var(--rk-ink); line-height: 1.2;
}
.rvr-code {
    padding: 3px 8px; border-radius: 6px;
    background: #eef2f7; color: var(--rk-muted);
    font-size: .62rem; font-weight: 800; letter-spacing: .05em;
}
.rvr-question {
    display: flex; align-items: baseline; gap: 7px;
    margin: 6px 0 0; font-size: .86rem; color: var(--rk-ink-2); font-weight: 550;
}
.rvr-question i { color: var(--rk-accent); font-size: .78rem; flex: none; }
.rvr-method { margin: 3px 0 0; font-size: .74rem; color: var(--rk-muted); }
.rvr-method b { color: var(--rk-ink-2); }
.rvr-print-scope { display: none; }
.rvr-head-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.rvr-head-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rvr-head-tools .fpr-filter.compact { flex-direction: row; align-items: center; gap: 6px; }
.rvr-head-tools .fpr-filter.compact > span { font-size: .66rem; }
.rvr-head-actions { display: flex; align-items: center; gap: 8px; padding-left: 10px; border-left: 1px solid var(--rk-line); }
.rvr-updated { display: flex; flex-direction: column; align-items: flex-end; font-size: .66rem; color: var(--rk-muted); line-height: 1.3; white-space: nowrap; }
.rvr-updated b { color: var(--rk-ink-2); font-weight: 700; font-size: .72rem; }
.rvr-refresh { background: var(--rk-accent); border-color: var(--rk-accent); color: #fff; }
.rvr-refresh:hover:not(:disabled) { background: #1e40af; border-color: #1e40af; color: #fff; }
@media (max-width: 760px) { .rvr-head-actions { border-left: 0; padding-left: 0; } }

/* Nakit sayfalarında veri kapsamı kutusu daha sakin */
.rvr-page .rk-data-status > summary { min-height: 40px; padding: 6px 12px; }

/* KPI kartları: görseldeki gibi iri değer, sade çerçeve, yumuşak gölge */
.rvr-page .rk-kpi { border-top-width: 1px; border-color: var(--rk-line); border-radius: 11px; padding: 12px 14px; min-height: 108px; }
.rvr-page a.rk-kpi:hover { border-color: #93c5fd; box-shadow: 0 6px 18px rgba(29, 78, 216, .08); transform: translateY(-1px); }
.rvr-page .rk-kpi-value { font-size: 1.36rem; }
.rvr-page .rk-kpi-title { font-size: .75rem; }

/* ── Rapor Merkezi (rvc-*) ───────────────────────────────────────────── */
.rvc-search { position: relative; display: block; width: min(360px, 90vw); }
.rvc-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--rk-faint); font-size: .8rem; }
.rvc-search input {
    width: 100%; height: 38px; padding: 0 12px 0 34px;
    border: 1px solid var(--rk-line); border-radius: 10px; background: #fff;
    font-size: .82rem; color: var(--rk-ink); outline: none;
}
.rvc-search input:focus { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.rvc-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .rvc-groups { grid-template-columns: 1fr; } }
.rvc-group {
    --g: var(--rk-accent);
    background: var(--rk-card); border: 1px solid var(--rk-line);
    border-top: 3px solid var(--g);
    border-radius: var(--rk-radius); box-shadow: var(--rk-shadow);
    display: flex; flex-direction: column;
}
.rvc-group-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; }
.rvc-group-icon {
    width: 38px; height: 38px; border-radius: 10px; flex: none;
    display: grid; place-items: center;
    background: color-mix(in srgb, var(--g) 12%, #fff); color: var(--g); font-size: .95rem;
}
.rvc-group-head h2 { margin: 0; font-size: 1rem; font-weight: 800; color: var(--rk-ink); }
.rvc-group-head p { margin: 2px 0 0; font-size: .76rem; color: var(--rk-muted); }
.rvc-group-count {
    margin-left: auto; min-width: 26px; height: 22px; padding: 0 8px; border-radius: 999px;
    display: grid; place-items: center;
    background: #f1f5f9; color: var(--rk-muted); font-size: .7rem; font-weight: 800;
}
.rvc-list { display: flex; flex-direction: column; padding: 0 8px 8px; }
.rvc-item {
    display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 14px; gap: 12px; align-items: center;
    padding: 10px; border-radius: 10px;
    color: inherit; text-decoration: none;
    border-top: 1px solid var(--rk-line-2);
    transition: background .12s;
}
.rvc-item:first-child { border-top: 0; }
.rvc-item:hover { background: color-mix(in srgb, var(--g) 6%, #fff); }
.rvc-item-icon {
    width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    background: #f8fafc; border: 1px solid var(--rk-line-2); color: var(--g); font-size: .82rem;
}
.rvc-item-body { display: flex; flex-direction: column; min-width: 0; }
.rvc-item-name { font-size: .86rem; font-weight: 750; color: var(--rk-ink); line-height: 1.3; }
.rvc-item-q { font-size: .75rem; color: var(--rk-muted); line-height: 1.35; margin-top: 2px; }
.rvc-item-code { font-size: .62rem; font-weight: 800; letter-spacing: .04em; color: var(--rk-faint); white-space: nowrap; }
.rvc-item-arrow { color: #cbd5e1; font-size: .72rem; transition: transform .12s, color .12s; }
.rvc-item:hover .rvc-item-arrow { color: var(--g); transform: translateX(2px); }
.rvc-item-empty .rvc-item-name, .rvc-item-empty .rvc-item-icon { opacity: .7; }
.rvc-flag {
    display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px;
    background: #f1f5f9; color: var(--rk-muted);
    font-style: normal; font-size: .58rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
    vertical-align: middle;
}
.rvc-ops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .rvc-ops { grid-template-columns: 1fr; } }
.rvc-ops-card { padding: 12px 16px 14px; }
.rvc-ops-head { font-size: .86rem; font-weight: 800; color: var(--rk-ink); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rvc-ops-head i { color: var(--rk-muted); }
.rvc-ops-head small { font-weight: 550; color: var(--rk-muted); font-size: .72rem; }
.rvc-ops-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rvc-ops-links a {
    display: inline-flex; align-items: center; gap: 7px;
    height: 32px; padding: 0 11px; border-radius: 8px;
    border: 1px solid var(--rk-line); background: #fff;
    color: var(--rk-ink-2); text-decoration: none; font-size: .76rem; font-weight: 650;
}
.rvc-ops-links a i { color: var(--rk-muted); font-size: .72rem; }
.rvc-ops-links a:hover { border-color: #bfdbfe; color: var(--rk-accent); background: var(--rk-accent-soft); }

/* ── Filtre çubuğu (5 kutu + katman anahtarı) ──────────────────────────── */
.rvr-filterbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    padding: 10px 12px;
    background: var(--rk-card);
    border: 1px solid var(--rk-line);
    border-radius: var(--rk-radius);
}
.rvr-filterbar .rk-toggles { min-height: 36px; align-items: center; }
.rvr-filter-wide { grid-column: span 2; }
@media (max-width: 1400px) { .rvr-filterbar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .rvr-filterbar { grid-template-columns: 1fr; } .rvr-filter-wide { grid-column: auto; } }

/* ── Yerleşim ──────────────────────────────────────────────────────────── */
.rvr-two-col { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.rvr-two-col-even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .rvr-two-col, .rvr-two-col-even { grid-template-columns: 1fr; } }

/* ── Tablo satır türleri ───────────────────────────────────────────────── */
.rvr-neg { color: #b91c1c; }
.rvr-grid td.rvr-col-total, .rvr-grid th.rvr-col-total {
    border-left: 2px solid #94a3b8; background: #f8fafc; font-weight: 700;
}
.rvr-grid th.rvr-col-period { text-align: right; padding: 0 10px; }
.rvr-grid tr.rvr-r-opening td { background: #f8fbff !important; font-weight: 700; color: #0f172a; }
.rvr-grid tr.rvr-r-subtotal td { font-weight: 700; color: #0f172a; border-top: 1px solid #cbd5e1; background: #f8fafc !important; }
.rvr-grid tr.rvr-r-net td { font-weight: 800; color: #0b2f58; background: #eef4fb !important; border-top: 1px solid #b6c8dd; border-bottom: 1px solid #b6c8dd; }
.rvr-grid tr.rvr-r-change td { font-weight: 800; color: #0f172a; background: #f1f5f9 !important; border-top: 2px solid #64748b; }
.rvr-grid tr.rvr-r-closing td { font-weight: 800; color: #052e16; background: #ecfdf5 !important; border-bottom: 2px solid #16a34a; }
.rvr-grid tr.rvr-r-threshold td { color: #9a3412; font-style: italic; }
.rvr-grid tr.rvr-r-headroom td { font-weight: 700; color: #0f172a; }
.rvr-grid tr.rvr-r-info td { color: var(--rk-muted); font-size: .74rem; border-top: 1px dashed #cbd5e1; }
.rvr-grid tr.rvr-r-input td { color: var(--rk-ink-2); }

.rvr-cell-btn {
    all: unset; cursor: pointer; display: block; width: 100%; text-align: right;
    border-radius: 4px; padding: 0 2px; margin: 0 -2px;
}
.rvr-cell-btn:hover { background: var(--rk-accent-soft); color: var(--rk-accent); text-decoration: underline dotted; }

/* ── Katman rozeti ─────────────────────────────────────────────────────── */
.rvr-chip {
    display: inline-block; padding: 1px 8px; border-radius: 999px;
    font-size: .66rem; font-weight: 700; white-space: nowrap;
    background: #e2e8f0; color: #334155;
}
.rvr-chip-actual { background: var(--sc-actual-soft); color: var(--sc-actual-text); }
.rvr-chip-committed { background: #dcfce7; color: #166534; }
.rvr-chip-expected { background: #fef3c7; color: #92400e; }
.rvr-chip-forecast { background: var(--sc-forecast-soft); color: var(--sc-forecast-text); }
.rvr-chip-budget { background: var(--sc-budget-soft); color: var(--sc-budget-text); }

/* ── Drill paneli ──────────────────────────────────────────────────────── */
.rvr-drill-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .28); z-index: 1040; }
.rvr-drill {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 96vw);
    background: #fff; z-index: 1041; display: flex; flex-direction: column;
    box-shadow: -12px 0 32px rgba(15, 23, 42, .18);
}
.rvr-drill-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rk-line); }
.rvr-drill-head h3 { margin: 0; font-size: 1rem; font-weight: 800; color: var(--rk-ink); }
.rvr-drill-head p { margin: 2px 0 0; font-size: .74rem; color: var(--rk-muted); }
.rvr-drill-summary { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 10px 18px; background: #f8fafc; border-bottom: 1px solid var(--rk-line-2); }
.rvr-drill-summary div { display: flex; flex-direction: column; }
.rvr-drill-summary span { font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--rk-muted); }
.rvr-drill-summary b { font-size: .9rem; color: var(--rk-ink); font-variant-numeric: tabular-nums; }
.rvr-drill-body { flex: 1; overflow: auto; }
.rvr-drill-grid { width: 100%; }
.rvr-drill-grid thead th { top: 0; }
.rvr-drill-desc { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.rvr-drill-desc small { display: block; color: var(--rk-muted); font-size: .68rem; }
.rvr-drill-foot { padding: 10px 18px; border-top: 1px solid var(--rk-line); display: flex; justify-content: flex-end; }

/* ── Karar paneli (risk / hedef-durum listesi) ─────────────────────────── */
.rvr-list { display: flex; flex-direction: column; }
.rvr-list-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rk-line-2); }
.rvr-list-item:last-child { border-bottom: 0; }
.rvr-list-item i { font-size: .95rem; text-align: center; }
.rvr-list-item strong { display: block; font-size: .8rem; color: var(--rk-ink); }
.rvr-list-item small { display: block; font-size: .7rem; color: var(--rk-muted); }
.rvr-list-item b { font-size: .84rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rvr-sev-high i, .rvr-sev-high b { color: #b91c1c; }
.rvr-sev-mid i, .rvr-sev-mid b { color: #b45309; }
.rvr-sev-low i, .rvr-sev-low b { color: #1d4ed8; }
.rvr-sev-ok i, .rvr-sev-ok b { color: #15803d; }

.rvr-status { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; }
.rvr-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.rvr-status-ok { color: #15803d; }
.rvr-status-watch { color: #b45309; }
.rvr-status-risk { color: #b91c1c; }

/* ── Yazdırma ──────────────────────────────────────────────────────────── */
@media print {
    .rvn, .rvr-filterbar, .rvr-head-side, .rvr-drill, .rvr-drill-backdrop { display: none !important; }
    .rvr-print-scope { display: block; margin: 4px 0 0; font-size: .74rem; color: #334155; }
    .rk-grid-wrap { max-height: none !important; overflow: visible !important; }
}

/* Eşik altı gün / hafta satırı */
.rvr-grid tr.rvr-r-risk td { background: #fef2f2 !important; }
.rvr-grid tr.rvr-r-risk td.rk-sticky { border-left: 3px solid #dc2626; }

/* İki sütunlu yerleşimde kartlar içerikleri kadar uzar; boş durum kartı yarım ekranı kaplamaz. */
.rvr-two-col, .rvr-two-col-even { align-items: start; }
.rvr-page .rk-state.rvr-state-compact { min-height: 0; padding: 18px 16px; flex-direction: row; gap: 10px; justify-content: flex-start; }
.rvr-page .rk-state.rvr-state-compact i { font-size: 1.1rem; margin: 0; color: #15803d; }
.rvr-page .rk-state.rvr-state-compact p { margin: 0; }

/* Vadesi geçmiş, gerçekleşmemiş kalem (Nakit Takvimi) */
.rvr-page tr.rvr-r-overdue td { background: #fef2f2 !important; }
.rvr-page tr.rvr-r-overdue td:first-child { box-shadow: inset 3px 0 0 #dc2626; }
.rvr-overdue-tag {
    display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px;
    background: #fee2e2; color: #b91c1c; font-size: .62rem; font-weight: 800; white-space: nowrap;
}

/* Nakit akış tablosunda kod sütunu: IAS 7 satır kodları (OP_OUT_INCTAX, INV_IN_INTEREST) kesilmeden okunur */
.rvr-page .rk-col-code { min-width: 132px; white-space: nowrap; font-variant-numeric: normal; }

/* ── Gelir kitine özgü ekler (25 Eyl 2026) ─────────────────────────────── */
.rvr-page tr.rvr-r-need td { background: #fff7ed !important; }
.rvr-page tr.rvr-r-need td:first-child { box-shadow: inset 3px 0 0 #ea580c; }
.rvr-page tr.rvr-r-weekend td { background: #f8fafc; }
.rvr-page tr.rvr-r-future td { color: var(--rk-faint); }
.rvr-foot { margin: 8px 12px 10px; font-size: .72rem; color: var(--rk-muted); }
.rvr-muted { color: var(--rk-muted); font-weight: 500; margin-left: 6px; }
/* 30/60/90 gün tablosu: tarih aralığı pencerenin altında — tablo karta sığar, "Plana Kalan" taşmaz. */
.rvr-otb-grid .rvr-otb-range { display: block; margin-left: 0; font-size: .66rem; }
.rvr-otb-grid th { white-space: normal; line-height: 1.2; }
.rvr-filter-wide { min-width: 260px; }
.rvc-item-code { font-size: .68rem; font-weight: 700; color: var(--rk-faint); white-space: nowrap; margin-right: 6px; }
.rvr-page .fpr-filter input[type=date] { height: 34px; border: 1px solid var(--rk-line); border-radius: 8px; padding: 0 8px; font: inherit; background: #fff; }
.rvr-page .rk-grid-wrap.rk-full { max-height: 70vh; overflow: auto; }

/* Başlıklar dar kolonlarda iki satıra iner; yan yana yapışmaz (25 Eyl 2026 görsel kabul). */
.rvr-page .rvr-grid thead th { white-space: normal; line-height: 1.2; vertical-align: bottom; padding-left: 8px; padding-right: 8px; }
.rvr-page .rvr-grid td, .rvr-page .rvr-grid th { padding-left: 8px; padding-right: 8px; }
.rvr-page .rvr-grid tbody td { white-space: nowrap; }

/* ── Faz 2–3 ekleri (25 Eyl 2026): takvim, ısı haritası, sürüm etiketi ───────── */
.rvr-page .rvr-src { display: block; font-size: .6rem; font-weight: 600; opacity: .7; }
.rvr-page tr.rvr-r-best td { background: #f0fdf4 !important; }
.rvr-page tr.rvr-r-best td:first-child { box-shadow: inset 3px 0 0 #15803d; }
.rvr-page .rvr-heat-cell { cursor: pointer; transition: outline-color .1s; }
.rvr-page .rvr-heat-cell:hover { outline: 2px solid #1d4ed8; outline-offset: -2px; }
.rvr-page .rvr-heat-on { outline: 2px solid #0f172a !important; outline-offset: -2px; font-weight: 800; }
.rvr-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.rvr-cal-head { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--rk-muted); text-align: center; padding: 2px 0 4px; }
.rvr-cal-blank { min-height: 92px; }
.rvr-cal-day { min-height: 92px; border: 1px solid var(--rk-line); border-radius: 10px; padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; background: #fff; font-variant-numeric: tabular-nums; }
.rvr-cal-day.past { border-style: dashed; }
.rvr-cal-day.need { box-shadow: inset 0 0 0 2px #ea580c; }
.rvr-cal-top { display: flex; justify-content: space-between; align-items: baseline; font-size: .72rem; }
.rvr-cal-top b { font-size: .95rem; }
.rvr-cal-top span { font-size: .62rem; font-weight: 700; opacity: .75; }
.rvr-cal-main { font-size: 1.05rem; font-weight: 800; }
.rvr-cal-sub { font-size: .66rem; opacity: .85; }
@media (max-width: 900px) { .rvr-cal { gap: 3px; } .rvr-cal-day, .rvr-cal-blank { min-height: 70px; padding: 4px; } .rvr-cal-main { font-size: .85rem; } }
.rvr-page input[type=month] { height: 34px; border: 1px solid var(--rk-line); border-radius: 8px; padding: 0 8px; font: inherit; background: #fff; }

/* ── Bütçe Stüdyosu (rvs-) ─────────────────────────────────────────────── */
.rvs-steps { display: flex; gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; flex-wrap: wrap; }
.rvs-steps li { flex: 1 1 160px; }
.rvs-steps button {
    width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    border: 1px solid var(--rk-line); border-radius: var(--rk-radius); background: var(--rk-card);
    color: var(--rk-ink-2); font: inherit; font-weight: 600; cursor: pointer; text-align: left;
}
.rvs-steps button:disabled { cursor: default; opacity: .55; }
.rvs-steps li.active button { border-color: var(--rk-accent); color: var(--rk-accent); box-shadow: 0 0 0 3px var(--rk-accent-soft); }
.rvs-steps li.done button { color: #15803d; }
.rvs-step-no {
    width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: #f1f5f9; font-size: .8rem; flex: none;
}
.rvs-steps li.active .rvs-step-no { background: var(--rk-accent); color: #fff; }
.rvs-steps li.done .rvs-step-no { background: #dcfce7; color: #15803d; }
.rvs-step-label i { margin-right: 4px; }

.rvs-radio-list { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow-y: auto; }
.rvs-radio, .rvs-check {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--rk-line);
    border-radius: 8px; cursor: pointer; background: #fff;
}
.rvs-radio.active, .rvs-check.active { border-color: var(--rk-accent); background: var(--rk-accent-soft); }
.rvs-radio-main { display: flex; flex-direction: column; min-width: 0; }
.rvs-radio-main small { color: var(--rk-muted); }
.rvs-radio.inline { flex: 1 1 220px; }
.rvs-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.rvs-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.rvs-period { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: stretch; }
.rvs-label { width: 100%; font-size: .78rem; font-weight: 700; color: var(--rk-muted); text-transform: uppercase; letter-spacing: .03em; }
.rvs-note { margin: 10px 0 0; font-size: .82rem; }

.rvs-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 14px 0 24px; flex-wrap: wrap; }
.rvs-adjust, .rvs-params { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.rvs-adjust label, .rvs-params label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--rk-ink-2); }
.rvs-params label { flex: 1 1 200px; }
.rvs-params small { color: var(--rk-muted); font-weight: 500; }
.rvs-input { height: 34px; width: 130px; border: 1px solid var(--rk-line); border-radius: 8px; padding: 0 8px; font: inherit; background: #fff; }
.rvs-params .rvs-input { width: 100%; }

.rvs-tabs { display: flex; gap: 6px; margin: 4px 0 10px; overflow-x: auto; padding-bottom: 2px; }
.rvs-tab {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; min-width: 120px;
    border: 1px solid var(--rk-line); border-radius: 8px; background: var(--rk-card); font: inherit; font-weight: 600;
    color: var(--rk-ink); cursor: pointer; white-space: nowrap;
}
.rvs-tab small { color: var(--rk-muted); font-weight: 500; }
.rvs-tab.active { border-color: var(--rk-accent); box-shadow: 0 0 0 3px var(--rk-accent-soft); }
.rvs-tab.warn { border-left: 3px solid #d97706; }

.rvs-grid td, .rvs-grid th { text-align: right; white-space: nowrap; }
.rvs-grid .rk-col-name { text-align: left; }
.rvs-grid .rk-col-name.rk-col-name-first { min-width: 190px; max-width: 220px; }
.rvs-grid tr.rvs-base td { color: var(--rk-muted); font-size: .8rem; }
.rvs-grid tr.rvs-edit td { background: #f8fafc; }
.rvs-cell { width: 76px; height: 28px; border: 1px solid var(--rk-line); border-radius: 6px; padding: 0 6px; text-align: right; font: inherit; background: #fff; }
.rvs-cell:focus, .rvs-input:focus { outline: 2px solid var(--rk-accent); outline-offset: -1px; }

.rvs-issues { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .84rem; }
.rvs-issues li { color: var(--rk-ink-2); }
.rvs-issues li i { color: #2563eb; margin-right: 4px; }
.rvs-issues li.block, .rvs-issues li .fa-triangle-exclamation { color: #b45309; }
.rvs-issues li.block i { color: #b91c1c; }
.rvs-run-note { max-width: 420px; white-space: normal !important; text-align: left !important; font-size: .8rem; color: var(--rk-muted); }

@media (max-width: 720px) {
    .rvs-steps li { flex: 1 1 45%; }
    .rvs-input { width: 100%; }
    .rvs-adjust label { flex: 1 1 45%; }
}

/* Bütçe Stüdyosu — yöntem, karma */
.rvs-radio.disabled { opacity: .55; cursor: not-allowed; }
.rvs-field { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.rvs-select { height: 34px; border: 1px solid var(--rk-line); border-radius: 8px; padding: 0 8px; font: inherit; background: #fff; min-width: 220px; }
.rvs-grid tr.rvs-market td { background: #f1f5f9; }
.rvs-grid td.rvs-indent { padding-left: 26px !important; }
.rvs-kind { font-size: .72rem; color: var(--rk-muted); white-space: nowrap; }
.rvs-kind.locked { color: #15803d; font-weight: 600; }
.rvs-cell:disabled { background: #f1f5f9; color: var(--rk-muted); border-style: dashed; }
.rvs-mix .rk-col-name { min-width: 180px; text-align: left; }
.rvs-mix td, .rvs-mix th { text-align: right; }
