/*.dataTables_filter .dt-stats-hover
{
	position:absolute;
	top:0;
	right:0;
}*/

.dt-info-stats .dt-stat-separator
{
	flex:0 0 100%;
	height:0;
	grid-column:1 / -1;
}

.dataTables_filter input
{
	padding-right:140px;
}

.datatable-tools .dt-stats-group
{
	float:right;
}

.dt-stats-group
{
	display:flex;
	align-items:center;
	gap:8px;
	margin-left:15px;
}

.dt-stats-hover
{
	position:relative;
	display:inline-flex;
	align-items:center;
}

.dt-stats-toggle
{
	float:left;
	display:flex;
	align-items:center;
	gap:7px;

	height:20px;

	color:#333333;
	font-size:11px;
	line-height:17px;

	padding:0 10px;

	background-color:#e4e5e6;

	box-shadow:none;
	border:1px solid #dddddd;

	cursor:pointer;

	transition:
	background-color .14s ease,
	box-shadow .14s ease,
	transform .10s ease;
}

.dt-stats-toggle:hover
{
	background-color:#d5d5d5;
}


.dt-stats-text
{
	line-height:1;
}

.dt-stats-icon-open,
.dt-stats-icon-close
{
	display:flex;
	align-items:center;
	justify-content:center;

	width:12px;
	height:12px;

	transition:
	opacity .14s ease,
	transform .14s ease;
}

.dt-stats-icon-open svg,
.dt-stats-icon-close svg
{
	width:12px;
	height:12px;

	fill:none;
	stroke:#333;
	stroke-width:3;
	stroke-linejoin:round;
}

.dt-stats-icon-close
{
	display:none;
	opacity:0;
	transform:rotate(-180deg);
}

.dt-stats-hover.active .dt-stats-icon-open
{
	display:none;
	opacity:0;
	transform:rotate(180deg);
}

.dt-stats-hover.active .dt-stats-icon-close
{
	display:flex;
	opacity:1;
	transform:rotate(0);
}

html.dt-stats-modal-open
{
	overflow:hidden;
}

.dt-stats-modal
{
	position:fixed;
	inset:0;
	z-index:10050;

	display:flex;
	align-items:center;
	justify-content:center;

	padding:24px;

	box-sizing:border-box;

	opacity:0;
	visibility:hidden;
	pointer-events:none;

	transition:
	opacity .18s ease,
	visibility .18s ease;
}

.dt-stats-modal.is-open
{
	opacity:1;
	visibility:visible;
	pointer-events:auto;
}

.dt-stats-modal__backdrop
{
	position:absolute;
	inset:0;
	background:rgba(0, 0, 0, .60);
}

.dt-stats-modal__dialog
{
	position:relative;
	z-index:1;

	width:min(600px, calc(100vw - 30px));
	max-height:calc(100vh - 48px);
	overflow-x:hidden;
	overflow-y:auto;

	padding:30px;

	background:#fff;
	border:1px solid #e6e8eb;
	border-radius:15px;
	box-shadow:0 24px 64px rgba(24, 38, 48, .22);

	box-sizing:border-box;

	transform:translateY(10px) scale(.985);
	transition:transform .18s ease;
}

.dt-stats-modal.is-open .dt-stats-modal__dialog
{
	transform:translateY(0) scale(1);
}

.dt-stats-modal__close
{
	position:absolute;
	top:10px;
	right:10px;

	display:inline-flex;
	align-items:center;
	justify-content:center;

	width:15px;
	height:15px;
	padding:0;

	color:#d64545;
	background:transparent;
	border:0;
	border-radius:0;
	cursor:pointer;
}

.dt-stats-modal__close:hover
{
	color:#a82f2f;
	background:transparent;
}

.dt-stats-modal__close svg
{
	display:block;
	width:15px;
	height:15px;
	overflow:visible;
}

.dt-stats-modal__header
{
	float:none;
	position:relative;
	display:flex;
	align-items:flex-start;
	justify-content:space-between;
	gap:20px;

	width:auto;
	height:auto;
	margin:0 0 15px;
	padding:0;

	background:transparent;
	border:0;
	box-shadow:none;
	z-index:auto;
}

.dt-stats-modal__titles h2
{
	margin:10px 0 0;
	color:#333;
	font-size:25px;
	font-weight:600;
	line-height:1;
}

.dt-stats-modal__titles p
{
	margin:5px 0 0;
	color:#999;
	font-size:15px;
	line-height:1;
}

.dt-stats-modal__total
{
	flex:0 0 auto;
	min-width:150px;
	padding:10px 25px;

	text-align:center;

	background:#fff;
	border:1px solid #e4e5e6;
	border-radius:10px;
	box-sizing:border-box;
}

.dt-stats-modal__total-label,
.dt-stats-modal__total span
{
	display:block;
	color:#999;
	font-size:15px;
	font-weight:500;
	line-height:1;
}

