/* 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-zebra: #f3f6f9;
  --orion-dg-selected: rgba(26, 115, 232, 0.08);
  --orion-dg-accent: #1a73e8;
  --orion-dg-accent-fill: #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: var(--orion-surface);
}

.orion-dg-toolbar {
  gap: 0.5rem;
}

.orion-dg-toolbar .btn {
  border-radius: 999px;
  font-weight: 500;
  font-size: var(--orion-ui-font-button, 10.5px);
  height: var(--orion-ui-control-height, 28px);
  min-height: var(--orion-ui-control-height, 28px);
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.orion-dg-ico {
  flex-shrink: 0;
  opacity: 0.9;
}

.tabulator-col-title:has(.orion-grid-copy-btn) {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.orion-grid-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.05rem 0.15rem;
  border: 0;
  background: transparent;
  color: var(--orion-text-muted);
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.orion-grid-copy-btn:hover,
.orion-grid-copy-btn:focus-visible {
  color: var(--orion-blue);
}
.orion-grid-copy-btn .bi {
  font-size: 0.85rem;
}

.orion-dg-toolbar .btn-orion-new {
  background: var(--orion-dg-accent-fill);
  border: none;
  color: #fff;
  box-shadow: 0 1px 2px rgba(26, 115, 232, 0.28);
}

.orion-dg-toolbar .btn-orion-new:hover {
  background: var(--orion-blue-alt-fill-hover);
  color: #fff;
}

.orion-dg-toolbar .btn-orion-edit,
.orion-dg-toolbar .btn-orion-refresh,
.orion-dg-toolbar .btn-orion-danger {
  background: var(--orion-surface);
  border: 1px solid var(--orion-border-alt-strong);
  color: var(--orion-text);
}

.orion-dg-toolbar .btn-orion-danger {
  color: var(--orion-danger-alt);
}

.orion-dg-toolbar .btn-orion-muted {
  background: var(--orion-surface-alt);
  border: 1px solid transparent;
  color: var(--orion-text);
}

.orion-dg-filter-bar {
  background: var(--orion-surface);
  border: none;
  border-bottom: 1px solid var(--orion-border-subtle);
  padding: 4px 4px 12px;
}

.orion-dg-filter-pill .orion-dg-filter-input-group {
  border-radius: 10px;
  background: var(--orion-surface);
  border: 1px solid var(--orion-border-alt-strong);
  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: var(--orion-surface);
}

.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 — /Exam/Evaluate kompakt yoğunluk (kolon width dokunulmaz) */
.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-grid-host.tabulator,
.orion-dg-theme .tabulator {
  font-family: "Segoe UI", "Segoe UI Web (West European)", system-ui, sans-serif !important;
  font-size: 11px !important;
  border: none !important;
  background: var(--orion-surface) !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-grid-host.tabulator .tabulator-header,
.orion-dg-theme .tabulator .tabulator-header {
  border-bottom: 1px solid var(--orion-border-subtle) !important;
  font-weight: 600 !important;
  color: var(--orion-dg-muted) !important;
  background: var(--orion-dg-header-bg) !important;
  font-size: 11px !important;
  text-transform: none !important;
  letter-spacing: normal !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-grid-host.tabulator .tabulator-header .tabulator-col .tabulator-col-content,
.orion-dg-theme .tabulator .tabulator-header .tabulator-col .tabulator-col-content {
  padding: 6px 8px !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;
}

/* Kolon filtre satırı — solda arama / tarih ikonu */
.orion-main .tabulator .tabulator-header .tabulator-header-filter,
.orion-dg-wrap .tabulator .tabulator-header .tabulator-header-filter,
.orion-dg-surface .tabulator .tabulator-header .tabulator-header-filter,
.orion-cat-surface .tabulator .tabulator-header .tabulator-header-filter,
.orion-grid-host .tabulator .tabulator-header .tabulator-header-filter,
.orion-dg-theme .tabulator .tabulator-header .tabulator-header-filter {
  margin-top: 6px !important;
  text-align: left !important;
}

.orion-main .tabulator .tabulator-header .tabulator-header-filter input,
.orion-dg-wrap .tabulator .tabulator-header .tabulator-header-filter input,
.orion-dg-surface .tabulator .tabulator-header .tabulator-header-filter input,
.orion-cat-surface .tabulator .tabulator-header .tabulator-header-filter input,
.orion-grid-host .tabulator .tabulator-header .tabulator-header-filter input,
.orion-dg-theme .tabulator .tabulator-header .tabulator-header-filter input {
  width: 100% !important;
  box-sizing: border-box !important;
  height: 28px !important;
  margin: 0 !important;
  border: 1px solid var(--orion-border-alt-strong) !important;
  border-radius: 6px !important;
  padding: 0 8px 0 28px !important;
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  color: var(--orion-text-alt) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  background-color: var(--orion-surface) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%239aa0a6' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 8px center !important;
  background-size: 12px 12px !important;
}

.orion-main .tabulator .tabulator-header .tabulator-header-filter input:focus,
.orion-dg-wrap .tabulator .tabulator-header .tabulator-header-filter input:focus,
.orion-dg-surface .tabulator .tabulator-header .tabulator-header-filter input:focus,
.orion-cat-surface .tabulator .tabulator-header .tabulator-header-filter input:focus,
.orion-grid-host .tabulator .tabulator-header .tabulator-header-filter input:focus,
.orion-dg-theme .tabulator .tabulator-header .tabulator-header-filter input:focus,
.orion-main .tabulator .tabulator-header .tabulator-header-filter select:focus,
.orion-dg-wrap .tabulator .tabulator-header .tabulator-header-filter select:focus,
.orion-dg-surface .tabulator .tabulator-header .tabulator-header-filter select:focus,
.orion-cat-surface .tabulator .tabulator-header .tabulator-header-filter select:focus,
.orion-grid-host .tabulator .tabulator-header .tabulator-header-filter select:focus,
.orion-dg-theme .tabulator .tabulator-header .tabulator-header-filter select:focus {
  outline: none !important;
  border-color: var(--orion-blue-alt) !important;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15) !important;
}

.orion-main .tabulator .tabulator-header .tabulator-header-filter select,
.orion-dg-wrap .tabulator .tabulator-header .tabulator-header-filter select,
.orion-dg-surface .tabulator .tabulator-header .tabulator-header-filter select,
.orion-cat-surface .tabulator .tabulator-header .tabulator-header-filter select,
.orion-grid-host .tabulator .tabulator-header .tabulator-header-filter select,
.orion-dg-theme .tabulator .tabulator-header .tabulator-header-filter select {
  width: 100% !important;
  box-sizing: border-box !important;
  height: 28px !important;
  margin: 0 !important;
  border: 1px solid var(--orion-border-alt-strong) !important;
  border-radius: 6px !important;
  padding: 0 22px 0 8px !important;
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  color: var(--orion-text-alt) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  background-color: var(--orion-surface) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239aa0a6' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 10px 10px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer;
}

.orion-main .tabulator .tabulator-header .tabulator-col[tabulator-field="evaluatedAtUtc"] .tabulator-header-filter input,
.orion-dg-wrap .tabulator .tabulator-header .tabulator-col[tabulator-field="evaluatedAtUtc"] .tabulator-header-filter input,
.orion-dg-surface .tabulator .tabulator-header .tabulator-col[tabulator-field="evaluatedAtUtc"] .tabulator-header-filter input,
.orion-cat-surface .tabulator .tabulator-header .tabulator-col[tabulator-field="evaluatedAtUtc"] .tabulator-header-filter input,
.orion-grid-host .tabulator .tabulator-header .tabulator-col[tabulator-field="evaluatedAtUtc"] .tabulator-header-filter input,
.orion-dg-theme .tabulator .tabulator-header .tabulator-col[tabulator-field="evaluatedAtUtc"] .tabulator-header-filter input,
.orion-main .tabulator .tabulator-header .tabulator-col[tabulator-field$="AtUtc"] .tabulator-header-filter input,
.orion-main .tabulator .tabulator-header .tabulator-col[tabulator-field$="Date"] .tabulator-header-filter input,
.orion-dg-theme .tabulator .tabulator-header .tabulator-col[tabulator-field$="AtUtc"] .tabulator-header-filter input,
.orion-dg-theme .tabulator .tabulator-header .tabulator-col[tabulator-field$="Date"] .tabulator-header-filter input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%239aa0a6' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E") !important;
}

