/* Modern Bootstrap Card Styles - No Traditional Tables */
/* All tables converted to responsive Bootstrap cards */

/* Bootstrap Card Overrides for Black & Yellow Theme */
.card {
	background: var(--surface);
	border: 1px solid var(--border-color);
	border-radius: 0;
	box-shadow: var(--shadow-md);
	margin-bottom: 1.5rem;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.card:hover {
	box-shadow: var(--shadow-lg);
}

.card-header {
	background: var(--gradient-primary);
	color: #000000;
	font-weight: 700;
	font-size: 1.125rem;
	padding: 1rem 1.5rem;
	border-bottom: none;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	width: 100%;
	margin: 0;
	border-radius: 0;
}

.card-body {
	padding: 1.5rem;
	background: var(--surface);
	color: var(--text-primary);
}

.card-footer {
	background: var(--surface-light);
	border-top: 1px solid var(--border-color);
	padding: 1rem 1.5rem;
	color: var(--text-secondary);
}

/* Stats Cards */
.stats-card {
	background: var(--surface);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 1.5rem;
	text-align: center;
	transition: all 0.2s ease;
}

.stats-card:hover {
	border-color: var(--primary-color);
	box-shadow: 0 0 20px rgba(253, 185, 26, 0.2);
}

.stats-card-value {
	font-size: 2rem;
	font-weight: 700;
	color: var(--primary-color);
	margin: 0.5rem 0;
}

.stats-card-label {
	color: var(--text-secondary);
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Modern Clean Table Design */
table {
	width: 100%;
	background: transparent;
	border-radius: 0;
	overflow: hidden;
	border: none;
	margin: 1rem 0;
	border-collapse: collapse;
	border-spacing: 0;
}

/* Clean, minimal thead - inspired by modern data tables */
thead {
	background: transparent;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	position: relative;
}

thead th {
	padding: 0.875rem 1.25rem;
	text-align: left;
	font-weight: 600;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.6);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: transparent;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	transition: color 0.2s ease;
	white-space: nowrap;
}

thead th:hover {
	color: rgba(255, 255, 255, 0.9);
}

/* Clean tbody rows with subtle alternating background */
tbody tr {
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	transition: background-color 0.15s ease;
	background: transparent;
}

tbody tr:nth-child(even) {
	background: rgba(255, 255, 255, 0.02);
}

tbody tr:hover {
	background: rgba(253, 185, 26, 0.08);
}

tbody tr:last-child {
	border-bottom: none;
}

tbody td {
	padding: 1rem 1.25rem;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.8);
	vertical-align: middle;
}

tbody td:first-child {
	font-weight: 500;
	color: rgba(255, 255, 255, 0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
	table {
		font-size: 0.8125rem;
		display: block;
		overflow-x: auto;
	}
	
	.card-body {
		padding: 1rem;
	}
	
	.stats-card {
		padding: 1rem;
	}
	
	.stats-card-value {
		font-size: 1.5rem;
	}
}
	}
	
	thead th,
	tbody td {
		padding: 0.75rem 0.5rem;
	}
	
	/* Stack table on mobile */
	table.responsive {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}
}

/* Action buttons in tables */
td .button,
td button {
	padding: 0.5rem 1rem;
	font-size: 0.75rem;
	margin: 0 0.25rem;
}

/* Table sorting */
thead th.sortable {
	cursor: pointer;
	user-select: none;
}

thead th.sortable:hover {
	background: transparent;
	color: rgba(255, 255, 255, 0.9);
}

thead th.sortable::after {
	content: "⇅";
	margin-left: 0.5rem;
	opacity: 0.3;
	font-size: 0.75rem;
}

thead th.sorted-asc::after {
	content: "↑";
	opacity: 1;
	color: var(--primary-color);
}

thead th.sorted-desc::after {
	content: "↓";
	opacity: 1;
	color: var(--primary-color);
}

/* Empty state */
tbody.empty {
	text-align: center;
}

