/* Tabulator — profesyonel kart grid (kampanya paneli referansı) */

:root {
  --orion-dg-radius: 12px;
  --orion-dg-border: #e8eaed;
  --orion-dg-muted: #5f6368;
  --orion-dg-text: #202124;
  --orion-dg-hover: #f8f9fa;
  --orion-dg-selected: rgba(26, 115, 232, 0.08);
  --orion-dg-accent: #1a73e8;
  --orion-dg-ok: #137333;
  --orion-dg-shadow: 0 1px 2px rgba(60, 64, 67, 0.08), 0 2px 8px rgba(60, 64, 67, 0.06);
  --orion-dg-header-bg: #fff;
}

.orion-dg-wrap,
.orion-dg-surface,
.orion-cat-surface,
.orion-users-surface,
.orion-roles-surface,
.orion-orgs-surface {
  border-radius: var(--orion-dg-radius);
  overflow: hidden;
  border: 1px solid var(--orion-dg-border);
  box-shadow: var(--orion-dg-shadow);
  background: #fff;
}

.orion-dg-toolbar {
  gap: 0.5rem;
}

.orion-dg-toolbar .btn {
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.8125rem;
  padding: 0.4rem 0.95rem;
}

.orion-dg-ico {
  flex-shrink: 0;
  opacity: 0.9;
}

.orion-dg-toolbar .btn-orion-new {
  background: var(--orion-dg-accent);
  border: none;
  color: #fff;
  box-shadow: 0 1px 2px rgba(26, 115, 232, 0.28);
}

.orion-dg-toolbar .btn-orion-new:hover {
  background: #1557b0;
  color: #fff;
}

.orion-dg-toolbar .btn-orion-edit,
.orion-dg-toolbar .btn-orion-refresh,
.orion-dg-toolbar .btn-orion-danger {
  background: #fff;
  border: 1px solid #dadce0;
  color: #3c4043;
}

.orion-dg-toolbar .btn-orion-danger {
  color: #c5221f;
}

.orion-dg-toolbar .btn-orion-muted {
  background: #f1f3f4;
  border: 1px solid transparent;
  color: #3c4043;
}

.orion-dg-filter-bar {
  background: #fff;
  border: none;
  border-bottom: 1px solid #f1f3f4;
  padding: 4px 4px 12px;
}

.orion-dg-filter-pill .orion-dg-filter-input-group {
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dadce0;
  overflow: hidden;
}

.orion-dg-filter-pill .form-control:focus {
  box-shadow: none;
}

.orion-tabulator-host,
.orion-dx-grid-host,
.orion-grid-host,
.orion-dg-theme {
  border-radius: 0;
  overflow: hidden;
  min-height: 280px;
  background: #fff;
}

.orion-busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
}

/* Ortak Tabulator — tüm liste sayfaları */
.orion-main .tabulator,
.orion-dg-wrap .tabulator,
.orion-dg-surface .tabulator,
.orion-cat-surface .tabulator,
.orion-users-surface .tabulator,
.orion-roles-surface .tabulator,
.orion-orgs-surface .tabulator,
.orion-grid-host .tabulator,
.orion-dg-theme .tabulator {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif !important;
  font-size: 0.875rem !important;
  border: none !important;
  background: #fff !important;
  color: var(--orion-dg-text);
}

