/* ----- FIXED NAVBAR (toolbar) at top ----- */
.erp_reports_navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: white;
	border-bottom: 1px solid #e1e8ed;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
	padding: 10px 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-end;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
}
.erp_reports_navbar_label {
	font-weight: 500;
	color: #2c3e50;
	margin-right: auto;
	font-size: 0.95rem;
	display: flex;
	align-items: center;
	gap: 8px;
}
.erp_reports_navbar_label i {
	color: #3498db;
}
.erp_reports_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: white;
	border: 1px solid #d0dae2;
	color: #1e2b37;
	padding: 8px 18px;
	border-radius: 8px;
	font-weight: 500;
	font-size: 0.85rem;
	cursor: pointer;
	transition: all 0.15s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
	font-family: 'Inter', sans-serif;
}
.erp_reports_btn i {
	font-size: 1rem;
	color: #3b5b7a;
}
.erp_reports_btn:hover {
	background: #f8fafc;
	border-color: #b0c4d9;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
	transform: translateY(-1px);
}
.erp_reports_btn_pdf {
	background: #fff5f5;
	border-color: #fad1d1;
	color: #b33a3a;
}
.erp_reports_btn_pdf i {
	color: #c0392b;
}
.erp_reports_btn_excel {
	background: #f0f9f0;
	border-color: #c8e6c9;
	color: #2e6b3e;
}
.erp_reports_btn_excel i {
	color: #2e7d32;
}
.erp_reports_btn_csv {
	background: #f5f7fa;
	border-color: #cfddee;
	color: #2c5282;
}
.erp_reports_btn_csv i {
	color: #2b6cb0;
}
.erp_reports_btn_html {
	background: #f3f0ff;
	border-color: #d9d0ff;
	color: #5a3e9c;
}
.erp_reports_btn_html i {
	color: #6b46c1;
}
/* ----- MAIN CONTENT AREA (scrollable) ----- */
.erp_reports_main_content {
	flex: 1;
	display: flex;
	justify-content: center;
	padding: 84px 16px 80px 16px;
	width: 100%;
	box-sizing: border-box;
	overflow-y: auto;
}
.erp_reports_report_wrapper {
	width: 100%;
	max-width: 1200px;
	display: flex;
	flex-direction: column;
	align-items: center;
}
/* ----- A4 REPORT SHEET (paper style) ----- */
.erp_reports_report_sheet {
	width: 100%;
	max-width: 1100px;
	background: white;
	border-radius: 6px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
	border: 1px solid #d9e2ec;
	padding: 36px 40px 30px 40px;
	transition: all 0.1s;
	color: #1a2634;
	box-sizing: border-box;
}
/* ----- INNER REPORT CONTAINER (for better visual grouping) ----- */
.erp_reports_report_inner_container {
	background: #ffffff;
	border-radius: 16px;
	padding: 4px 0;
	transition: all 0.1s;
}
/* ----- REPORT HEADER ----- */
.erp_reports_report_header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 28px;
	padding-bottom: 20px;
	border-bottom: 2px solid #e2e8f0;
}
.erp_reports_company_info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.erp_reports_company_name {
	font-size: 1.7rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #0b2b44;
	line-height: 1.2;
}
.erp_reports_company_sub {
	font-size: 0.85rem;
	color: #4b6a86;
	display: flex;
	align-items: center;
	gap: 6px;
}
.erp_reports_company_sub i {
	font-size: 0.75rem;
	color: #7d9bb5;
	width: 14px;
}
.erp_reports_report_meta {
	text-align: right;
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: #f8fafd;
	padding: 14px 22px;
	border-radius: 12px;
	border: 1px solid #e2e9f2;
	min-width: 220px;
}
.erp_reports_report_title {
	font-size: 1.4rem;
	font-weight: 700;
	color: #1e4a6b;
	letter-spacing: -0.01em;
	line-height: 1.3;
}
.erp_reports_report_period {
	font-size: 0.9rem;
	font-weight: 500;
	color: #4d6d8a;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 6px;
}
.erp_reports_report_period i {
	font-size: 0.8rem;
	color: #7d9bb5;
}
.erp_reports_report_id {
	font-size: 0.75rem;
	color: #6f8aa5;
	background: #eef4fb;
	padding: 3px 10px;
	border-radius: 30px;
	align-self: flex-end;
	font-weight: 500;
	letter-spacing: 0.02em;
}
/* ----- REPORT BODY (table) ----- */
.erp_reports_report_body {
	margin: 20px 0 28px 0;
	overflow-x: auto;
	border-radius: 12px;
	border: 1px solid #e3eaf2;
}
.erp_reports_table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
	background: white;
	border-radius: 12px;
	overflow: hidden;
}
.erp_reports_table thead {
	background: #1e3a5f;
	color: white;
}
.erp_reports_table thead th {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 0.7rem;
	padding: 14px 16px;
	text-align: left;
	white-space: nowrap;
	color: #f0f6ff;
	border-right: 1px solid #2d5074;
}
.erp_reports_table thead th:last-child {
	border-right: none;
}
.erp_reports_table tbody tr {
	border-bottom: 1px solid #e9f0f7;
	transition: background 0.1s;
}
.erp_reports_table tbody tr:last-child {
	border-bottom: none;
}
.erp_reports_table tbody tr:nth-child(even) {
	background: #fafcff;
}
.erp_reports_table tbody tr:hover {
	background: #f0f7ff;
}
.erp_reports_table tbody td {
	padding: 13px 16px;
	color: #1f3349;
	font-weight: 400;
	border-right: 1px solid #eef3f9;
}
.erp_reports_table tbody td:last-child {
	border-right: none;
}
.erp_reports_text_right {
	text-align: right;
}
.erp_reports_text_center {
	text-align: center;
}
.erp_reports_badge {
	background: #e7f0fa;
	color: #1b4b73;
	padding: 4px 12px;
	border-radius: 30px;
	font-size: 0.7rem;
	font-weight: 600;
	display: inline-block;
	letter-spacing: 0.02em;
}
.erp_reports_badge_success {
	background: #e3f5e9;
	color: #1e6b3b;
}
.erp_reports_badge_warning {
	background: #fff3e0;
	color: #a85d1c;
}
/* ----- REPORT FOOTER (summary & signatures) ----- */
.erp_reports_report_footer {
	margin-top: 20px;
	padding-top: 22px;
	border-top: 2px solid #e2e8f0;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 30px;
}
.erp_reports_footer_summary {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	min-width: 220px;
}
.erp_reports_summary_item {
	display: flex;
	justify-content: space-between;
	font-size: 0.9rem;
	padding: 4px 0;
	border-bottom: 1px dashed #e2e8f0;
	max-width: 280px;
}
.erp_reports_summary_label {
	color: #58738c;
	font-weight: 500;
}
.erp_reports_summary_value {
	font-weight: 700;
	color: #0b2b44;
}
.erp_reports_summary_total {
	font-size: 1.1rem;
	border-bottom: none;
	margin-top: 6px;
	padding-top: 8px;
	border-top: 2px solid #cddae8;
}
.erp_reports_footer_signatures {
	display: flex;
	gap: 44px;
	align-items: flex-end;
	flex-wrap: wrap;
}
.erp_reports_signature_block {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 150px;
}
.erp_reports_signature_line {
	height: 1px;
	background: #9fb3c8;
	width: 100%;
	margin-top: 28px;
}
.erp_reports_signature_label {
	font-size: 0.75rem;
	color: #6b8aa8;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-weight: 500;
}
.erp_reports_signature_name {
	font-size: 0.85rem;
	font-weight: 600;
	color: #1e3e5c;
}
.erp_reports_footer_note {
	width: 100%;
	text-align: center;
	font-size: 0.7rem;
	color: #8ca2b8;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #e7eef6;
	letter-spacing: 0.02em;
}
/* ----- STATIC FOOTER BAR ----- */
.erp_reports_footer_bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: white;
	border-top: 1px solid #e1e8ed;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
	padding: 12px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 0.8rem;
	color: #58738c;
	box-sizing: border-box;
}
.erp_reports_footer_bar_left {
	display: flex;
	align-items: center;
	gap: 8px;
}
.erp_reports_footer_bar_left i {
	color: #3498db;
	font-size: 0.9rem;
}
.erp_reports_footer_bar_right {
	display: flex;
	align-items: center;
	gap: 16px;
}
.erp_reports_footer_bar_right span {
	display: flex;
	align-items: center;
	gap: 6px;
}
.erp_reports_footer_bar_right i {
	color: #7d9bb5;
	font-size: 0.8rem;
}

        /* ----- RESPONSIVE ADJUSTMENTS ----- */
        @media (max-width: 800px) {
	.erp_reports_navbar {
		padding: 8px 14px;
		gap: 8px;
	}
	.erp_reports_navbar_label {
		font-size: 0.8rem;
	}
	.erp_reports_btn {
		padding: 6px 12px;
		font-size: 0.75rem;
	}
	.erp_reports_main_content {
		padding: 76px 12px 72px 12px;
	}
	.erp_reports_report_sheet {
		padding: 24px 18px;
	}
	.erp_reports_report_inner_container {
		padding: 0;
	}
	.erp_reports_report_header {
		flex-direction: column;
		gap: 16px;
	}
	.erp_reports_report_meta {
		text-align: left;
		align-self: flex-start;
		width: 100%;
	}
	.erp_reports_report_id {
		align-self: flex-start;
	}
	.erp_reports_report_footer {
		flex-direction: column;
		gap: 24px;
	}
	.erp_reports_footer_signatures {
		width: 100%;
		justify-content: space-between;
	}
	.erp_reports_footer_bar {
		padding: 10px 16px;
		font-size: 0.7rem;
	}
}
 @media print {
	body {
		background: white;
	}
	.erp_reports_navbar,  .erp_reports_footer_bar {
		display: none;
	}
	.erp_reports_main_content {
		padding: 0;
		overflow: visible;
	}
	.erp_reports_report_sheet {
		box-shadow: none;
		border: none;
		padding: 0.5in;
		max-width: 100%;
	}
	.erp_reports_report_inner_container {
		padding: 0;
	}
	.erp_reports_report_wrapper {
		max-width: 100%;
		padding: 0;
	}
}
