/* Yoyo Tablolar */
.sh-i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; flex: none; }
.ys-nav svg.sh-i { fill: none; width: 20px; height: 20px; }

/* Dosya listesi */
.sh-fhead { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--mute); border-bottom: 1px solid var(--line); }
.sh-fhead > :first-child { flex: 1; padding-inline-start: 32px; }
.sh-fhead > :nth-child(2), .sh-fdate { width: 150px; flex: none; }
.sh-fhead > :last-child { width: 30px; flex: none; }
.sh-file { cursor: default; }
.sh-file[role="link"] { cursor: pointer; }
.sh-ficon { color: var(--blue); flex: none; }
.sh-ficon .sh-i { width: 20px; height: 20px; }
.sh-fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.sh-fdate { color: var(--mute); font-size: 13px; white-space: nowrap; }

/* Duzenleyici */
.ys-main.sh-main-ed { overflow: hidden; }
.sh-editing .ys-search { visibility: hidden; }
.sh-ed { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.sh-head { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-bottom: 1px solid var(--line); flex: none; }
.sh-name { flex: 0 1 420px; min-width: 0; border: 1px solid transparent; border-radius: 8px; padding: 5px 8px; font-weight: 600; font-size: 16px; background: none; outline: 0; text-overflow: ellipsis; }
.sh-name:hover { border-color: var(--line); }
.sh-name:focus { border-color: var(--blue); }
.sh-saved { color: var(--mute); font-size: 13px; white-space: nowrap; }
.sh-saved.bad { color: var(--red); }
.sh-filebtn { margin-inline-start: auto; }

.sh-tools { display: flex; align-items: center; gap: 2px; padding: 4px 8px; border-bottom: 1px solid var(--line); overflow-x: auto; flex: none; scrollbar-width: none; }
.sh-tools::-webkit-scrollbar, .sh-tabs::-webkit-scrollbar { display: none; }
.sh-tb { border: 0; background: none; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 6px; display: inline-grid; place-items: center; color: #334155; flex: none; font-size: 14px; }
.sh-tb:hover { background: #eef2f7; }
.sh-tb.on { background: var(--blue-l); color: var(--blue-d); }
.sh-tb:disabled { opacity: .4; cursor: default; background: none; }
.sh-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; flex: none; }
.sh-nf { height: 30px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 0 4px; font-size: 13px; flex: none; width: 118px; outline: 0; }
.sh-nf:focus { border-color: var(--blue); }
.sh-txt { font-size: 12px; font-weight: 600; }
.sh-ti { font-style: italic; font-weight: 600; font-family: Georgia, "Times New Roman", serif; }
.sh-tu { text-decoration: underline; font-weight: 600; }
.sh-swatch { display: grid; justify-items: center; gap: 2px; font-weight: 700; font-size: 13px; line-height: 1; }
.sh-swatch i { display: block; width: 16px; height: 4px; outline: 1px solid #cbd5e1; }
.sh-fillsw::before { content: ""; width: 12px; height: 9px; border: 1.5px solid currentColor; border-radius: 2px; }

.sh-fbar { display: flex; align-items: center; border-bottom: 1px solid var(--line); height: 30px; flex: none; }
.sh-addr { width: 76px; flex: none; border: 0; border-inline-end: 1px solid var(--line); height: 100%; text-align: center; font-size: 13px; outline: 0; background: none; padding: 0 4px; }
.sh-fx { color: var(--mute); font-style: italic; font-size: 13px; padding: 0 8px; font-family: Georgia, "Times New Roman", serif; flex: none; }
.sh-formula { flex: 1; min-width: 0; border: 0; height: 100%; outline: 0; font-size: 13px; background: none; padding: 0 8px 0 0; }

/* Izgara: bolmeler altta cizilir, ustteki saydam kaydirma katmani fareyi ve kaydirmayi alir */
.sh-view { position: relative; flex: 1; min-height: 0; overflow: hidden; font-size: 13px; background: #fff; user-select: none; -webkit-user-select: none; }
.sh-pane { position: absolute; overflow: hidden; pointer-events: none; background: #fff; }
.sh-layer { position: absolute; left: 0; top: 0; will-change: transform; }
.sh-cells, .sh-ov { position: absolute; left: 0; top: 0; }
.sh-ov { z-index: 4; }
.sh-scroll { position: absolute; inset: 0; overflow: auto; outline: 0; z-index: 5; cursor: cell; -webkit-tap-highlight-color: transparent; }
.sh-space { pointer-events: none; }
.sh-gh, .sh-gv { position: absolute; background: #e2e8f0; }
.sh-gh { height: 1px; }
.sh-gv { width: 1px; }
.sh-c { position: absolute; overflow: hidden; white-space: nowrap; padding: 0 4px; color: var(--ink); }
.sh-r { text-align: right; }
.sh-m { text-align: center; }
.sh-b { font-weight: 700; }
.sh-it { font-style: italic; }
.sh-u { text-decoration: underline; }
.sh-e { color: var(--red); }
.sh-wr { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.35; padding-top: 3px; }
.sh-of { z-index: 1; }
.sh-bd { z-index: 2; }
.sh-fb { position: absolute; width: 17px; height: 17px; border: 1px solid #cbd5e1; border-radius: 3px; background: #fff; z-index: 3; }
.sh-fb::after { content: ""; position: absolute; left: 3px; top: 5px; border: 4px solid transparent; border-top: 5px solid #475569; border-bottom: 0; }
.sh-fb.on { background: var(--blue); border-color: var(--blue); }
.sh-fb.on::after { border-top-color: #fff; }

.sh-p-hh, .sh-p-hf, .sh-p-hs, .sh-p-fh, .sh-p-sh { background: #f8fafc; }
.sh-p-hh { border-right: 1px solid #cbd5e1; border-bottom: 1px solid #cbd5e1; }
.sh-hc, .sh-hr { position: absolute; background: #f8fafc; color: #475569; font-size: 12px; text-align: center; border-right: 1px solid #cbd5e1; border-bottom: 1px solid #cbd5e1; overflow: hidden; }
.sh-hc { top: 0; height: 24px; line-height: 23px; }
.sh-hr { left: 0; width: 46px; }
.sh-hc.on, .sh-hr.on { background: #e2e8f0; color: var(--ink); font-weight: 600; }
.sh-hc.full, .sh-hr.full { background: var(--blue); color: #fff; border-color: var(--blue-d); }
/* Dondurulmus bolmenin siniri */
.sh-p-hf::after, .sh-p-ff::after, .sh-p-sf::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 1px; background: #94a3b8; z-index: 6; }
.sh-p-fh::before, .sh-p-ff::before, .sh-p-fs::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #94a3b8; z-index: 6; }

.sh-ov > * { position: absolute; pointer-events: none; }
.sh-sel { background: rgba(37, 99, 235, .08); border: 1px solid var(--blue); }
.sh-act { border: 2px solid var(--blue); }
.sh-fh { width: 8px; height: 8px; background: var(--blue); border: 1px solid #fff; z-index: 2; }
.sh-mq { border: 2px dashed var(--blue); }
.sh-fp { border: 1px dashed #475569; }
.sh-rf { border: 2px dashed; }

.sh-edit { position: absolute; z-index: 8; margin: 0; border: 2px solid var(--blue); border-radius: 0; outline: 0; resize: none; padding: 1px 3px; font-size: 13px; line-height: 19px; background: #fff; overflow: hidden; white-space: pre; }

.sh-charts { position: absolute; left: 46px; top: 24px; right: 0; bottom: 0; overflow: hidden; pointer-events: none; z-index: 6; }
.sh-charts > div { position: absolute; left: 0; top: 0; }
.sh-chart { position: absolute; background: #fff; border: 1px solid #cbd5e1; border-radius: 4px; pointer-events: auto; cursor: move; overflow: hidden; }
.sh-chart-svg svg { display: block; }
.sh-chart-m { position: absolute; right: 2px; top: 2px; background: #fff; opacity: 0; }
.sh-chart:hover .sh-chart-m, .sh-chart-m:focus-visible { opacity: 1; }
.sh-chart-rs { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize; border-right: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8; border-bottom-right-radius: 3px; }
@media (hover: none) { .sh-chart-m { opacity: 1; } }

.sh-find { position: absolute; right: 12px; top: 34px; z-index: 9; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; gap: 6px; width: min(330px, calc(100% - 24px)); box-shadow: var(--sh); }
.sh-find-row { display: flex; align-items: center; gap: 4px; }
.sh-find .ys-input { padding: 6px 8px; font-size: 13px; min-width: 0; }
.sh-find-n { font-size: 12px; color: var(--mute); min-width: 38px; text-align: center; flex: none; }
.sh-find-rep { display: none; }
.sh-find.rep .sh-find-rep { display: flex; }
.sh-find.rep .sh-find-more { display: none; }
.sh-find-cs { font-size: 12px; color: #334155; display: flex; gap: 6px; align-items: center; margin-inline-end: auto; }
.sh-find-more { border: 0; background: none; color: var(--blue); font-size: 12px; font-weight: 600; padding: 4px; }

.sh-foot { display: flex; align-items: stretch; gap: 4px; border-top: 1px solid var(--line); height: 34px; padding: 0 8px; flex: none; background: #f8fafc; }
.sh-addtab { align-self: center; }
.sh-tabs { display: flex; overflow-x: auto; min-width: 60px; flex: 0 1 auto; scrollbar-width: none; }
.sh-tab { border: 0; background: none; padding: 0 14px; font-size: 13px; font-weight: 600; color: #475569; white-space: nowrap; flex: none; }
.sh-tab:hover { background: #eef2f7; }
.sh-tab.on { background: #fff; color: var(--blue-d); box-shadow: inset 0 -2px 0 var(--blue); }
.sh-stat { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--mute); white-space: nowrap; padding-inline-start: 8px; overflow: hidden; flex: 0 100 auto; min-width: 0; }
.sh-stat b { color: var(--ink); font-weight: 600; }

/* Acilir kutular (renk, suzgec) */
.sh-pop { position: fixed; z-index: 90; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(15, 23, 42, .14); padding: 8px; }
.sh-pal { width: 204px; }
.sh-pal-none { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 5px; font-size: 13px; }
.sh-pal-none:hover { background: #f8fafc; }
.sh-pal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 6px; }
.sh-pal-grid button { height: 22px; border: 1px solid #cbd5e1; border-radius: 4px; padding: 0; }
.sh-filt { width: 236px; display: grid; gap: 8px; padding: 10px; }
.sh-filt-top { display: flex; gap: 6px; }
.sh-filt-list { max-height: 240px; overflow: auto; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.sh-filt-list label { display: flex; gap: 8px; align-items: center; font-size: 13px; min-width: 0; padding: 2px 0; }
.sh-filt-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-filt-list em { color: var(--mute); }
.sh-filt-foot { display: flex; justify-content: flex-end; }
.sh-anchor { position: fixed; width: 0; height: 0; }

#sh-print { display: none; }

@media (max-width: 760px) {
  .sh-fhead > :nth-child(2), .sh-fdate { width: 86px; }
  .sh-name { font-size: 15px; }
  .sh-addr { width: 56px; }
  .sh-stat { gap: 8px; }
}

@media print {
  html, body { height: auto; background: #fff; }
  #app, .ys-toast, .ys-menu, .ys-veil, .sh-pop { display: none !important; }
  #sh-print { display: block; font: 11px/1.3 system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: #000; }
  #sh-print h1 { font-size: 14px; margin: 0 0 8px; }
  #sh-print table { border-collapse: collapse; table-layout: fixed; }
  #sh-print td { border: 1px solid #cbd5e1; padding: 1px 4px; overflow: hidden; white-space: nowrap; vertical-align: middle; }
  #sh-print tr { break-inside: avoid; }
  .sh-print-chart { margin-top: 16px; break-inside: avoid; }
}
