* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	padding: 30px 15px;
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.container-custom {
	max-width: 1000px;
	margin: 0 auto;
}

.card-wrapper {
	background: white;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	overflow: hidden;
}

.card-header-custom {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 32px 28px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 20px;
}

.card-header-custom .header-left {
	flex: 1 1 520px;
	min-width: 240px;
}

.card-header-custom .header-actions {
	flex: 0 0 auto;
	display: flex;
	justify-content: flex-end;
	align-items: flex-start;
	min-width: 140px;
}

.card-header-custom > div:first-child {
	text-align: left;
}

.card-header-custom h1 {
	font-size: 28px;
	margin: 0 0 10px 0;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 14px;
}

.card-header-custom h1 img {
	height: 48px;
	width: 48px;
	border-radius: 50%;
	background: #ffffff;
	padding: 6px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.company-title {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 14px;
	line-height: 1.1;
}

.company-description,
.header-subtitle {
	margin: 0 0 16px 0;
	font-size: 14px;
	line-height: 1.7;
	opacity: 0.95;
	max-width: 770px;
}

.header-subtitle {
	font-weight: 500;
}

/* login button on header */
.btn-login {
	background: #ffffff88;
	color: #333;
	border: 1px solid #fff;
	padding: 6px 14px;
	border-radius: 6px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.btn-login:hover {
	background: #fff;
	color: #667eea;
	text-decoration: none;
}

.card-header-custom h1 {
	font-size: 26px;
	margin: 0 0 8px 0;
	font-weight: 700;
}

.card-header-custom p {
	margin: 0;
	font-size: 13px;
	opacity: 0.95;
}

.card-body-custom {
	padding: 25px;
}

.form-group {
	margin-bottom: 0;
}

.form-group label {
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
	display: block;
	font-size: 14px;
}

.input-group {
	display: flex;
	gap: 10px;
}

.form-control {
	flex: 1;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	padding: 11px 15px;
	font-size: 14px;
	transition: all 0.3s ease;
}

.form-control:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
	outline: none;
}

.btn-search {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	padding: 11px 25px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 14px;
	white-space: nowrap;
}

.btn-search:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-search:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.error-message {
	background: #fff5f5;
	color: #c41e3a;
	padding: 12px 15px;
	border-radius: 8px;
	margin-bottom: 20px;
	display: none;
	border-left: 4px solid #c41e3a;
	font-size: 14px;
}

.result-section {
	display: none;
}

.trader-info {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 10px;
	border-left: 4px solid #667eea;
	margin-bottom: 25px;
}

.trader-info h5 {
	color: #333;
	font-weight: 700;
	margin-bottom: 15px;
	margin-top: 0;
	font-size: 16px;
}

.trader-info-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

.trader-info-item {
	display: flex;
	flex-direction: column;
}

.trader-info-label {
	font-size: 11px;
	color: #666;
	font-weight: 600;
	text-transform: uppercase;
	margin-bottom: 5px;
	letter-spacing: 0.5px;
}

.trader-info-value {
	font-size: 15px;
	color: #333;
	font-weight: 600;
}

.summary-section {
	display: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin-bottom: 25px;
}

.summary-card {
	background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
	padding: 15px;
	border-radius: 10px;
	border: 1px solid #e0e0e0;
	text-align: center;
}

.summary-card h6 {
	color: #666;
	margin: 0 0 8px 0;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.summary-card .amount {
	font-size: 18px;
	color: #667eea;
	font-weight: 700;
	margin: 0;
}

.table-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	flex-wrap: wrap;
	gap: 10px;
}

.table-header h5 {
	margin: 0;
	color: #333;
	font-size: 16px;
	font-weight: 700;
}

.table-controls {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.btn-export {
	background: #fff;
	color: #667eea;
	border: 2px solid #667eea;
	padding: 8px 15px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	font-size: 13px;
	transition: all 0.3s ease;
}

.btn-export:hover {
	background: #667eea;
	color: white;
}

.table-responsive {
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e0e0e0;
	margin-bottom: 15px;
}

.table {
	margin: 0;
	font-size: 13px;
}

.table thead {
	background: #f8f9fa;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.5px;
}

.table thead th {
	border: none;
	padding: 12px 15px;
	color: #333;
}

.table tbody td {
	padding: 12px 15px;
	border: none;
	border-bottom: 1px solid #f0f0f0;
	color: #555;
}

.table tbody tr:hover {
	background: #f8f9fa;
}

.badge-status {
	padding: 5px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	display: inline-block;
}

.badge-lunas {
	background: #d4edda;
	color: #155724;
}

.badge-belum-lunas {
	background: #f8d7da;
	color: #721c24;
}

.badge-sebagian {
	background: #fff3cd;
	color: #856404;
}

.text-amount {
	font-weight: 600;
	color: #667eea;
}

.pagination-section {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.pagination-info {
	font-size: 13px;
	color: #666;
}

.pagination-controls {
	display: flex;
	gap: 5px;
}

.btn-paging {
	background: white;
	border: 1px solid #ddd;
	padding: 8px 12px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.btn-paging:hover:not(:disabled) {
	background: #667eea;
	color: white;
	border-color: #667eea;
}

.btn-paging.active {
	background: #667eea;
	color: white;
	border-color: #667eea;
}

.btn-paging:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.no-result {
	text-align: center;
	padding: 40px 20px;
	color: #999;
}

.no-result i {
	font-size: 48px;
	margin-bottom: 15px;
	opacity: 0.4;
}

.loading {
	display: none;
	text-align: center;
	padding: 40px 20px;
}

.loading-spinner {
	border: 4px solid #f3f3f3;
	border-top: 4px solid #667eea;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 15px;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

@media (max-width: 768px) {
	body {
		padding: 15px;
	}

	.card-header-custom {
		padding: 20px 15px;
	}

	.card-body-custom {
		padding: 20px 15px;
	}

	.card-header-custom h1 {
		font-size: 22px;
	}

	.input-group {
		flex-direction: column;
	}

	.btn-search {
		width: 100%;
	}

	.table-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.table-controls {
		width: 100%;
		justify-content: flex-start;
	}

	.trader-info-row {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.summary-section {
		grid-template-columns: repeat(2, 1fr);
	}

	.table {
		font-size: 12px;
	}

	.table thead th,
	.table tbody td {
		padding: 10px 12px;
	}

	.pagination-section {
		flex-direction: column;
	}

	.pagination-controls {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.card-header-custom h1 {
		font-size: 20px;
	}

	.card-header-custom p {
		font-size: 12px;
	}

	.summary-section {
		grid-template-columns: 1fr;
	}

	.summary-card {
		padding: 12px 10px;
	}

	.summary-card h6 {
		font-size: 10px;
	}

	.summary-card .amount {
		font-size: 16px;
	}

	.table {
		font-size: 11px;
	}

	.table thead th,
	.table tbody td {
		padding: 8px 10px;
	}

	.btn-export {
		padding: 6px 12px;
		font-size: 12px;
	}

	.btn-paging {
		padding: 6px 10px;
		font-size: 12px;
	}
}