tbody.empty td {
	padding: 3rem;
	color: var(--text-secondary);
	font-style: italic;
}

/* Loading state */
table.loading {
	opacity: 0.6;
	pointer-events: none;
}

/* ========================================
   Bootstrap Card-Based Table Design
   ======================================== */

/* Override for dataGrid tables - make them card-like */
table.dataGrid,
table.dataGrid2 {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: transparent;
	margin: 1.5rem 0;
}

table.dataGrid thead,
table.dataGrid2 thead {
	background: transparent;
	border-radius: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: none;
}

table.dataGrid thead th,
table.dataGrid2 thead th {
	padding: 0.875rem 1.25rem;
	text-align: left;
	font-weight: 600;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.6);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-right: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	transition: color 0.2s ease;
	background: transparent;
}

table.dataGrid thead th:last-child,
table.dataGrid2 thead th:last-child {
	border-right: none;
}

table.dataGrid thead th:hover,
table.dataGrid2 thead th:hover {
	color: rgba(255, 255, 255, 0.9);
	background: transparent;
}

table.dataGrid tbody tr,
table.dataGrid2 tbody tr {
	background: transparent;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	transition: background-color 0.15s ease;
}

table.dataGrid tbody tr:nth-child(even),
table.dataGrid2 tbody tr:nth-child(even) {
	background: rgba(255, 255, 255, 0.02);
}

table.dataGrid tbody tr:hover,
table.dataGrid2 tbody tr:hover {
	background: rgba(253, 185, 26, 0.08);
	transform: none;
	box-shadow: none;
}

table.dataGrid tbody tr:last-child,
table.dataGrid2 tbody tr:last-child {
	border-bottom: none;
}

table.dataGrid td,
table.dataGrid2 td {
	padding: 1rem 1.25rem;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.8);
	border: none;
	vertical-align: middle;
}

table.dataGrid td:first-child,
table.dataGrid2 td:first-child {
	font-weight: 500;
	color: rgba(255, 255, 255, 0.95);
}

/* Wrap tables in subtle containers */
.main-left-box > table,
.main-right-box > table {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: none;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Table links */
table.dataGrid a,
table.dataGrid2 a {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

table.dataGrid a:hover,
table.dataGrid2 a:hover {
	color: var(--secondary-color);
	text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
	table.dataGrid,
	table.dataGrid2 {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	
	table.dataGrid thead th,
	table.dataGrid2 thead th {
		padding: 0.75rem 1rem;
		font-size: 0.75rem;
	}
	
	table.dataGrid td,
	table.dataGrid2 td {
		padding: 0.75rem 1rem;
		font-size: 0.8125rem;
	}
}

/* ========================================
   Special Row Styling (ssrow, ssselected)
   ======================================== */

/* Style for separator rows and special rows - matches clean table aesthetic */
tr.ssrow {
	background: transparent;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	transition: background-color 0.15s ease;
}

tr.ssrow:nth-child(even) {
	background: rgba(255, 255, 255, 0.02);
}

tr.ssrow:hover {
	background: rgba(253, 185, 26, 0.08) !important;
	transform: none;
}

tr.ssrow td {
	padding: 1rem 1.25rem;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.8);
	vertical-align: middle;
	border: none;
}

tr.ssrow td:first-child {
	font-weight: 500;
	color: rgba(255, 255, 255, 0.95);
}

/* Selected row styling */
tr.ssselected {
	background: rgba(253, 185, 26, 0.15) !important;
	border-left: 3px solid var(--primary-color);
}

tr.ssselected:hover {
	background: rgba(253, 185, 26, 0.20) !important;
}

tr.ssselected td {
	color: rgba(255, 255, 255, 0.95);
}

/* Bold row styling */
tr.bold, table.dataGrid tr.bold, table.dataGrid2 tr.bold {
	font-weight: 600;
	color: rgba(255, 255, 255, 0.95);
}

tr.bold td {
	font-weight: 600;
}
