/*
 * Dijital Smart Redesign (Figma: N4Is4hzefxljIBDGpUMf8M) — Ant Design token'ları ile birebir.
 * colorPrimary #1677ff · borderRadius 6/8/4 · controlHeight 32/40/24 · fontSize 14/12/16 · font: SF Pro
 * Eski sayfalar app.css ile çalışmaya devam eder; yeni kabuk ve yeni formlar "ds-" sınıflarını kullanır.
 */
:root {
  --ds-primary: #1677ff;
  --ds-primary-hover: #4096ff;
  --ds-primary-active: #0958d9;
  --ds-primary-bg: #e6f4ff;
  --ds-error: #ff4d4f;
  --ds-warning: #faad14;
  --ds-success: #52c41a;
  --ds-text: rgba(0, 0, 0, 0.88);
  --ds-text-base: #0f172a;
  --ds-text-2: rgba(0, 0, 0, 0.65);
  --ds-text-3: rgba(0, 0, 0, 0.45);
  --ds-text-4: rgba(0, 0, 0, 0.25);
  --ds-label: rgba(17, 24, 39, 0.65);
  --ds-placeholder: rgba(17, 24, 39, 0.45);
  --ds-border: #e2e8f0;
  --ds-control-border: #cbd5e1;
  --ds-disabled-bg: #f1f4f8;
  --ds-disabled-border: #d9d9d9;
  --ds-card-head: #f8fafc;
  --ds-card-body-muted: #f6f7f9;
  --ds-page-bg: #f5f7fa;
  --ds-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ds-sider: #111827;
  --ds-sider-sub: #0b1220;
  --ds-sider-sel: #1f2a3d;
}

/* ───────────── Kabuk ───────────── */
.ds-app { display: flex; min-height: 100vh; background: var(--ds-page-bg); font-family: var(--ds-font); color: var(--ds-text); font-size: 14px; line-height: 22px; }
.ds-app *, .ds-app *::before, .ds-app *::after { box-sizing: border-box; }

