/* Onda.Web — Onda.WinForms ile aynı palet, aynı ölçüler. MIT lisanslı. */

:root {
  --o-accent: #2563EB;
  --o-bg: #F3F5F9;
  --o-surface: #FFFFFF;
  --o-surface-alt: #F0F2F6;
  --o-border: #DCE1E8;
  --o-border-strong: #B4BCC8;
  --o-text: #111827;
  --o-muted: #6B7280;
  --o-faint: #9CA3AF;
  --o-primary: var(--o-accent);
  --o-primary-ink: var(--o-accent);
  --o-on-primary: #FFFFFF;
  --o-success: #16A34A;
  --o-warning: #D97706;
  --o-danger: #DC2626;
  --o-info: #2563EB;
  --o-radius: 8px;
  --o-radius-lg: 14px;
  --o-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 1px 3px rgba(17, 24, 39, .06);
  --o-shadow-lg: 0 12px 32px rgba(17, 24, 39, .14), 0 2px 6px rgba(17, 24, 39, .06);
  --o-font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --o-mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  --o-soft: color-mix(in srgb, var(--o-primary) 11%, transparent);
  --o-hover: color-mix(in srgb, var(--o-text) 5%, transparent);
  color-scheme: light;
}

[data-theme="dark"] {
  --o-bg: #0F1115;
  --o-surface: #181B21;
  --o-surface-alt: #21252D;
  --o-border: #2D323C;
  --o-border-strong: #4A5160;
  --o-text: #E8EAED;
  --o-muted: #9AA1AC;
  --o-faint: #6B7280;
  --o-primary: color-mix(in srgb, var(--o-accent) 90%, white);
  --o-primary-ink: color-mix(in srgb, var(--o-accent) 72%, white);
  --o-success: #22C55E;
  --o-warning: #F59E0B;
  --o-danger: #EF4444;
  --o-info: #3B82F6;
  --o-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --o-shadow-lg: 0 16px 40px rgba(0, 0, 0, .5);
  --o-soft: color-mix(in srgb, var(--o-primary) 18%, transparent);
  --o-hover: color-mix(in srgb, var(--o-text) 7%, transparent);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.onda, .onda-root {
  font-family: var(--o-font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--o-text);
  background: var(--o-bg);
  -webkit-font-smoothing: antialiased;
}
.onda a { color: var(--o-primary-ink); text-decoration: none; }
.onda a:hover { text-decoration: underline; }
.onda h1, .onda h2, .onda h3, .onda h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
.onda ::selection { background: color-mix(in srgb, var(--o-primary) 30%, transparent); }
.onda :focus-visible { outline: 2px solid color-mix(in srgb, var(--o-primary) 70%, transparent); outline-offset: 2px; }
.onda ::-webkit-scrollbar { width: 10px; height: 10px; }
.onda ::-webkit-scrollbar-thumb { background: var(--o-border); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
.onda ::-webkit-scrollbar-thumb:hover { background-color: var(--o-border-strong); }

/* ---------- Simge ---------- */
.o-icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; vertical-align: -.2em; }

/* ---------- Kabuk: yan menü + üst çubuk ---------- */
.o-shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .22s ease; }
.o-shell.collapsed { grid-template-columns: 72px minmax(0, 1fr); }
.o-side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--o-surface); border-right: 1px solid var(--o-border); overflow: hidden;
}
.o-brand { display: flex; align-items: center; gap: 12px; padding: 18px 16px 14px; min-height: 72px; }
.o-brand-mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; color: #fff;
  font-weight: 700; font-size: 17px;
  background: linear-gradient(135deg, var(--o-primary), color-mix(in srgb, var(--o-primary) 55%, #f59e0b));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--o-primary) 35%, transparent);
}
.o-brand-text { min-width: 0; white-space: nowrap; }
.o-brand-title { font-weight: 600; font-size: 15px; }
.o-brand-sub { color: var(--o-muted); font-size: 12px; }
.o-collapse { margin-left: auto; }
.o-shell.collapsed .o-brand-text, .o-shell.collapsed .o-collapse, .o-shell.collapsed .o-menu-text,
.o-shell.collapsed .o-menu-badge, .o-shell.collapsed .o-group-title, .o-shell.collapsed .o-user-text { display: none; }
.o-shell.collapsed .o-brand { justify-content: center; padding-inline: 0; }
.o-menu { flex: 1; overflow-y: auto; padding: 4px 10px 12px; }
.o-group-title { color: var(--o-muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 14px 10px 6px; }
.o-shell.collapsed .o-group-sep { border-top: 1px solid var(--o-border); margin: 10px 12px; }
.o-menu-item {
  position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; margin: 2px 0;
  border-radius: var(--o-radius); color: var(--o-text) !important; cursor: pointer; text-decoration: none !important; user-select: none;
}
.o-menu-item .o-icon { color: var(--o-muted); width: 20px; height: 20px; }
.o-menu-item:hover { background: var(--o-hover); }
.o-menu-item.active { background: var(--o-soft); color: var(--o-primary-ink) !important; font-weight: 600; }
.o-menu-item.active .o-icon { color: var(--o-primary-ink); }
.o-menu-item.active::before { content: ""; position: absolute; left: -10px; top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: var(--o-primary); }
.o-shell.collapsed .o-menu-item { justify-content: center; padding: 0; }
.o-menu-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-menu-badge { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 11px; font-weight: 600; display: grid; place-items: center; background: var(--o-soft); color: var(--o-primary-ink); }
.o-menu-item.active .o-menu-badge { background: var(--o-primary); color: #fff; }
.o-user { display: flex; align-items: center; gap: 10px; padding: 14px 14px; border-top: 1px solid var(--o-border); }
.o-shell.collapsed .o-user { flex-direction: column; padding-inline: 0; }
.o-user-text { min-width: 0; flex: 1; }
.o-user-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-user-role { color: var(--o-muted); font-size: 12px; }
.o-main { min-width: 0; display: flex; flex-direction: column; }
.o-topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 28px;
  background: color-mix(in srgb, var(--o-bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent;
}
.o-topbar-title { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.o-topbar-sub { color: var(--o-muted); font-size: 13px; }
.o-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.o-content { padding: 8px 28px 40px; }
.o-mobile-menu { display: none; }
@media (max-width: 900px) {
  .o-shell { grid-template-columns: 1fr; }
  .o-side { position: fixed; left: 0; z-index: 50; width: 264px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--o-shadow-lg); }
  .o-shell.mobile-open .o-side { transform: none; }
  .o-mobile-menu { display: inline-flex; }
  .o-topbar, .o-content { padding-inline: 16px; }
}

/* ---------- Yerleşim yardımcıları ---------- */
.o-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.o-col { display: flex; flex-direction: column; gap: 14px; }
.o-grid { display: grid; gap: 16px; }
.o-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.o-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.o-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.o-span-2 { grid-column: span 2; }
.o-span-3 { grid-column: span 3; }
@media (max-width: 1100px) { .o-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .o-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .o-grid-2, .o-grid-3, .o-grid-4 { grid-template-columns: 1fr; } .o-span-2, .o-span-3 { grid-column: auto; } }
.o-spacer { flex: 1; }
.o-muted { color: var(--o-muted); }
.o-faint { color: var(--o-faint); }
.o-small { font-size: 12px; }
.o-strong { font-weight: 600; }
.o-mono { font-family: var(--o-mono); }
.o-right { text-align: right; }
.o-nowrap { white-space: nowrap; }
.o-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-divider { height: 1px; background: var(--o-border); margin: 6px 0; border: 0; }
.o-section-title { font-size: 15px; font-weight: 600; margin: 4px 0 2px; }

/* ---------- Kart ---------- */
.o-card { background: var(--o-surface); border: 1px solid var(--o-border); border-radius: var(--o-radius-lg); box-shadow: var(--o-shadow); min-width: 0; }
.o-card-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 0; }
.o-card-title { font-size: 15px; font-weight: 600; }
.o-card-sub { color: var(--o-muted); font-size: 12.5px; margin-top: 1px; }
.o-card-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.o-card-body { padding: 16px 18px 18px; }
.o-card.flush .o-card-body { padding: 0; }
.o-card.hover { transition: transform .15s ease, box-shadow .15s ease; cursor: pointer; }
.o-card.hover:hover { transform: translateY(-2px); box-shadow: var(--o-shadow-lg); }

/* ---------- İstatistik kartı ---------- */
.o-stat { position: relative; padding: 18px; overflow: hidden; }
.o-stat-head { display: flex; align-items: center; gap: 10px; color: var(--o-muted); font-size: 13px; font-weight: 500; }
.o-stat-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-left: auto; }
.o-stat-icon .o-icon { width: 19px; height: 19px; }
.o-stat-value { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.o-stat-foot { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12.5px; color: var(--o-muted); min-height: 18px; }
.o-delta { font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.o-delta.up { color: var(--o-success); }
.o-delta.down { color: var(--o-danger); }
.o-spark { position: absolute; right: 14px; bottom: 30px; width: 38%; height: 32px; opacity: .9; }

/* ---------- Düğme ---------- */
.o-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: var(--o-radius); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 13.5px; line-height: 1;
  cursor: pointer; white-space: nowrap; user-select: none; text-decoration: none !important; overflow: hidden;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease, box-shadow .15s ease;
}
.o-btn:active:not(:disabled) { transform: translateY(1px); }
.o-btn .o-icon { width: 17px; height: 17px; }
.o-btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; gap: 6px; }
.o-btn.lg { height: 44px; padding: 0 20px; font-size: 15px; }
.o-btn.block { width: 100%; }
.o-btn.icon-only { width: 36px; padding: 0; }
.o-btn.sm.icon-only { width: 30px; }
.o-btn.lg.icon-only { width: 44px; }
.o-btn.pill { border-radius: 999px; }
.o-btn.primary { background: var(--o-primary); color: var(--o-on-primary) !important; box-shadow: 0 1px 2px color-mix(in srgb, var(--o-primary) 30%, transparent); }
.o-btn.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--o-primary) 88%, black); }
.o-btn.primary.gradient { background: linear-gradient(135deg, var(--o-primary), color-mix(in srgb, var(--o-primary) 60%, #f59e0b)); }
.o-btn.secondary { background: var(--o-surface-alt); color: var(--o-text) !important; }
.o-btn.secondary:hover:not(:disabled) { background: color-mix(in srgb, var(--o-surface-alt) 90%, var(--o-text)); }
.o-btn.outline { background: transparent; border-color: var(--o-border-strong); color: var(--o-text) !important; }
.o-btn.outline:hover:not(:disabled) { border-color: var(--o-primary); color: var(--o-primary-ink) !important; background: var(--o-soft); }
.o-btn.ghost { background: transparent; color: var(--o-text) !important; }
.o-btn.ghost:hover:not(:disabled) { background: var(--o-hover); }
.o-btn.soft { background: var(--o-soft); color: var(--o-primary-ink) !important; }
.o-btn.soft:hover:not(:disabled) { background: color-mix(in srgb, var(--o-primary) 20%, transparent); }
.o-btn.danger { background: var(--o-danger); color: #fff !important; }
.o-btn.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--o-danger) 88%, black); }
.o-btn.success { background: var(--o-success); color: #fff !important; }
.o-btn.success:hover:not(:disabled) { background: color-mix(in srgb, var(--o-success) 88%, black); }
.o-btn:disabled { opacity: .5; cursor: not-allowed; }
.o-btn .o-spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: o-spin .7s linear infinite; }
.o-btn-kbd { font-size: 11px; font-weight: 500; opacity: .7; margin-left: 2px; }
@keyframes o-spin { to { transform: rotate(360deg); } }

/* ---------- Giriş alanları ---------- */
.o-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.o-label { font-size: 12.5px; font-weight: 600; color: var(--o-muted); display: flex; gap: 4px; }
.o-label .o-req { color: var(--o-danger); }
.o-input-wrap {
  position: relative; display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 11px;
  background: var(--o-surface); border: 1px solid var(--o-border-strong); border-radius: var(--o-radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.o-input-wrap:hover { border-color: color-mix(in srgb, var(--o-border-strong) 60%, var(--o-text)); }
.o-input-wrap:focus-within { border-color: var(--o-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--o-primary) 18%, transparent); }
.o-input-wrap.invalid { border-color: var(--o-danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--o-danger) 14%, transparent); }
.o-input-wrap.disabled { background: var(--o-surface-alt); opacity: .75; }
.o-input-wrap > .o-icon { color: var(--o-muted); }
.o-input, .o-select, .o-textarea {
  flex: 1; min-width: 0; height: 36px; border: 0; outline: 0; background: transparent; color: var(--o-text); font: inherit; padding: 0;
}
.o-input::placeholder, .o-textarea::placeholder { color: var(--o-faint); }
.o-input[type=number] { -moz-appearance: textfield; }
.o-input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
.o-input.right { text-align: right; font-variant-numeric: tabular-nums; }
.o-input-suffix { color: var(--o-muted); font-size: 13px; }
.o-textarea { height: auto; min-height: 80px; padding: 9px 0; resize: vertical; line-height: 1.45; }
.o-select { appearance: none; cursor: pointer; padding-right: 22px; }
.o-select option { background: var(--o-surface); color: var(--o-text); }
.o-select-caret { position: absolute; right: 10px; pointer-events: none; color: var(--o-muted); }
.o-help { font-size: 12px; color: var(--o-muted); }
.o-error { font-size: 12px; color: var(--o-danger); font-weight: 500; }
.o-search { min-width: 240px; }

/* Anahtar, onay kutusu */
.o-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.o-switch input, .o-check input { position: absolute; opacity: 0; pointer-events: none; }
.o-switch-track { width: 38px; height: 22px; border-radius: 11px; background: var(--o-border-strong); position: relative; transition: background .18s ease; flex: none; }
.o-switch-track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .18s ease; }
.o-switch input:checked + .o-switch-track { background: var(--o-primary); }
.o-switch input:checked + .o-switch-track::after { transform: translateX(16px); }
.o-switch input:focus-visible + .o-switch-track { outline: 2px solid var(--o-primary); outline-offset: 2px; }
.o-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.o-check-box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--o-border-strong); display: grid; place-items: center; transition: all .15s ease; background: var(--o-surface); }
.o-check-box .o-icon { width: 14px; height: 14px; color: #fff; opacity: 0; }
.o-check input:checked + .o-check-box { background: var(--o-primary); border-color: var(--o-primary); }
.o-check input:checked + .o-check-box .o-icon { opacity: 1; }

/* Bölümlü seçici */
.o-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: calc(var(--o-radius) + 3px); background: var(--o-surface-alt); border: 1px solid var(--o-border); }
.o-seg.block { display: flex; }
.o-seg.block .o-seg-item { flex: 1; }
.o-seg-item { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 13px; border-radius: var(--o-radius); border: 0; background: transparent; color: var(--o-muted); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; transition: all .15s ease; }
.o-seg-item:hover { color: var(--o-text); }
.o-seg-item.on { background: var(--o-surface); color: var(--o-text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.o-seg-item .o-icon { width: 16px; height: 16px; }

/* ---------- Rozet, ilerleme ---------- */
.o-badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--o-surface-alt); color: var(--o-muted); }
.o-badge .o-icon { width: 13px; height: 13px; }
.o-badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.o-badge.primary { background: var(--o-soft); color: var(--o-primary-ink); }
.o-badge.success { background: color-mix(in srgb, var(--o-success) 14%, transparent); color: var(--o-success); }
.o-badge.warning { background: color-mix(in srgb, var(--o-warning) 16%, transparent); color: var(--o-warning); }
.o-badge.danger { background: color-mix(in srgb, var(--o-danger) 14%, transparent); color: var(--o-danger); }
.o-badge.info { background: color-mix(in srgb, var(--o-info) 14%, transparent); color: var(--o-info); }
.o-badge.solid { background: var(--o-primary); color: #fff; }
.o-progress { position: relative; height: 6px; border-radius: 3px; background: var(--o-surface-alt); overflow: hidden; min-width: 50px; }
.o-progress > span { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--o-primary); transition: width .4s ease; }
.o-progress.success > span { background: var(--o-success); }
.o-progress.warning > span { background: var(--o-warning); }
.o-progress.danger > span { background: var(--o-danger); }
.o-progress-cell { display: flex; align-items: center; gap: 8px; }
.o-progress-cell .o-progress { flex: 1; }
.o-progress-cell span.o-small { width: 38px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Tablo (OndaGrid) ---------- */
.o-gridbox { display: flex; flex-direction: column; min-width: 0; }
.o-grid-toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; flex-wrap: wrap; }
.o-grid-title { font-weight: 600; font-size: 15px; }
.o-grid-count { color: var(--o-muted); font-size: 12.5px; }
.o-table-wrap { overflow: auto; border-top: 1px solid var(--o-border); }
.o-table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.o-table th {
  position: sticky; top: 0; z-index: 1; text-align: left; font-size: 12px; font-weight: 600; color: var(--o-muted); letter-spacing: .02em;
  padding: 10px 14px; background: var(--o-surface-alt); border-bottom: 1px solid var(--o-border); white-space: nowrap; user-select: none;
}
.o-table th.sortable { cursor: pointer; }
.o-table th.sortable:hover { color: var(--o-text); }
.o-table th .o-icon { width: 14px; height: 14px; margin-left: 2px; }
.o-table td { padding: 0 14px; height: 44px; border-bottom: 1px solid var(--o-border); white-space: nowrap; }
.o-table.dense td { height: 36px; }
.o-table tbody tr { transition: background .1s ease; }
.o-table tbody tr:hover { background: var(--o-hover); }
.o-table tbody tr.clickable { cursor: pointer; }
.o-table tbody tr.selected { background: var(--o-soft); }
.o-table tbody tr:last-child td { border-bottom: 0; }
.o-table .num { text-align: right; }
.o-table .center { text-align: center; }
.o-table tfoot td { font-weight: 600; background: var(--o-surface-alt); border-top: 1px solid var(--o-border); border-bottom: 0; }
.o-table mark { background: color-mix(in srgb, var(--o-warning) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.o-grid-foot { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--o-border); color: var(--o-muted); font-size: 12.5px; }
.o-pager { margin-left: auto; display: flex; align-items: center; gap: 4px; }

/* ---------- Boş durum ---------- */
.o-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 40px 20px; color: var(--o-muted); }
.o-empty-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--o-soft); color: var(--o-primary-ink); margin-bottom: 6px; }
.o-empty-icon .o-icon { width: 26px; height: 26px; }
.o-empty-title { color: var(--o-text); font-weight: 600; font-size: 15px; }

