/* Yoyo Belgeler */

/* ---------- Liste ---------- */
.dc-list { min-height: 100%; }
.dc-lhead { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px 20px; border-bottom: 1px solid var(--line); }
.dc-lhead h1 { font-size: 18px; margin: 0 auto 0 0; font-weight: 700; }
.dc-sel { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 6px 8px; height: 34px; outline: 0; max-width: 100%; }
.dc-sel:focus { border-color: var(--blue); }
.dc-row { cursor: pointer; padding: 8px 12px 8px 20px; }
.dc-ico { color: var(--blue); display: inline-grid; flex: none; }
.dc-ico svg { width: 22px; height: 22px; fill: currentColor; }
.dc-nm { flex: 1; min-width: 0; display: grid; }
.dc-t { color: var(--ink); text-decoration: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.dc-t:hover { text-decoration: underline; }
.dc-nm small { color: var(--mute); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-when { color: var(--mute); font-size: 13px; white-space: nowrap; width: 96px; text-align: end; flex: none; }
.dc-star.on { color: var(--amber); }
.dc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; padding: 16px 20px; }
.dc-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; min-width: 0; }
.dc-card:hover { border-color: #cbd5e1; }
.dc-prev { height: 150px; padding: 14px 16px; font-size: 9px; line-height: 1.5; color: #475569; overflow: hidden; white-space: pre-wrap; overflow-wrap: break-word; border-bottom: 1px solid var(--line); background: #fff; }
.dc-cfoot { display: flex; align-items: center; gap: 2px; padding: 8px 4px 8px 12px; }
.dc-undo { border: 0; background: none; color: #93c5fd; font-weight: 700; margin-inline-start: 14px; padding: 0; }

/* ---------- Ust cubuk (duzenleyici) ---------- */
.dc-tslot { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.dc-title-in { flex: 0 1 300px; min-width: 60px; border: 1px solid transparent; border-radius: 8px; background: none; padding: 7px 10px; font-size: 17px; font-weight: 600; outline: 0; text-overflow: ellipsis; }
.dc-title-in:hover { border-color: var(--line); }
.dc-title-in:focus { border-color: var(--blue); background: #fff; }
.dc-status { color: var(--mute); font-size: 13px; white-space: nowrap; }
.dc-status.bad { color: var(--red); }
.dc-st2 { display: none; }

/* ---------- Duzenleyici ---------- */
.ys-main.dc-main-ed { overflow: hidden; display: flex; }
.dc-ed { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; padding: 6px 4px; border-bottom: 1px solid var(--line); flex: none; }
.dc-foot .dc-tb { width: 28px; height: 28px; }
.dc-tb { width: 32px; height: 32px; border: 0; background: none; border-radius: 7px; display: inline-grid; place-items: center; color: #334155; padding: 0; flex: none; font-size: 15px; }
.dc-tb:hover { background: #eef2f7; }
.dc-tb.on { background: var(--blue-l); color: var(--blue-d); }
.dc-tb:disabled { opacity: .4; cursor: default; }
.dc-tb svg { width: 19px; height: 19px; fill: currentColor; display: block; }
.dc-tb .dc-g { font-family: Georgia, serif; font-style: italic; }
.dc-ca { border-bottom: 3px solid var(--red); line-height: 1.05; font-weight: 700; padding: 0 2px; }
.dc-grp { display: inline-flex; align-items: center; gap: 2px; padding: 0 5px; position: relative; flex: none; }
.dc-grp:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.dc-tools .dc-sel { height: 32px; padding: 4px 6px; border-color: transparent; font-size: 14px; width: 94px; flex: none; }
.dc-tools .dc-sel:hover { border-color: var(--line); }
.dc-tools .dc-size { width: 58px; }
.dc-find { border-bottom: 1px solid var(--line); padding: 8px 12px; display: grid; gap: 6px; flex: none; }
.dc-frow { display: flex; align-items: center; gap: 6px; max-width: 560px; }
.dc-frow .ys-input { flex: 1; min-width: 0; padding: 6px 10px; }
.dc-fcount { color: var(--mute); font-size: 13px; min-width: 44px; text-align: center; }
.dc-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 14px; background: #fef2f2; border-bottom: 1px solid #fecaca; color: #991b1b; font-weight: 500; font-size: 14px; flex: none; }
.dc-note span { margin-inline-end: auto; }
.dc-scroll { flex: 1; min-height: 0; overflow: auto; background: #eef1f6; container-type: inline-size; }
.dc-stage { position: relative; padding: 24px 24px 48px; }
.dc-foot { display: flex; align-items: center; gap: 12px; min-height: 32px; padding: 2px 14px 2px 8px; border-top: 1px solid var(--line); color: var(--mute); font-size: 12px; flex: none; }
.dc-count { margin-inline-start: auto; }

/* Kagit: A4 genisliginde, kenar bosluklu */
.dc-paper { --pad: 96px; max-width: 794px; min-height: 1123px; margin: 0 auto; padding: var(--pad); background: #fff; border: 1px solid #dfe4ec; color: #0f172a; font: 11pt/1.4 Arial, Helvetica, sans-serif; outline: 0; overflow-wrap: break-word; cursor: text; }
.dc-paper p { margin: 0 0 8pt; }
.dc-paper h1, .dc-paper h2, .dc-paper h3, .dc-paper h4, .dc-paper h5, .dc-paper h6 { font-weight: 700; line-height: 1.25; }
.dc-paper h1 { font-size: 20pt; margin: 18pt 0 6pt; }
.dc-paper h2 { font-size: 16pt; margin: 14pt 0 5pt; }
.dc-paper h3 { font-size: 14pt; margin: 12pt 0 4pt; }
.dc-paper h4, .dc-paper h5, .dc-paper h6 { font-size: 12pt; margin: 10pt 0 4pt; }
.dc-paper > :first-child { margin-top: 0; }
.dc-paper .dc-title { font-size: 26pt; line-height: 1.2; margin: 0 0 4pt; }
.dc-paper .dc-subtitle { font-size: 15pt; color: #64748b; margin: 0 0 12pt; }
.dc-paper ul, .dc-paper ol { margin: 0 0 8pt; padding-inline-start: 28px; }
.dc-paper li > p { margin: 0; }
.dc-paper li ul, .dc-paper li ol, .dc-paper ul ul, .dc-paper ul ol, .dc-paper ol ul, .dc-paper ol ol { margin-bottom: 0; }
.dc-paper a { color: #2563eb; cursor: pointer; }
.dc-paper img { max-width: 100%; height: auto; vertical-align: bottom; }
.dc-paper blockquote { margin: 0 0 8pt; padding-inline-start: 14px; border-inline-start: 3px solid #e2e8f0; color: #334155; }
.dc-paper pre { margin: 0 0 8pt; padding: 8px 10px; background: #f1f5f9; font: 10pt/1.4 "Courier New", Courier, monospace; white-space: pre-wrap; }
.dc-paper code { font-family: "Courier New", Courier, monospace; }
.dc-paper table { border-collapse: collapse; width: 100%; table-layout: fixed; margin: 0 0 8pt; }
.dc-paper td, .dc-paper th { border: 1px solid #94a3b8; padding: 4px 8px; vertical-align: top; min-width: 20px; overflow-wrap: break-word; }
.dc-paper td > p:last-child, .dc-paper th > p:last-child { margin-bottom: 0; }
.dc-paper hr { border: 0; border-top: 1px solid #94a3b8; margin: 12pt 0; }
.dc-paper hr.dc-pb { border-top: 1px dashed #94a3b8; margin: 24px calc(-1 * var(--pad)); }
.dc-paper ::selection { background: #bfdbfe; }
::highlight(dc-find) { background-color: #fde68a; color: #0f172a; }
::highlight(dc-cur) { background-color: #fb923c; color: #0f172a; }
@container (max-width: 900px) { .dc-paper { --pad: 56px; } }
@container (max-width: 620px) {
  .dc-stage { padding: 0; }
  .dc-paper { --pad: 18px; padding: 22px var(--pad) 60px; border: 0; min-height: 100%; max-width: none; }
}

/* Secili resim: cerceve, tutamac, genislik dugmeleri */
.dc-imgbox { position: absolute; border: 2px solid var(--blue); pointer-events: none; z-index: 5; }
.dc-ih { position: absolute; right: -8px; bottom: -8px; width: 14px; height: 14px; background: var(--blue); border: 2px solid #fff; border-radius: 50%; pointer-events: auto; cursor: nwse-resize; touch-action: none; }
.dc-ibar { position: absolute; left: -2px; top: calc(100% + 8px); display: flex; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 2px; pointer-events: auto; white-space: nowrap; }
.dc-ibar button { border: 0; background: none; border-radius: 6px; padding: 4px 8px; font-size: 13px; font-weight: 600; color: #334155; display: inline-grid; place-items: center; }
.dc-ibar button:hover { background: #eef2f7; }
.dc-ibar svg { width: 16px; height: 16px; fill: var(--red); }

/* Renk paneli, baglanti balonu */
.ys-menu.dc-colors { min-width: 0; gap: 4px; }
.dc-sw { display: grid; grid-template-columns: repeat(6, 26px); gap: 6px; padding: 6px; }
.ys-menu .dc-sw button { width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1px solid rgba(15, 23, 42, .18); }
.ys-menu .dc-sw button:hover { outline: 2px solid var(--blue); outline-offset: 1px; }
.ys-menu.dc-colors > button { justify-content: center; font-size: 14px; }
.ys-menu.dc-linkpop { display: flex; align-items: center; gap: 2px; min-width: 0; max-width: calc(100vw - 16px); }
.ys-menu.dc-linkpop a { color: var(--blue); padding: 6px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-size: 14px; }
.ys-menu.dc-linkpop button { padding: 6px 10px; font-size: 14px; flex: none; }

/* Ana hatlar */
.dc-outline button { padding: 6px 12px; font-weight: 500; font-size: 14px; }
.dc-outline .dc-o0, .dc-outline .dc-o1 { font-weight: 600; }
.dc-outline .dc-o2 { padding-inline-start: 24px; }
.dc-outline .dc-o3 { padding-inline-start: 36px; }
.dc-onone { color: var(--mute); padding: 0 12px; font-size: 14px; }

/* Pencereler */
.dc-two { display: flex; gap: 10px; align-items: end; }
.dc-two > * { flex: 1; min-width: 0; }
.dc-two > .ys-btn { flex: none; }
.dc-share { display: grid; gap: 12px; }
.dc-hist { display: grid; grid-template-columns: 190px 1fr; gap: 12px; height: min(60vh, 520px); }
.dc-hlist { overflow-y: auto; display: grid; align-content: start; gap: 2px; }
.dc-hlist button { border: 0; background: none; text-align: start; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.dc-hlist button:hover { background: #f1f5f9; }
.dc-hlist button.on { background: var(--blue-l); color: var(--blue-d); }
.dc-hview { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.dc-hview .dc-paper { --pad: 20px; min-height: 0; max-width: none; border: 0; cursor: default; }

/* Paylasilan gorunum */
.dc-shared { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.dc-shead { display: flex; align-items: center; gap: 10px; padding: 10px 16px; flex: none; }
.dc-stitle { flex: 1; min-width: 0; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-shared .dc-paper { cursor: auto; }

@media (max-width: 760px) {
  .dc-lhead { padding: 10px 8px 8px 14px; }
  .dc-row { padding: 8px 6px 8px 14px; gap: 10px; }
  .dc-when { width: auto; font-size: 12px; }
  .dc-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 12px; }
  .dc-prev { height: 110px; padding: 10px 12px; }
  .dc-scroll { background: #fff; }
  .dc-tslot { gap: 0; }
  .dc-title-in { flex: 1; font-size: 16px; padding: 6px; }
  .dc-st1 { display: none; }
  .dc-st2 { display: inline; }
  .dc-tools { flex-wrap: nowrap; overflow-x: auto; padding: 4px 6px; scrollbar-width: none; }
  .dc-tools::-webkit-scrollbar { display: none; }
  .dc-foot [data-c="outline"] { display: none; }
  .dc-foot { padding-inline-start: 14px; }
  .dc-tb { width: 36px; height: 36px; }
  .dc-editing .ys-actions .ys-btn { padding: 8px 9px; border: 0; background: none; }
  .dc-hist { grid-template-columns: 1fr; grid-template-rows: 110px 1fr; }
  .dc-shead { padding: 8px 10px; }
}

/* ---------- Yazdirma: yalnizca kagit, A4 ---------- */
@media print {
  @page { size: A4; margin: 2cm; }
  html, body { height: auto; background: #fff; }
  .ys-top, .ys-side, .dc-tools, .dc-find, .dc-note, .dc-foot, .dc-imgbox, .dc-shead, .ys-toast, .ys-menu, .ys-pop, .ys-veil, .yapps-pop { display: none !important; }
  .ys, .ys-body, .ys-main, .ys-main.dc-main-ed, .dc-ed, .dc-scroll, .dc-stage, .dc-shared { display: block; height: auto; min-height: 0; overflow: visible; border: 0; margin: 0; padding: 0; background: #fff; border-radius: 0; container-type: normal; }
  .dc-paper { --pad: 0px; max-width: none; min-height: 0; padding: 0 1px; margin: 0; border: 0; }
  .dc-paper hr.dc-pb { border: 0; margin: 0; height: 0; break-after: page; page-break-after: always; }
  .dc-paper h1, .dc-paper h2, .dc-paper h3 { break-after: avoid; }
  .dc-paper img, .dc-paper tr { break-inside: avoid; }
  .dc-paper a { color: inherit; }
}