.dt-stats-modal__total-value,
.dt-stats-modal__total strong
{
	display:block;
	margin-top:4px;
	color:#1a1f24;
	font-size:24px;
	font-weight:700;
	line-height:1.1;
}

.dt-stats-modal__body
{
	display:flex;
	flex-direction:column;
	gap:12px;
	width:100%;
	min-width:0;
	margin:0;
	padding:0;
	box-sizing:border-box;
}

/* Ayırıcı öncesi/sonrası gruplar — 2 sütun; tek kalan son kart %100 */
.dt-stats-modal__group
{
	display:grid;
	grid-template-columns:repeat(2, minmax(0, 1fr));
	gap:12px;
	width:100%;
	min-width:0;
	box-sizing:border-box;
}

.dt-stats-modal__group > .dt-stat:last-child:nth-child(odd),
.dt-stats-modal__body > .dt-stat:last-child:nth-child(odd)
{
	grid-column:1 / -1;
}

/* Eski düz gövde (grup yoksa) — geriye uyum */
.dt-stats-modal__body:not(:has(> .dt-stats-modal__group))
{
	display:grid;
	grid-template-columns:repeat(2, minmax(0, 1fr));
}

.dt-stats-modal__body > .dt-stat-separator
{
	width:100%;
	height:0;
	margin:0;
	padding:0;
	border:0;
}

.dt-stats-modal__footer
{
	margin-top:12px;
	width:100%;
	min-width:0;
}

.dt-stats-modal .dt-stat
{
	display:flex;
	align-items:center;
	gap:10px;

	width:100%;
	min-width:0;
	min-height:50px;
	margin:0;
	padding:10px 15px;

	color:#333;
	font-size:15px;
	font-weight:500;
	line-height:1;

	background:#fff;
	border:1px solid #e4e5e6;
	border-radius:10px;
	box-shadow:0 1px 2px rgba(24, 38, 48, .04);

	box-sizing:border-box;
}

.dt-stats-modal .dt-stat__dot
{
	flex:0 0 auto;
	width:15px;
	height:15px;
	border-radius:50%;
	background:#9aa3ab;
}

.dt-stats-modal .dt-stat__label
{
	display:flex;
	flex-direction:column;
	justify-content:center;
	gap:2px;

	flex:1 1 auto;
	min-width:0;

	color:#333;
	font-size:15px;
	font-weight:500;
	line-height:1;

	overflow:hidden;
	white-space:nowrap;
	text-overflow:ellipsis;
}

.dt-stats-modal .dt-stat__help,
.dt-stats-modal .dt-stat__label small
{
	color:#7a848c;
	font-size:11px;
	font-weight:400;
	line-height:1.3;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
}

.dt-stats-modal .dt-stat__value,
.dt-stats-modal .dt-stat > i,
.dt-stats-modal .dt-stat > strong
{
	flex:0 0 auto;
	margin:0;
	padding:0;
	min-width:0;
	border:0;

	color:#1a1f24;
	font-style:normal;
	font-size:18px;
	font-weight:700;
	line-height:1;
	text-align:right;
}