/* ---------- Grafik ---------- */
.o-chart { width: 100%; display: block; overflow: visible; }
.o-chart text { font-family: var(--o-font); fill: var(--o-muted); font-size: 11px; }
.o-chart .grid { stroke: var(--o-border); stroke-dasharray: 3 4; }
.o-chart .bar { transition: opacity .15s ease; }
.o-chart .bar:hover { opacity: .8; }
.o-chart .val { fill: var(--o-text); font-weight: 600; }
.o-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--o-muted); }
.o-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.o-donut-wrap { display: flex; align-items: center; gap: 22px; }
.o-donut-center { font-weight: 600; fill: var(--o-text) !important; font-size: 20px !important; }

/* ---------- Pencere (modal) ---------- */
.o-modal-back { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(15, 17, 21, .5); backdrop-filter: blur(2px); animation: o-fade .15s ease; }
.o-modal { width: min(560px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--o-surface); border: 1px solid var(--o-border); border-radius: 16px; box-shadow: var(--o-shadow-lg); animation: o-pop .18s ease; }
.o-modal.lg { width: min(820px, 100%); }
.o-modal.xl { width: min(1100px, 100%); }
.o-modal.sm { width: min(420px, 100%); }
.o-modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 6px; }
.o-modal-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--o-soft); color: var(--o-primary-ink); }
.o-modal-title { font-weight: 600; font-size: 17px; }
.o-modal-body { padding: 14px 20px; overflow-y: auto; }
.o-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 18px; border-top: 1px solid var(--o-border); }
@keyframes o-fade { from { opacity: 0; } }
@keyframes o-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------- Bildirim (toast) ---------- */
.o-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 40px)); }
.o-toast { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; background: var(--o-surface); border: 1px solid var(--o-border); border-left: 4px solid var(--o-info); border-radius: 12px; box-shadow: var(--o-shadow-lg); animation: o-slide .22s ease; }
.o-toast.success { border-left-color: var(--o-success); }
.o-toast.error { border-left-color: var(--o-danger); }
.o-toast.warning { border-left-color: var(--o-warning); }
.o-toast > .o-icon { width: 20px; height: 20px; margin-top: 1px; }
.o-toast.success > .o-icon { color: var(--o-success); }
.o-toast.error > .o-icon { color: var(--o-danger); }
.o-toast.warning > .o-icon { color: var(--o-warning); }
.o-toast.info > .o-icon { color: var(--o-info); }
.o-toast-title { font-weight: 600; }
.o-toast-text { color: var(--o-muted); font-size: 13px; }
@keyframes o-slide { from { opacity: 0; transform: translateX(20px); } }

/* ---------- Avatar ---------- */
.o-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 600; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--o-primary), color-mix(in srgb, var(--o-primary) 50%, #8b5cf6)); }

/* ---------- Yazdırma ---------- */
@media print {
  .o-side, .o-topbar, .o-toasts, .no-print { display: none !important; }
  .o-shell { display: block; }
  .o-content { padding: 0; }
  body.onda { background: #fff; }
}
.o-gridbox { min-width: 0; max-width: 100%; }
