/* Raporlama modülü: katalog, çalıştırma ekranı, pano bileşenleri (Faz 1), pano tasarımcısı ve pencereleri (Faz 2).
   Ölçüler prototipten (docs/moduller/raporlama/RAPOR_MODULU_PROTOTIP.html) alınmıştır. Sınıflar "rp-" önekli. */

.rp-page, .rp-dlg-foot, .rp-dsa, .rp-newform, .rp-errors, .rp-pub, .rp-rolelist, .rp-hist, .rp-rellist, .rp-draftbar {
    --rp-ink: #111827;
    --rp-ink-soft: #34414b;
    --rp-muted: #6b7280;
    --rp-line: #dde3ea;
    --rp-line-soft: #edf1f5;
    --rp-surface: #fff;
    --rp-surface-soft: #f6f8fa;
    --rp-accent: #2563eb;
    --rp-accent-wash: #eef4ff;
    --rp-danger: #b91c1c;
    --viz-1: #2a78d6; --viz-2: #eb6834; --viz-3: #1baf7a; --viz-4: #eda100; --viz-5: #e87ba4; --viz-other: #9aa3ae;
    --viz-grid: #e8edf1;
    color: var(--rp-ink);
}

.rp-page { padding: 12px; }
.rp-head { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 10px; min-width: 0; }
.rp-head h1 { font-size: 1.25rem; font-weight: 650; margin: 0; }
.rp-sp { flex: 1; }
.rp-min0 { min-width: 0; }
.rp-muted { color: var(--rp-muted); font-size: .8rem; }
.rp-ellipsis { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.rp-bad { color: var(--rp-danger); }
.rp-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .75rem; }
.rp-ml { margin-left: 4px; }
.rp-alert { padding: 8px 12px; margin-bottom: 10px; border: 1px solid #f3c7c7; background: #fff5f5; color: var(--rp-danger); border-radius: 4px; font-size: .85rem; }
.rp-alert[hidden] { display: none; }

.rp-btn { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border: 1px solid var(--rp-line); border-radius: 4px;
          background: var(--rp-surface); color: var(--rp-ink); font-size: .85rem; cursor: pointer; text-decoration: none; white-space: nowrap; }
.rp-btn:hover { background: var(--rp-accent-wash); }
.rp-btn:disabled { opacity: .5; cursor: default; }
.rp-btn.rp-pri { background: var(--rp-accent); border-color: var(--rp-accent); color: #fff; }
.rp-btn.rp-pri:hover { background: #1d4fd8; }

.rp-mod { display: inline-block; padding: 0 6px; margin: 1px 3px 1px 0; border-radius: 9px; background: #eef2f7; color: var(--rp-ink-soft);
          font-size: .7rem; line-height: 16px; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.rp-status { font-size: .75rem; padding: 1px 7px; border-radius: 9px; background: #eef2f7; }
.rp-st-published { background: #dcfce7; color: #166534; }
.rp-st-draft { background: #fef3c7; color: #92400e; }

/* ── Parametre çubuğu ─────────────────────────────────────────────────── */
.rp-pbar { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; padding: 8px 12px; background: var(--rp-surface);
           border: 1px solid var(--rp-line); border-radius: 5px; margin-bottom: 10px; }
.rp-pf { display: flex; flex-direction: column; gap: 2px; position: relative; }
.rp-pl { font-size: .75rem; color: var(--rp-muted); }
.rp-req { color: var(--rp-danger); margin-left: 2px; }
.rp-row { display: flex; gap: 4px; }
.rp-in { height: 30px; border: 1px solid var(--rp-line); border-radius: 4px; padding: 0 6px; font-size: .85rem; background: #fff; color: var(--rp-ink); }
.rp-in:disabled { background: var(--rp-surface-soft); color: var(--rp-muted); }
.rp-date { width: 140px; }
.rp-list { min-width: 170px; }
.rp-msel summary { list-style: none; display: flex; align-items: center; min-width: 170px; cursor: pointer; }
.rp-msel summary::-webkit-details-marker { display: none; }
.rp-mselb { position: absolute; z-index: 30; top: 52px; left: 0; min-width: 220px; max-height: 260px; overflow: auto; background: #fff;
            border: 1px solid var(--rp-line); border-radius: 4px; box-shadow: 0 6px 18px rgba(16, 24, 40, .12); padding: 4px 0; }
.rp-mselb label { display: flex; gap: 6px; align-items: center; padding: 3px 10px; font-size: .85rem; white-space: nowrap; }
.rp-mselb label:hover { background: var(--rp-accent-wash); }
.rp-miss { min-width: 180px; font-size: .8rem; text-align: right; }
.rp-elapsed { min-width: 56px; text-align: right; }

/* ── Tuval ve bileşen kabuğu ─────────────────────────────────────────────── */
.rp-canvas { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 64px; gap: 10px; align-content: start; }
.rp-span-all { grid-column: 1 / -1; grid-row: span 2; }
.rp-w { grid-column: span var(--rp-span, 6); background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: 5px;
        display: flex; flex-direction: column; min-width: 0; min-height: 0; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.rp-w.rp-nobd { border-color: transparent; box-shadow: none; }
.rp-wh { height: 26px; flex: 0 0 26px; display: flex; align-items: center; gap: 5px; padding: 0 6px 0 8px; border-bottom: 1px solid var(--rp-line-soft); min-width: 0; }
.rp-tt { font-size: .82rem; font-weight: 640; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.rp-flag { flex: 0 0 14px; width: 14px; text-align: center; font-size: 11px; color: #b45309; cursor: default; }
.rp-wb { flex: 1; min-height: 0; overflow: hidden; position: relative; transition: opacity .15s; }
.rp-wb.rp-scroll { overflow: auto; }
.rp-wb.rp-loading { opacity: .55; }
.rp-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--rp-muted);
            font-size: .78rem; text-align: center; padding: 8px; }
.rp-empty .rp-code { color: var(--rp-ink-soft); }
.rp-note { font-size: .72rem; color: var(--rp-muted); padding: 3px 6px; }

@media (max-width: 900px) {
    .rp-canvas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rp-w { grid-column: span 2; }
}

/* Gösterge */
.rp-kpi { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 4px 12px; }
.rp-kpi strong { font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-kpi span { font-size: .72rem; color: var(--rp-muted); }

/* Çubuk */
.rp-bars { padding: 6px 10px; display: flex; flex-direction: column; gap: 3px; height: 100%; overflow: auto; }
.rp-bar { display: grid; grid-template-columns: minmax(60px, 34%) 1fr 92px; align-items: center; gap: 6px; font-size: .75rem; min-height: 18px; border-radius: 3px; }
.rp-nolbl .rp-bar { grid-template-columns: minmax(60px, 34%) 1fr 0; }
.rp-bar:hover { background: var(--rp-accent-wash); }
.rp-lb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--rp-ink-soft); }
.rp-tr { height: 12px; position: relative; }
.rp-fi { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; min-width: 2px; }
.rp-vl { text-align: right; font-variant-numeric: tabular-nums; }

/* Halka ve çizgi */
.rp-donut { display: grid; grid-template-columns: minmax(90px, 42%) 1fr; align-items: center; height: 100%; padding: 6px 10px; gap: 8px; }
.rp-donut svg { width: 100%; height: 100%; max-height: 100%; }
.rp-legend { display: flex; flex-direction: column; gap: 3px; font-size: .75rem; min-width: 0; }
.rp-legend div { display: flex; align-items: center; gap: 5px; min-width: 0; }
.rp-legend i { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 9px; }
.rp-ln { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; color: var(--rp-ink-soft); }
.rp-lv { font-variant-numeric: tabular-nums; }
.rp-line { width: 100%; height: 100%; display: block; }

/* Tablo ve özet */
.rp-grid { width: 100%; border-collapse: collapse; background: var(--rp-surface); }
.rp-grid th { height: 26px; font-size: .78rem; font-weight: 600; text-align: left; color: var(--rp-ink-soft); background: var(--rp-surface-soft);
              border: 1px solid var(--rp-line); padding: 0 6px; white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.rp-grid td { height: 24px; font-size: .78rem; border: 1px solid var(--rp-line-soft); padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.rp-grid tbody tr:hover td { background: var(--rp-accent-wash); }
.rp-grid tfoot td { font-weight: 650; background: var(--rp-surface-soft); border: 1px solid var(--rp-line); position: sticky; bottom: 0; }
.rp-grid .rp-num { text-align: right; font-variant-numeric: tabular-nums; }
.rp-text { padding: 8px 10px; font-size: .85rem; color: var(--rp-ink-soft); white-space: pre-wrap; }

/* ── Pencere alt çubuğu ──────────────────────────────────────────────── */
.rp-errors { min-height: 22px; font-size: .8rem; max-height: 140px; overflow: auto; }
.rp-dlg-foot { display: flex; align-items: center; gap: 8px; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--rp-line); }


.rp-optnote { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Ortak küçük parçalar (Faz 2) ─────────────────────────────────────── */
.rp-xs { font-size: .76rem; }
.rp-in.rp-xs { height: 26px; padding: 0 4px; font-size: .78rem; min-width: 0; }
.rp-btn.rp-xs { height: 24px; padding: 0 7px; font-size: .76rem; }
.rp-full { width: 100%; }
.rp-area { height: auto; padding: 4px 6px; width: 100%; resize: vertical; font-family: inherit; }
.rp-x { border: 0; background: transparent; color: var(--rp-muted); cursor: pointer; font-size: 12px; line-height: 1; padding: 2px 4px; border-radius: 3px; flex: 0 0 auto; }
.rp-x:hover:not(:disabled) { background: #fee2e2; color: var(--rp-danger); }
.rp-x:disabled { opacity: .35; cursor: default; }
.rp-chk { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; white-space: nowrap; }
.rp-seg { display: inline-flex; border: 1px solid var(--rp-line); border-radius: 4px; overflow: hidden; }
.rp-seg button { border: 0; border-right: 1px solid var(--rp-line); background: #fff; padding: 3px 9px; font-size: .78rem; cursor: pointer; color: var(--rp-ink-soft); }
.rp-seg button:last-child { border-right: 0; }
.rp-seg button.rp-on { background: var(--rp-accent-wash); color: var(--rp-accent); font-weight: 600; }
.rp-seg button:disabled { color: #b3bac3; cursor: default; }
.rp-link { border: 0; background: none; color: var(--rp-accent); cursor: pointer; padding: 0; font-size: .76rem; }
.rp-sechead { display: flex; align-items: center; gap: 6px; padding: 7px 8px 5px; }
.rp-sechead h4 { margin: 0; font-size: .8rem; font-weight: 650; color: var(--rp-ink-soft); }
.rp-designnote { margin: 8px; padding: 7px 9px; border-left: 3px solid #c7d2fe; background: #f5f7ff; font-size: .75rem; color: var(--rp-ink-soft); border-radius: 0 4px 4px 0; }
.rp-pempty { height: auto; padding: 14px 8px; }
.rp-ty { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 16px; border-radius: 3px; font-size: 9px; font-weight: 700;
         background: #eef2f7; color: var(--rp-ink-soft); flex: 0 0 auto; }
.rp-ty-money { background: #dcfce7; color: #166534; }
.rp-ty-num { background: #dbeafe; color: #1e40af; }
.rp-ty-date { background: #fef3c7; color: #92400e; }
.rp-ty-image { background: #fce7f3; color: #9d174d; }
.rp-bdg { font-size: .68rem; padding: 0 6px; border-radius: 8px; background: #eef2f7; color: var(--rp-ink-soft); line-height: 16px; white-space: nowrap; }
.rp-bdg-ok { background: #dcfce7; color: #166534; }
.rp-bdg[hidden] { display: none; }
.rp-tabs { display: flex; border-bottom: 1px solid var(--rp-line); flex: 0 0 auto; }
.rp-tabs button { flex: 1; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 7px 6px; font-size: .8rem; cursor: pointer; color: var(--rp-muted); }
.rp-tabs button.rp-on { color: var(--rp-accent); border-bottom-color: var(--rp-accent); font-weight: 600; }

/* ── Tasarımcı çerçevesi ─────────────────────────────────────────────── */
.rp-designer { display: flex; flex-direction: column; gap: 8px; }
.rp-dbar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rp-dname { width: 280px; font-weight: 600; }
.rp-dirty { width: 110px; font-size: .78rem; color: #b45309; }
.rp-designer .rp-alert { margin-bottom: 0; }
.rp-dz { display: grid; grid-template-columns: 236px minmax(0, 1fr) 330px; gap: 8px; height: calc(100vh - 170px); min-height: 520px; }
.rp-dz-left, .rp-dz-right { background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: 5px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.rp-dz-center { min-height: 0; overflow: auto; background: var(--rp-surface-soft); border: 1px solid var(--rp-line); border-radius: 5px; padding: 10px; }
.rp-dz-scroll { flex: 1; min-height: 0; overflow: auto; }
.rp-dz-scroll > div[hidden] { display: none; }
.rp-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.rp-msg { height: 26px; line-height: 26px; padding: 0 10px; font-size: .78rem; color: var(--rp-ink-soft); background: var(--rp-surface);
          border: 1px solid var(--rp-line); border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-msg.rp-ok { color: #166534; }
.rp-msg.rp-badmsg { color: var(--rp-danger); background: #fff5f5; }

/* Sol: palet ve veri kümesi ağacı */
.rp-palette { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 0 8px 8px; }
.rp-pal { display: flex; align-items: center; gap: 6px; padding: 4px 7px; border: 1px solid var(--rp-line); border-radius: 4px; font-size: .78rem; cursor: grab; background: #fff; user-select: none; }
.rp-pal i { font-style: normal; width: 16px; text-align: center; color: var(--rp-accent); }
.rp-pal:hover { border-color: var(--rp-accent); background: var(--rp-accent-wash); }
.rp-pal.rp-off, .rp-fld.rp-off { opacity: .45; cursor: not-allowed; }
.rp-pal.rp-off:hover { border-color: var(--rp-line); background: #fff; }
.rp-fsearch { padding: 0 8px 6px; }
.rp-dstree { flex: 1; min-height: 0; overflow: auto; padding: 0 4px 8px; }
.rp-dsnode { border-bottom: 1px solid var(--rp-line-soft); }
.rp-dsnode[hidden] { display: none; }
.rp-dshead { display: flex; align-items: center; gap: 4px; padding: 5px 4px; cursor: pointer; font-size: .78rem; min-width: 0; }
.rp-dshead:hover { background: var(--rp-surface-soft); }
.rp-dshead .rp-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rp-dshead .rp-mod { max-width: 70px; }
.rp-tw { display: inline-block; width: 10px; font-size: 8px; color: var(--rp-muted); transition: transform .12s; }
.rp-dsnode.rp-open .rp-tw { transform: rotate(90deg); }
.rp-dsnode.rp-used .rp-nm::after { content: " ●"; color: var(--rp-accent); font-size: 8px; vertical-align: middle; }
.rp-fields { padding: 0 0 4px 14px; }
.rp-fields[hidden] { display: none; }
.rp-fld { display: flex; align-items: center; gap: 6px; padding: 2px 6px; font-size: .78rem; border-radius: 3px; cursor: grab; user-select: none; }
.rp-fld:hover { background: var(--rp-accent-wash); }
.rp-dragging { opacity: .5; }

/* Orta: tasarım tuvali */
.rp-dcanvas { min-height: 100%; }
.rp-dw { position: relative; cursor: pointer; }
.rp-dw.rp-sel { outline: 2px solid var(--rp-accent); outline-offset: 1px; }
.rp-dw .rp-grab { cursor: grab; }
.rp-dw .rp-wh .rp-x { visibility: hidden; }
.rp-dw:hover .rp-wh .rp-x, .rp-dw.rp-sel .rp-wh .rp-x { visibility: visible; }
.rp-rz { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize; touch-action: none;
         background: linear-gradient(135deg, transparent 50%, #a3b1c2 50%, #a3b1c2 60%, transparent 60%, transparent 72%, #a3b1c2 72%, #a3b1c2 82%, transparent 82%); }
.rp-ro .rp-rz, .rp-ro .rp-dw .rp-wh .rp-x { display: none; }
.rp-dw.rp-resizing { outline: 2px dashed var(--rp-accent); }
.rp-dw.rp-resizing::after { content: attr(data-size); position: absolute; right: 18px; bottom: 4px; font-size: .72rem; background: var(--rp-ink); color: #fff; padding: 1px 6px; border-radius: 3px; }
.rp-dcanvas.rp-over { outline: 2px dashed var(--rp-accent); outline-offset: -4px; }
.rp-dw.rp-fover { outline: 2px solid #16a34a; }
.rp-dw.rp-no { outline: 2px solid var(--rp-danger); cursor: not-allowed; }
.rp-dw.rp-before { box-shadow: -4px 0 0 0 var(--rp-accent); }
.rp-ph { grid-column: 1 / -1; grid-row: span 3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
         border: 2px dashed var(--rp-line); border-radius: 6px; color: var(--rp-ink-soft); font-size: .85rem; gap: 6px; background: #fff; }
.rp-ph[hidden] { display: none; }

/* Sağ: özellik penceresi */
.rp-objpick { padding: 8px; border-bottom: 1px solid var(--rp-line-soft); }
.rp-objpick select { width: 100%; }
.rp-pg { border-bottom: 1px solid var(--rp-line-soft); }
.rp-pgh { display: flex; align-items: center; gap: 4px; width: 100%; border: 0; background: var(--rp-surface-soft); padding: 5px 8px; font-size: .78rem; font-weight: 650;
          color: var(--rp-ink-soft); cursor: pointer; text-align: left; }
.rp-pgh .rp-tw { transition: transform .12s; font-size: 9px; }
.rp-pg.rp-closed .rp-pgh .rp-tw { transform: rotate(-90deg); }
.rp-pgbadge { margin-left: auto; font-size: .68rem; color: var(--rp-accent); min-width: 14px; text-align: right; }
.rp-pgb { padding: 4px 0 6px; }
.rp-pgb[hidden] { display: none; }
.rp-pgr { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 6px; padding: 2px 8px; min-height: 30px; }
.rp-pgr > label { font-size: .76rem; color: var(--rp-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-pgr .rp-in { width: 100%; }
.rp-pgro { font-size: .78rem; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-width: 0; }
.rp-col { display: flex; align-items: center; gap: 5px; }
.rp-col input[type=color] { width: 30px; height: 24px; padding: 0 2px; border: 1px solid var(--rp-line); border-radius: 3px; background: #fff; }
.rp-cv { font-size: .74rem; color: var(--rp-muted); width: 60px; }
.rp-zlabel { display: flex; align-items: baseline; gap: 6px; padding: 6px 8px 2px; font-size: .76rem; font-weight: 650; color: var(--rp-ink-soft); }
.rp-zlabel small { font-weight: 400; color: var(--rp-muted); }
.rp-zone { margin: 0 8px 4px; min-height: 34px; padding: 4px; border: 1px dashed #c3ccd6; border-radius: 4px; display: flex; flex-direction: column; gap: 3px; background: #fbfcfd; }
.rp-zone.rp-over { border-color: var(--rp-accent); background: var(--rp-accent-wash); }
.rp-hint { font-size: .72rem; color: var(--rp-muted); padding: 4px; }
.rp-chip { display: flex; align-items: center; gap: 5px; padding: 2px 4px; background: #fff; border: 1px solid var(--rp-line); border-radius: 4px; font-size: .76rem; min-width: 0; }
.rp-chip .rp-cn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-chip .rp-in.rp-xs { height: 22px; max-width: 120px; }
.rp-chip-ro { flex: 0 0 auto; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; }
.rp-bindnote { margin: 2px 8px 6px; line-height: 1.5; }
.rp-warntext { color: #b45309; }
.rp-condhead { padding: 2px 8px 4px; }
.rp-rules { padding: 2px 8px 6px; display: flex; flex-direction: column; gap: 5px; }
.rp-rr { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--rp-line-soft); border-radius: 4px; }
.rp-rr select.rp-in { max-width: 96px; }
.rp-rv { width: 84px; }
.rp-in.rp-invalid { border-color: var(--rp-danger); background: #fff5f5; }
.rp-rlab { width: 40px; }
.rp-rnote { flex: 0 0 100%; min-height: 14px; font-size: .7rem; color: var(--rp-accent); }

/* Rapor ve parametreler sekmesi */
.rp-pform { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 5px 8px; padding: 8px; align-items: center; font-size: .78rem; }
.rp-pform label { color: var(--rp-muted); }
.rp-pwhere { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0 8px 6px; font-size: .76rem; }
.rp-prm { margin: 0 8px 8px; border: 1px solid var(--rp-line); border-radius: 5px; overflow: hidden; }
.rp-prmh { display: flex; align-items: center; gap: 4px; padding: 4px 6px; background: var(--rp-surface-soft); border-bottom: 1px solid var(--rp-line-soft); }
.rp-prmh .rp-in { flex: 1; font-weight: 600; }
.rp-prm table { width: 100%; border-collapse: collapse; }
.rp-prm td { padding: 3px 6px; font-size: .76rem; vertical-align: middle; }
.rp-prm td:first-child:not([colspan]) { width: 38%; color: var(--rp-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 0; }
.rp-prm td .rp-in.rp-xs { width: 100%; }
.rp-padd { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 8px 8px; }

/* ── Veri kümesi ekle penceresi ───────────────────────────────────────── */
.rp-dsa-dlg .rz-dialog-content { display: flex; flex-direction: column; }
.rp-dsa { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.rp-dsa-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--rp-line); flex: 0 0 auto; }
.rp-dsa-tabs button { border: 0; border-bottom: 2px solid transparent; background: none; padding: 7px 12px; font-size: .82rem; cursor: pointer; color: var(--rp-muted); }
.rp-dsa-tabs button.rp-on { color: var(--rp-accent); border-bottom-color: var(--rp-accent); font-weight: 600; }
.rp-dsa-tabs button:disabled { color: #b3bac3; cursor: default; }
.rp-dsa-body { display: grid; grid-template-columns: 330px minmax(0, 1fr); flex: 1; min-height: 0; }
.rp-dsa-left { border-right: 1px solid var(--rp-line); display: flex; flex-direction: column; min-height: 0; }
.rp-dsa-q { padding: 8px; }
.rp-dsa-list { flex: 1; min-height: 0; overflow: auto; }
.rp-lg { padding: 6px 10px 2px; font-size: .72rem; font-weight: 700; color: var(--rp-muted); text-transform: uppercase; letter-spacing: .03em; }
.rp-li { display: flex; align-items: center; gap: 6px; padding: 5px 10px; font-size: .82rem; cursor: pointer; }
.rp-li:hover { background: var(--rp-surface-soft); }
.rp-li.rp-on { background: var(--rp-accent-wash); }
.rp-li .rp-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-dsa-det { overflow: auto; min-height: 0; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.rp-dsa-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rp-dsa-title h3 { margin: 0; font-size: 1rem; }
.rp-card { border: 1px solid var(--rp-line); border-radius: 5px; background: #fff; }
.rp-dsa-sample { overflow: auto; max-height: 300px; }
.rp-dsa-sample .rp-empty { height: 80px; }
.rp-dsa-msg { flex: 1; min-width: 0; }
.rp-dsa .rp-note { font-size: .8rem; padding: 0; color: var(--rp-ink-soft); }

/* ── Yeni rapor penceresi ─────────────────────────────────────────────── */
.rp-newform { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px 10px; align-items: center; font-size: .85rem; }
.rp-newhint { min-height: 34px; }

/* ── Veri kümeleri ekranı ve küme ayrıntısı ───────────────────────────── */
.rp-dsx { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 10px; height: calc(100vh - 150px); min-height: 480px; }
.rp-dsx-left { background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: 5px; display: flex; flex-direction: column; min-height: 0; }
.rp-dsx-det { overflow: auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.rp-dsd { display: flex; flex-direction: column; gap: 10px; }
.rp-dsd .rp-note { font-size: .8rem; padding: 0; color: var(--rp-ink-soft); }
.rp-dsfields td, .rp-dsfields th { max-width: none; }
.rp-act { width: 40px; }

/* ── Faz 3: yayın, sürümler, menü yerleşimi ───────────────────────────── */
.rp-btn.rp-danger { color: var(--rp-danger); border-color: #f3c7c7; }
.rp-btn.rp-danger:hover { background: #fee2e2; }
.rp-draftbar { display: flex; flex-direction: column; gap: 2px; padding: 6px 12px; border: 1px solid #fde68a; background: #fffbeb; border-radius: 4px;
               font-size: .8rem; color: #78350f; margin-bottom: 8px; }
.rp-designer .rp-draftbar { margin-bottom: 0; }
.rp-pub { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 12px; align-items: start; font-size: .85rem; }
.rp-pub > label { padding-top: 6px; color: var(--rp-ink-soft); }
.rp-sect { grid-column: 1 / -1; font-weight: 650; font-size: .82rem; color: var(--rp-ink-soft); border-top: 1px solid var(--rp-line-soft); padding-top: 8px; }
.rp-full2 { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.rp-iconpick { display: flex; flex-wrap: wrap; gap: 4px; }
.rp-iconpick button { width: 32px; height: 30px; border: 1px solid var(--rp-line); border-radius: 4px; background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.rp-iconpick button i { font-size: 18px; color: var(--rp-ink-soft); }
.rp-iconpick button.rp-on { border-color: var(--rp-accent); background: var(--rp-accent-wash); }
.rp-iconpick button.rp-on i { color: var(--rp-accent); }
.rp-yr { display: flex; align-items: center; gap: 6px; }
.rp-yr select { flex: 1; }
.rp-n { width: 18px; height: 18px; border-radius: 9px; background: #eef2f7; font-size: .7rem; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px; }
.rp-row.rp-open select { width: 260px; }
.rp-row.rp-open input { flex: 1; }
.rp-rolelist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 3px 10px; }
.rp-rolelist label { display: flex; gap: 6px; align-items: center; font-size: .82rem; }
.rp-hintline { min-height: 18px; margin-top: 3px; }
.rp-rellist { display: flex; flex-direction: column; gap: 2px; font-size: .8rem; max-height: 180px; overflow: auto; padding: 4px 0; }
.rp-hist td { white-space: normal; max-width: none; }
.rp-act3 { width: 96px; white-space: nowrap; }
.rp-deleted td { opacity: .55; }
.rp-wrap { white-space: normal; }
.rp-mi { font-size: 16px; vertical-align: middle; color: var(--rp-ink-soft); }
.rp-strong { font-weight: 650; }
.rp-catbar { display: flex; gap: 8px; margin-bottom: 8px; }
.rp-catbar select { min-width: 240px; }

/* Menü yerleşimi */
.rp-ml { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: start; margin-bottom: 10px; }
.rp-mlg { border-top: 1px solid var(--rp-line-soft); }
.rp-mlh { display: flex; align-items: center; gap: 5px; padding: 5px 8px; background: var(--rp-surface-soft); }
.rp-mlname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-mlh .rp-in.rp-mlname { font-weight: 600; }
.rp-mlcount { width: 56px; text-align: right; }
.rp-mlrow { display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 16px; font-size: .82rem; border-top: 1px dashed var(--rp-line-soft); cursor: grab; }
.rp-mlrow:hover { background: var(--rp-accent-wash); }
.rp-mlrow.rp-mlfixed { cursor: default; opacity: .6; }
.rp-mlrow.rp-mlfixed:hover { background: transparent; }
.rp-mlrow.rp-mldraft .rp-mlname { color: var(--rp-muted); font-style: italic; }
.rp-mlnew { padding: 8px; border-top: 1px solid var(--rp-line-soft); }
.rp-mlnew input { flex: 1; }
@media (max-width: 1000px) { .rp-ml { grid-template-columns: 1fr; } }

/* ── Faz 4: bileşen ⋯ menüsü, kutucuklar, yazdırma (PDF) ──────────────── */
.rp-wmenu { position: relative; flex: 0 0 auto; }
.rp-wmenu > summary { list-style: none; cursor: pointer; width: 20px; height: 20px; line-height: 18px; text-align: center; border-radius: 3px;
                      color: var(--rp-muted, #6b7280); font-weight: 700; }
.rp-wmenu > summary::-webkit-details-marker { display: none; }
.rp-wmenu > summary:hover, .rp-wmenu[open] > summary { background: #eef2f7; }
.rp-wmenub { position: absolute; right: 0; top: 22px; z-index: 40; min-width: 190px; background: #fff; border: 1px solid #dde3ea;
             border-radius: 4px; box-shadow: 0 6px 18px rgba(16, 24, 40, .12); padding: 4px 0; display: flex; flex-direction: column; }
.rp-wmenub button { border: 0; background: none; text-align: left; padding: 5px 12px; font-size: .8rem; cursor: pointer; color: #111827; white-space: nowrap; }
.rp-wmenub button:hover:not(:disabled) { background: #eef4ff; }
.rp-wmenub button:disabled { color: #b3bac3; cursor: default; }
.rp-hometiles { padding: 0; margin-bottom: 1.5rem; }
.rp-wdata { max-height: 62vh; overflow: auto; }
.rp-printparams { display: none; }

/* Yazdırma: report-viewer.js .rp-run'ı gövdeye eklenen .print-only-container.rp-printholder kabına kopyalar
   (app.css o kap dışındaki her şeyi gizler). Sayfa ölçüsü adlı sayfayla yalnız rapora uygulanır; diğer ekranların
   yazdırması etkilenmez. Satırlar içeriğe göre uzar: tablo kesilmez, sayfaya taşar. */
@page rp-land { size: A4 landscape; margin: 10mm; }

@media print {
    .rp-printholder { page: rp-land; }
    .rp-printholder .rp-run { padding: 0; }
    .rp-printholder .rp-noprint { display: none !important; }
    .rp-printholder .rp-printparams { display: block; font-size: 9pt; color: #374151; margin: 0 0 6px; }
    .rp-printholder .rp-canvas { gap: 6px; grid-auto-rows: minmax(56px, auto); }
    .rp-printholder .rp-w { break-inside: avoid; box-shadow: none; }
    .rp-printholder .rp-wb { overflow: visible; }
    .rp-printholder svg { max-width: 100%; }
    .rp-printholder .rp-draftbar { border-color: #999; }
}
