/* Ortak liste ızgarası (PshGrid). İlk görünüm docs/ortak-servisler/liste-siralama-suzme/LISTE_SIRALAMA_SUZME_PROTOTIP.html'den. */
.psh-grid {
    --pg-line: #e3e8ef;
    --pg-line2: #cfd6e0;
    --pg-muted: #667085;
    --pg-text: #1f2937;
    --pg-accent: #1d4ed8;
    --pg-accent-bg: #eaf1ff;
    --pg-accent-line: #bcd0fb;
    --pg-chip: #f1f4f8;
    --pg-bad: #b42318;
    --pg-head: #f8fafc;
    --pg-sel: #eef4ff;
    --pg-hover: #f8fbff;
    /* Excel görünümü: dikey hücre çizgisi ve dönüşümlü satırın koyu zemini (Radzen #fafafa'dan bir ton belirgin) */
    --pg-vline: #e3e8ef;
    --pg-stripe: #f2f5f8;
    /* Satırın zemini; dondurulmuş (opak) hücre bunu alır. İç içe ızgara dıştaki satırın tonunu almasın diye kökte sıfırlanır. */
    --pg-rowbg: #fff;
    --pg-shadow: 0 12px 32px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .08);
    background: #fff;
    border: 1px solid var(--pg-line);
    border-radius: 8px;
    color: var(--pg-text);
    /* Eski Radzen ızgarasıyla aynı yazı tipi (Roboto Flex, Radzen teması yükler); netlik için gri tonlama yumuşatma */
    font-family: var(--rz-text-font-family, Roboto, sans-serif);
    -webkit-font-smoothing: antialiased;
    font-size: 12px;
    position: relative;
}
/* Izgara dışına (body) açılan menü, sürükleme hayaleti de aynı yazı tipinde */
.psh-grid-menu, .psh-grid-ghost, .psh-grid-dlg { font-family: var(--rz-text-font-family, Roboto, sans-serif); }

