@charset "UTF-8";
/* ══════════════════════════════════════════════════════════════════
   ADMIN STANDART DATAGRID (adm-data-grid) — global stiller.
   Popover'lar body'ye eklendiği için bu dosya GLOBAL (styles.scss'ten import).
   Admin'in global input/button kuralları (height:34px, width:100%) grid
   içindeki kontrolleri bozmasın diye burada sıfırlanır.
   ══════════════════════════════════════════════════════════════════ */
.adm-dg {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.adm-dg__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.adm-dg__search {
  position: relative;
  flex: 1 1 260px;
  min-width: 200px;
  max-width: 520px;
}
.adm-dg__search > i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}
.adm-dg__search > input {
  padding-left: 32px;
  padding-right: 30px;
  height: 34px;
  background: var(--surface);
}

.adm-dg__clear {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  height: 26px;
  width: 26px;
  padding: 0;
  justify-content: center;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
}
.adm-dg__clear:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.adm-dg__count {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.adm-dg__fsbtn {
  margin-left: auto;
  height: 30px;
  width: 32px;
  padding: 0;
  font-size: 12px;
  border: 1px solid var(--primary-dark);
  background: var(--primary, #4f46e5);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}
.adm-dg__fsbtn:hover {
  filter: brightness(1.12);
}

.adm-dg__fsbtn + .adm-dg__colbtn {
  margin-left: 0;
}

.adm-dg.qdGridFs {
  background: var(--surface, #fff);
  padding: 10px;
  box-sizing: border-box;
  overflow: auto;
}

.adm-dg.qdGridFs .adm-dg__host {
  height: calc(100vh - 70px) !important;
}

.adm-dg.qdGridFsFallback {
  position: fixed;
  inset: 0;
  z-index: 100000;
}

.qdGridFsExit {
  position: fixed;
  top: 10px;
  right: 14px;
  z-index: 100001;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--primary-dark);
  background: var(--primary-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.adm-dg__colbtn {
  margin-left: auto;
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--primary-line);
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.adm-dg__colbtn:hover {
  background: var(--primary-soft-2);
}
.adm-dg__colbtn i {
  font-size: 11px;
}

.adm-dg__host {
  min-height: 260px;
}

/* ── Tabulator görünümü (admin paleti) ── */
.adm-dg .tabulator {
  font-size: 12.5px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
}

.adm-dg .tabulator .tabulator-header {
  background: var(--primary);
  border-bottom: 0;
  color: #fff;
  font-weight: 700;
}

.adm-dg .tabulator .tabulator-header .tabulator-col {
  background: var(--primary);
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.adm-dg .tabulator .tabulator-header .tabulator-col .tabulator-col-title {
  color: #fff;
}

.adm-dg .tabulator .tabulator-header .tabulator-col .tabulator-col-sorter .tabulator-arrow {
  border-bottom-color: rgba(255, 255, 255, 0.8);
  border-top-color: rgba(255, 255, 255, 0.8);
}

.adm-dg .tabulator .tabulator-header .tabulator-col:hover {
  background: var(--primary-dark);
}

.adm-dg .tabulator .tabulator-header .tabulator-col .tabulator-col-content {
  padding: 7px 8px 4px;
}

.adm-dg .tabulator .tabulator-tableholder {
  background: var(--surface);
}

.adm-dg .tabulator .tabulator-row {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  min-height: 30px;
}

.adm-dg .tabulator .tabulator-row.tabulator-row-even {
  background: var(--surface-2);
}

.adm-dg .tabulator .tabulator-row:hover {
  background: var(--primary-soft);
  cursor: pointer;
}

.adm-dg .tabulator .tabulator-cell {
  padding: 6px 9px;
  border-right: 1px solid var(--border);
}

.adm-dg .tabulator .tabulator-placeholder .tabulator-placeholder-contents {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.adm-dg .tabulator .tabulator-col-resize-handle:hover {
  background: rgba(79, 70, 229, 0.25);
}

/* ── Başlık filtresi butonu ── */
.adm-dg .tabulator-header-filter {
  display: flex;
  justify-content: flex-start;
  overflow: visible;
}

.tabulator-header-filter .col-op-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  flex: 0 0 auto;
  min-width: 20px;
  justify-content: center;
  height: 18px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  overflow: hidden;
  box-shadow: none;
}
.tabulator-header-filter .col-op-filter-btn:hover {
  background: var(--surface-3);
  color: var(--text);
}

.tabulator-header-filter .col-op-filter-btn--active {
  border-color: var(--primary-line);
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 700;
}

.tabulator-header-filter .col-op-filter-btn__lbl {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Başlık filtresi popup'ı ── */
@keyframes admPopIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.col-op-filter-pop, .adm-colpop {
  position: fixed;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06), 0 24px 56px rgba(15, 23, 42, 0.18);
  font-size: 12px;
  color: var(--text);
  animation: admPopIn 0.14s ease-out;
}
.col-op-filter-pop input[type=text], .col-op-filter-pop select, .adm-colpop input[type=text], .adm-colpop select {
  height: 30px;
  font-size: 12px;
  border-radius: 9px;
  border-color: var(--border);
  background-color: var(--surface-2);
}
.col-op-filter-pop input[type=checkbox], .adm-colpop input[type=checkbox] {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  accent-color: var(--primary);
  cursor: pointer;
  box-shadow: none;
}

.col-op-filter-pop {
  gap: 10px;
  padding: 12px;
}

.col-op-filter-pop__list, .adm-colpop__list {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px;
  scrollbar-width: thin;
}

.col-op-filter-pop__item, .adm-colpop__item {
  flex: 0 0 auto;
  min-height: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.col-op-filter-pop__item:hover, .adm-colpop__item:hover {
  background: var(--primary-soft);
}

.col-op-filter-pop__item--all {
  font-weight: 700;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
  border-bottom: 1px solid var(--border);
  border-radius: 7px 7px 0 0;
  margin-bottom: 2px;
}

.col-op-filter-pop__empty, .adm-colpop__empty {
  padding: 14px 8px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}

.col-op-filter-pop__crit {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.col-op-filter-pop__crit-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.col-op-filter-pop__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.col-op-filter-pop__btn {
  height: 28px;
  padding: 0 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}
.col-op-filter-pop__btn:hover {
  background: var(--surface-3);
  color: var(--text);
}

.col-op-filter-pop__btn--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
}
.col-op-filter-pop__btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

/* ── Kolon seçici popover'ı ── */
.adm-colpop {
  width: 250px;
  padding: 8px;
  gap: 6px;
}

.adm-colpop__actions {
  display: flex;
  gap: 6px;
}

.adm-colpop__act {
  flex: 1;
  height: 26px;
  padding: 0 6px;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--primary-line);
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.adm-colpop__act:hover {
  background: var(--primary-soft-2);
}

.adm-colpop__list {
  max-height: 320px;
}
