/* Yönetim paneli — DashStack tarzı açık tema */
:root {
  --ds-primary: #4880ff;
  --ds-primary-soft: #ebf1ff;
  --ds-bg: #f5f6fa;
  --ds-card: #ffffff;
  --ds-ink: #202224;
  --ds-muted: #646464;
  --ds-line: #e0e0e0;
  --ds-thead: #f1f4f9;
  --ds-green: #00b69b;
  --ds-red: #ef3826;
  --ds-orange: #ff9066;
  --ds-purple: #8280ff;
  --ds-radius: 14px;
  --ds-sidebar: 240px;
}
* { box-sizing: border-box; }
body.ds {
  background: var(--ds-bg);
  color: var(--ds-ink);
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  min-height: 100vh;
}
a { color: var(--ds-primary); }
.ds .btn { border-radius: 8px; font-weight: 600; font-size: 14px; padding: .55rem 1.1rem; }
.ds .btn-primary { background: var(--ds-primary); border-color: var(--ds-primary); }
.ds .btn-primary:hover { background: #3a6ff0; border-color: #3a6ff0; }
.ds .btn-light { background: #fff; border: 1px solid #d5d5d5; color: var(--ds-ink); }
.ds .form-control, .ds .form-select {
  border-radius: 8px; border: 1px solid #d5d5d5; background-color: #f5f6fa; padding: .6rem .85rem; font-size: 14px;
}
.ds .form-control:focus, .ds .form-select:focus { border-color: var(--ds-primary); box-shadow: 0 0 0 3px rgba(72,128,255,.15); background: #fff; }
.ds .form-label { font-weight: 600; color: #606060; font-size: 13px; margin-bottom: .35rem; }
.ds .form-text { font-size: 12px; color: #6c6c6c; }
.ds .form-check-input:checked { background-color: var(--ds-primary); border-color: var(--ds-primary); }

/* Sidebar */
.ds-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--ds-sidebar); background: #fff;
  border-right: 1px solid #ececec; z-index: 1040; display: flex; flex-direction: column; transition: transform .25s ease;
}
.ds-brand { height: 70px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: var(--ds-ink); text-decoration: none; padding: 0 18px; flex-shrink: 0; }
.ds-brand span { color: var(--ds-primary); }
.ds-brand img { max-height: 40px; max-width: 100%; }
.ds-nav { overflow-y: auto; padding: 4px 0 24px; flex: 1; }
.ds-nav .ds-group { font-size: 12px; font-weight: 700; color: #767676; text-transform: uppercase; letter-spacing: .04em; padding: 18px 32px 8px; border-top: 1px solid #f0f0f0; margin-top: 10px; }
.ds-nav .ds-group:first-child { border-top: 0; margin-top: 0; }
.ds-link {
  position: relative; display: flex; align-items: center; gap: 14px; margin: 2px 24px; padding: 11px 16px;
  border-radius: 6px; color: var(--ds-ink); font-weight: 600; text-decoration: none; font-size: 14px;
}
.ds-link i { font-size: 20px; width: 22px; text-align: center; }
.ds-link:hover { background: var(--ds-primary-soft); color: var(--ds-primary); }
.ds-link.active { background: var(--ds-primary); color: #fff; }
.ds-link.active::before { content: ""; position: absolute; left: -24px; top: 0; bottom: 0; width: 5px; border-radius: 0 4px 4px 0; background: var(--ds-primary); }
.ds-link .ds-badge { margin-left: auto; background: #d92d20; color: #fff; font-size: 11px; border-radius: 10px; padding: 1px 7px; }
.ds-link.active .ds-badge { background: #fff; color: var(--ds-primary); }

/* Topbar */
.ds-main { margin-left: var(--ds-sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.ds-topbar {
  height: 70px; background: #fff; display: flex; align-items: center; gap: 16px; padding: 0 30px;
  border-bottom: 1px solid #ececec; position: sticky; top: 0; z-index: 1030;
}
.ds-burger { border: 0; background: none; font-size: 24px; color: var(--ds-ink); padding: 4px; }
.ds-search { position: relative; max-width: 380px; flex: 1; }
.ds-search input { width: 100%; border-radius: 19px; border: 1px solid #d5d5d5; background: #f5f6fa; padding: 8px 16px 8px 42px; font-size: 14px; }
.ds-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #9a9a9a; font-size: 18px; }
.ds-top-actions { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.ds-icon-btn { position: relative; color: var(--ds-primary); font-size: 24px; text-decoration: none; }
.ds-icon-btn .dot { position: absolute; top: -6px; right: -8px; background: #d92d20; color: #fff; font-size: 11px; font-weight: 700; border-radius: 10px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; }
.ds-user { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ds-ink); }
.ds-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ds-primary-soft); color: #2f5fd0; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.ds-user b { display: block; font-size: 14px; }
.ds-user small { color: var(--ds-muted); font-size: 12px; }
.ds-user.dropdown-toggle::after { color: var(--ds-muted); margin-left: 0; }
.ds-dropdown { border: 0; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.12); padding: 8px; min-width: 200px; font-size: 14px; }
.ds-dropdown .dropdown-item { border-radius: 8px; padding: 8px 12px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.ds-dropdown .dropdown-item i { font-size: 18px; }
.ds-dropdown .dropdown-item:active { background: var(--ds-primary); color: #fff; }

.ds-content { padding: 30px; flex: 1; }
.ds-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.ds-page-head h1 { font-size: 30px; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.ds-crumb { color: var(--ds-muted); font-size: 13px; }
.ds-crumb a { color: var(--ds-muted); text-decoration: none; }

/* Kartlar */
.ds-card { background: var(--ds-card); border-radius: var(--ds-radius); box-shadow: 6px 6px 54px rgba(0,0,0,.05); padding: 24px; }
.ds-card + .ds-card { margin-top: 24px; }
.ds-card-title { font-size: 20px; font-weight: 700; margin: 0 0 18px; }
.ds-stat { display: flex; justify-content: space-between; gap: 12px; text-decoration: none; color: inherit; height: 100%; }
.ds-stat:hover { color: inherit; transform: translateY(-2px); transition: transform .2s; }
.ds-stat .lbl { color: var(--ds-muted); font-weight: 600; font-size: 15px; }
.ds-stat .num { font-size: 28px; font-weight: 800; margin-top: 14px; letter-spacing: .01em; }
.ds-stat .ico { width: 60px; height: 60px; border-radius: 22px; display: grid; place-items: center; font-size: 28px; flex-shrink: 0; }
.ico.blue { background: #e5e4ff; color: var(--ds-purple); }
.ico.orange { background: #fef2d6; color: #fec53d; }
.ico.green { background: #d9f7e8; color: #4ad991; }
.ico.red { background: #ffded1; color: var(--ds-orange); }

/* Tablo */
.ds-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.ds-table thead th { background: var(--ds-thead); font-weight: 800; font-size: 14px; padding: 14px 16px; white-space: nowrap; }
.ds-table thead th:first-child { border-radius: 12px 0 0 12px; }
.ds-table thead th:last-child { border-radius: 0 12px 12px 0; }
.ds-table tbody td { padding: 14px 16px; border-bottom: 1px solid #ececec; vertical-align: middle; font-weight: 600; }
.ds-table tbody tr:last-child td { border-bottom: 0; }
.ds-table tbody tr:hover td { background: #fafbfd; }
.ds-thumb { width: 54px; height: 42px; object-fit: cover; border-radius: 8px; background: #f0f2f7; display: block; }
.ds-pill { display: inline-block; padding: 5px 14px; border-radius: 4.5px; font-size: 12px; font-weight: 700; white-space: nowrap; }
/* Pill yazıları DashStack tonlarının koyulaştırılmışı (WCAG AA ≥ 4.5:1) */
.ds-pill.green { background: #ccf0eb; color: #00715f; }
.ds-pill.red { background: #fcd7d4; color: #b0261a; }
.ds-pill.orange { background: #ffeddd; color: #a14a06; }
.ds-pill.blue { background: #e0e8ff; color: #2f5fd0; }
.ds-pill.purple { background: #e0d4fc; color: #6226ef; }
.ds-pill.gray { background: #eceef2; color: #555b66; }
.ds-actions { display: inline-flex; border: 1px solid #d5d5d5; border-radius: 8px; overflow: hidden; background: #fafbfd; }
.ds-actions a, .ds-actions button { border: 0; background: none; padding: 7px 12px; color: #4b4b4b; font-size: 17px; line-height: 1; }
.ds-actions > * + * { border-left: 1px solid #d5d5d5; }
.ds-actions .del:hover { color: var(--ds-red); }
.ds-actions a:hover { color: var(--ds-primary); }
.ds-actions form { display: contents; }
.ds-toggle { border: 0; background: none; padding: 0; }
.ds-empty { text-align: center; padding: 48px 12px; color: var(--ds-muted); }
.ds-empty > i { font-size: 44px; color: #c5cbe0; display: block; margin-bottom: 8px; }
.table-responsive { border-radius: 12px; }

/* Form */
.ds-upload { border: 2px dashed #cfd6e6; border-radius: 12px; padding: 14px; text-align: center; background: #fafbfe; }
.ds-upload img { max-width: 100%; max-height: 180px; border-radius: 8px; display: block; margin: 0 auto 10px; }
.ds-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.ds-gallery figure { position: relative; margin: 0; }
.ds-gallery img { width: 100%; height: 95px; object-fit: cover; border-radius: 10px; }
.ds-gallery button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(239,56,38,.92); color: #fff; display: grid; place-items: center; }
.ds-editor { background: #fff; border-radius: 0 0 8px 8px; min-height: 260px; font-size: 15px; }
.ql-container.ds-editor { height: auto; }
.ds-editor .ql-editor { min-height: 258px; }
.ql-toolbar.ql-snow { border-radius: 8px 8px 0 0; border-color: #d5d5d5; background: #fafbfd; }
.ql-container.ql-snow { border-color: #d5d5d5; border-radius: 0 0 8px 8px; }
.ds-tabs { gap: 6px; border: 0; flex-wrap: wrap; }
.ds-tabs .nav-link { border: 0; border-radius: 8px; color: var(--ds-muted); font-weight: 700; padding: 9px 16px; }
.ds-tabs .nav-link.active { background: var(--ds-primary); color: #fff; }
.ds-sticky { position: sticky; top: 94px; }

.alert { border-radius: 10px; border: 0; font-weight: 600; }
.ds-demo-bar { background: #fff4e5; color: #9a5b00; font-weight: 700; font-size: 13px; text-align: center; padding: 8px 12px; }

/* Grafik */
.ds-bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 10px; }
.d-flex > .ds-bars { flex: 1 0 180px; height: auto; } /* yan kart uzunsa grafik boşluğu doldursun */
.ds-bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.ds-bars span.bar { width: 100%; max-width: 34px; background: linear-gradient(180deg, #4880ff, #8fb0ff); border-radius: 6px 6px 2px 2px; min-height: 4px; }
.ds-bars small { font-size: 11px; color: var(--ds-muted); font-weight: 700; }
.ds-progress { height: 6px; background: #eef1f7; border-radius: 4px; overflow: hidden; min-width: 90px; }
.ds-progress span { display: block; height: 100%; background: var(--ds-primary); border-radius: 4px; }

/* Giriş */
.ds-login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--ds-primary); position: relative; overflow: hidden; }
.ds-login::before, .ds-login::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.ds-login::before { width: 620px; height: 620px; left: -180px; top: -220px; }
.ds-login::after { width: 520px; height: 520px; right: -160px; bottom: -200px; }
.ds-login-card { position: relative; z-index: 1; width: 100%; max-width: 520px; background: #fff; border-radius: 24px; padding: 56px 48px; }
.ds-login-card h1 { font-size: 28px; font-weight: 800; text-align: center; margin: 0 0 8px; }
.ds-login-card p.sub { text-align: center; color: var(--ds-muted); margin-bottom: 32px; }
.ds-login-card .btn-primary { width: 100%; padding: .8rem; font-size: 16px; }

/* Mobil */
.ds-backdrop { display: none; }
@media (max-width: 991.98px) {
  .ds-sidebar { transform: translateX(-100%); box-shadow: 0 0 40px rgba(0,0,0,.15); }
  body.ds-open .ds-sidebar { transform: none; }
  body.ds-open .ds-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 1035; }
  .ds-main { margin-left: 0; }
  .ds-topbar { padding: 0 16px; gap: 10px; }
  .ds-content { padding: 20px 16px; }
  .ds-page-head h1 { font-size: 24px; }
  .ds-user .meta { display: none; }
  .ds-search { display: none; }
  .ds-sticky { position: static; }
}
@media (max-width: 575.98px) {
  .ds-login-card { padding: 36px 22px; }
  .ds-card { padding: 18px; }
  .ds-top-actions { gap: 16px; }
}
.min-w-0 { min-width: 0; }
.ds-pill { flex-shrink: 0; }

/* ---------- Sol menü araçları: durum + saat, hızlı arama, hızlı işlemler ---------- */
.ds-sbtools { padding: 0 14px 10px; display: grid; gap: 10px; flex-shrink: 0; }
.ds-qstats { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: #475569; }
.ds-qstat { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; min-height: 28px; }
a.ds-qstat:hover { color: #0B1F44; }
.ds-qstat .ti { font-size: 15px; color: #64748B; }
.ds-sdot { width: 8px; height: 8px; border-radius: 50%; background: #15803D; box-shadow: 0 0 0 3px rgba(21,128,61,.15); }
.ds-sdot.is-warn { background: #A15C07; box-shadow: 0 0 0 3px rgba(161,92,7,.15); }
.ds-sdot.is-dan { background: #B91C1C; box-shadow: 0 0 0 3px rgba(185,28,28,.15); }
@media (prefers-reduced-motion: no-preference) { .ds-sdot.is-ok { animation: dsPulse 2.4s ease-in-out infinite; } @keyframes dsPulse { 50% { box-shadow: 0 0 0 6px rgba(21,128,61,0); } } }
.ds-sbsearch { display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; padding: 0 8px 0 12px; border: 1px solid #E2E8F0; border-radius: 10px; background: #F8FAFC; color: #64748B; font: inherit; font-size: 13.5px; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.ds-sbsearch:hover { border-color: #93C5FD; background: #fff; }
.ds-sbsearch:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; }
.ds-sbsearch-ph { flex: 1; }
.ds-sbsearch-k { display: inline-flex; gap: 3px; }
.ds-sbsearch kbd { font: 600 10.5px/1 inherit; color: #475569; background: #fff; border: 1px solid #E2E8F0; border-bottom-width: 2px; border-radius: 5px; padding: 3px 5px; }
.ds-qactions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ds-qa { position: relative; height: 40px; display: grid; place-items: center; border: 1px solid #E2E8F0; border-radius: 10px; background: #fff; color: #334155; font-size: 18px; text-decoration: none; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.ds-qa:hover { border-color: #93C5FD; color: #2563EB; background: #EFF6FF; }
.ds-qa:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; }
.ds-qa-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #2563EB; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.ds-qa-dot { position: absolute; top: 7px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: #2563EB; border: 2px solid #fff; }
.ds-mini .ds-sbtools { padding: 0 10px 10px; }
.ds-mini .ds-qstats, .ds-mini .ds-sbsearch-ph, .ds-mini .ds-sbsearch-k { display: none; }
.ds-mini .ds-sbsearch { justify-content: center; padding: 0; }
.ds-mini .ds-qactions { grid-template-columns: 1fr; }

/* ---------- Sistem Sağlığı kartı ---------- */
.gsh { background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 16px 18px; margin: 0 0 16px; color: #0F172A; min-width: 0; }
.gsh-warn { border-color: #F3C98B; } .gsh-dan { border-color: #F2A7A7; }
.gsh-hd { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gsh-ic { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; display: grid; place-items: center; background: #E8F7EE; color: #15803D; font-size: 20px; }
.gsh-warn .gsh-ic { background: #FEF3E2; color: #A15C07; } .gsh-dan .gsh-ic { background: #FDECEC; color: #B91C1C; }
.gsh-hd-t { flex: 1 1 auto; min-width: 0; } .gsh-hd-t h2 { margin: 0; font-size: 16px; font-weight: 700; } .gsh-hd-t small { color: #475569; font-size: 13px; }
.gsh-lnk { font-size: 13.5px; font-weight: 600; color: #2563EB; white-space: nowrap; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.gsh-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 4px 18px; }
.gsh-it { display: grid; grid-template-columns: 20px 1fr; gap: 2px 8px; align-items: start; padding: 10px 0; border-top: 1px solid #EEF2F7; font-size: 13.5px; min-width: 0; }
.gsh-it > i { grid-row: span 2; margin-top: 1px; font-size: 18px; }
.gsh-it-ok > i { color: #15803D; } .gsh-it-warn > i { color: #A15C07; } .gsh-it-dan > i { color: #B91C1C; } .gsh-it-na > i { color: #94A3B8; }
.gsh-l { font-weight: 600; overflow-wrap: anywhere; } .gsh-v { color: #475569; overflow-wrap: anywhere; }
.gsh-it-dan .gsh-v { color: #B91C1C; font-weight: 600; } .gsh-it-warn .gsh-v { color: #92400E; }
.gsh-det { margin-top: 12px; font-size: 13px; color: #475569; } .gsh-det summary { cursor: pointer; font-weight: 600; color: #0F172A; min-height: 36px; display: flex; align-items: center; }
.gsh-pre { margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: #F8FAFC; border: 1px solid #E2E8F0; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-all; }
@media (max-width: 575.98px) { .gsh { padding: 14px; } .gsh-list { grid-template-columns: 1fr; } }

/* ---------- Fotoğraf ızgarası + mobil kart tablo ---------- */
.ds-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.ds-photo-grid figure { margin: 0; background: #f5f6fa; border-radius: 12px; overflow: hidden; border: 1px solid #ececec; }
.ds-photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.ds-photo-grid figcaption { padding: 8px 12px; font-weight: 700; font-size: 13px; }
.ds-tabs.flex-nowrap { flex-wrap: nowrap; padding-bottom: 4px; }
.ds-actions a, .ds-actions button { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
@media (max-width: 767.98px) {
  .ds-table-cards thead { display: none; }
  .ds-table-cards, .ds-table-cards tbody, .ds-table-cards tr, .ds-table-cards td { display: block; width: 100%; }
  .ds-table-cards tr { border: 1px solid #ececec; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; background: #fff; }
  .ds-table-cards tbody td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; }
  .ds-table-cards tbody td[data-label]::before { content: attr(data-label); font-weight: 700; color: #767676; font-size: 12px; text-align: left; flex-shrink: 0; }
  .ds-table-cards tbody td:last-child { justify-content: flex-end; border-top: 1px solid #f0f0f0; margin-top: 6px; padding-top: 8px; }
  .ds-table-cards tbody tr:hover td { background: transparent; }
  .ds-page-head { flex-wrap: wrap; gap: 12px; }
}
.ds-burger, .ds-icon-btn { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
@media (max-width: 991.98px) { .ds-tabs .nav-link { min-height: 44px; } .ds-crumb a { display: inline-block; padding: 6px 0; } }
@media (max-width: 991.98px) { .ds-qstat { min-height: 44px; } .ql-toolbar.ql-snow button { width: 40px; height: 40px; } }

/* ---------- Test düzeltmeleri (11.2026) ---------- */
/* Sol menü uzun: ince ama görünür kaydırma çubuğu */
.ds-nav { scrollbar-width: thin; scrollbar-color: #c3cad8 transparent; }
.ds-nav::-webkit-scrollbar { width: 6px; }
.ds-nav::-webkit-scrollbar-thumb { background: #c3cad8; border-radius: 6px; }
.ds-nav::-webkit-scrollbar-thumb:hover { background: #9aa4b8; }
/* Hızlı işlemler: ikon + kısa etiket (dokunmatikte title görünmez) */
.ds-qa { height: auto; min-height: 48px; padding: 6px 2px; gap: 2px; align-content: center; }
.ds-qa-t { font-size: 10.5px; font-weight: 700; line-height: 1; color: #64748B; }
.ds-qa:hover .ds-qa-t { color: inherit; }
.ds-mini .ds-qa-t { display: none; }
/* İki satırlı hücre (Profil, Tarih) */
.ds-cell2 { display: inline-flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.ds-cell2 small { font-size: 12px; }
/* Durum sekmeleri her ekranda alt satıra sarılır (yatay kesilme yok) */
.ds-tabs-wrap { flex-wrap: wrap; row-gap: 6px; }
.ds-tabs-wrap .nav-link { white-space: nowrap; }
.ds-anchor { scroll-margin-top: 86px; }
.ds-search-btn { border: 0; background: none; padding: 0; }
.ds-bars small span { font-weight: 600; opacity: .8; }
.ds-toggle { display: inline-flex; align-items: center; }
@media (max-width: 991.98px) {
  /* Mobil arama: sol menüdeki "Hızlı arama" veya üstteki büyüteç üst çubukta arama kutusunu açar */
  body.ds-search-open .ds-search { display: block; position: absolute; left: 64px; right: 16px; top: 50%; transform: translateY(-50%); max-width: none; z-index: 10; background: #fff; border-radius: 22px; box-shadow: 0 0 0 6px #fff; }
  body.ds-search-open .ds-search input { height: 44px; background: #fff; }
  .ds-sbsearch-k { display: none; } /* telefonda klavye kısayolu ipucu anlamsız */
  .ds-toggle { min-height: 44px; min-width: 44px; }
  .ds-bars { gap: 4px; }
  .ds-bars small { font-size: 10px; text-align: center; line-height: 1.15; }
  .ds-bars small span { display: block; }
}
@media (pointer: coarse) { .ds-sbsearch-k { display: none; } }
@media (max-width: 575.98px) {
  /* Stat kartları: ikon üstte, etiket sarılabilir, sayı okunur */
  .ds-stat { flex-direction: column-reverse; justify-content: flex-end; gap: 10px; }
  .ds-stat .ico { width: 40px; height: 40px; border-radius: 12px; font-size: 20px; }
  .ds-stat .lbl { font-size: 13px; line-height: 1.3; }
  .ds-stat .num { font-size: 24px; margin-top: 4px; }
  .ds-tabs .nav-link { padding: 9px 12px; }
}
/* 1366 tablo: işlem sütunu taşmasın */
@media (min-width: 768px) { .ds-table td.text-end { width: 1%; } }

/* Mobil yapışkan kaydet çubuğu (crud_form) */
.ds-savebar { position: sticky; bottom: 0; z-index: 20; display: flex; gap: 8px; margin: 16px -12px 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid #e6e8ee; box-shadow: 0 -8px 20px -12px rgba(15,23,42,.25); }
.ds-savebar .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; }
@media (max-width: 991.98px) {
  .ds-savebar-inline { position: sticky; bottom: 0; z-index: 20; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid #e6e8ee; }
  .ds-savebar-inline .btn { min-height: 48px; flex: 1 1 auto; }
  /* Dokunma hedefleri: 44px (Quill araç çubuğu, galeri silme, anahtarlar, onay kutuları) */
  .ql-toolbar.ql-snow { display: flex; flex-wrap: wrap; gap: 2px; }
  .ql-toolbar.ql-snow .ql-formats { margin-right: 6px !important; display: inline-flex; flex-wrap: wrap; }
  .ql-toolbar.ql-snow button { width: 44px !important; height: 44px !important; padding: 10px !important; }
  .ql-toolbar.ql-snow .ql-picker { height: 44px; }
  .ql-toolbar.ql-snow .ql-picker-label { display: flex; align-items: center; }
  .ds-gallery button { width: 44px; height: 44px; top: 4px; right: 4px; font-size: 18px; }
  .ds-gallery img { height: 110px; }
  .ds .form-check { min-height: 44px; display: flex; align-items: center; gap: 10px; padding-left: 0; }
  .ds .form-check .form-check-input { float: none; margin: 0; width: 1.4em; height: 1.4em; flex: none; }
  .ds .form-check-label { padding: 8px 0; cursor: pointer; }
  /* Anahtar (switch) kuralları onay kutusundan SONRA ve daha özgül: aksi halde .form-check kuralı genişliği 1.4em yapıp anahtarı yuvarlağa çeviriyordu */
  .ds .form-check.form-switch, .ds .form-switch { min-height: 44px; display: flex; align-items: center; gap: 10px; padding-left: 0; }
  .ds .form-check.form-switch .form-check-input, .ds .form-switch .form-check-input { width: 3.2em; height: 1.75em; margin: 0; float: none; flex: none; border-radius: 2em; }
}
/* Sekme adet rozetleri (gelen kutusu) */
.ds-tab-n { display: inline-block; min-width: 24px; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(15,23,42,.08); color: inherit; font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.5; }
.ds-tabs .nav-link.active .ds-tab-n { background: rgba(255,255,255,.25); }
.ds-tab-u { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: #ef3826; color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.5; }
/* Liste süzgeci (modül 'filter' kancası) */
.ds-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.ds-filter a { min-height: 44px; display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--ds-line); background: #fff; color: var(--ds-ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.ds-filter a.on { background: var(--ds-primary); border-color: var(--ds-primary); color: #fff; }
/* Dokunma hedefleri ≥ 44px (form denetimleri, düğmeler, liste bağlantıları) */
.ds .form-control:not(.form-control-sm):not(.form-control-color), .ds .form-select:not(.form-select-sm), .ds .btn:not(.btn-sm) { min-height: 44px; }
.ds-table td a { min-height: 44px; display: inline-flex; align-items: center; }