.ds-sider { position: fixed; inset: 0 auto 0 0; width: 254px; background: var(--ds-sider); display: flex; flex-direction: column; z-index: 50; transition: width .2s; }
.ds-sider.collapsed { width: 72px; }
.ds-sider-logo { height: 64px; flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 0 16px 0 14px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.ds-logo-badge { width: 32px; height: 22px; border-radius: 8px; background: var(--ds-primary); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ds-logo-text { color: #fff; font-size: 16px; font-weight: 700; line-height: 24px; flex: 1; white-space: nowrap; overflow: hidden; }
.ds-sider-fold { width: 28px; height: 28px; border: 0; background: transparent; color: rgba(255,255,255,0.45); border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ds-sider-fold:hover { color: #fff; background: rgba(255,255,255,0.06); }
.ds-sider.collapsed .ds-logo-text, .ds-sider.collapsed .ds-menu-label, .ds-sider.collapsed .ds-menu-arrow, .ds-sider.collapsed .ds-menu-badge, .ds-sider.collapsed .ds-submenu { display: none; }
.ds-sider.collapsed .ds-sider-logo { justify-content: center; padding: 0; flex-direction: column; gap: 4px; }

.ds-menu { flex: 1; overflow-y: auto; padding: 8px 4px 16px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.ds-menu-item { display: flex; align-items: center; gap: 12px; height: 40px; margin: 4px 0; padding: 0 16px 0 24px; border-radius: 8px; color: rgba(255,255,255,0.65); text-decoration: none; cursor: pointer; user-select: none; border: 0; background: transparent; width: 100%; font: inherit; text-align: left; }
.ds-sider.collapsed .ds-menu-item { padding: 0; justify-content: center; }
.ds-menu-item:hover { color: #fff; }
.ds-menu-item.active { color: #fff; background: var(--ds-primary); }
.ds-menu-item.parent-active { color: #fff; }
.ds-menu-icon { width: 14px; font-size: 14px; display: inline-flex; justify-content: center; flex-shrink: 0; }
.ds-menu-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-menu-arrow { font-size: 10px; transition: transform .2s; }
.ds-menu-item.open .ds-menu-arrow { transform: rotate(180deg); }
.ds-menu-badge { background: var(--ds-error); color: #fff; font-size: 11px; line-height: 14px; height: 14px; min-width: 22px; padding: 0 6px; border-radius: 7px; text-align: center; margin-left: -4px; flex: 0 0 auto; }
.ds-menu-item .ds-menu-badge + .ds-menu-spacer { flex: 1; }
.ds-submenu { background: var(--ds-sider-sub); margin: 0 -4px; padding: 0 4px; }
.ds-submenu-item { display: flex; align-items: center; height: 40px; margin: 4px 0; padding: 0 16px 0 48px; border-radius: 8px; color: rgba(255,255,255,0.65); text-decoration: none; white-space: nowrap; }
.ds-submenu-item:hover { color: #fff; }
.ds-submenu-item.active { background: var(--ds-sider-sel); color: #fff; }
.ds-menu-soon { opacity: .55; }

.ds-main { flex: 1; margin-left: 254px; min-width: 0; display: flex; flex-direction: column; transition: margin-left .2s; }
.ds-main.expanded { margin-left: 72px; }

.ds-header { position: sticky; top: 0; z-index: 40; height: 64px; background: #fbfbfb; border-bottom: 1px solid var(--ds-border); display: flex; align-items: center; gap: 8px; padding: 0 24px; }
.ds-header-search { position: relative; width: 479px; max-width: 45vw; }
.ds-header-search input { width: 100%; height: 32px; border: 1px solid var(--ds-control-border); border-radius: 6px; padding: 4px 11px; font: inherit; color: var(--ds-text); background: #fff; outline: none; }
.ds-header-search input::placeholder { color: var(--ds-placeholder); }
.ds-header-search input:focus { border-color: var(--ds-primary); box-shadow: 0 0 0 2px rgba(5,145,255,0.1); }
.ds-search-results { position: absolute; top: 36px; left: 0; right: 0; background: #fff; border-radius: 8px; box-shadow: 0 6px 16px rgba(0,0,0,.08), 0 3px 6px -4px rgba(0,0,0,.12), 0 9px 28px 8px rgba(0,0,0,.05); padding: 4px; max-height: 320px; overflow-y: auto; }
.ds-search-results a, .ds-search-results div.empty { display: block; padding: 5px 12px; border-radius: 4px; color: var(--ds-text); text-decoration: none; }
.ds-search-results a:hover, .ds-search-results a.hl { background: rgba(0,0,0,.04); }
.ds-search-results small { color: var(--ds-text-3); margin-left: 6px; }
.ds-header-right { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.ds-icon-btn { position: relative; width: 40px; height: 40px; border: 1px solid var(--ds-control-border); border-radius: 8px; background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ds-text); font-size: 16px; }
.ds-icon-btn:hover { color: var(--ds-primary-hover); border-color: var(--ds-primary-hover); }
.ds-icon-btn .ds-dot { position: absolute; top: -6px; right: -6px; background: var(--ds-error); color: #fff; border-radius: 10px; min-width: 20px; height: 20px; font-size: 12px; line-height: 20px; padding: 0 6px; text-align: center; box-shadow: 0 0 0 1px #fff; }
.ds-text-btn { width: 32px; height: 32px; border: 0; background: transparent; border-radius: 6px; cursor: pointer; color: var(--ds-text); font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.ds-text-btn:hover { background: rgba(0,0,0,.06); }
.ds-pop-wrap { position: relative; }
.ds-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 260px; background: #fff; border-radius: 8px; box-shadow: 0 6px 16px rgba(0,0,0,.08), 0 3px 6px -4px rgba(0,0,0,.12), 0 9px 28px 8px rgba(0,0,0,.05); z-index: 60; overflow: hidden; }
.ds-pop-head { padding: 12px 16px; border-bottom: 1px solid var(--ds-border); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ds-pop-item { display: flex; gap: 10px; align-items: center; padding: 8px 16px; color: var(--ds-text); text-decoration: none; cursor: pointer; border: 0; background: transparent; width: 100%; font: inherit; text-align: left; }
.ds-pop-item:hover { background: rgba(0,0,0,.04); }
.ds-pop-list { max-height: 380px; overflow-y: auto; }
.ds-notif { display: flex; gap: 10px; padding: 10px 16px; cursor: pointer; border-bottom: 1px solid #f1f5f9; }
.ds-notif:hover { background: rgba(0,0,0,.03); }
.ds-notif.unread { background: var(--ds-primary-bg); }
.ds-notif .t { font-weight: 600; }
.ds-notif .m, .ds-notif .d { color: var(--ds-text-2); font-size: 12px; line-height: 20px; }

.ds-content { flex: 1; padding: 24px; min-width: 0; }
.ds-content > .dn-alert { margin-bottom: 16px; }

/* Sayfa aksiyon çubuğu (Page Actions Bar) */
.ds-pagebar { margin: -24px -24px 24px; min-height: 72px; padding: 16px 24px; border-bottom: 1px solid var(--ds-border); background: #fbfbfb; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; position: sticky; top: 64px; z-index: 30; }
.ds-breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--ds-text-3); font-size: 14px; }
.ds-breadcrumb a { color: var(--ds-text-3); text-decoration: none; }
.ds-breadcrumb a:hover { color: var(--ds-text); }
.ds-breadcrumb .cur { color: var(--ds-text); }
.ds-pagebar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ───────────── Düğmeler ───────────── */
.ds-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 32px; padding: 0 15px; border-radius: 6px; border: 1px solid var(--ds-control-border); background: #fff; color: var(--ds-text); font: inherit; font-size: 14px; line-height: 22px; cursor: pointer; white-space: nowrap; box-shadow: 0 2px 0 rgba(0,0,0,0.02); transition: all .2s; text-decoration: none; }
.ds-btn:hover:not(:disabled) { color: var(--ds-primary-hover); border-color: var(--ds-primary-hover); }
.ds-btn:disabled { cursor: not-allowed; color: var(--ds-text-4); background: rgba(0,0,0,.04); border-color: var(--ds-disabled-border); box-shadow: none; }
.ds-btn.lg { height: 40px; padding: 0 15px; font-size: 16px; line-height: 24px; border-radius: 8px; }
.ds-btn.sm { height: 24px; padding: 0 7px; border-radius: 4px; }
.ds-btn.icon { width: 24px; padding: 0; }
.ds-btn.primary { background: var(--ds-primary); border-color: var(--ds-primary); color: #fff; box-shadow: 0 2px 0 rgba(5,145,255,0.1); }
.ds-btn.primary:hover:not(:disabled) { background: var(--ds-primary-hover); border-color: var(--ds-primary-hover); color: #fff; }
.ds-btn.primary:disabled { background: rgba(0,0,0,.04); color: var(--ds-text-4); border-color: var(--ds-disabled-border); }
.ds-btn.outlined { border-color: var(--ds-primary); color: var(--ds-primary); box-shadow: 0 2px 0 rgba(5,145,255,0.1); }
.ds-btn.outlined:hover:not(:disabled) { border-color: var(--ds-primary-hover); color: var(--ds-primary-hover); }
.ds-btn.dashed { border-style: dashed; border-color: var(--ds-primary); color: var(--ds-primary); }
.ds-btn.link { border-color: transparent; background: transparent; box-shadow: none; color: var(--ds-primary); }
.ds-btn.link:hover:not(:disabled) { color: var(--ds-primary-hover); border-color: transparent; }
.ds-btn.danger { border-color: var(--ds-error); color: var(--ds-error); box-shadow: 0 2px 0 rgba(255,77,79,0.1); }
.ds-btn.danger:hover:not(:disabled) { border-color: #ff7875; color: #ff7875; }
.ds-btn.muted { background: var(--ds-disabled-bg); color: rgba(15,23,42,0.6); box-shadow: none; }
/* Ücretli buton (kontör harcayan işlemler) */
.ds-btn.paid { position: relative; overflow: hidden; height: 40px; border: 0; border-radius: 8px; padding: 0 16px; color: #fff; font-weight: 700; font-size: 16px; line-height: 24px; background-image: linear-gradient(167deg, #6d28d9 0%, #9333ea 55%, #c084fc 100%); box-shadow: none; }
.ds-btn.paid::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 20px; background: linear-gradient(to bottom, rgba(255,255,255,.28), rgba(255,255,255,0)); pointer-events: none; }
.ds-btn.paid:hover:not(:disabled) { color: #fff; filter: brightness(1.06); }
.ds-btn.paid:disabled { opacity: .4; background-image: linear-gradient(167deg, #6d28d9 0%, #9333ea 55%, #c084fc 100%); color: #fff; }
.ds-spin { animation: ds-spin 1s linear infinite; }
@keyframes ds-spin { to { transform: rotate(360deg); } }

/* ───────────── Kart ───────────── */
.ds-card { background: #fff; border: 1px solid var(--ds-border); border-radius: 8px; min-width: 0; display: flex; flex-direction: column; }
.ds-card-head { min-height: 40px; background: var(--ds-card-head); border-bottom: 1px solid var(--ds-border); border-radius: 8px 8px 0 0; padding: 7px 24px; display: flex; align-items: center; gap: 8px; }
.ds-card-title { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ds-text-base); margin: 0; }
.ds-card-sub { font-size: 12px; line-height: 20px; color: var(--ds-text-3); }
.ds-card-extra { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.ds-card-body { padding: 24px; border-radius: 0 0 8px 8px; flex: 1; }
.ds-card-body.muted { background: var(--ds-card-body-muted); }

/* ───────────── Form kontrolleri ───────────── */
.ds-label { display: block; font-size: 12px; line-height: 20px; color: var(--ds-label); margin-bottom: 0; }
.ds-label .req { color: var(--ds-error); margin-left: 2px; }
.ds-input, .ds-select, .ds-textarea { width: 100%; height: 32px; border: 1px solid var(--ds-control-border); border-radius: 6px; background: #fff; padding: 4px 11px; font: inherit; font-size: 14px; line-height: 22px; color: var(--ds-text); outline: none; transition: border-color .2s, box-shadow .2s; }
.ds-input::placeholder, .ds-textarea::placeholder { color: var(--ds-placeholder); }
.ds-input:hover, .ds-select:hover, .ds-textarea:hover { border-color: var(--ds-primary-hover); }
.ds-input:focus, .ds-select:focus, .ds-textarea:focus { border-color: var(--ds-primary); box-shadow: 0 0 0 2px rgba(5,145,255,0.1); }
.ds-input:disabled, .ds-select:disabled, .ds-input[readonly].locked { background: var(--ds-disabled-bg); border-color: var(--ds-disabled-border); color: var(--ds-text); cursor: not-allowed; }
.ds-input.lg { height: 40px; border-radius: 8px; padding: 7px 11px; font-size: 16px; line-height: 24px; }
.ds-input.error, .ds-select.error { border-color: var(--ds-error); }
.ds-select { appearance: none; -webkit-appearance: none; padding-right: 30px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='64 64 896 896' fill='rgba(0,0,0,0.25)'%3E%3Cpath d='M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 12px; }
.ds-select.placeholder { color: var(--ds-placeholder); }
.ds-textarea { height: auto; min-height: 54px; resize: vertical; }
input.ds-input[type="date"] { padding-right: 8px; }
input.ds-input[type="date"]::-webkit-calendar-picker-indicator { opacity: .35; cursor: pointer; }
.ds-borderless { border-color: transparent !important; background: transparent !important; box-shadow: none !important; padding-left: 4px; padding-right: 4px; }
.ds-borderless.ds-select { padding-right: 18px; background-position: right 2px center; background-image: none; }
.ds-borderless:hover, .ds-borderless:focus { border-color: var(--ds-control-border) !important; background: #fff !important; }
.ds-num { text-align: right; font-variant-numeric: tabular-nums; }

.ds-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border: 1px solid var(--ds-control-border); border-radius: 4px; background: #fafafa; color: var(--ds-text); font-size: 12px; line-height: 20px; white-space: nowrap; }
.ds-tag.blue { background: var(--ds-primary-bg); border-color: #91caff; color: var(--ds-primary); }
.ds-tag.green { background: #f6ffed; border-color: #b7eb8f; color: #389e0d; }
.ds-tag.orange { background: #fff7e6; border-color: #ffd591; color: #d46b08; }
.ds-tag.red { background: #fff2f0; border-color: #ffccc7; color: #cf1322; }

.ds-switch { position: relative; display: inline-flex; align-items: center; height: 22px; min-width: 44px; border-radius: 100px; background: rgba(0,0,0,0.25); border: 0; cursor: pointer; padding: 0; transition: background .2s; flex-shrink: 0; }
.ds-switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 9px; background: #fff; box-shadow: 0 2px 4px rgba(0,35,11,0.2); transition: left .2s; }
.ds-switch:hover:not(:disabled) { background: rgba(0,0,0,0.45); }
.ds-switch.on { background: var(--ds-primary); }
.ds-switch.on:hover:not(:disabled) { background: var(--ds-primary-hover); }
.ds-switch.on::after { left: calc(100% - 20px); }
.ds-switch.sm { height: 16px; min-width: 28px; }
.ds-switch.sm::after { width: 12px; height: 12px; }
.ds-switch.sm.on::after { left: calc(100% - 14px); }
.ds-switch:disabled { cursor: not-allowed; opacity: .65; }
.ds-switch-label { display: inline-flex; align-items: center; gap: 8px; color: rgba(17,24,39,0.88); cursor: pointer; user-select: none; }

.ds-tabs { display: flex; align-items: stretch; border-bottom: 1px solid var(--ds-border); gap: 32px; }
.ds-tab { position: relative; padding: 8px 0; background: none; border: 0; font: inherit; color: var(--ds-text); cursor: pointer; }
.ds-tab:hover { color: var(--ds-primary-hover); }
.ds-tab.active { color: var(--ds-primary); }
.ds-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ds-primary); }
.ds-tabs-extra { margin-left: auto; display: flex; align-items: center; padding-left: 16px; }

.ds-alert { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; border-radius: 8px; border: 1px solid #91caff; background: var(--ds-primary-bg); margin-bottom: 16px; }
.ds-alert.error { border-color: #ffccc7; background: #fff2f0; }
.ds-alert.warning { border-color: #ffe58f; background: #fffbe6; }
.ds-alert.success { border-color: #b7eb8f; background: #f6ffed; }
.ds-alert i { margin-top: 4px; }
.ds-alert.error i { color: var(--ds-error); }
.ds-alert.warning i { color: var(--ds-warning); }
.ds-alert.success i { color: var(--ds-success); }
.ds-alert:not(.error):not(.warning):not(.success) i { color: var(--ds-primary); }
.ds-alert ul { margin: 4px 0 0; padding-left: 18px; }

/* Modal / onay */
.ds-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 100px 16px 40px; overflow-y: auto; }
.ds-mask.top { padding-top: 0; background: transparent; pointer-events: none; }
.ds-modal { width: 520px; max-width: 100%; background: #fff; border-radius: 8px; box-shadow: 0 6px 16px rgba(0,0,0,.08), 0 3px 6px -4px rgba(0,0,0,.12), 0 9px 28px 8px rgba(0,0,0,.05); padding: 20px 24px; pointer-events: auto; }
.ds-modal-head { display: flex; align-items: center; margin-bottom: 8px; }
.ds-modal-title { font-weight: 600; font-size: 16px; line-height: 24px; flex: 1; }
.ds-modal-close { width: 22px; height: 22px; border: 0; background: transparent; cursor: pointer; color: var(--ds-text-3); border-radius: 4px; font-size: 16px; }
.ds-modal-close:hover { color: var(--ds-text); background: rgba(0,0,0,.06); }
.ds-modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.ds-confirm { width: 416px; padding: 20px 24px; border-radius: 0 0 8px 8px; }
.ds-confirm .ds-modal-head i { color: var(--ds-warning); font-size: 20px; margin-right: 12px; }
.ds-confirm-body { padding-left: 32px; color: var(--ds-text); font-size: 14px; }
.ds-confirm .ds-modal-foot { margin-top: 12px; }

/* Önizleme çekmecesi */
.ds-drawer-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1000; }
.ds-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(860px, 96vw); background: #fff; z-index: 1001; display: flex; flex-direction: column; box-shadow: -6px 0 16px rgba(0,0,0,.08); }
.ds-drawer-head { height: 56px; padding: 0 24px; display: flex; align-items: center; border-bottom: 1px solid var(--ds-border); gap: 12px; }
.ds-drawer-body { flex: 1; overflow-y: auto; padding: 24px; background: var(--ds-page-bg); }

/* AutoComplete açılır listesi */
.ds-ac { position: relative; }
.ds-ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 70; background: #fff; border-radius: 8px; padding: 4px; max-height: 320px; overflow-y: auto; box-shadow: 0 6px 16px rgba(0,0,0,.08), 0 3px 6px -4px rgba(0,0,0,.12), 0 9px 28px 8px rgba(0,0,0,.05); }
.ds-ac-group { padding: 4px 12px; color: var(--ds-text-3); font-size: 12px; }
.ds-ac-opt { display: flex; gap: 10px; align-items: center; padding: 5px 12px; border-radius: 4px; cursor: pointer; }
.ds-ac-opt:hover, .ds-ac-opt.hl { background: rgba(0,0,0,.04); }
.ds-ac-opt .sub { color: var(--ds-text-3); font-size: 12px; margin-left: auto; white-space: nowrap; }
.ds-ac-empty { padding: 8px 12px; color: var(--ds-text-3); }

/* ───────────── E-Fatura yeni fatura sayfası ───────────── */
.ef-top { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 16px; margin-bottom: 16px; align-items: stretch; }
.ef-top-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ef-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ef-2col.bottom { margin-top: 16px; align-items: start; }

.ef-search-row { display: flex; gap: 16px; align-items: flex-end; }
.ef-search-row .ds-ac { flex: 1; min-width: 0; }

.ef-rail { background: #fff; border: 1px solid var(--ds-border); border-radius: 8px; display: flex; flex-direction: column; align-items: center; padding: 12px 0; cursor: pointer; }
.ef-rail:hover { border-color: var(--ds-primary-hover); }
.ef-rail-eye { color: var(--ds-primary); font-size: 22px; margin-top: 4px; }
.ef-rail-text { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--ds-primary); font-weight: 700; letter-spacing: .5px; margin-top: 20px; }
.ef-rail-bottom { margin-top: auto; color: var(--ds-text-3); font-size: 18px; }

.ef-customer-box { border: 1px solid var(--ds-border); border-radius: 6px; padding: 8px 12px; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; background: #fff; }
.ef-customer-box .name { font-weight: 700; color: rgba(17,24,39,0.88); }
.ef-customer-box .vkn { font-size: 12px; line-height: 20px; color: var(--ds-text-2); }
.ef-customer-box .src { margin-left: auto; font-size: 12px; color: var(--ds-text-3); white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.ef-hrow { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 12px; }
.ef-hrow:last-child { margin-bottom: 0; }
.ef-hrow > label { color: var(--ds-text-base); }
.ef-hrow .req { color: var(--ds-error); }
.ef-pair { display: flex; gap: 16px; min-width: 0; }
.ef-pair > * { flex: 1; min-width: 0; }

.ef-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 16px; }
.ef-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Satır tablosu */
.ef-table-wrap { overflow-x: auto; }
.ef-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 1100px; }
.ef-table th { background: #fafafa; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ds-text-base); text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--ds-border); border-right: 1px solid var(--ds-border); vertical-align: middle; }
.ef-table th.r, .ef-table td.r { text-align: right; }
.ef-table th.c, .ef-table td.c { text-align: center; }
.ef-table td { padding: 12px 8px; border-bottom: 1px solid var(--ds-border); border-right: 1px solid var(--ds-border); vertical-align: middle; font-size: 14px; }
.ef-table th:last-child, .ef-table td:last-child { border-right: 0; }
.ef-table td.calc { background: rgba(15,23,42,0.04); color: var(--ds-text-2); font-size: 16px; line-height: 24px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ef-table td.no { font-size: 16px; text-align: center; color: #000; }
.ef-table tr.extra td { background: #fcfcfd; }
.ef-table .ds-input, .ef-table .ds-select { min-width: 0; }
.ef-row-actions { display: flex; gap: 4px; }
.ef-row-actions .ds-btn.on { border-color: var(--ds-primary); color: var(--ds-primary); }
.ef-table-foot { display: flex; gap: 8px; align-items: center; padding: 8px 16px; flex-wrap: wrap; }
.ef-money-cell { display: flex; align-items: center; gap: 2px; }
.ef-money-cell span { color: var(--ds-text-3); }

/* Notlar / ödeme */
.ef-notes { padding: 24px 24px 24px 24px; }
.ef-notes-panel { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; }
.ef-inline { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.ef-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }

/* Toplamlar */
.ef-totals { background: #fff; border: 1px solid var(--ds-border); border-radius: 8px; padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.ef-totals-head { display: flex; justify-content: space-between; align-items: center; }
.ef-totals-head strong { font-size: 16px; line-height: 24px; }
.ef-divider { height: 1px; background: var(--ds-border); }
.ef-trow { display: flex; justify-content: space-between; gap: 16px; }
.ef-trow > span:first-child { color: var(--ds-text-2); }
.ef-trow > span:last-child { color: var(--ds-text); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ef-trow small { color: var(--ds-text-3); font-size: 14px; }
.ef-amounts { display: flex; flex-direction: column; gap: 6px; }
.ef-due { background: rgba(0,0,0,0.02); border: 1px solid var(--ds-border); border-radius: 6px; padding: 10px 16px; display: flex; flex-direction: column; gap: 2px; }
.ef-due .row { display: flex; justify-content: space-between; font-weight: 700; }
.ef-due .row span:last-child { color: var(--ds-primary); font-size: 16px; line-height: 24px; }
.ef-due .words { font-size: 12px; line-height: 20px; color: var(--ds-text-2); }

/* Önizleme belgesi */
.ef-doc { background: #fff; border: 1px solid var(--ds-border); border-radius: 8px; padding: 32px; font-size: 13px; line-height: 20px; }
.ef-doc h2 { font-size: 20px; margin: 0 0 4px; }
.ef-doc .parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 20px 0; }
.ef-doc .box { border: 1px solid var(--ds-border); border-radius: 6px; padding: 12px; }
.ef-doc .box b { display: block; margin-bottom: 4px; }
.ef-doc table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.ef-doc th, .ef-doc td { border: 1px solid var(--ds-border); padding: 6px 8px; }
.ef-doc th { background: #fafafa; text-align: left; }

@media (max-width: 1200px) {
  .ef-2col, .ef-fields { grid-template-columns: minmax(0, 1fr); }
  .ef-top { grid-template-columns: minmax(0, 1fr); }
  .ef-rail { flex-direction: row; justify-content: center; gap: 12px; padding: 8px; }
  .ef-rail-text { writing-mode: horizontal-tb; transform: none; margin-top: 0; }
  .ef-rail-bottom { display: none; }
}
@media (max-width: 900px) {
  .ds-sider { transform: translateX(-100%); transition: transform .2s; }
  .ds-sider.mobile-open { transform: none; width: 254px; }
  .ds-main, .ds-main.expanded { margin-left: 0; }
  .ds-header-search { width: auto; flex: 1; max-width: none; }
  .ds-header-right { gap: 12px; }
  .ds-header-right .ds-switch, .ds-header-right .ds-lang { display: none; }
  .ef-search-row { flex-direction: column; align-items: stretch; }
  .ef-hrow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
.ds-mobile-only { display: none !important; }
@media (max-width: 900px) { .ds-mobile-only { display: inline-flex !important; } }

/* E-Arşiv: senaryo bölümleri (İnternet Satışı, Şarj …) ve anahtar satırı */
.ea-scenario { margin-bottom: 16px; padding: 12px 16px 16px; border: 1px dashed #c084fc; border-radius: 8px; background: #faf5ff; }
.ea-scenario-title { font-weight: 700; color: var(--ds-text-base); margin-bottom: 8px; }
.ea-scenario-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; }
.ea-switches { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-bottom: 16px; }
.ea-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--ds-text); user-select: none; }
.ea-check input { width: 16px; height: 16px; accent-color: var(--ds-primary); }
@media (max-width: 1200px) { .ea-scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ea-scenario-grid { grid-template-columns: minmax(0, 1fr); } }

/* E-İrsaliye: segmented, sürücü paneli, akordeon, 3'lü alan ızgarası */
.ef-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.ds-card-gap { margin-top: 16px; }
.ds-segmented { display: inline-flex; padding: 2px; border-radius: 6px; background: #f8fafc; border: 1px solid var(--ds-border); }
.ds-segmented button { border: 0; background: transparent; padding: 3px 11px; border-radius: 4px; font: inherit; color: rgba(17,24,39,0.65); cursor: pointer; }
.ds-segmented button.on { background: #fff; color: rgba(17,24,39,0.88); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 1px 6px -1px rgba(0,0,0,.04); }
.ds-panel { border: 1px solid var(--ds-border); border-radius: 8px; padding: 16px; background: #fafbfc; }
.ds-crew-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 32px; gap: 12px; margin-bottom: 8px; }
.ds-accordion { overflow: hidden; }
.ds-acc-item + .ds-acc-item { border-top: 1px solid var(--ds-border); }
.ds-acc-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 24px; border: 0; background: #fff; font: inherit; font-weight: 700; color: var(--ds-text-base); cursor: pointer; text-align: left; }
.ds-acc-head:hover { background: #fafafa; }
.ds-acc-arrow { font-size: 11px; color: var(--ds-text-3); transition: transform .2s; }
.ds-acc-item.open .ds-acc-arrow { transform: rotate(90deg); }
.ds-acc-body { padding: 8px 24px 20px 46px; }
@media (max-width: 1200px) { .ef-grid3, .ds-crew-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ef-grid3, .ds-crew-row { grid-template-columns: minmax(0, 1fr); } }

/* ───────────── Eski ekranların yeni temaya uyumu ─────────────
 * Listeler (gk-*) ve diğer eski sayfalar (dn-*) app.css değişkenlerini kullanıyor; kabuk içinde bu değişkenler
 * Figma token'larına çevrilir: mor vurgu → #1677ff, kenarlık → #e2e8f0, yazı tipi → SF Pro / sistem. */
.ds-app {
  --primary: #1677ff;
  --primary-dark: #0958d9;
  --primary-light: #69b1ff;
  --border: #e2e8f0;
  --border-soft: rgba(226, 232, 240, 0.7);
  --text-dark: #0f172a;
  --text-muted: rgba(0, 0, 0, 0.45);
  --table-hover: #f0f7ff;
  --content-bg: #f5f7fa;
  --sub-menu-bg: #f8fafc;
}
.ds-app button, .ds-app input, .ds-app select, .ds-app textarea { font-family: var(--ds-font); }
/* Liste sayfaları kendi başlık/kenar boşluklarıyla tasarlandı: kabuğun iç boşluğunu kaldır */
.ds-content:has(> .gk-page-header) { padding: 0; }
.ds-content:has(> .gk-page-header) > .ds-alert { margin: 16px 24px 0; }
.ds-app .gk-page-header { min-height: 72px; background: #fbfbfb; border-bottom-color: var(--ds-border); position: sticky; top: 64px; z-index: 30; }
.ds-app .gk-page-title { font-size: 16px; line-height: 24px; color: var(--ds-text-base); }
.ds-app .gk-stat-card, .ds-app .dn-card { border-radius: 8px; border-color: var(--ds-border); }
.ds-app .gk-search, .ds-app .gk-select-pill { border-color: var(--ds-control-border); border-radius: 6px; }
.ds-app .btn { border-radius: 6px; }
.ds-app .btn-primary { background: var(--ds-primary); border-color: var(--ds-primary); box-shadow: 0 2px 0 rgba(5,145,255,0.1); }
.ds-app .btn-primary:hover { background: var(--ds-primary-hover); border-color: var(--ds-primary-hover); }

/* ── Toplu Excel yükleme penceresi ── */
.ds-bulk { font-size: 14px; color: var(--ds-text, #1f2937); }
.ds-bulk-step { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.ds-bulk-num { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #e6f4ff; color: #1677ff; font-weight: 600; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.ds-bulk-h { font-weight: 600; margin-bottom: 2px; }
.ds-bulk-p { color: var(--ds-text-3, #64748b); font-size: 12px; line-height: 18px; }
.ds-bulk-drop { margin-top: 8px; border: 1px dashed #cbd5e1; border-radius: 8px; background: #f8fafc; padding: 18px 12px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-bulk-drop:hover, .ds-bulk-drop.over { border-color: #1677ff; background: #f0f7ff; }
.ds-bulk-drop.has { border-style: solid; background: #f6ffed; border-color: #b7eb8f; }
.ds-bulk-drop i { margin-right: 4px; }
.ds-bulk-errors { margin: 6px 0 0; padding-left: 18px; max-height: 180px; overflow: auto; font-size: 12px; line-height: 18px; }

/* ── E-Arşiv ilaç / tıbbi cihaz barkod satırları ── */
.ea-med-list { display: flex; flex-direction: column; gap: 6px; }
.ea-med-row { display: flex; gap: 6px; align-items: flex-end; padding: 6px 8px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; }
.ea-med-field { flex: 1; min-width: 0; }
.ea-med-field span { display: block; font-size: 11px; font-weight: 600; color: #92400e; margin-bottom: 2px; }
.ea-med-field .ds-input { height: 28px; font-size: 13px; }

/* ── E-İrsaliye standart kod (CPA) seçimi ── */
.ir-cpa-chip { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin-bottom: 10px; background: #f9f0ff; border: 1px solid #d3adf7; border-radius: 6px; color: #531dab; font-size: 13px; }
.ir-cpa-chip span { flex: 1; min-width: 0; color: #722ed1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ir-cpa-chip button { border: 0; background: transparent; color: #722ed1; cursor: pointer; }
.ir-cpa-list { margin-top: 6px; max-height: 240px; overflow: auto; border: 1px solid #e2e8f0; border-radius: 6px; }
.ir-cpa-item { display: flex; gap: 10px; width: 100%; text-align: left; padding: 7px 10px; border: 0; border-bottom: 1px solid #f1f5f9; background: #fff; cursor: pointer; font-size: 13px; }
.ir-cpa-item:hover { background: #f5f5f5; }
.ir-cpa-item.on { background: #e6f4ff; }
.ir-cpa-item b { flex: none; width: 70px; color: #1677ff; font-weight: 600; }
.ir-cpa-item span { color: var(--ds-text-2, #475569); }
.ir-cpa-empty { padding: 10px; color: var(--ds-text-3, #94a3b8); font-size: 12px; }

/* ── Adres Defteri ── */
.ab-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ab-table th { background: #fafafa; text-align: left; font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--ds-border, #e2e8f0); white-space: nowrap; }
.ab-table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.ab-table tr:hover td { background: #fafcff; }
.ab-table .r { text-align: right; }
.ab-table .mono { font-variant-numeric: tabular-nums; }
.ab-muted { color: var(--ds-text-3, #94a3b8); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-empty { text-align: center; padding: 28px 12px !important; color: var(--ds-text-3, #94a3b8); }
.ab-pager { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding-top: 12px; font-size: 13px; }
.ab-gib { min-height: 18px; margin-top: 3px; font-size: 12px; color: var(--ds-text-3, #94a3b8); }
.ab-addr { border: 1px solid var(--ds-border, #e2e8f0); border-radius: 8px; padding: 12px; margin-bottom: 10px; }
.ab-addr.def { border-color: #91caff; background: #f7fbff; }
.ab-addr-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ab-radio { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }

/* ── Hızlı Fatura ── */
.qf-wrap { display: flex; justify-content: center; padding: 32px 0; }
.qf-card { width: 100%; max-width: 520px; background: #fff; border: 1px solid var(--ds-border, #e2e8f0); border-radius: 12px; padding: 32px; box-shadow: 0 6px 16px rgba(0,0,0,.04); }
.qf-icon { width: 52px; height: 52px; border-radius: 12px; margin: 0 auto 14px; background: #e6f4ff; color: #1677ff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.qf-title { text-align: center; font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.qf-sub { text-align: center; font-size: 13px; color: var(--ds-text-3, #64748b); margin: 0 0 22px; }
.qf-input { height: 44px; font-size: 18px; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.qf-hint { font-size: 12px; color: var(--ds-text-3, #94a3b8); margin-top: 6px; }
.qf-submit { width: 100%; justify-content: center; margin-top: 18px; }
.qf-flow { margin-top: 24px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.qf-flow-title { font-size: 12px; font-weight: 600; color: var(--ds-text-3, #64748b); margin-bottom: 8px; text-align: center; }
.qf-steps { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ds-text-2, #475569); }
.qf-steps b { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: #e6f4ff; color: #1677ff; font-size: 11px; align-items: center; justify-content: center; margin-right: 4px; }
.qf-steps i { color: #cbd5e1; font-size: 10px; }

/* ── Raporlar ── */
.rp-builder { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
@media (max-width: 900px) { .rp-builder { grid-template-columns: 1fr; } }
.rp-h { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.rp-h span { color: var(--ds-text-3, #94a3b8); font-weight: 400; margin-right: auto; }
.rp-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; max-height: 340px; overflow: auto; border: 1px solid var(--ds-border, #e2e8f0); border-radius: 8px; padding: 10px; }
.rp-col { display: flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 4px 6px; border-radius: 4px; cursor: pointer; }
.rp-col:hover { background: #f5f5f5; }
.rp-col.on { background: #e6f4ff; color: #0958d9; }
.rp-order { list-style: decimal inside; margin: 0; padding: 8px; border: 1px solid var(--ds-border, #e2e8f0); border-radius: 8px; max-height: 340px; overflow: auto; font-size: 12.5px; }
.rp-order li { display: flex; align-items: center; gap: 4px; padding: 3px 0; }
.rp-order li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-table th { font-size: 12px; }
.rp-table td { font-size: 13px; white-space: nowrap; }
.rp-table tfoot td { background: #fafafa; border-top: 1px solid var(--ds-border, #e2e8f0); }

/* ── E-Defter ── */
.ed-switch { display: flex; align-items: center; gap: 8px; padding-top: 22px; font-size: 14px; }
.ed-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.ed-stats > div { border: 1px solid var(--ds-border, #e2e8f0); border-radius: 8px; padding: 8px 12px; }
.ed-stats span { display: block; font-size: 12px; color: var(--ds-text-3, #94a3b8); }
.ed-stats b { font-size: 15px; }
.ed-err { font-size: 11.5px; color: var(--ds-error, #ff4d4f); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }

/* ── Kontörlerim / Kontör satın al ── */
.cr-balance { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--ds-border, #e2e8f0); border-radius: 8px; padding: 16px 20px; margin-bottom: 16px; }
.cr-balance-icon { width: 44px; height: 44px; border-radius: 10px; background: #fff7e6; color: #d46b08; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.cr-balance-label { font-size: 12px; color: var(--ds-text-3, #94a3b8); }
.cr-balance-val { font-size: 24px; font-weight: 600; }
.cr-balance-val span { font-size: 13px; font-weight: 400; color: var(--ds-text-3, #94a3b8); }
.cr-packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.cr-pkg { text-align: left; border: 1px solid var(--ds-border, #e2e8f0); border-radius: 10px; background: #fff; padding: 16px; cursor: pointer; font: inherit; transition: border-color .15s, box-shadow .15s; }
.cr-pkg:hover { border-color: #91caff; }
.cr-pkg.on { border-color: #1677ff; box-shadow: 0 0 0 2px rgba(22,119,255,.15); background: #f7fbff; }
.cr-pkg-name { font-size: 13px; color: var(--ds-text-2, #475569); margin-bottom: 6px; }
.cr-pkg-amount { font-size: 22px; font-weight: 700; }
.cr-pkg-amount span { font-size: 12px; font-weight: 400; color: var(--ds-text-3, #94a3b8); }
.cr-pkg-price { font-size: 16px; font-weight: 600; color: #1677ff; margin-top: 6px; }
.cr-pkg-unit { font-size: 11.5px; color: var(--ds-text-3, #94a3b8); }
.cr-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 560px; }
.mono { font-variant-numeric: tabular-nums; }

/* ── Süper yönetici ── */
.sa-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.sa-stat { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--ds-border, #e2e8f0); border-radius: 8px; padding: 14px 16px; }
.sa-stat > i { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 16px; background: #e6f4ff; color: #1677ff; flex: none; }
.sa-stat.purple > i { background: #f9f0ff; color: #722ed1; }
.sa-stat.green > i { background: #f6ffed; color: #389e0d; }
.sa-stat.orange > i { background: #fff7e6; color: #d46b08; }
.sa-stat.red > i { background: #fff2f0; color: #cf1322; }
.sa-stat-label { font-size: 12px; color: var(--ds-text-3, #94a3b8); }
.sa-stat-val { font-size: 18px; font-weight: 600; }
.sa-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1000px) { .sa-two { grid-template-columns: 1fr; } }
.sa-h { margin: 18px 0 8px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.sa-mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sa-credit-form { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.sa-credit-form > div { flex: 1; min-width: 160px; }
.sa-req { border: 1px solid var(--ds-border, #e2e8f0); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.sa-req-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.sa-diff td, .sa-diff th { padding: 6px 10px; font-size: 13px; }

/* Süper Yönetici 2. bölüm: detay modalları, oran çubukları */
.sa-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.sa-kv > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sa-kv > div.full { grid-column: 1 / -1; }
.sa-kv span { font-size: 12px; color: var(--ds-text-3, #94a3b8); }
.sa-kv b { font-weight: 500; word-break: break-word; }
.sa-kv pre { margin: 0; max-height: 280px; overflow: auto; background: #f8fafc; border: 1px solid var(--ds-border, #e2e8f0); border-radius: 6px; padding: 10px; font-size: 12px; white-space: pre-wrap; word-break: break-all; }
.sa-bar { height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.sa-bar > span { display: block; height: 100%; background: #1677ff; border-radius: 4px; }
.sa-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }

/* Bildirimler ekranı */
.ds-pop-foot { padding: 8px 16px; border-top: 1px solid var(--ds-border); text-align: center; }
.nt-selectall { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 4px; font-size: 13px; color: var(--ds-text-2, #475569); cursor: pointer; }
.nt-group { margin-top: 12px; }
.nt-day { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ds-text-3, #94a3b8); padding: 6px 0; }
.nt-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid var(--ds-border, #e2e8f0); border-radius: 8px; margin-bottom: 8px; background: #fff; transition: background .15s; }
.nt-row:hover { background: #f8fafc; }
.nt-row.unread { background: #f5f9ff; border-color: #bfdbfe; }
.nt-row.selected { outline: 2px solid #1677ff33; }
.nt-row > input[type=checkbox] { margin-top: 10px; }
.nt-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; font-size: 15px; }
.nt-body { flex: 1; min-width: 0; }
.nt-body.link { cursor: pointer; }
.nt-title { font-weight: 500; display: flex; align-items: center; flex-wrap: wrap; }
.nt-row.unread .nt-title { font-weight: 600; }
.nt-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: #1677ff; margin-right: 8px; flex: none; }
.nt-msg { color: var(--ds-text-2, #475569); font-size: 13px; margin-top: 2px; white-space: pre-line; }
.nt-date { font-size: 12px; color: var(--ds-text-3, #94a3b8); margin-top: 4px; display: flex; gap: 12px; }
.nt-go { color: #1677ff; }
.nt-actions { display: flex; gap: 6px; flex: none; }
.nt-empty { text-align: center; padding: 48px 0; color: var(--ds-text-3, #94a3b8); }
.nt-empty > i { font-size: 32px; margin-bottom: 8px; display: block; }
.ef-modal-sep { font-size: 12px; font-weight: 600; color: var(--ds-text-3, #94a3b8); text-transform: uppercase; letter-spacing: .04em; border-top: 1px solid var(--ds-border, #e2e8f0); padding-top: 12px; margin-top: 4px; }
