/* ========================================
   CHECKORDER SIMPLE & PROFESSIONAL LAYOUT
   ======================================== */

/* Reset & Base */
body {
	margin: 0;
	padding: 0;
	background: #f5f7fa;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* ========================================
   HEADER - Compact & Simple
   ======================================== */
.checkorder-header-modern {
	background: #2563eb;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	position: sticky;
	top: 0;
	z-index: 1000;
	border-bottom: 1px solid #e2e8f0;
}

.header-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 60px;
}

.header-brand {
	flex: 1;
}

.brand-link {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: #1e293b;
	transition: opacity 0.2s;
}

.brand-link:hover {
	opacity: 0.8;
	text-decoration: none;
}

.brand-logo {
	width: 45px;
	height: 45px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}

.brand-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.brand-initial {
	color: #fff;
	font-size: 20px;
	font-weight: 700;
}

.brand-name {
	font-size: 20px;
	font-weight: 700;
	color: #ffffff;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 15px;
}

.header-hotline {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: #2563eb;
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
	transition: background 0.2s;
}

.header-hotline:hover {
	background: #1e40af;
	color: #fff;
	text-decoration: none;
}

.header-hotline i {
	font-size: 16px;
}

.hotline-label {
	opacity: 0.9;
}

.hotline-number {
	font-weight: 700;
}

/* ========================================
   HERO SEARCH SECTION - Simple & Clean
   ======================================== */
.checkorder-hero-section {
	background: #f8fafc;
	padding: 40px 15px;
	margin-bottom: 30px;
	border-bottom: 1px solid #e2e8f0;
}

.hero-background,
.hero-overlay {
	display: none;
}

.hero-content {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
}

.hero-title-section {
	text-align: center;
	margin-bottom: 30px;
}

