/* =========================================================
   KESLAN DATATABLES
   Global DataTables Theme
   Minimal • Modern • Elegant • Informative
========================================================= */

/* ---------------------------------------------------------
   ROOT / WRAPPER
--------------------------------------------------------- */

.dataTables_wrapper {
	width: 100%;
	margin: 0;
	padding: 0;
	color: #17384a;
	font-family: inherit;
	font-size: 14px;
}

/* Remove Bootstrap/DataTables visual clutter */
.dataTables_wrapper .row {
	margin-left: 0;
	margin-right: 0;
}

.dataTables_wrapper .row > [class*="col-"] {
	padding-left: 0;
	padding-right: 0;
}

/* ---------------------------------------------------------
   TOP CONTROL AREA
--------------------------------------------------------- */

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
	margin-bottom: 18px;
}

.dataTables_wrapper .dataTables_length {
	display: flex;
	align-items: center;
}

.dataTables_wrapper .dataTables_filter {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
	display: flex;
	align-items: center;
	gap: 8px;

	margin: 0;

	color: #647b82;
	font-size: 13px;
	font-weight: 500;
}

/* ---------------------------------------------------------
   LENGTH SELECT
--------------------------------------------------------- */

.dataTables_wrapper .dataTables_length select {
	width: auto;
	min-width: 72px;
	height: 38px;

	margin: 0 2px;
	padding: 0 30px 0 11px;

	border: 1px solid #dce8e6;
	border-radius: 9px;

	background-color: #ffffff;

	color: #214654;

	font-family: inherit;
	font-size: 13px;
	font-weight: 600;

	outline: none;
	box-shadow: none;

	cursor: pointer;

	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.dataTables_wrapper .dataTables_length select:focus {
	border-color: #0ab7a3;

	box-shadow: 0 0 0 3px rgba(10, 183, 163, 0.1);
}

/* ---------------------------------------------------------
   SEARCH
--------------------------------------------------------- */

.dataTables_wrapper .dataTables_filter input {
	width: 250px;
	height: 40px;

	margin-left: 7px;
	padding: 0 13px;

	border: 1px solid #dce8e6;
	border-radius: 10px;

	background: #ffffff;

	color: #214654;

	font-family: inherit;
	font-size: 13px;

	outline: none;
	box-shadow: none;

	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		width 0.2s ease;
}

.dataTables_wrapper .dataTables_filter input::placeholder {
	color: #9aaeb2;
}

.dataTables_wrapper .dataTables_filter input:focus {
	border-color: #0ab7a3;

	box-shadow: 0 0 0 3px rgba(10, 183, 163, 0.1);
}

/* ---------------------------------------------------------
   TABLE CONTAINER
--------------------------------------------------------- */

.dataTables_wrapper .dataTables_scroll {
	width: 100%;
}

.dataTables_wrapper .dataTables_scrollBody {
	border: 0 !important;
}

.dataTables_wrapper .dataTables_scrollHead {
	border: 0 !important;
}

.dataTables_wrapper .dataTables_scrollHead table,
.dataTables_wrapper .dataTables_scrollBody table {
	margin-top: 0 !important;
}

/* ---------------------------------------------------------
   TABLE
--------------------------------------------------------- */

table.dataTable {
	width: 100% !important;

	margin: 0 !important;

	border-collapse: separate !important;
	border-spacing: 0;

	color: #294e5c;

	font-size: 13.5px;

	background: #ffffff;
}

/* ---------------------------------------------------------
   TABLE HEADER
--------------------------------------------------------- */

table.dataTable thead th,
table.dataTable thead td {
	position: relative;

	padding: 14px 15px !important;

	border-top: 0 !important;
	border-bottom: 1px solid #dce9e7 !important;

	background: #f5faf9;

	color: #163f4d;

	font-size: 12px;
	font-weight: 750;

	line-height: 1.4;

	vertical-align: middle;

	white-space: nowrap;
}

table.dataTable thead th:first-child {
	border-top-left-radius: 11px;
}

table.dataTable thead th:last-child {
	border-top-right-radius: 11px;
}

/* Header accent */

table.dataTable thead th::after,
table.dataTable thead th::before {
	opacity: 0.55;
}

/* ---------------------------------------------------------
   BODY
--------------------------------------------------------- */

table.dataTable tbody td {
	padding: 13px 15px !important;

	border-top: 0 !important;
	border-bottom: 1px solid #edf2f1 !important;

	color: #526b74;

	font-size: 13px;
	line-height: 1.55;

	vertical-align: middle;

	background: #ffffff;

	transition:
		background-color 0.18s ease,
		color 0.18s ease;
}

/* First column */

table.dataTable tbody td:first-child {
	color: #70858b;
	font-weight: 600;
}

/* ---------------------------------------------------------
   ROW HOVER
--------------------------------------------------------- */

table.dataTable tbody tr {
	transition: background-color 0.18s ease;
}

table.dataTable tbody tr:hover td {
	background: #f8fcfb !important;
	color: #3f626d;
}

/* ---------------------------------------------------------
   STRIPED TABLE
   Very subtle, not visually heavy
--------------------------------------------------------- */

table.dataTable.stripe tbody tr.odd td,
table.dataTable.display tbody tr.odd td {
	background: #fcfefe;
}

table.dataTable.stripe tbody tr.odd:hover td,
table.dataTable.display tbody tr.odd:hover td {
	background: #f8fcfb !important;
}

/* ---------------------------------------------------------
   SORTING
--------------------------------------------------------- */

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
	background-position: right 10px center;
}