/* Kullanıcı yükseklik verdiyse kutu sütun düzenine geçer: kaydırma alanı kalan yeri doldurur */
.psh-grid.hsized { display: flex; flex-direction: column; }
.psh-grid.hsized > .psh-grid-tb, .psh-grid.hsized > .psh-grid-load, .psh-grid.hsized > .psh-grid-pager { flex: none; }
.psh-grid.hsized > .psh-grid-scroll { flex: 1 1 auto; min-height: 0; }
/* Sağ alt köşe tutamacı: liste boyutu */
.psh-grid-grip { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; cursor: nwse-resize; z-index: 6; border-radius: 0 0 7px 0;
    background: linear-gradient(135deg, transparent 0 55%, #b8c1cc 55% 62%, transparent 62% 72%, #b8c1cc 72% 79%, transparent 79%); opacity: .8; touch-action: none; }
.psh-grid-grip:hover { opacity: 1; background: linear-gradient(135deg, transparent 0 55%, #1d4ed8 55% 62%, transparent 62% 72%, #1d4ed8 72% 79%, transparent 79%); }
body.psh-grid-boxing, body.psh-grid-boxing * { cursor: nwse-resize !important; user-select: none; }

/* Material Symbols simgesi (menüler, sayfalayıcı) */
.psh-grid-ms { font-family: 'Material Symbols Outlined'; font-weight: 400; font-style: normal; font-size: 18px; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20; display: inline-block; flex: none; }

/* ───────── Araç çubuğu: kısa alanlar yan yana; çipler kendi alanında kayar, dişli EN SAĞDA sabit ───────── */
.psh-grid-tb { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-bottom: 1px solid var(--pg-line); }
.psh-grid-search { position: relative; width: 220px; flex: none; }
.psh-grid-search input { width: 100%; height: 26px; border: 1px solid var(--pg-line2); border-radius: 6px; padding: 0 8px 0 26px; background: #fff; font-size: 12px; }
.psh-grid-search i { position: absolute; left: 8px; top: 5px; font-size: 13px; color: var(--pg-muted); }
/* Araç çubuğundaki ön süzgeç (ToolbarStart): düz <select>, arama kutusuyla aynı çerçeve, yükseklik ve yazı (Radzen değil). */
.psh-grid-select { flex: none; height: 26px; border: 1px solid var(--pg-line2); border-radius: 6px; padding: 0 4px 0 8px; background: #fff; font-family: inherit; font-size: 12px; color: var(--pg-text); cursor: pointer; }
.psh-grid-select:focus { outline: none; border-color: var(--pg-accent); }
.psh-grid-btn { flex: none; border: 1px solid var(--pg-line2); background: #fff; border-radius: 6px; height: 26px; padding: 0 9px; cursor: pointer; white-space: nowrap; font-size: 12px; color: var(--pg-text); }
.psh-grid-btn:hover { border-color: var(--pg-accent); color: var(--pg-accent); }
.psh-grid-btn:disabled { color: #b8bfca; border-color: var(--pg-line); cursor: default; }
.psh-grid-btn.pri { background: var(--pg-accent); border-color: var(--pg-accent); color: #fff; }
.psh-grid-btn.pri:hover { color: #fff; }
.psh-grid-count { flex: none; min-width: 110px; color: var(--pg-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.psh-grid-chips { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.psh-grid-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--pg-chip); border: 1px solid var(--pg-line); border-radius: 12px; padding: 2px 4px 2px 9px; font-size: 12px; flex: none; }
.psh-grid-chip b { font-weight: 600; }
.psh-grid-chip button { border: 0; background: transparent; cursor: pointer; width: 18px; height: 18px; border-radius: 50%; line-height: 1; color: var(--pg-muted); padding: 0; }
.psh-grid-chip button:hover { background: #dde3ec; color: var(--pg-text); }
.psh-grid-chip.sort { background: var(--pg-accent-bg); border-color: var(--pg-accent-line); }
.psh-grid-chip.selc { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.psh-grid-chip.selc button { color: #dbe6ff; }
.psh-grid-chip.selc button:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.psh-grid-chip.err { background: #fdecec; border-color: #f4c3c0; color: var(--pg-bad); }
.psh-grid-chip.err i { font-size: 11px; }
.psh-grid-selacts { display: inline-flex; gap: 4px; flex: none; }
.psh-grid-gear { position: relative; flex: none; width: 26px; height: 26px; border: 1px solid var(--pg-line2); background: #fff; border-radius: 6px; cursor: pointer; display: grid; place-items: center; color: var(--pg-muted); padding: 0; }
.psh-grid-gear:hover, .psh-grid-gear.open { border-color: var(--pg-accent); color: var(--pg-accent); }
.psh-grid-gear.open { background: var(--pg-accent-bg); }
.psh-grid-gear.has::after { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--pg-accent); }

/* Yükleme çubuğu: yeri hep ayrılı (2px), liste kaymaz */
.psh-grid-load { height: 2px; overflow: hidden; position: relative; }
.psh-grid-load.on::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: var(--pg-accent); animation: psh-grid-load 1s ease-in-out infinite; }
@keyframes psh-grid-load { to { left: 100%; } }

/* ───────── Tablo: sabit düzen — süzünce/sıralayınca sütunlar oynamaz; sığmayan metin "…" ile kesilir ───────── */
.psh-grid-scroll { overflow: auto; outline: none; }
.psh-grid-table { border-collapse: separate; border-spacing: 0; table-layout: fixed; margin: 0; }
/* Yükseklik çizgi dahil (border-box): satır = PshGrid.RowHeight (28; eski Radzen sıkışık satırıyla aynı); sanal kaydırma ve kaydırma hesabı buna dayanır */
.psh-grid-table th, .psh-grid-table td { box-sizing: border-box; padding: 0 8px; height: 28px; border-bottom: 1px solid var(--pg-line); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
/* Başlık, grup ve süzgeç satırı birlikte yapışkan; alt toplam altta yapışkan */
.psh-grid-table thead { position: sticky; top: 0; z-index: 3; }
.psh-grid-table thead th { position: relative; background: var(--pg-head); font-size: 12px; text-transform: none; letter-spacing: normal; color: #2b3340; font-weight: 500; padding: 0 2px; }
/* Sütun adları satırı keskin: yazı koyu ve bir kalın, alt çizgi bir ton koyu (gövde çizgileri açık kalır) */
.psh-grid-table thead tr.psh-grid-hrow > th { color: #101828; font-weight: 600; border-bottom-color: var(--pg-line2); }
.psh-grid-table tfoot { position: sticky; bottom: 0; z-index: 3; }
.psh-grid-table tfoot td { background: var(--pg-head); border-top: 1px solid var(--pg-line2); border-bottom: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.psh-grid-fpre { font-weight: 400; color: var(--pg-muted); font-size: 11px; margin-right: 4px; }
.psh-grid-flbl { color: var(--pg-muted); font-size: 12px; }
.psh-grid-table th.num, .psh-grid-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.psh-grid-table tbody tr:hover td { background: var(--pg-hover); }
/* Seçili satır: hafif mavi; üzerine gelince bir ton koyu */
.psh-grid-table tbody tr.sel td { background: var(--pg-sel); }
.psh-grid-table tbody tr.sel:hover td { background: #e2ecff; }
.psh-grid-table th.psh-grid-fill, .psh-grid-table td.psh-grid-fill { padding: 0; }
.psh-grid-ph td { background: linear-gradient(90deg, #fff 0, #f3f6fa 50%, #fff 100%); }

/* Dondurulmuş sütunlar, seçim kutusu ve işlem düğmeleri: yatay kaydırmada solda sabit */
.psh-grid-table .fz { position: sticky; z-index: 1; background: var(--pg-rowbg, #fff); }
.psh-grid-table thead th.fz, .psh-grid-table tfoot td.fz { z-index: 4; background: var(--pg-head); }
.psh-grid-table .fz-last { box-shadow: 1px 0 0 var(--pg-line2), 4px 0 6px -3px rgba(15, 23, 42, .12); }

/* Çok katlı başlık */
.psh-grid-table .psh-grid-grow th { height: 22px; text-align: center; font-size: 12px; color: #344054; border-bottom: 1px solid var(--pg-line); }
.psh-grid-table .psh-grid-grow th.g { box-shadow: inset 1px 0 0 var(--pg-line), inset -1px 0 0 var(--pg-line); background: #f1f4f8; }

/* Seçim kutusu */
.psh-grid-table .psh-grid-sel { padding: 0; text-align: center; }
.psh-grid-cb { width: 16px; height: 16px; border: 1.5px solid #98a2b3; border-radius: 4px; background: #fff; padding: 0; cursor: pointer; position: relative; vertical-align: middle; }
.psh-grid-cb:hover { border-color: var(--pg-accent); }
.psh-grid-cb.on, .psh-grid-cb.part { background: var(--pg-accent); border-color: var(--pg-accent); }
.psh-grid-cb.on::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.psh-grid-cb.part::after { content: ""; position: absolute; left: 2px; right: 2px; top: 6px; height: 2px; background: #fff; }

/* Klavye: ızgara odaktayken etkin hücre */
.psh-grid-scroll:focus td.kb { box-shadow: inset 0 0 0 2px var(--pg-accent); }

/* İşlem sütunu */
.psh-grid-table .psh-grid-act { padding: 0 4px; text-overflow: clip; }
/* Sayfanın kendi düz düğmeleri; PshGridButton ve Bootstrap .btn kendi görünümünü korur */
.psh-grid-act button:not(.btn):not(.psh-grid-ab) { border: 0; background: transparent; cursor: pointer; color: var(--pg-muted); padding: 2px 4px; border-radius: 4px; }
.psh-grid-act button:not(.btn):not(.psh-grid-ab):hover { background: #eef2f7; color: var(--pg-text); }
.psh-grid-act button:not(.btn):not(.psh-grid-ab):disabled { opacity: .45; cursor: default; background: transparent; }

/* Başlık hücresi */
.psh-grid-hd { display: flex; align-items: center; gap: 2px; width: 100%; height: 28px; border: 0; background: transparent; padding: 0 6px; cursor: pointer; text-transform: inherit; letter-spacing: inherit; font-weight: inherit; color: inherit; border-radius: 4px; font-size: inherit; }
.psh-grid-hd.static { cursor: default; }
.psh-grid-hd:hover:not(.static) { background: #eef2f7; }
.psh-grid-hd .lbl { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.psh-grid-hd .ic { display: inline-flex; align-items: flex-start; gap: 1px; width: 28px; flex: none; justify-content: flex-start; color: #98a2b3; font-size: 11px; }
.psh-grid-sortno { font-size: 9px; font-weight: 700; line-height: 1; top: 0; }
th.num .psh-grid-hd { justify-content: flex-end; }
th.num .psh-grid-hd .ic { order: -1; justify-content: flex-end; }
.psh-grid-table th.on .psh-grid-hd, .psh-grid-table th.on .psh-grid-hd .ic { color: var(--pg-accent); }
.psh-grid-table th.open .psh-grid-hd { background: var(--pg-accent-bg); }
.psh-grid-table th.cw .lbl { text-decoration: underline dotted #9aa4b2; text-underline-offset: 3px; }
.psh-grid-table th.dragging { opacity: .45; }
.psh-grid-rs { position: absolute; top: 0; right: 0; width: 9px; height: 100%; cursor: col-resize; z-index: 3; touch-action: none; }
.psh-grid-rs::after { content: ""; position: absolute; right: 3px; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; background: transparent; }
.psh-grid-table th:hover .psh-grid-rs::after { background: var(--pg-line2); }
.psh-grid-rs:hover::after, .psh-grid-rs.drag::after { background: var(--pg-accent); }
body.psh-grid-resizing, body.psh-grid-resizing * { cursor: col-resize !important; user-select: none; }
body.psh-grid-dragging, body.psh-grid-dragging * { cursor: grabbing !important; user-select: none; }
.psh-grid-ghost { position: fixed; z-index: 2000; pointer-events: none; background: #fff; border: 1px solid #bcd0fb; border-radius: 6px; box-shadow: 0 6px 18px rgba(15, 23, 42, .18); padding: 4px 10px; font-size: 12px; font-weight: 500; color: #1d4ed8; }
.psh-grid-dropline { position: fixed; z-index: 1999; width: 3px; border-radius: 2px; background: #1d4ed8; pointer-events: none; display: none; }
.psh-grid-edmark { flex: none; font-size: 10px; color: var(--pg-accent); opacity: .7; margin-left: 3px; }
.psh-grid-empty td { height: 64px; text-align: center; color: var(--pg-muted); }
.psh-grid-empty button { border: 0; background: none; color: var(--pg-accent); cursor: pointer; text-decoration: underline; padding: 0; }
.psh-grid-none { color: #b8bfca; }
.psh-grid mark { background: #fff1a8; color: inherit; padding: 0; }

/* Süzgeç satırı: her sütunda "İçerir…"; liste / tarih / sayı sütununda yanında menüyü açan süzgeç düğmesi */
.psh-grid-table .psh-grid-frow th { height: 28px; padding: 2px 4px; text-transform: none; letter-spacing: normal; font-weight: 400; font-size: 12px; color: var(--pg-text); }
.psh-grid-fcell { display: flex; gap: 2px; }
.psh-grid-fin { display: block; flex: 1; min-width: 0; width: 100%; height: 23px; border: 1px solid var(--pg-line2); border-radius: 5px; padding: 0 6px; font-size: 12px; background: #fff; color: var(--pg-text); }
.psh-grid-fin.on { border-color: var(--pg-accent-line); background: var(--pg-accent-bg); }
.psh-grid-fsel { flex: none; width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid var(--pg-line2); border-radius: 5px; background: #fff; color: #98a2b3; cursor: pointer; padding: 0; font-size: 11px; }
.psh-grid-fsel:hover { border-color: var(--pg-accent); color: var(--pg-accent); }
.psh-grid-fsel.on { color: var(--pg-accent); border-color: var(--pg-accent-line); background: var(--pg-accent-bg); }

/* ───────── Menüler (başlık, dişli, sağ tık, satır içi liste) — position:fixed; yerini psh-grid.js koyar ───────── */
.psh-grid-menu { position: fixed; left: 0; top: 0; visibility: hidden; z-index: 1100; background: #fff; border: 1px solid #d5dbe3; border-radius: 10px; box-shadow: var(--pg-shadow); min-width: 236px; max-width: 300px; padding: 4px; font-size: 13px; text-transform: none; letter-spacing: normal; font-weight: 400; color: var(--pg-text); }
.psh-grid-menu-h { display: flex; align-items: center; gap: 8px; margin: -4px -4px 4px; padding: 8px 12px; border-bottom: 1px solid var(--pg-line); background: #f8fafc; border-radius: 10px 10px 0 0; }
.psh-grid-menu-h .psh-grid-ms { color: var(--pg-accent); font-size: 18px; }
.psh-grid-menu-h b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psh-grid-menu-h em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--pg-muted); background: #eef1f5; border-radius: 8px; padding: 1px 7px; }
.psh-grid-menu-t { font-size: 10.5px; font-weight: 700; color: #8a94a6; text-transform: uppercase; letter-spacing: .05em; padding: 6px 8px 2px; }
.psh-grid-menu-i { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 32px; border: 0; background: transparent; text-align: left; padding: 0 8px; cursor: pointer; color: inherit; font-size: 13px; border-radius: 6px; }
.psh-grid-menu-i > .psh-grid-ms { color: #667085; font-size: 18px; }
.psh-grid-menu-i:hover:not(:disabled) { background: #f1f5fb; }
.psh-grid-menu-i:hover:not(:disabled) > .psh-grid-ms { color: var(--pg-accent); }
.psh-grid-menu-i.on { color: var(--pg-accent); font-weight: 600; background: #f3f7ff; }
.psh-grid-menu-i.on > .psh-grid-ms { color: var(--pg-accent); }
.psh-grid-menu-i .psh-grid-ms.ok { color: var(--pg-accent); font-size: 16px; }
.psh-grid-menu-i:disabled { color: #b8bfca; cursor: default; }
.psh-grid-menu-i:disabled > .psh-grid-ms { color: #d0d5dd; }
.psh-grid-menu-i.clear:not(:disabled), .psh-grid-menu-i.clear:not(:disabled) > .psh-grid-ms { color: var(--pg-bad); }
.psh-grid-menu-i .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psh-grid-menu-i em { font-style: normal; font-size: 11px; color: var(--pg-muted); }
.psh-grid-menu-i kbd { font-family: inherit; font-size: 10.5px; color: var(--pg-muted); background: #f1f4f8; border: 1px solid var(--pg-line); border-radius: 4px; padding: 0 5px; }
.psh-grid-menu-i.tone-primary > .psh-grid-ms { color: #1d4ed8; }
.psh-grid-menu-i.tone-info > .psh-grid-ms { color: #0e7490; }
.psh-grid-menu-i.tone-success > .psh-grid-ms { color: #15803d; }
.psh-grid-menu-i.tone-warning > .psh-grid-ms { color: #b45309; }
.psh-grid-menu-i.tone-teal > .psh-grid-ms { color: #00796b; }
.psh-grid-menu-i.tone-purple > .psh-grid-ms { color: #7b1fa2; }
.psh-grid-menu-i.tone-secondary > .psh-grid-ms { color: #b61651; }
.psh-grid-menu-i.tone-danger, .psh-grid-menu-i.tone-danger > .psh-grid-ms { color: #b42318; }
.psh-grid-menu-pair { display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 4px 0 8px; color: var(--pg-text); }
.psh-grid-menu-pair > .psh-grid-ms { color: #667085; }
.psh-grid-menu-pair .grow { flex: 1; }
.psh-grid-menu-pair button { width: 28px; height: 26px; border: 1px solid var(--pg-line2); border-radius: 6px; background: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; color: #475467; }
.psh-grid-menu-pair button .psh-grid-ms { font-size: 16px; }
.psh-grid-menu-pair button:hover, .psh-grid-menu-pair button.on { border-color: var(--pg-accent); color: var(--pg-accent); background: var(--pg-accent-bg); }
.psh-grid-menu-sep { height: 1px; background: var(--pg-line); margin: 4px 4px; }
.psh-grid-menu-in { padding: 3px 8px; }
.psh-grid-menu-in input { width: 100%; height: 30px; border: 1px solid var(--pg-line2); border-radius: 6px; padding: 0 8px; font-size: 13px; }
.psh-grid-menu-in input:focus, .psh-grid-menu-row input:focus { outline: none; border-color: var(--pg-accent); box-shadow: 0 0 0 3px var(--pg-accent-bg); }
.psh-grid-menu-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 3px 8px; }
.psh-grid-menu-row label { display: block; font-size: 11px; color: var(--pg-muted); margin: 0 0 1px; }
.psh-grid-menu-row input { width: 100%; height: 30px; border: 1px solid var(--pg-line2); border-radius: 6px; padding: 0 6px; font-size: 13px; }
.psh-grid-menu-list { max-height: 220px; overflow: auto; }
.psh-grid-menu-chk { display: flex; align-items: center; gap: 10px; min-height: 30px; padding: 0 8px; cursor: pointer; margin: 0; border-radius: 6px; }
.psh-grid-menu-chk:hover { background: #f1f5fb; }
.psh-grid-menu-chk input { accent-color: var(--pg-accent); width: 15px; height: 15px; }
.psh-grid-menu-chk span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psh-grid-menu-chk em { font-style: normal; color: var(--pg-muted); font-size: 11px; font-variant-numeric: tabular-nums; background: #f1f4f8; border-radius: 8px; padding: 0 6px; }
.psh-grid-menu-chk em:empty { display: none; }
.psh-grid-menu-all { display: flex; gap: 12px; padding: 2px 8px 4px; }
.psh-grid-menu-all button { border: 0; background: none; color: var(--pg-accent); cursor: pointer; padding: 0; font-size: 12px; }
.psh-grid-menu-all button:disabled { color: #b8bfca; cursor: default; }
.psh-grid-menu-note { padding: 2px 8px 6px; font-size: 11px; color: var(--pg-muted); }
/* Dişli menüsünde seçmeli satır (gösterim, sayfa başına) */
.psh-grid-menu-seg { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 8px; }
.psh-grid-menu-seg > span { flex: 1; color: var(--pg-text); white-space: nowrap; }
.psh-grid-menu.psh-grid-gmenu { min-width: 330px; max-width: 360px; }
.psh-grid-menu-seg > div { display: flex; border: 1px solid var(--pg-line2); border-radius: 6px; overflow: hidden; }
.psh-grid-menu-seg button { border: 0; border-right: 1px solid var(--pg-line); background: #fff; height: 26px; padding: 0 9px; font-size: 12px; cursor: pointer; color: #475467; font-variant-numeric: tabular-nums; }
.psh-grid-menu-seg button:last-child { border-right: 0; }
.psh-grid-menu-seg button.on { background: var(--pg-accent-bg); color: var(--pg-accent); font-weight: 600; }
.psh-grid-menu-num { width: 58px; height: 28px; border: 1px solid var(--pg-line2); border-radius: 6px; padding: 0 6px; font-size: 12px; font-variant-numeric: tabular-nums; }
.psh-grid-menu-num.on { border-color: var(--pg-accent); color: var(--pg-accent); font-weight: 600; background: var(--pg-accent-bg); }
.psh-grid-menu-num:focus { outline: none; border-color: var(--pg-accent); box-shadow: 0 0 0 3px var(--pg-accent-bg); }

/* Satır içi değiştirme: düzenlenebilir hücre üzerine gelince çerçevelenir, tıklayınca kutu açılır */
.psh-grid-table td.ed { cursor: text; }
.psh-grid-table tbody tr:hover td.ed:hover { box-shadow: inset 0 0 0 1px var(--pg-accent-line); background: #f5f9ff; }
.psh-grid-table td.locked { cursor: not-allowed; }
.psh-grid-table td.psh-grid-editing { padding: 0 3px; overflow: visible; }
.psh-grid-ed-in { display: block; width: 100%; height: 23px; border: 1px solid var(--pg-accent); border-radius: 4px; padding: 0 6px; font-size: 12px; color: var(--pg-text); background: #fff; outline: none; box-shadow: 0 0 0 2px var(--pg-accent-bg); }
.psh-grid-ed-in.err { border-color: var(--pg-bad); box-shadow: 0 0 0 2px #fdecec; }
.psh-grid-ed-in[readonly] { background: #f8fafc; color: var(--pg-muted); }
/* Ekranın kendi kutusu (EditTemplate) pasifken: kilitli alan (sistem kaydının kodu, katalog kodunun bayrakları) */
.psh-grid-ed-in:disabled { background: #f1f4f8; color: var(--pg-muted); border-color: #d0d5dd; box-shadow: none; cursor: not-allowed; }
.psh-grid-edlist { max-height: 260px; overflow: auto; max-width: 360px; }
.psh-grid-edopt { padding: 6px 10px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 6px; }
.psh-grid-edopt.hi { background: #eef3fb; }
.psh-grid-edopt.cur { font-weight: 600; color: var(--pg-accent); }

/* ───────── Sayfalayıcı (görünüm geçici — seçenekler SAYFALAMA_SECENEKLERI_PROTOTIP.html) ───────── */
.psh-grid-pager { display: flex; align-items: center; gap: 3px; height: 32px; padding: 0 8px; border-top: 1px solid var(--pg-line); }
.psh-grid-pager .pg-b, .psh-grid-pager .pg-n { height: 24px; min-width: var(--pg-slot, 34px); border: 1px solid transparent; border-radius: 6px; background: transparent; cursor: pointer; display: inline-grid; place-items: center; padding: 0 4px; font-size: 12px; color: var(--pg-text); font-variant-numeric: tabular-nums; }
.psh-grid-pager .pg-b { min-width: 28px; color: #475467; }
.psh-grid-pager .pg-b:hover:not(:disabled), .psh-grid-pager .pg-n:hover:not(.on):not(.gap) { background: #f1f5fb; border-color: var(--pg-line); }
.psh-grid-pager .pg-b:disabled { opacity: .35; cursor: default; }
.psh-grid-pager .pg-n.on { background: var(--pg-accent); color: #fff; font-weight: 600; }
.psh-grid-pager .pg-n.gap { cursor: default; color: var(--pg-muted); }
.psh-grid-pager .pg-b:focus-visible, .psh-grid-pager .pg-n:focus-visible { outline: 2px solid var(--pg-accent); outline-offset: 1px; }
.psh-grid-pager .pg-jump { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; color: var(--pg-muted); font-size: 12px; white-space: nowrap; }
.psh-grid-pager .pg-jump input { width: 72px; height: 24px; border: 1px solid var(--pg-line2); border-radius: 6px; padding: 0 6px; font-size: 12px; font-variant-numeric: tabular-nums; }
.psh-grid-pager .pg-jump input:focus { outline: none; border-color: var(--pg-accent); box-shadow: 0 0 0 3px var(--pg-accent-bg); }
.psh-grid-pager .pg-info { margin-left: auto; min-width: 150px; text-align: right; color: var(--pg-muted); font-variant-numeric: tabular-nums; }

/* ───────── Satır işlem düğmesi (PshGridButton): küçük kutu, anlamına göre renk tonu ───────── */
/* Düğmeler esnek kutuda: aralık sabit 3px, Razor'un bıraktığı boşluk karakterleri yer kaplamaz */
.psh-grid-acts { display: flex; align-items: center; gap: 3px; }
.psh-grid-acts > .psh-grid-ab { margin: 0; }
.psh-grid-ab { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 22px; height: 22px; padding: 0 3px; margin: 0 3px 0 0; border: 1px solid var(--ab-line); border-radius: 4px; background: var(--ab-bg); color: var(--ab-fg); cursor: pointer; vertical-align: middle; font-size: 12px; line-height: 1; transition: background-color .12s, border-color .12s; }
.psh-grid-ab:last-child { margin-right: 0; }
.psh-grid-ab:not(.txt) { width: 22px; padding: 0; box-sizing: border-box; }
.psh-grid-ab.txt { padding: 0 8px 0 5px; }
.psh-grid-ab:hover:not(:disabled) { background: var(--ab-hover); border-color: var(--ab-fg); }
.psh-grid-ab:focus-visible { outline: 2px solid var(--ab-fg); outline-offset: 1px; }
.psh-grid-ab:disabled { opacity: .4; cursor: default; }
.psh-grid-ab.outline { background: #fff; border-color: var(--ab-fg); }
.psh-grid-ab-ic { font-family: 'Material Symbols Outlined'; font-weight: 400; font-style: normal; font-size: 16px; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20; }
/* Tonlar Radzen material temasının renkleri (açık zemin): aynı işlem satırda ve araç çubuğunda aynı renkte (29.10.2026). */
.psh-grid-ab.t-neutral { --ab-bg: #f5f5f5; --ab-line: #e0e0e0; --ab-fg: #424242; --ab-hover: #eeeeee; }
.psh-grid-ab.t-primary { --ab-bg: #ecebfa; --ab-line: #c7c6f2; --ab-fg: #3633a8; --ab-hover: #dddcf6; }
.psh-grid-ab.t-info    { --ab-bg: #e3f2fd; --ab-line: #b3dafb; --ab-fg: #1a78c2; --ab-hover: #d0e8fc; }
.psh-grid-ab.t-success { --ab-bg: #e8f5e9; --ab-line: #bfe2c1; --ab-fg: #3d8c40; --ab-hover: #d7eed8; }
.psh-grid-ab.t-warning { --ab-bg: #fff3e0; --ab-line: #ffd699; --ab-fg: #cc7a00; --ab-hover: #ffe8c4; }
.psh-grid-ab.t-danger  { --ab-bg: #fdecea; --ab-line: #fac5c1; --ab-fg: #c3362b; --ab-hover: #fbdad7; }
/* Camgöbeği ve mor: Radzen temasında yok, satırda maviyi azaltmak için (kullanıcı seçimi 05.11.2026) */
.psh-grid-ab.t-teal    { --ab-bg: #e0f2f1; --ab-line: #b2dfdb; --ab-fg: #00796b; --ab-hover: #cceae7; }
.psh-grid-ab.t-purple  { --ab-bg: #f3e5f5; --ab-line: #e1bee7; --ab-fg: #7b1fa2; --ab-hover: #ead3ee; }
.psh-grid-ab.t-secondary { --ab-bg: #fce4ec; --ab-line: #f8bbd0; --ab-fg: #b61651; --ab-hover: #f9d3e0; }

/* ───────── Hizalama (sütunun Align'ı; sayı sütunu kendiliğinden sağda) ───────── */
.psh-grid-table td.al-r, .psh-grid-table th.al-r { text-align: right; }
.psh-grid-table td.al-c, .psh-grid-table th.al-c { text-align: center; }
.psh-grid-table td.al-l, .psh-grid-table th.al-l { text-align: left; }
th.al-r .psh-grid-hd { justify-content: flex-end; }
th.al-r .psh-grid-hd .ic { order: -1; justify-content: flex-end; }
th.al-c .psh-grid-hd { justify-content: center; }
th.num.al-l .psh-grid-hd { justify-content: flex-start; }
th.num.al-l .psh-grid-hd .ic { order: 0; justify-content: flex-start; }
.psh-grid-table td.al-c .psh-grid-cb, .psh-grid-table td.al-c .psh-grid-color { margin: 0 auto; }

/* ───────── Satır yüksekliği: rl1 tek satır, rl2 sabit iki satır (40px), rlf serbest (içerik kadar) ───────── */
.psh-grid-l1, .psh-grid-l2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psh-grid-l2 { font-size: 11.5px; line-height: 15px; color: var(--pg-muted); }
.psh-grid-l2:empty { display: none; }
.psh-grid.rl1 .psh-grid-l1, .psh-grid.rl1 .psh-grid-l2 { display: inline; }
.psh-grid.rl1 .psh-grid-l2:not(:empty)::before { content: " · "; }
.psh-grid.rl2 .psh-grid-table tbody td { height: 40px; }
.psh-grid.rl2 .psh-grid-table tbody tr.psh-grid-grp > td { height: 28px; }
.psh-grid.rl2 .psh-grid-l1 { line-height: 17px; }
.psh-grid.rl2 td.wrap .psh-grid-cl { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow: hidden; line-height: 16px; overflow-wrap: anywhere; }
.psh-grid.rlf .psh-grid-table tbody td { height: auto; min-height: 27px; padding-top: 4px; padding-bottom: 4px; }
.psh-grid.rlf .psh-grid-table tbody td.wrap { white-space: normal; overflow-wrap: anywhere; }
.psh-grid.rlf .psh-grid-l1, .psh-grid.rlf .psh-grid-l2 { white-space: normal; overflow-wrap: anywhere; }
.psh-grid.rlf .psh-grid-table tbody td.psh-grid-sel, .psh-grid.rlf .psh-grid-table tbody td.psh-grid-act, .psh-grid.rlf .psh-grid-table tbody td.psh-grid-expc { vertical-align: top; padding-top: 3px; }

/* İki satıra kırılan başlık (HeaderLines=2): dar onay kutusu sütunları */
.psh-grid.hl2 .psh-grid-hrow th, .psh-grid.hl2 .psh-grid-hrow .psh-grid-hd { height: 38px; }
.psh-grid.hl2 .psh-grid-hrow .psh-grid-hd .lbl { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; line-height: 1.2; text-align: inherit; }
.psh-grid.hl2 th.al-c .psh-grid-hd .lbl { text-align: center; }
.psh-grid-hinfo { flex: none; font-size: 10px; color: #98a2b3; margin-left: 3px; }

/* ───────── Satır tıklama, etkin satır, kayda git ───────── */
.psh-grid.rclick .psh-grid-table tbody tr:not(.psh-grid-grp):not(.psh-grid-detail):not(.psh-grid-note):not(.psh-grid-xrow) td:not(.ed) { cursor: pointer; }
.psh-grid-table tbody tr.act td { background: #fff7e0; }
.psh-grid-table tbody tr.act td:first-child { box-shadow: inset 3px 0 0 #f59e0b; }
.psh-grid-table tbody tr.act:hover td { background: #fff1c7; }
.psh-grid-table tbody tr.act.sel td { background: #f3ecd0; }
.psh-grid-table tbody tr.go td { animation: psh-grid-go 1.8s ease-out; }
@keyframes psh-grid-go { 0%, 30% { background: #ffe08a; } 100% { background: #fff7e0; } }

/* ───────── Hücre biçimi: onay kutusu ve renk hücresi ───────── */
.psh-grid-table td .psh-grid-cb { display: inline-block; }
.psh-grid-cb.ro { opacity: .55; cursor: default; }
.psh-grid-cb.busy { opacity: .4; }
.psh-grid-cb:disabled { opacity: .35; cursor: not-allowed; background: #f1f4f8; }
.psh-grid-color { width: 26px; height: 20px; padding: 0; border: 1px solid var(--pg-line2); border-radius: 4px; background: #fff; cursor: pointer; vertical-align: middle; }
.psh-grid-sw { display: inline-block; width: 22px; height: 16px; border-radius: 3px; border: 1px solid var(--pg-line2); vertical-align: middle; }
.psh-grid-hex { margin-left: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--pg-muted); vertical-align: middle; }

/* ───────── Ayrıntı oku, ayrıntı / not / ek satır, daha fazla göster ───────── */
.psh-grid-table .psh-grid-expc { padding: 0; text-align: center; }
.psh-grid-exp { width: 22px; height: 22px; border: 0; border-radius: 5px; background: transparent; color: #667085; cursor: pointer; padding: 0; display: inline-grid; place-items: center; vertical-align: middle; }
.psh-grid-exp:hover { background: #eef2f7; color: var(--pg-accent); }
.psh-grid-exp.on { color: var(--pg-accent); }
.psh-grid-table tr.psh-grid-detail > td, .psh-grid-table tr.psh-grid-note > td, .psh-grid-table tr.psh-grid-xrow > td, .psh-grid-table tr.psh-grid-more > td { height: auto; padding: 0; white-space: normal; overflow: visible; }
.psh-grid-table tbody tr.psh-grid-detail:hover > td, .psh-grid-table tbody tr.psh-grid-note:hover > td, .psh-grid-table tbody tr.psh-grid-xrow:hover > td, .psh-grid-table tbody tr.psh-grid-more:hover > td { background: inherit; }
/* İçerik görünen genişlikte, yatay kaydırmada solda sabit (--psh-sw: psh-grid.js) */
.psh-grid-xin { position: sticky; left: 0; width: var(--psh-sw, 100%); max-width: 100%; box-sizing: border-box; }
.psh-grid-detail > td { background: #f8fafc; }
.psh-grid-detail .psh-grid-xin { padding: 8px 12px 10px 40px; }
.psh-grid-note > td { background: #fffaeb; }
.psh-grid-note .psh-grid-xin { padding: 3px 12px 4px 40px; font-size: 12px; color: #93370d; }
.psh-grid-note i { font-size: 11px; color: #dc6803; }
.psh-grid-xrow .psh-grid-xin { padding: 5px 10px; }
.psh-grid-more .psh-grid-xin { display: flex; align-items: center; gap: 10px; padding: 5px 10px; color: var(--pg-muted); font-size: 12px; }
.psh-grid-more button { border: 1px solid var(--pg-line2); background: #fff; border-radius: 6px; height: 22px; padding: 0 10px; cursor: pointer; color: var(--pg-accent); font-size: 12px; }
.psh-grid-more button:hover { border-color: var(--pg-accent); }

/* ───────── Gruplu satırlar ───────── */
.psh-grid-table tr.psh-grid-grp > td { background: #f1f4f8; font-weight: 600; border-bottom: 1px solid var(--pg-line2); font-variant-numeric: tabular-nums; }
.psh-grid-table tbody tr.psh-grid-grp:hover > td { background: #e9edf3; }
.psh-grid-table tr.psh-grid-grp td.psh-grid-glbl { cursor: pointer; overflow: visible; }
.psh-grid-gin { position: sticky; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.psh-grid-gin .psh-grid-ms { color: #667085; }
.psh-grid-gin em { font-style: normal; font-weight: 400; font-size: 11px; color: var(--pg-muted); background: #fff; border: 1px solid var(--pg-line); border-radius: 9px; padding: 0 7px; }

/* ───────── Satır düzenleme kipi ve yeni satır ───────── */
.psh-grid-table tbody tr.psh-grid-redit > td { background: #f5f9ff; }
.psh-grid-table tbody tr.psh-grid-redit.new > td { background: #effaf3; }
.psh-grid-table tbody tr.psh-grid-redit.err > td { background: #fff5f5; }
.psh-grid-table tbody tr.psh-grid-redit select.psh-grid-ed-in { padding: 0 2px; }

/* Başlıktaki seçim: "listelenenleri seç" kutusu + yanında "Tüm sayfaları seç" düğmesi */
.psh-grid-selh { display: flex; align-items: center; justify-content: center; gap: 4px; }
.psh-grid-allpg { width: 22px; height: 22px; padding: 0; border: 1px solid var(--pg-line2); border-radius: 5px; background: #fff; color: #475467; cursor: pointer; display: grid; place-items: center; }
.psh-grid-allpg .psh-grid-ms { font-size: 16px; }
.psh-grid-allpg:hover:not(:disabled) { border-color: var(--pg-accent); color: var(--pg-accent); background: var(--pg-accent-bg); }
.psh-grid-allpg:disabled { opacity: .35; cursor: default; }
/* Seçim çipinde: seçili olup bu sayfada görünmeyen kayıt sayısı */
.psh-grid-chip-off { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 0 6px; border-radius: 8px; background: #fff4e0; color: #b45309; font-weight: 600; }
.psh-grid-chip-off i { font-size: 11px; }
/* Tüm sayfaları seç uyarısı */
.psh-grid-dlg.psh-grid-warn { width: min(520px, calc(100vw - 32px)); }
.psh-grid-warn .psh-grid-dlg-h { gap: 8px; background: #fffaeb; border-radius: 12px 12px 0 0; }
.psh-grid-warn-ic { color: #dc6803; font-size: 22px; }
.psh-grid-warn-b { padding: 10px 14px 4px; line-height: 1.45; }
.psh-grid-warn-b p { margin: 0 0 8px; }
.psh-grid-warn-f { color: var(--pg-muted); font-size: 12px; }

/* Seçim çipinin yanındaki bağlantı düğmeleri: süzgece uyan hepsini seç, tersine çevir */
.psh-grid-chip.lnk { cursor: pointer; background: #fff; border-color: var(--pg-accent-line); color: var(--pg-accent); padding: 2px 9px; }
.psh-grid-chip.lnk:hover { background: var(--pg-accent-bg); }

/* ───────── Kart görünümü (dar ekran ya da ForceCards): her satır bir kart, hücre "Başlık: değer" ───────── */
.psh-grid.cards .psh-grid-table { width: 100% !important; display: block; }
.psh-grid.cards .psh-grid-table colgroup, .psh-grid.cards .psh-grid-table thead { display: none; }
.psh-grid.cards .psh-grid-table tbody, .psh-grid.cards .psh-grid-table tfoot { display: block; position: static; }
.psh-grid.cards .psh-grid-table tbody > tr { display: block; margin: 8px; border: 1px solid var(--pg-line2); border-radius: 8px; padding: 6px 10px; background: #fff; }
.psh-grid.cards .psh-grid-table tbody > tr.sel { border-color: var(--pg-accent); }
.psh-grid.cards .psh-grid-table tbody > tr.act { border-color: #f59e0b; }
.psh-grid.cards .psh-grid-table tbody > tr > td { display: flex; gap: 10px; align-items: baseline; height: auto; border: 0; padding: 2px 0; white-space: normal; overflow: visible; position: static !important; background: transparent !important; box-shadow: none !important; text-align: left; }
.psh-grid.cards .psh-grid-table tbody > tr > td[data-t]::before { content: attr(data-t); flex: 0 0 min(38%, 170px); color: var(--pg-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.psh-grid.cards .psh-grid-table tbody > tr > td.psh-grid-fill { display: none; }
.psh-grid.cards .psh-grid-table tbody > tr > td.psh-grid-sel, .psh-grid.cards .psh-grid-table tbody > tr > td.psh-grid-expc { display: inline-flex; width: auto; margin-right: 8px; }
.psh-grid.cards .psh-grid-table tbody > tr > td.psh-grid-act { display: inline-flex; width: auto; padding-bottom: 4px; }
.psh-grid.cards .psh-grid-l1, .psh-grid.cards .psh-grid-l2 { white-space: normal; }
.psh-grid.cards .psh-grid-table tbody > tr.psh-grid-empty, .psh-grid.cards .psh-grid-table tbody > tr.psh-grid-detail, .psh-grid.cards .psh-grid-table tbody > tr.psh-grid-note,
.psh-grid.cards .psh-grid-table tbody > tr.psh-grid-xrow, .psh-grid.cards .psh-grid-table tbody > tr.psh-grid-more { border: 0; padding: 0; margin: 0 8px; }
.psh-grid.cards .psh-grid-table tfoot > tr { display: block; margin: 8px; padding: 6px 10px; border-radius: 8px; background: var(--pg-head); }
.psh-grid.cards .psh-grid-table tfoot > tr > td { display: flex; gap: 10px; height: auto; border: 0; padding: 2px 0; position: static !important; }
.psh-grid.cards .psh-grid-table tfoot > tr > td[data-t]::before { content: attr(data-t); flex: 0 0 min(38%, 170px); color: var(--pg-muted); font-size: 11px; text-transform: uppercase; font-weight: 400; }
.psh-grid.cards .psh-grid-table tfoot > tr > td:empty, .psh-grid.cards .psh-grid-table tfoot > tr > td.psh-grid-fill { display: none; }
.psh-grid.cards .psh-grid-grip { display: none; }

/* ───────── Sütun ayarları penceresi ───────── */
.psh-grid-dlg-back { position: fixed; inset: 0; z-index: 1150; background: rgba(15, 23, 42, .32); display: grid; place-items: center; }
.psh-grid-dlg { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: var(--pg-shadow); outline: none; color: var(--pg-text); font-size: 13px; }
.psh-grid-dlg-h { display: flex; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--pg-line); }
.psh-grid-dlg-h b { font-size: 15px; }
.psh-grid-dlg-hint { margin-left: 10px; font-size: 11px; color: var(--pg-muted); }
.psh-grid-dlg-x { margin-left: auto; border: 0; background: none; font-size: 16px; color: var(--pg-muted); cursor: pointer; }
.psh-grid-dlg-cols { display: flex; align-items: center; gap: 8px; padding: 6px 14px 4px; font-size: 10.5px; font-weight: 700; color: #8a94a6; text-transform: uppercase; letter-spacing: .05em; }
.psh-grid-dlg-cols .t { flex: 1; }
.psh-grid-dlg-cols span:nth-child(3) { width: 30px; text-align: center; }
.psh-grid-dlg-cols span:nth-child(4) { width: 60px; text-align: center; }
.psh-grid-dlg-b { overflow: auto; padding: 2px 8px 6px; }
.psh-grid-dlg-row { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 6px; }
.psh-grid-dlg-row:hover { background: #f4f7fb; }
.psh-grid-dlg-row > input { accent-color: var(--pg-accent); width: 15px; height: 15px; margin: 0 10px 0 6px; }
.psh-grid-dlg-row .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psh-grid-dlg-row .t em { font-style: normal; font-size: 11px; color: var(--pg-accent); margin-left: 6px; }
.psh-grid-dlg-row.off .t { color: var(--pg-muted); }
.psh-grid-dlg-row.frz { background: #f6f9ff; }
.psh-grid-dlg-ic { width: 28px; height: 26px; border: 1px solid transparent; border-radius: 6px; background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; color: #667085; }
.psh-grid-dlg-ic .psh-grid-ms { font-size: 17px; }
.psh-grid-dlg-ic:hover:not(:disabled) { border-color: var(--pg-line2); background: #fff; color: var(--pg-accent); }
.psh-grid-dlg-ic:disabled { opacity: .3; cursor: default; }
.psh-grid-dlg-ic.on { color: var(--pg-accent); background: var(--pg-accent-bg); border-color: var(--pg-accent-line); }
.psh-grid-dlg-f { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--pg-line); }
.psh-grid-dlg-f .last { margin-left: auto; }

/* ───────── Sıkışık kip (Compact; pano kutusu): araç çubuğu yok, dişli başlık satırının sağ köşesinde ───────── */
.psh-grid.compact { font-size: 11.5px; }
.psh-grid-cerr { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-bottom: 1px solid var(--pg-line); }
/* Dolgu hücresi yatay kaydırmada sağda yapışık; genişliği bileşen ayırır (CompactGearWidth) */
.psh-grid-table thead th.psh-grid-cfill { position: sticky; right: 0; z-index: 4; overflow: visible; text-align: right; padding: 0 3px 0 0; }
.psh-grid-cfill .psh-grid-gear { display: inline-grid; width: 22px; height: 22px; border-radius: 5px; vertical-align: middle; }
.psh-grid-cfill .psh-grid-gear .bi { font-size: 12px; }

/* ───────── Düğme yazıları (ActionLabels): yazı hep çizilir, ızgaranın kök sınıfı (alabels) gösterir — ayar değişince düğmeler yeniden çizilmez ───────── */
.psh-grid-ab-lbl { display: none; }
.psh-grid.alabels .psh-grid-act .psh-grid-ab-lbl { display: inline; white-space: nowrap; }
.psh-grid.alabels .psh-grid-act .psh-grid-ab.lbl { width: auto; padding: 0 7px 0 4px; white-space: nowrap; }
.psh-grid.alabels .psh-grid-act .psh-grid-acts > * { flex: none; }
/* İç içe ızgara (ayrıntı satırında) kendi ayarına uyar */
.psh-grid.alabels .psh-grid:not(.alabels) .psh-grid-ab-lbl { display: none; }
.psh-grid.alabels .psh-grid:not(.alabels) .psh-grid-ab.lbl { width: 24px; padding: 0; }

/* ───────── Excel görünümü (GridLines + Striped; ikisi de varsayılan açık, kullanıcı dişliden kapatır) ─────────
   Kurallar çocuk birleştiriciyle yalnız bu ızgaranın kendi satırlarına iner: ayrıntı satırındaki iç ızgara ve düz tablo kendi ayarına uyar.
   Kart görünümünde ikisi de yok. */
/* Hücre çizgileri: yatay çizgi zaten var, her hücreye sağ çizgi (başlık, süzgeç satırı, alt toplam dahil) */
.psh-grid.lines:not(.cards) > .psh-grid-scroll > .psh-grid-table > * > tr > :is(th, td) { border-right: 1px solid var(--pg-vline); }
/* Dolgu sütunu ve bütün sütunları kaplayan satırlar (ayrıntı, not, ek satır, boş liste, yer tutucu) çizgisiz: tablonun sağ kenarında çift çizgi olmasın */
.psh-grid.lines:not(.cards) > .psh-grid-scroll > .psh-grid-table > * > tr > .psh-grid-fill,
.psh-grid.lines:not(.cards) > .psh-grid-scroll > .psh-grid-table > tbody > :is(tr.psh-grid-detail, tr.psh-grid-note, tr.psh-grid-xrow, tr.psh-grid-more, tr.psh-grid-empty, tr.psh-grid-ph) > td { border-right: 0; }
/* Sütun adları satırında dikey çizgiler de bir ton koyu (başlık keskin dursun) */
.psh-grid.lines:not(.cards) > .psh-grid-scroll > .psh-grid-table > thead > tr.psh-grid-hrow > th { border-right-color: var(--pg-line2); }
/* Çok katlı başlığın kendi kenar gölgesi çizgiyle çift görünmesin */
.psh-grid.lines:not(.cards) > .psh-grid-scroll > .psh-grid-table > thead > tr.psh-grid-grow > th.g { box-shadow: none; }
/* Dondurulmuş bölgenin sınırı: çizgi bir ton koyu + yumuşak gölge (eski 1px gölge çizgisi hücre çizgisiyle çift olurdu) */
.psh-grid.lines:not(.cards) > .psh-grid-scroll > .psh-grid-table > * > tr > .fz-last { border-right-color: var(--pg-line2); box-shadow: 4px 0 6px -3px rgba(15, 23, 42, .12); }
.psh-grid.lines:not(.cards) > .psh-grid-scroll > .psh-grid-table > tbody > tr.act > td.fz-last:first-child { box-shadow: inset 3px 0 0 #f59e0b, 4px 0 6px -3px rgba(15, 23, 42, .12); }

/* Dönüşümlü satırlar: zemin SATIRDA (tr) — hücreye zemin veren her şey öne geçer: üzerine gelme, seçili (sel), etkin (act), parlama (go),
   düzenleme satırı, ekranın RowClass / CellClass / RowStyle'ı. Dondurulmuş hücre opak olmak zorunda; tonu --pg-rowbg'den alır. */
.psh-grid.striped:not(.cards) > .psh-grid-scroll > .psh-grid-table > tbody > tr.alt { --pg-rowbg: var(--pg-stripe); background: var(--pg-stripe); }
/* Koyu satırın üstüne gelince de fark edilsin: üzerine gelme tonu dönüşümlü tondan koyu */
.psh-grid.striped:not(.cards) { --pg-hover: #eaf0f8; }
/* Grup başlığı dönüşümlü satırla karışmasın: bir ton koyu */
.psh-grid.striped:not(.cards) > .psh-grid-scroll > .psh-grid-table > tbody > tr.psh-grid-grp > td { background: #e9edf3; }
.psh-grid.striped:not(.cards) > .psh-grid-scroll > .psh-grid-table > tbody > tr.psh-grid-grp:hover > td { background: #e1e6ee; }

/* ───────── Kabı doldurma kipi (FillParent): kabın genişliği ve yüksekliği; kabın yüksekliği belli değilse en az 200px ───────── */
.psh-grid.fill { box-sizing: border-box; height: 100%; min-height: 200px; min-width: 0; max-width: 100%; }

/* ───────── İki ızgaralı kap (PshGridSplit): yan yana / alt alta; ayraç ve köşe tutamacı ızgaranın köşe tutamacıyla aynı aileden ───────── */
.psh-gsplit { --gs-bar: 8px; position: relative; display: flex; height: var(--gs-h, 440px); max-width: 100%; min-width: 0; }
.psh-gsplit.h { flex-direction: row; }
.psh-gsplit.v { flex-direction: column; width: var(--gs-w, 100%); }
.psh-gsplit-pane { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
/* İlk parçanın payı --gs-r (0–1); ikisi de en az --gs-min */
.psh-gsplit-pane.a { flex: 0 0 clamp(var(--gs-min, 160px), calc((100% - var(--gs-bar)) * var(--gs-r, .5)), calc(100% - var(--gs-bar) - var(--gs-min, 160px))); }
.psh-gsplit-pane.b { flex: 1 1 0; }
.psh-gsplit-pane > .psh-grid.fill { flex: 1 1 0; height: auto; min-height: 0; }
.psh-gsplit-bar { flex: none; position: relative; touch-action: none; outline: none; z-index: 2; }
.psh-gsplit.h > .psh-gsplit-bar { width: var(--gs-bar); cursor: col-resize; }
.psh-gsplit.v > .psh-gsplit-bar { height: var(--gs-bar); cursor: row-resize; }
.psh-gsplit-bar::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 2px; background: #b8c1cc; opacity: .8; }
.psh-gsplit.h > .psh-gsplit-bar::after { width: 3px; height: 36px; }
.psh-gsplit.v > .psh-gsplit-bar::after { width: 36px; height: 3px; }
.psh-gsplit-bar:hover::after, .psh-gsplit-bar.drag::after, .psh-gsplit-bar:focus-visible::after { background: #1d4ed8; opacity: 1; }
.psh-gsplit-bar:focus-visible { background: #eaf1ff; border-radius: 4px; }
.psh-gsplit-grip { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; z-index: 6; border-radius: 0 0 7px 0; touch-action: none; opacity: .8;
    background: linear-gradient(135deg, transparent 0 55%, #b8c1cc 55% 62%, transparent 62% 72%, #b8c1cc 72% 79%, transparent 79%); }
.psh-gsplit-grip:hover, .psh-gsplit-grip.drag { opacity: 1; background: linear-gradient(135deg, transparent 0 55%, #1d4ed8 55% 62%, transparent 62% 72%, #1d4ed8 72% 79%, transparent 79%); }
.psh-gsplit.h > .psh-gsplit-grip { cursor: ns-resize; }
.psh-gsplit.v > .psh-gsplit-grip { cursor: nwse-resize; }
body.psh-gsplit-col, body.psh-gsplit-col * { cursor: col-resize !important; user-select: none; }
body.psh-gsplit-row, body.psh-gsplit-row * { cursor: row-resize !important; user-select: none; }
body.psh-gsplit-ns, body.psh-gsplit-ns * { cursor: ns-resize !important; user-select: none; }
body.psh-gsplit-nwse, body.psh-gsplit-nwse * { cursor: nwse-resize !important; user-select: none; }
/* Dar ekran: parçalar alt alta, ayraç ve köşe yok; her parça kendi yüksekliğinde */
@media (max-width: 640px) {
    .psh-gsplit, .psh-gsplit.v { display: block; height: auto; width: auto; }
    .psh-gsplit > .psh-gsplit-pane { height: var(--gs-h, 440px); }
    .psh-gsplit.v > .psh-gsplit-pane { height: max(240px, calc(var(--gs-h, 440px) / 2)); }
    .psh-gsplit > .psh-gsplit-pane.a { margin-bottom: 8px; }
    .psh-gsplit-bar, .psh-gsplit-grip { display: none; }
}