.hero-title {
	font-size: 28px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 10px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.hero-title i {
	font-size: 30px;
	color: #2563eb;
}

.hero-subtitle {
	font-size: 15px;
	color: #64748b;
	margin: 0;
	line-height: 1.5;
	font-weight: 400;
}

/* Hero Search Form */
.hero-search-form {
	background: #fff;
	border-radius: 12px;
	padding: 25px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-form-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: stretch;
}

.form-group-search {
	flex: 1;
	min-width: 250px;
}

.form-group-captcha {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.input-icon {
	position: absolute;
	left: 15px;
	color: #64748b;
	font-size: 16px;
	pointer-events: none;
	z-index: 1;
}

.form-input-modern {
	width: 100%;
	padding: 12px 15px 12px 45px;
	font-size: 15px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
	color: #1e293b;
	transition: border-color 0.2s;
	font-family: inherit;
}

.form-input-modern:focus {
	outline: none;
	border-color: #2563eb;
}

.input-wrapper.input-focused .input-icon {
	color: #2563eb;
}

.form-input-modern::placeholder {
	color: #94a3b8;
}

.captcha-wrapper {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.captcha-input {
	width: 130px;
	padding: 12px 15px;
	text-align: center;
	letter-spacing: 2px;
	font-weight: 600;
	font-size: 16px;
}

.captcha-image {
	height: 48px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.2s;
	background: #fff;
	padding: 2px;
}

.captcha-image:hover {
	border-color: #2563eb;
}

.captcha-wrapper.input-focused .captcha-image {
	border-color: #2563eb;
}

.btn-search-modern {
	padding: 12px 28px;
	font-size: 16px;
	font-weight: 600;
	border: none;
	border-radius: 8px;
	background: #2563eb;
	color: #fff;
	cursor: pointer;
	transition: background 0.2s;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
}

.btn-search-modern:hover {
	background: #1e40af;
}

.btn-search-modern i {
	font-size: 18px;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.checkorder-main-content {
	padding: 30px 15px;
	background: #f5f7fa;
}

.content-container {
	max-width: 1200px;
	margin: 0 auto;
}

/* ========================================
   INVOICE WRAPPER
   ======================================== */
.checkorder-invoice-wrapper {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	overflow: hidden;
	margin-bottom: 30px;
	border: 1px solid #e2e8f0;
}

/* Invoice Header */
.invoice-header-card {
	background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
	padding: 30px 35px;
	color: #fff;
}

.invoice-header-main {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.invoice-title-section {
	flex: 1;
}

.invoice-title {
	font-size: 26px;
	font-weight: 700;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.invoice-title i {
	font-size: 28px;
	color: #ffd700;
}

.invoice-meta-badges {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.invoice-badge-item {
	background: rgba(255,255,255,0.2);
	backdrop-filter: blur(10px);
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid rgba(255,255,255,0.3);
}

.invoice-badge-item i {
	font-size: 16px;
}

/* ========================================
   INFO SECTION - Simple Cards
   ======================================== */
.invoice-info-section {
	padding: 30px;
	background: #f8fafc;
}

.info-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}

.info-card-simple {
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-card-title {
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	padding: 18px 20px;
	border-bottom: 2px solid #e2e8f0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.info-card-title i {
	font-size: 20px;
	color: #2563eb;
	width: 24px;
	text-align: center;
}

.info-card-title h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #1e293b;
}

.info-card-content {
	padding: 20px;
}

.info-table-simple {
	width: 100%;
	border-collapse: collapse;
}

.info-table-simple tr {
	border-bottom: 1px solid #f1f5f9;
}

.info-table-simple tr:last-child {
	border-bottom: none;
}

.info-table-simple td {
	padding: 12px 0;
	vertical-align: top;
}

.info-table-simple .info-label {
	width: 40%;
	font-weight: 600;
	color: #64748b;
	font-size: 14px;
	padding-right: 15px;
}

.info-table-simple .info-value {
	color: #1e293b;
	font-size: 15px;
}

.info-table-simple .info-value strong {
	color: #2563eb;
	font-weight: 700;
}

.info-table-simple .badge-primary,
.badge-primary {
	background: #2563eb !important;
	color: #fff !important;
	padding: 5px 12px !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	display: inline-block !important;
	border: none !important;
	box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3) !important;
}

/* ========================================
   DETAILS SECTION
   ======================================== */
.invoice-details-section {
	padding: 30px;
	background: #fff;
}

.detail-card-simple {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	margin-bottom: 20px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-card-title {
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	padding: 18px 20px;
	border-bottom: 2px solid #e2e8f0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.detail-card-title i {
	font-size: 20px;
	color: #2563eb;
	width: 24px;
	text-align: center;
}

.detail-card-title.request i { color: #2563eb; }
.detail-card-title.error i { color: #ef4444; }
.detail-card-title.additional i { color: #f59e0b; }

.detail-card-title h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #1e293b;
}

.detail-card-content {
	padding: 20px;
}

.detail-text-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 18px;
	line-height: 1.8;
	color: #334155;
	font-size: 15px;
	min-height: 60px;
	word-wrap: break-word;
}

.update-info {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #64748b;
}

.update-info i {
	color: #2563eb;
}

.update-info strong {
	color: #1e293b;
	font-weight: 700;
}

/* ========================================
   TABLES - Simple & Clean
   ======================================== */
.table-card-simple {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	margin-bottom: 20px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.table-card-title {
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	padding: 18px 20px;
	border-bottom: 2px solid #e2e8f0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.table-card-title i {
	font-size: 20px;
	color: #2563eb;
	width: 24px;
	text-align: center;
}

.table-card-title.parts i { color: #2563eb; }
.table-card-title.services i { color: #10b981; }

.table-card-title h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #1e293b;
}

.table-card-body {
	padding: 0;
	overflow-x: auto;
}

.data-table-modern {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.data-table-modern thead {
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.data-table-modern thead th {
	padding: 16px 20px;
	font-size: 13px;
	font-weight: 700;
	color: #475569;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 2px solid #e2e8f0;
	text-align: left;
}

.data-table-modern tbody tr {
	border-bottom: 1px solid #f1f5f9;
	transition: background 0.2s;
}

.data-table-modern tbody tr:hover {
	background: #f8fafc;
}

.data-table-modern tbody td {
	padding: 16px 20px;
	font-size: 14px;
	color: #334155;
}

.data-table-modern tbody td strong {
	color: #1e293b;
	font-weight: 700;
}

/* ========================================
   TOTAL AMOUNT CARD
   ======================================== */
.total-amount-card {
	background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
	border-radius: 12px;
	padding: 25px 30px;
	margin: 25px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #fff;
	box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.total-label {
	font-size: 18px;
	font-weight: 600;
}

.total-value {
	font-size: 28px;
	font-weight: 800;
	text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ========================================
   PAYMENT SECTION
   ======================================== */
.payment-section-simple {
	padding: 30px;
	background: #fff;
}

.return-date-box {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	border-radius: 12px;
	padding: 20px 25px;
	margin-bottom: 25px;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 20px;
	box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.return-date-icon {
	width: 50px;
	height: 50px;
	background: rgba(255,255,255,0.2);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	flex-shrink: 0;
}

.return-date-info {
	flex: 1;
}

.return-date-label {
	font-size: 14px;
	font-weight: 600;
	opacity: 0.9;
	margin-bottom: 5px;
}

.return-date-value {
	font-size: 18px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 10px;
}

.return-date-value i {
	font-size: 16px;
}

.payment-table-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.data-table-modern tfoot {
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border-top: 2px solid #e2e8f0;
}

.data-table-modern tfoot tr {
	border-bottom: none;
}

.data-table-modern tfoot td {
	padding: 18px 20px;
	font-size: 15px;
	font-weight: 700;
	color: #1e293b;
	background: transparent;
}

.payment-total-row td {
	background: transparent !important;
}

.total-paid-amount {
	color: #10b981;
	font-size: 18px;
	font-weight: 800;
}

/* ========================================
   PRINT BUTTON
   ======================================== */
.print-action-section {
	text-align: center;
	padding: 30px 20px;
}

.btn-print-modern {
	padding: 14px 35px;
	font-size: 16px;
	font-weight: 700;
	border: none;
	border-radius: 10px;
	background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
	color: #fff;
	cursor: pointer;
	transition: all 0.3s;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-print-modern:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
	background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

.btn-print-modern i {
	font-size: 18px;
}

/* ========================================
   NO RESULT
   ======================================== */
.no-result-wrapper {
	padding: 60px 20px;
	text-align: center;
}

.no-result-box {
	max-width: 1200px;
	margin: 0 auto;
	padding: 50px 40px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	border: 1px solid #e2e8f0;
}

.no-result-icon {
	margin-bottom: 20px;
}

.no-result-icon i {
	font-size: 64px;
	color: #cbd5e1;
}

.no-result-title {
	font-size: 20px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 10px 0;
}

.no-result-text {
	font-size: 15px;
	color: #64748b;
	margin: 0;
	line-height: 1.6;
}

/* ========================================
   FOOTER - Modern & Simple
   ======================================== */
.checkorder-footer-modern {
	background: #1e293b;
	color: #fff;
	padding: 25px 0;
	margin-top: 50px;
	border-top: 1px solid #334155;
}

.footer-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
}

.footer-content {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 20px;
}

.footer-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: rgba(255,255,255,0.9);
}

.footer-item i {
	font-size: 14px;
	color: rgba(255,255,255,0.7);
}

.footer-item span {
	line-height: 1.5;
}

/* Empty value styling */
.info-value:empty::before,
.info-value:contains("-") {
	color: #cbd5e1;
}

.info-value:contains("-") {
	color: #94a3b8;
	font-style: italic;
}

/* Print media queries */
@media print {
	.checkorder-header-modern,
	.checkorder-hero-section,
	.checkorder-footer-modern,
	.print-action-section {
		display: none;
	}
	
	.checkorder-main-content {
		padding: 0;
		background: #fff;
	}
	
	.checkorder-invoice-wrapper {
		box-shadow: none;
		border: none;
	}
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.col_center {
	text-align: center;
}

.col_number {
	text-align: right;
}

@media (max-width: 767px) {
	.col_number {
		text-align: right;
	}
	
	.data-table-modern tbody td[data-title]::before {
		content: attr(data-title) ": ";
		font-weight: 600;
		color: #64748b;
	}
}

.hidden-xs {
	display: table-row;
}

@media (max-width: 767px) {
	.hidden-xs {
		display: none;
	}
}

/* Animation */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.checkorder-invoice-wrapper {
	animation: fadeInUp 0.5s ease;
}

/* Override old styles */
#wrapper_content_input {
	display: none !important;
}

.box_input_check {
	display: none !important;
}

.wrapper_content_checkorder_online {
	padding-top: 0 !important;
}

/* Ensure body has proper background */
body {
	background: #f5f7fa !important;
}

/* Fix for old box classes if still used */
.box {
	border: none !important;
	box-shadow: none !important;
	background: transparent !important;
}

.box-header {
	border: none !important;
	padding: 0 !important;
	background: transparent !important;
}

.box-body {
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
}

.box-footer {
	border: none !important;
	padding: 0 !important;
	background: transparent !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
	.header-container {
		height: 60px;
		padding: 0 15px;
	}
	
	.brand-name {
		font-size: 18px;
	}
	
	.brand-logo {
		width: 40px;
		height: 40px;
	}
	
	.header-hotline {
		padding: 8px 15px;
		font-size: 13px;
	}
	
	.header-hotline .hotline-label {
		display: none;
	}
	
	.checkorder-hero-section {
		padding: 30px 15px;
	}
	
	.hero-title {
		font-size: 24px;
		flex-direction: column;
		gap: 8px;
	}
	
	.hero-title i {
		font-size: 28px;
	}
	
	.hero-subtitle {
		font-size: 14px;
	}
	
	.hero-search-form {
		padding: 20px 15px;
	}
	
	.search-form-row {
		flex-direction: column;
	}
	
	.form-group-search,
	.form-group-captcha {
		width: 100%;
	}
	
	.captcha-wrapper {
		width: 100%;
		justify-content: space-between;
	}
	
	.captcha-input {
		flex: 1;
	}
	
	.btn-search-modern {
		width: 100%;
		justify-content: center;
	}
	
	.checkorder-main-content {
		padding: 20px 15px;
	}
	
	.invoice-header-card {
		padding: 20px;
	}
	
	.invoice-header-main {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.invoice-title {
		font-size: 22px;
		margin-bottom: 15px;
	}
	
	.invoice-meta-badges {
		width: 100%;
		flex-direction: column;
	}
	
	.invoice-badge-item {
		width: 100%;
		justify-content: center;
	}
	
	.invoice-info-section,
	.invoice-details-section,
	.payment-section-simple {
		padding: 20px;
	}
	
	.info-cards-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.info-table-simple .info-label {
		width: 35%;
		font-size: 13px;
	}
	
	.info-table-simple .info-value {
		font-size: 14px;
	}
	
	.data-table-modern thead th,
	.data-table-modern tbody td {
		padding: 12px 10px;
		font-size: 13px;
	}
	
	.total-amount-card {
		flex-direction: column;
		text-align: center;
		gap: 10px;
		padding: 20px;
	}
	
	.total-value {
		font-size: 24px;
	}
	
	.return-date-box {
		flex-direction: column;
		text-align: center;
		padding: 20px;
	}
	
	.footer-content {
		flex-direction: column;
		gap: 12px;
		text-align: center;
	}
	
	.footer-item {
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.hero-title {
		font-size: 24px;
	}
	
	.invoice-title {
		font-size: 20px;
	}
	
	.info-card-title h3,
	.detail-card-title h3,
	.table-card-title h3 {
		font-size: 15px;
	}
}

