/**
 * أدوات الجداول: شريط البحث الفوري فوق الجدول (assets/js/components/table-tools.js) — الترقيم في pagination.css
 */

.tnt .tnt-table-search { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--tnt-border); background: var(--tnt-surface); }
.tnt .tnt-table-search__box { position: relative; flex: 1; max-width: 360px; display: block; }
.tnt .tnt-table-search__box svg { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--tnt-muted); pointer-events: none; }
.tnt .tnt-table-search__input {
	width: 100%; min-height: 38px; margin: 0; padding: 7px 12px; padding-inline-start: 38px;
	border: 1px solid var(--tnt-border-strong); border-radius: 10px; background: var(--tnt-surface-2);
	font: 500 14px/1.4 var(--tnt-font); color: var(--tnt-text); box-shadow: none; transition: border-color .15s, background .15s, box-shadow .15s;
}
.tnt .tnt-table-search__input:focus { outline: none; background: var(--tnt-surface); border-color: var(--tnt-gold-600); box-shadow: var(--tnt-ring); }
.tnt .tnt-table-search__count { font-size: 12.5px; color: var(--tnt-muted); font-weight: 600; white-space: nowrap; }
.tnt .tnt-table-search.is-filtering .tnt-table-search__count { color: var(--tnt-gold-600); }
.tnt .tnt-table-search__empty td { text-align: center !important; padding: 28px 16px; color: var(--tnt-muted); }

/* داخل بطاقة بدون حشوة (flush) تلتصق بالجدول، وفي غيرها تأخذ زوايا البطاقة */
.tnt .tnt-card__body > .tnt-table-search:first-child { border-radius: var(--tnt-radius) var(--tnt-radius) 0 0; }