.orion-main .tabulator-row,
.orion-grid-host .tabulator-row,
.orion-grid-host.tabulator .tabulator-row,
.orion-dg-theme .tabulator-row {
  border-bottom: 1px solid var(--orion-border-subtle) !important;
  min-height: 32px;
  height: 32px;
}

.orion-main .tabulator-row .tabulator-cell,
.orion-grid-host .tabulator-row .tabulator-cell,
.orion-grid-host.tabulator .tabulator-row .tabulator-cell,
.orion-dg-theme .tabulator-row .tabulator-cell {
  border-right: none !important;
  padding: 4px 8px !important;
  line-height: 1.3;
  height: 32px !important;
  font-size: 11px !important;
}

.orion-main .tabulator-row.tabulator-row-odd,
.orion-grid-host .tabulator-row.tabulator-row-odd,
.orion-dg-theme .tabulator-row.tabulator-row-odd {
  background-color: var(--orion-surface) !important;
}

.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: var(--orion-dg-zebra) !important;
}

.orion-main .tabulator-row.tabulator-row-odd .tabulator-cell,
.orion-grid-host .tabulator-row.tabulator-row-odd .tabulator-cell,
.orion-dg-theme .tabulator-row.tabulator-row-odd .tabulator-cell,
.orion-main .tabulator-row.tabulator-row-even .tabulator-cell,
.orion-grid-host .tabulator-row.tabulator-row-even .tabulator-cell,
.orion-dg-theme .tabulator-row.tabulator-row-even .tabulator-cell {
  background-color: transparent !important;
}