.orion-main .tabulator .tabulator-header,
.orion-dg-wrap .tabulator .tabulator-header,
.orion-dg-surface .tabulator .tabulator-header,
.orion-cat-surface .tabulator .tabulator-header,
.orion-users-surface .tabulator .tabulator-header,
.orion-roles-surface .tabulator .tabulator-header,
.orion-orgs-surface .tabulator .tabulator-header,
.orion-grid-host .tabulator .tabulator-header,
.orion-dg-theme .tabulator .tabulator-header {
  border-bottom: 1px solid #eef0f2 !important;
  font-weight: 650 !important;
  color: var(--orion-dg-muted) !important;
  background: var(--orion-dg-header-bg) !important;
  font-size: 0.6875rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.orion-main .tabulator .tabulator-header .tabulator-col,
.orion-dg-wrap .tabulator .tabulator-header .tabulator-col,
.orion-dg-surface .tabulator .tabulator-header .tabulator-col,
.orion-cat-surface .tabulator .tabulator-header .tabulator-col,
.orion-users-surface .tabulator .tabulator-header .tabulator-col,
.orion-roles-surface .tabulator .tabulator-header .tabulator-col,
.orion-orgs-surface .tabulator .tabulator-header .tabulator-col,
.orion-grid-host .tabulator .tabulator-header .tabulator-col,
.orion-dg-theme .tabulator .tabulator-header .tabulator-col {
  border-right: 1px solid transparent !important;
  background: transparent !important;
}

.orion-main .tabulator .tabulator-header .tabulator-col .tabulator-col-content,
.orion-dg-wrap .tabulator .tabulator-header .tabulator-col .tabulator-col-content,
.orion-dg-surface .tabulator .tabulator-header .tabulator-col .tabulator-col-content,
.orion-cat-surface .tabulator .tabulator-header .tabulator-col .tabulator-col-content,
.orion-users-surface .tabulator .tabulator-header .tabulator-col .tabulator-col-content,
.orion-roles-surface .tabulator .tabulator-header .tabulator-col .tabulator-col-content,
.orion-orgs-surface .tabulator .tabulator-header .tabulator-col .tabulator-col-content,
.orion-grid-host .tabulator .tabulator-header .tabulator-col .tabulator-col-content,
.orion-dg-theme .tabulator .tabulator-header .tabulator-col .tabulator-col-content {
  padding: 12px 14px !important;
}

.orion-main .tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-content,
.orion-grid-host .tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-content,
.orion-dg-theme .tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-content {
  cursor: pointer;
}

.orion-main .tabulator .tabulator-header .tabulator-col:hover,
.orion-grid-host .tabulator .tabulator-header .tabulator-col:hover,
.orion-dg-theme .tabulator .tabulator-header .tabulator-col:hover {
  background: var(--orion-dg-hover) !important;
}

.orion-main .tabulator .tabulator-col .tabulator-col-sorter,
.orion-grid-host .tabulator .tabulator-col .tabulator-col-sorter,
.orion-dg-theme .tabulator .tabulator-col .tabulator-col-sorter {
  opacity: 0.45;
}

.orion-main .tabulator-row,
.orion-grid-host .tabulator-row,
.orion-dg-theme .tabulator-row {
  border-bottom: 1px solid #f1f3f4 !important;
  min-height: 48px;
}

.orion-main .tabulator-row .tabulator-cell,
.orion-grid-host .tabulator-row .tabulator-cell,
.orion-dg-theme .tabulator-row .tabulator-cell {
  border-right: none !important;
  padding: 12px 14px !important;
  line-height: 1.35;
}

.orion-main .tabulator-row.tabulator-row-even,
.orion-grid-host .tabulator-row.tabulator-row-even,
.orion-dg-theme .tabulator-row.tabulator-row-even {
  background-color: #fff !important;
}

.orion-main .tabulator-row:hover,
.orion-grid-host .tabulator-row:hover,
.orion-dg-theme .tabulator-row:hover {
  background-color: var(--orion-dg-hover) !important;
}

.orion-main .tabulator-row.tabulator-selected,
.orion-grid-host .tabulator-row.tabulator-selected,
.orion-dg-theme .tabulator-row.tabulator-selected {
  background-color: var(--orion-dg-selected) !important;
  box-shadow: inset 3px 0 0 0 var(--orion-dg-accent);
}

.orion-main .tabulator-row.tabulator-selected.tabulator-row-even,
.orion-grid-host .tabulator-row.tabulator-selected.tabulator-row-even,
.orion-dg-theme .tabulator-row.tabulator-selected.tabulator-row-even {
  background-color: var(--orion-dg-selected) !important;
}

.orion-main .tabulator-row.tabulator-selected .tabulator-cell,
.orion-grid-host .tabulator-row.tabulator-selected .tabulator-cell,
.orion-dg-theme .tabulator-row.tabulator-selected .tabulator-cell {
  background-color: transparent !important;
}

.orion-main .tabulator-footer,
.orion-grid-host .tabulator-footer,
.orion-dg-theme .tabulator-footer {
  border-top: 1px solid #eef0f2 !important;
  background: #fff !important;
  font-size: 0.75rem !important;
  color: var(--orion-dg-muted) !important;
  padding: 10px 14px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 400 !important;
}

.orion-main .tabulator-paginator,
.orion-grid-host .tabulator-paginator,
.orion-dg-theme .tabulator-paginator {
  color: var(--orion-dg-muted) !important;
}

.orion-main .tabulator-page,
.orion-grid-host .tabulator-page,
.orion-dg-theme .tabulator-page {
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  margin: 0 2px;
  min-width: 2rem;
}

.orion-main .tabulator-page.active,
.orion-grid-host .tabulator-page.active,
.orion-dg-theme .tabulator-page.active {
  background: rgba(26, 115, 232, 0.12) !important;
  color: var(--orion-dg-accent) !important;
  border-color: transparent !important;
  font-weight: 600;
}

.orion-main .tabulator-page-size,
.orion-grid-host .tabulator-page-size,
.orion-dg-theme .tabulator-page-size {
  border-radius: 8px !important;
  border: 1px solid #dadce0 !important;
  padding: 2px 8px !important;
}

/* Durum / etiket pill’leri */
.orion-status {
  font-weight: 600;
  font-size: 0.8125rem;
}

.orion-status-ok,
.orion-status-active {
  color: var(--orion-dg-ok);
}

.orion-status-muted,
.orion-status-passive {
  color: var(--orion-dg-muted);
}

.orion-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  background: #f1f3f4;
  color: #3c4043;
  white-space: nowrap;
}

.orion-pill + .orion-pill {
  margin-left: 4px;
}

.orion-pill-soft {
  background: #e8f0fe;
  color: #1967d2;
}

.orion-pill-ok {
  background: #e6f4ea;
  color: #137333;
}

.orion-pill-warn {
  background: #fef7e0;
  color: #b06000;
}

.orion-pill-danger {
  background: #fce8e6;
  color: #c5221f;
}

.orion-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.orion-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #dadce0;
  background: #fff;
  color: #5f6368;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.orion-row-action:hover {
  background: #f8f9fa;
  border-color: #bdc1c6;
  color: #202124;
}

.orion-row-action.is-danger:hover {
  background: #fce8e6;
  border-color: #f6aea9;
  color: #c5221f;
}

.orion-row-action svg {
  width: 14px;
  height: 14px;
}

.orion-dg-column-popover-inner {
  min-width: 280px;
  max-width: min(360px, 92vw);
}

.orion-dg-column-list {
  max-height: 280px;
  overflow-y: auto;
}

.orion-dg-col-row:hover {
  background: rgba(26, 115, 232, 0.06);
}

.orion-dg-column-popover-footer {
  font-size: 0.75rem;
}