table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
	color: #087f75;
}

/* ---------------------------------------------------------
   EMPTY / NO DATA
--------------------------------------------------------- */

.dataTables_wrapper .dataTables_empty {
	padding: 45px 20px !important;

	color: #829398 !important;

	font-size: 13px;
	font-weight: 500;

	text-align: center;
}

/* ---------------------------------------------------------
   INFO
--------------------------------------------------------- */

.dataTables_wrapper .dataTables_info {
	padding-top: 18px;

	color: #71858a;

	font-size: 12.5px;
	line-height: 38px;
}

/* ---------------------------------------------------------
   PAGINATION
--------------------------------------------------------- */

.dataTables_wrapper .dataTables_paginate {
	display: flex;
	justify-content: flex-end;
	align-items: center;

	gap: 5px;

	padding-top: 14px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
	display: inline-flex !important;

	align-items: center;
	justify-content: center;

	min-width: 36px;
	height: 36px;

	margin: 0 !important;
	padding: 0 10px !important;

	border: 1px solid transparent !important;
	border-radius: 9px !important;

	background: transparent !important;

	color: #607a82 !important;

	font-size: 12.5px;
	font-weight: 600;

	line-height: 1;

	cursor: pointer;

	box-shadow: none !important;

	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
	border-color: #dce8e6 !important;

	background: #f5faf9 !important;

	color: #087f75 !important;

	transform: translateY(-1px);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
	border-color: #0ab7a3 !important;

	background: #0ab7a3 !important;

	color: #ffffff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
	border-color: transparent !important;

	background: transparent !important;

	color: #b5c2c5 !important;

	cursor: default;

	transform: none;
}

/* ---------------------------------------------------------
   BUTTONS
   Compatible with DataTables Buttons extension
--------------------------------------------------------- */

.dt-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;

	gap: 7px;

	margin-bottom: 16px;
}