.orion-main .tabulator-header .tabulator-col.tabulator-frozen,
.orion-grid-host .tabulator-header .tabulator-col.tabulator-frozen,
.orion-grid-host.tabulator .tabulator-header .tabulator-col.tabulator-frozen,
.orion-dg-theme .tabulator-header .tabulator-col.tabulator-frozen {
  background: var(--orion-dg-header-bg, var(--orion-canvas-alt)) !important;
  z-index: 12;
}
.orion-main .tabulator-row.tabulator-row-odd .tabulator-cell.tabulator-frozen,
.orion-grid-host .tabulator-row.tabulator-row-odd .tabulator-cell.tabulator-frozen,
.orion-dg-theme .tabulator-row.tabulator-row-odd .tabulator-cell.tabulator-frozen {
  background-color: var(--orion-surface) !important;
  z-index: 11;
}
.orion-main .tabulator-row.tabulator-row-even .tabulator-cell.tabulator-frozen,
.orion-grid-host .tabulator-row.tabulator-row-even .tabulator-cell.tabulator-frozen,
.orion-dg-theme .tabulator-row.tabulator-row-even .tabulator-cell.tabulator-frozen {
  background-color: var(--orion-dg-zebra, var(--orion-zebra)) !important;
  z-index: 11;
}
.orion-main .tabulator-row:hover .tabulator-cell.tabulator-frozen,
.orion-grid-host .tabulator-row:hover .tabulator-cell.tabulator-frozen,
.orion-dg-theme .tabulator-row:hover .tabulator-cell.tabulator-frozen {
  background-color: var(--orion-dg-hover, var(--orion-canvas-alt)) !important;
}
.orion-main .tabulator-calcs-holder .tabulator-cell.tabulator-frozen,
.orion-grid-host .tabulator-calcs-holder .tabulator-cell.tabulator-frozen,
.orion-dg-theme .tabulator-calcs-holder .tabulator-cell.tabulator-frozen {
  background-color: var(--orion-surface) !important;
  z-index: 11;
}

.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-row.tabulator-selected .tabulator-cell.tabulator-frozen,
.orion-grid-host .tabulator-row.tabulator-selected .tabulator-cell.tabulator-frozen,
.orion-dg-theme .tabulator-row.tabulator-selected .tabulator-cell.tabulator-frozen {
  background-color: var(--orion-dg-selected, var(--orion-blue-alt-soft)) !important;
}

.orion-main .tabulator-footer,
.orion-grid-host .tabulator-footer,
.orion-grid-host.tabulator .tabulator-footer,
.orion-dg-theme .tabulator-footer {
  border-top: 1px solid var(--orion-border-subtle) !important;
  background: var(--orion-surface) !important;
  font-size: 11px !important;
  color: var(--orion-dg-muted) !important;
  padding: 6px 8px !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 var(--orion-border-alt-strong) !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: var(--orion-surface-alt);
  color: var(--orion-text);
  white-space: nowrap;
}

.orion-pill + .orion-pill {
  margin-left: 4px;
}

.orion-pill-soft {
  background: var(--orion-blue-alt-soft);
  color: var(--orion-blue-alt-dark);
}

.orion-pill-ok {
  background: var(--orion-success-alt-bg);
  color: var(--orion-success-alt);
}

.orion-pill-warn {
  background: var(--orion-warning-alt-bg);
  color: var(--orion-warning-fill);
}

.orion-pill-danger {
  background: var(--orion-danger-alt-bg);
  color: var(--orion-danger-alt);
}

.orion-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.orion-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--orion-text-alt-secondary);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.orion-row-action:hover {
  background: var(--orion-canvas-alt);
  border-color: var(--orion-border-alt-strong);
  color: var(--orion-text-alt);
}

.orion-row-action.is-danger:hover {
  background: var(--orion-danger-alt-bg);
  border-color: var(--orion-danger-alt-border);
  color: var(--orion-danger-alt);
}

.orion-row-action svg {
  width: 12px;
  height: 12px;
}

.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;
}
