/* ===== Anganwadi Nashta Report — shared styles ===== */

.ang-print-toolbar {
	background: #2c3e50;
	color: #fff;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	gap: 16px;
	font-family: Arial, sans-serif;
	font-size: 14px;
}
.ang-print-toolbar button {
	background: #27ae60;
	color: #fff;
	border: none;
	padding: 10px 18px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
}
.ang-print-toolbar button:hover { background: #219150; }

body.ang-print-body {
	font-family: "Noto Sans Devanagari", "Mangal", Arial, sans-serif;
	margin: 0;
	background: #f2f2f2;
}

.ang-print-wrap {
	background: #fff;
	max-width: 1400px;
	margin: 20px auto;
	padding: 24px 28px;
	box-shadow: 0 0 8px rgba(0,0,0,0.15);
}

.ang-header-block { text-align: center; margin-bottom: 8px; }
.ang-office-line { margin: 0; font-size: 14px; }
.ang-header-block h2 { margin: 4px 0 12px; font-size: 20px; text-decoration: underline; }

table.ang-topinfo { width: 100%; margin-bottom: 14px; border-collapse: collapse; font-size: 14px; }
table.ang-topinfo td { padding: 4px 6px; vertical-align: top; }

table.ang-main-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 11px;
	table-layout: fixed;
}
table.ang-main-table th, table.ang-main-table td {
	border: 1px solid #333;
	padding: 3px 4px;
	text-align: center;
	overflow-wrap: break-word;
}
table.ang-main-table thead th { background: #eaeaea; font-weight: bold; }
table.ang-main-table tfoot td { background: #f5f5c8; font-weight: bold; }
tr.ang-holiday-row { background: #fafafa; color: #999; }
tr.ang-leave-row { background: #fff3e0; color: #b26a00; }

.ang-summary-block {
	margin-top: 20px;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 20px;
}
table.ang-summary-box { border-collapse: collapse; font-size: 12px; }
table.ang-summary-box th, table.ang-summary-box td {
	border: 1px solid #333;
	padding: 5px 10px;
	text-align: center;
}
table.ang-summary-box thead th { background: #eaeaea; }

.ang-signature-block { font-size: 13px; text-align: right; }
.ang-signature-block p { margin: 4px 0; }

/* ===== Frontend entry form ===== */
.ang-frontend-form {
	max-width: 600px;
	margin: 0 auto;
	font-family: Arial, sans-serif;
}
.ang-frontend-form label { display: inline-block; margin-bottom: 10px; font-size: 14px; }
.ang-frontend-form input { display: block; padding: 6px 8px; margin-top: 3px; width: 100%; box-sizing: border-box; }
.ang-frontend-form p { display: flex; gap: 16px; }
.ang-fe-submit {
	display: inline-block;
	background: #2271b1;
	color: #fff !important;
	padding: 10px 18px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	font-size: 14px;
}
.ang-fe-success {
	background: #e6ffed;
	border: 1px solid #34a853;
	padding: 10px;
	margin-bottom: 12px;
	font-size: 13px;
}
.ang-fe-error {
	background: #fdecea;
	border: 1px solid #e53935;
	padding: 10px;
	margin-bottom: 12px;
	font-size: 13px;
}

/* ===== Frontend dashboard ===== */
.ang-dashboard { max-width: 900px; }
table.ang-fe-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	margin-bottom: 16px;
}
table.ang-fe-table th, table.ang-fe-table td {
	border: 1px solid #ccc;
	padding: 6px 8px;
	text-align: left;
}
table.ang-fe-table thead th { background: #f0f0f0; }
tr.ang-active-row { background: #eaf4ff; }
.ang-fe-small {
	padding: 5px 10px !important;
	font-size: 12px !important;
	margin-right: 6px;
}
.ang-fe-delete { color: #c0392b !important; text-decoration: underline; font-size: 12px; }
.ang-fe-newreport {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 10px 14px;
	margin: 14px 0;
	background: #fafafa;
}
.ang-fe-newreport summary { cursor: pointer; font-weight: bold; }
.ang-fe-login-notice { max-width: 400px; }

/* ===== Bulk monthly entry table ===== */
.ang-bulk-scroll { overflow-x: auto; margin-bottom: 10px; }
table.ang-bulk-table { min-width: 900px; }
table.ang-bulk-table td, table.ang-bulk-table th { white-space: nowrap; }
.ang-type-hint { font-size: 11px; color: #666; }
.ang-generate-btn { font-size: 15px; padding: 12px 22px !important; }

/* Inline auto-generated report embedded directly in the dashboard/admin page */
.ang-inline-report {
	margin: 16px 0;
	max-width: 100%;
	overflow-x: auto;
}
.ang-inline-report table.ang-main-table { font-size: 11px; }
td.ang-vitran-cell { background: #eaf7ea; font-weight: bold; }

/* ===== Print rules ===== */
@media print {
	.no-print, .ang-print-toolbar { display: none !important; }
	body.ang-print-body { background: #fff; }
	.ang-print-wrap { box-shadow: none; margin: 0; padding: 0; max-width: 100%; }
	@page { size: A4 portrait; margin: 6mm; }
	table.ang-main-table {
		font-size: 6.5px;
		table-layout: fixed;
		width: 100%;
	}
	table.ang-main-table th, table.ang-main-table td {
		padding: 1px 2px;
		line-height: 1.1;
	}
	table.ang-topinfo { font-size: 10px; }
	table.ang-summary-box { font-size: 9px; }
	.ang-header-block h2 { font-size: 15px; }
	.ang-office-line { font-size: 11px; }
}