.dt-button {
	display: inline-flex !important;

	align-items: center;
	justify-content: center;

	min-height: 37px;

	padding: 0 13px !important;

	border: 1px solid #dce8e6 !important;
	border-radius: 9px !important;

	background: #ffffff !important;

	color: #42616a !important;

	font-family: inherit !important;
	font-size: 12px !important;
	font-weight: 600 !important;

	box-shadow: none !important;

	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.dt-button:hover,
.dt-button:focus {
	border-color: #0ab7a3 !important;

	background: #f1faf8 !important;

	color: #087f75 !important;

	box-shadow: none !important;

	transform: translateY(-1px);
}

.dt-button:active,
.dt-button.active {
	border-color: #0ab7a3 !important;

	background: #0ab7a3 !important;

	color: #ffffff !important;
}

/* ---------------------------------------------------------
   RESPONSIVE TABLE
--------------------------------------------------------- */

@media (max-width: 991.98px) {
	.dataTables_wrapper .dataTables_filter input {
		width: 210px;
	}

	table.dataTable thead th,
	table.dataTable thead td {
		padding: 12px !important;
	}

	table.dataTable tbody td {
		padding: 11px 12px !important;
	}
}

/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 767.98px) {
	.dataTables_wrapper .dataTables_length,
	.dataTables_wrapper .dataTables_filter {
		display: flex;

		width: 100%;

		justify-content: flex-start;

		margin-bottom: 10px;
	}

	.dataTables_wrapper .dataTables_filter {
		justify-content: flex-start;
	}

	.dataTables_wrapper .dataTables_filter input {
		width: 100%;
		max-width: 100%;
		height: 38px;
	}

	.dataTables_wrapper .dataTables_length select {
		height: 38px;
	}

	.dataTables_wrapper .dataTables_paginate {
		justify-content: flex-start;

		flex-wrap: wrap;
	}

	.dataTables_wrapper .dataTables_info {
		padding-top: 14px;

		line-height: 1.5;
	}

	.dt-buttons {
		width: 100%;
	}

	.dt-button {
		flex: 0 0 auto;
	}
}

/* ---------------------------------------------------------
   SMALL MOBILE
--------------------------------------------------------- */

@media (max-width: 575.98px) {
	.dataTables_wrapper {
		font-size: 12px;
	}

	.dataTables_wrapper .dataTables_length label,
	.dataTables_wrapper .dataTables_filter label {
		width: 100%;
	}

	.dataTables_wrapper .dataTables_filter {
		display: block;
	}

	.dataTables_wrapper .dataTables_filter label {
		display: block;
	}

	.dataTables_wrapper .dataTables_filter input {
		display: block;

		width: 100%;

		margin: 7px 0 0;
	}

	.dataTables_wrapper .dataTables_paginate .paginate_button {
		min-width: 33px;
		height: 33px;

		padding: 0 8px !important;
	}

	.dt-buttons {
		gap: 5px;
	}

	.dt-button {
		min-height: 34px;

		padding: 0 10px !important;

		font-size: 11px !important;
	}
}

/* ---------------------------------------------------------
   DARK / OLD DATATABLES OVERRIDES
   Prevent old DataTables theme from leaking into Keslan
--------------------------------------------------------- */

.dataTables_wrapper table.dataTable.no-footer {
	border-bottom: 0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:active {
	background: transparent !important;
	box-shadow: none !important;
}

.dataTables_wrapper .dataTables_processing {
	border: 1px solid #dce8e6;

	border-radius: 12px;

	background: rgba(255, 255, 255, 0.96);

	color: #087f75;

	box-shadow: 0 10px 30px rgba(18, 59, 82, 0.08);
}

/* ---------------------------------------------------------
   ACCESSIBILITY
--------------------------------------------------------- */

.dataTables_wrapper button:focus-visible,
.dataTables_wrapper input:focus-visible,
.dataTables_wrapper select:focus-visible,
.dataTables_wrapper a:focus-visible {
	outline: 2px solid rgba(10, 183, 163, 0.45);
	outline-offset: 2px;
}

/* ---------------------------------------------------------
   REDUCE MOTION
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.dataTables_wrapper *,
	table.dataTable *,
	.dt-button {
		transition: none !important;
	}
}
