/* K-Table — styles front minimalistes. */

.ktable-wrap {
	margin: 1.2em 0;
	font-size: 0.95rem;
}

.ktable-title {
	font-weight: 600;
	font-size: 1.1em;
	margin-bottom: 0.5em;
}

.ktable-toolbar {
	display: flex;
	align-items: center;
	gap: 0.75em;
	margin-bottom: 0.6em;
}

.ktable-search {
	flex: 0 1 260px;
	max-width: 100%;
	padding: 0.4em 0.6em;
	border: 1px solid #cfd4da;
	border-radius: 6px;
	font: inherit;
}

.ktable-count {
	color: #6b7280;
	font-size: 0.85em;
}

.ktable-scroll {
	overflow-x: auto;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
}

table.ktable {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	background: #fff;
}

table.ktable th,
table.ktable td {
	text-align: left;
	padding: 0.55em 0.8em;
	border-bottom: 1px solid #eef0f2;
	vertical-align: top;
}

table.ktable thead th {
	background: #f7f8fa;
	font-weight: 600;
	white-space: nowrap;
	border-bottom: 2px solid #e5e7eb;
	position: sticky;
	top: 0;
}

table.ktable th.ktable-sortable {
	cursor: pointer;
	user-select: none;
}

table.ktable th.ktable-sortable:hover {
	background: #eef1f5;
}

.ktable-arrow {
	display: inline-block;
	width: 0.8em;
	margin-left: 0.35em;
	color: #9aa2ad;
	font-size: 0.85em;
}

th.ktable-asc .ktable-arrow::after { content: "▲"; color: #374151; }
th.ktable-desc .ktable-arrow::after { content: "▼"; color: #374151; }

table.ktable tbody tr:nth-child(even) td {
	background: #fbfcfd;
}

table.ktable tbody tr:hover td {
	background: #f2f6fb;
}

table.ktable a {
	color: #1d4ed8;
	text-decoration: none;
}
table.ktable a:hover {
	text-decoration: underline;
}

.ktable-empty {
	color: #6b7280;
	font-style: italic;
	margin: 0.6em 0;
}

.ktable-total {
	color: #4b5563;
	font-size: 0.9em;
	margin-bottom: 0.5em;
}

/* Bordures visibles (grille complète). */
table.ktable-bordered th,
table.ktable-bordered td {
	border: 1px solid #d1d5db;
}
table.ktable-bordered thead th {
	border-bottom: 2px solid #b8bfc9;
}

/* Sans bordures de cellules. */
table.ktable-borderless th,
table.ktable-borderless td {
	border: 0;
}
table.ktable-borderless thead th {
	border-bottom: 1px solid #e5e7eb;
}

tr.ktable-hidden {
	display: none;
}
