/* ==========================================================================
   Dope Data Table Frontend Widget Styling
   ========================================================================== */

.dope-data-table-container {
	background: #ffffff;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
	border: 1px solid #f1f5f9;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	margin: 20px auto;
	max-width: 100%;
	box-sizing: border-box;
}

.dope-data-table-title {
	font-size: 22px;
	font-weight: 700;
	color: var( --e-global-color-primary, #2b007d );
	margin-top: 0;
	margin-bottom: 24px;
	line-height: 1.3;
}

.dope-data-table-wrapper {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 8px;
	padding-bottom: 6px; /* Spacing between the table content and the scrollbar */

	/* Firefox scrollbar styling */
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Custom scrollbar styling for Chrome, Safari, Edge, and Opera */
.dope-data-table-wrapper::-webkit-scrollbar {
	height: 8px;
	display: block;
}

.dope-data-table-wrapper::-webkit-scrollbar-track {
	background: #f1f5f9;
	border-radius: 8px;
}

.dope-data-table-wrapper::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 8px;
	border: 1px solid #f1f5f9;
}

.dope-data-table-wrapper::-webkit-scrollbar-thumb:hover {
	background: var( --e-global-color-primary, #1e7b57 );
}

.dope-data-table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	text-align: left;
	font-size: 14px;
	line-height: 1.5;
}

.dope-data-table th {
	background-color: var( --e-global-color-primary, #1e7b57 );
	color: #ffffff;
	font-weight: 600;
	padding: 16px 20px;
	vertical-align: middle;
	font-size: 14px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.dope-data-table th:first-child {
	border-top-left-radius: 8px;
}

.dope-data-table th:last-child {
	border-top-right-radius: 8px;
	border-right: none;
}

.dope-data-table td {
	padding: 16px 20px;
	color: #334155;
	border-bottom: 1px solid #e2e8f0;
	border-right: 1px solid #e2e8f0;
	vertical-align: middle;
	background-color: #ffffff;
	transition: background-color 0.2s ease;
}

.dope-data-table td:first-child {
	border-left: 1px solid #e2e8f0;
}

.dope-data-table tr:last-child td {
	border-bottom: 1px solid #e2e8f0;
}

.dope-data-table tr:last-child td:first-child {
	border-bottom-left-radius: 8px;
}

.dope-data-table tr:last-child td:last-child {
	border-bottom-right-radius: 8px;
}

/* Subtle Row Hover Effect */
.dope-data-table tr:hover td {
	background-color: #f8fafc;
}

/* Zebra Striping Style Support */
.dope-data-table.zebra tr:nth-child(even) td {
	background-color: #f8fafc;
}
.dope-data-table.zebra tr:nth-child(even):hover td {
	background-color: #f1f5f9;
}

/* Responsive Table Adjustments */
@media (max-width: 768px) {
	.dope-data-table-container {
		padding: 20px;
	}
	.dope-data-table th, 
	.dope-data-table td {
		padding: 12px 14px;
		font-size: 13px;
	}
	.dope-data-table-title {
		font-size: 18px;
		margin-bottom: 18px;
	}
}