.dt-stats-modal .dt-stat.active .dt-stat__dot,
.dt-stats-modal .dt-stat.status-live .dt-stat__dot,
.dt-stats-modal .dt-stat.metric-positive .dt-stat__dot {background:#22a06b;}
.dt-stats-modal .dt-stat.passive .dt-stat__dot,
.dt-stats-modal .dt-stat.status-idle .dt-stat__dot {background:#8b949e;}
.dt-stats-modal .dt-stat.scheduled .dt-stat__dot {background:#e2b203;}
.dt-stats-modal .dt-stat.unpublished .dt-stat__dot {background:#e36b2c;}
.dt-stats-modal .dt-stat.drafted .dt-stat__dot,
.dt-stats-modal .dt-stat.info .dt-stat__dot {background:#1d9bf0;}
.dt-stats-modal .dt-stat.archived .dt-stat__dot {background:#8e24aa;}
.dt-stats-modal .dt-stat.recycled .dt-stat__dot {background:#f28c28;}
.dt-stats-modal .dt-stat.deleted .dt-stat__dot,
.dt-stats-modal .dt-stat.danger .dt-stat__dot,
.dt-stats-modal .dt-stat.critical .dt-stat__dot {background:#d64545;}
.dt-stats-modal .dt-stat.warning .dt-stat__dot {background:#e2b203;}
.dt-stats-modal .dt-stat.notice .dt-stat__dot {background:#1d9bf0;}
.dt-stats-modal .dt-stat.error .dt-stat__dot {background:#d64545;}
.dt-stats-modal .dt-stat.role .dt-stat__dot,
.dt-stats-modal .dt-stat.hits .dt-stat__dot {background:#5a6570;}

.dt-stats-modal .dt-stat-history
{
	gap:14px;
	min-height:72px;
	padding:16px 18px;
}

.dt-stats-modal .dt-stat-history .dt-stat__dot
{
	display:none;
}

.dt-stats-modal .dt-stat-history__icon
{
	display:inline-flex;
	align-items:center;
	justify-content:center;

	flex:0 0 auto;
	width:42px;
	height:42px;

	color:#d64545;
	background:#fdecec;
	border-radius:10px;
}

.dt-stats-modal .dt-stat-history__icon svg
{
	width:20px;
	height:20px;
}

.dt-stats-modal .dt-stat-history__text
{
	display:flex;
	flex-direction:column;
	gap:2px;
	flex:1 1 auto;
	min-width:0;
	overflow:hidden;
}

.dt-stats-modal .dt-stat-history__text strong
{
	color:#1a1f24;
	font-size:15px;
	font-weight:700;
	line-height:1.3;
}

.dt-stats-modal .dt-stat-history__text small
{
	color:#7a848c;
	font-size:12px;
	font-weight:400;
	line-height:1.35;
	white-space:normal;
}

.dt-stats-modal .dt-stat-history .dt-stat__value
{
	font-size:28px;
}

.dt-stats-modal .dt-stat-status
{
	min-height:64px;
}

.dt-stats-modal .dt-stat-status .dt-stat__label
{
	white-space:normal;
}

.dt-stats-modal .dt-info-publication
{
	--dt-publication-value-column:auto;
}

.dt-stats-modal .dt-info-publication .dt-stat
{
	display:flex;
}

@media screen and (max-width:991px)
{
	.dt-stats-toggle
	{
		height:30px;
		padding:0 12px;
	}
}

@media screen and (max-width:640px)
{
	.dt-stats-modal
	{
		padding:12px;
		align-items:flex-end;
	}

	.dt-stats-modal__dialog
	{
		width:100%;
		max-height:calc(100vh - 24px);
		padding:30px;
		border-radius:15px 15px 10px 10px;
	}

	.dt-stats-modal__header
	{
		float:none;
		flex-direction:column;
		align-items:stretch;
		gap:14px;
		width:auto;
		height:auto;
		padding:0;
		margin:0 0 15px;
		background:transparent;
	}

	.dt-stats-modal__titles h2
	{
		font-size:18px;
	}

	.dt-stats-modal__total
	{
		display:flex;
		align-items:center;
		justify-content:space-between;
		min-width:0;
		text-align:left;
	}

	.dt-stats-modal__total-value,
	.dt-stats-modal__total strong
	{
		margin-top:0;
		font-size:22px;
	}

	.dt-stats-modal__body,
	.dt-stats-modal__group
	{
		grid-template-columns:1fr;
		gap:8px;
	}

	.dt-stats-group
	{
		gap:5px;
		margin-left:8px;
	}

	.dt-stats-toggle
	{
		gap:4px;
		padding:0 7px;
		font-size:10px;
	}
}

html[data-theme="dark"] .dt-stats-modal__backdrop
{
	background:rgba(0, 0, 0, .60);
}

html[data-theme="dark"] .dt-stats-modal__dialog
{
	background:var(--poenfi-admin-surface, #1b222a);
	border-color:var(--poenfi-admin-border, #2d3741);
	box-shadow:0 24px 64px rgba(0, 0, 0, .45);
}

html[data-theme="dark"] .dt-stats-modal__close
{
	color:#f97066;
}

html[data-theme="dark"] .dt-stats-modal__close:hover
{
	color:#ffb4ae;
	background:transparent;
}

html[data-theme="dark"] .dt-stats-modal__titles h2,
html[data-theme="dark"] .dt-stats-modal__total-value,
html[data-theme="dark"] .dt-stats-modal__total strong,
html[data-theme="dark"] .dt-stats-modal .dt-stat,
html[data-theme="dark"] .dt-stats-modal .dt-stat__label,
html[data-theme="dark"] .dt-stats-modal .dt-stat__value,
html[data-theme="dark"] .dt-stats-modal .dt-stat-history__text strong
{
	color:var(--poenfi-admin-text, #e8eef4);
}

html[data-theme="dark"] .dt-stats-modal__titles p,
html[data-theme="dark"] .dt-stats-modal__total-label,
html[data-theme="dark"] .dt-stats-modal__total span,
html[data-theme="dark"] .dt-stats-modal .dt-stat-history__text small,
html[data-theme="dark"] .dt-stats-modal .dt-stat__help
{
	color:var(--poenfi-admin-muted, #94a3b8);
}

html[data-theme="dark"] .dt-stats-modal__total,
html[data-theme="dark"] .dt-stats-modal .dt-stat
{
	background:var(--poenfi-admin-surface, #1b222a);
	border-color:var(--poenfi-admin-border, #2d3741);
	box-shadow:none;
}

html[data-theme="dark"] .dt-stats-modal .dt-stat-history__icon
{
	background:rgba(217, 69, 69, .16);
}
