/* Custom table styles */

#table, #smsTable {
	width: 100%;
	border-collapse: separate;
	border-spacing: 1px;
	border: 1px solid #dee2e6;
	table-layout: fixed;
}

#table th,
#smsTable th {
	display: none;
}

#table tr,
#smsTable tr {
	display: grid;
	border-bottom: 1px solid #dee2e6;
	width: 100%;
}

#table td,
#smsTable td {
	width: 100%;
	padding: 0.5rem;
	justify-items: flex-start;
	border-bottom: 1px solid #dee2e6;
	padding-block: 0.75rem;
	display: grid;
	grid-template-columns: 1fr 4fr;
	align-items: center;
	gap: 0.5rem;
}

td .table-head {
	font-weight: 600;
}

/* Search box styles */
#tableSearch {
	max-width: 300px;
	transition: all 0.3s;
}

#tableSearch:focus {
	box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Pagination styles */
.pagination {
	margin: 0;
}

.page-item {
	margin: 0 2px;
}

.page-item.active .page-link {
	background-color: #0d6efd;
	border-color: #0d6efd;
	color: white;
}

.page-link {
	color: #0d6efd;
	border: 1px solid #dee2e6;
	padding: 0.375rem 0.75rem;
}

.page-link:hover {
	background-color: #e9ecef;
	border-color: #dee2e6;
	color: #0a58ca;
}

.page-item.disabled .page-link {
	color: #6c757d;
	pointer-events: none;
	background-color: #fff;
	border-color: #dee2e6;
}

.dataTables_info {
	padding-top: 0.5rem;
	color: #6c757d;
}

#noDataRow td {
	display: table-cell;
}

@media screen and (min-width: 768px) {
	#table {
		display: table;
		table-layout: fixed;
	}

	#smsTable {
		display: table;
		table-layout: auto;
	}

	#table th, #smsTable th {
		display: table-cell;
		padding: 12px 8px;
	}

	#smsTable tr th {
		background-color: rgb(248, 249, 250); 
		font-weight: 600;
	}

	#smsTable tbody tr {
		background-color: rgba(0, 0, 0, 0.05);
	}

	#table tr, #smsTable tr {
		display: table-row;
		border-bottom: none;
	}

	#table td, #smsTable td {
		padding: 10px 8px;
		border-bottom: none;
		display: table-cell;
	}

	#table td .table-head, #smsTable td .table-head {
		display: none;
	}
}
