/* Admin pages — deliberately plain. Overrides the global IMFell + woodgrain
   body styling with a flat white sheet and a sans-serif so dense tabular
   content stays readable. Scoped to .admin-page so the rest of the app is
   unaffected. */

.admin-page {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: auto;
	background: #ffffff;
	color: #111;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	padding: 48px 32px 80px 32px;
	z-index: 1;
}

.admin-page h1 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 22px;
	margin: 16px 0 12px 0;
	color: #111;
}

.admin-page h2 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	margin: 16px 0 8px 0;
	color: #111;
}

.admin-page p {
	margin: 0 0 8px 0;
}

.admin-page a {
	color: #1a5fb4;
}

.admin-page code {
	font-family: Menlo, Consolas, monospace;
	font-size: 13px;
	background: #f3f3f3;
	padding: 1px 4px;
	border-radius: 2px;
}

/* Section toggle at the top */
.admin-page .admin-filters {
	display: flex;
	gap: 4px;
	margin-bottom: 16px;
}

.admin-page .admin-filter-btn {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	background: #f3f3f3;
	color: #111;
	border: 1px solid #ccc;
	padding: 6px 12px;
	cursor: pointer;
}

.admin-page .admin-filter-btn.active {
	background: #333;
	color: white;
	border-color: #333;
}

/* Tables */
.admin-page table {
	width: 100%;
	border-collapse: collapse;
	background: white;
	font-size: 14px;
}

.admin-page table th,
.admin-page table td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid #e8e8e8;
	vertical-align: top;
}

.admin-page table tr.toprow th {
	background: #f7f7f7;
	border-bottom: 2px solid #ccc;
	font-weight: bold;
}

/* Forms */
.admin-page input[type="text"],
.admin-page input[type="number"],
.admin-page textarea,
.admin-page select {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	padding: 4px 6px;
	border: 1px solid #ccc;
	border-radius: 2px;
	background: white;
	color: #111;
}

.admin-page label {
	align-self: center;
	color: #444;
}

.admin-page .threadbutton {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	background: #1a5fb4;
	color: white;
	border: none;
	padding: 6px 14px;
	cursor: pointer;
	border-radius: 2px;
}

.admin-page .threadbutton:disabled {
	background: #aac;
	cursor: not-allowed;
}

/* Error banner */
.admin-page .error {
	background: #fdecea;
	border: 1px solid #f5c2c0;
	color: #8a1f1f;
	padding: 8px 12px;
	margin: 8px 0 12px 0;
}

/* Report cards (override the default styling — keep it visually consistent
   with the rest of the admin sheet). */
.admin-page .admin-report {
	border: 1px solid #ddd;
	background: #fafafa;
	padding: 12px 14px;
	margin: 0 0 12px 0;
}

.admin-page .admin-report-header {
	display: flex;
	gap: 10px;
	align-items: baseline;
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.admin-page .admin-report-type {
	background: #333;
	color: white;
	padding: 1px 6px;
	border-radius: 2px;
	font-size: 12px;
	text-transform: uppercase;
}

.admin-page .admin-report-meta {
	color: #555;
	font-size: 13px;
}

.admin-page .admin-report-reason,
.admin-page .admin-report-snapshot,
.admin-page .admin-report-note {
	background: white;
	border: 1px solid #eee;
	padding: 6px 10px;
	margin: 4px 0;
	font-size: 13px;
	white-space: pre-wrap;
}

.admin-page .admin-report-snapshot {
	font-family: Menlo, Consolas, monospace;
}

.admin-page .admin-report-actions {
	display: flex;
	gap: 6px;
	margin-top: 6px;
}

.admin-page .admin-report-actions button {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	background: #f3f3f3;
	border: 1px solid #ccc;
	padding: 4px 10px;
	cursor: pointer;
}

.admin-page .admin-ban-btn {
	background: #fdecea !important;
	border-color: #f5c2c0 !important;
	color: #8a1f1f;
}
