/* ManoTeismas plugin styles */

/* Search */
.mt-search {
	display: flex;
	gap: 12px;
	margin-bottom: 32px;
	flex-wrap: wrap;
}

.mt-search input[type="text"] {
	flex: 1;
	min-width: 200px;
	padding: 10px 16px;
	border: 1px solid #d5d8dc;
	border-radius: 6px;
	font-size: 15px;
	transition: border-color 0.2s;
}

.mt-search input[type="text"]:focus {
	border-color: #1a5276;
	outline: none;
	box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.1);
}

.mt-search select {
	padding: 10px 16px;
	border: 1px solid #d5d8dc;
	border-radius: 6px;
	font-size: 15px;
	background: #fff;
	min-width: 180px;
}

/* Judge grid */
.judge-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.judge-card {
	background: #fff;
	border: 1px solid #e5e8eb;
	border-radius: 8px;
	padding: 24px;
	transition: box-shadow 0.2s, transform 0.15s;
}

.judge-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.judge-card .name {
	font-size: 18px;
	font-weight: 600;
	color: #1a1a2e;
	margin-bottom: 4px;
}

.judge-card .court {
	font-size: 14px;
	color: #566573;
	margin-bottom: 12px;
}

.judge-card .meta {
	display: flex;
	gap: 16px;
	font-size: 13px;
	color: #7f8c8d;
	margin-bottom: 16px;
}

.judge-card .actions {
	display: flex;
	gap: 8px;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	border: none;
	transition: background 0.2s, color 0.2s, box-shadow 0.2s;
	text-decoration: none;
	line-height: 1.4;
}

.btn-primary {
	background: #1a5276;
	color: #fff;
}

.btn-primary:hover {
	background: #154360;
	box-shadow: 0 2px 8px rgba(26, 82, 118, 0.25);
}

.btn-ghost {
	background: transparent;
	color: #1a5276;
	border: 1px solid #1a5276;
}

.btn-ghost:hover {
	background: #1a5276;
	color: #fff;
}

.btn-sm {
	padding: 6px 14px;
	font-size: 13px;
}

.btn:disabled,
.btn.loading {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Tables */
.mt-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.mt-table thead {
	background: #f4f6f7;
}

.mt-table th {
	padding: 10px 14px;
	text-align: left;
	font-weight: 600;
	color: #2c3e50;
	border-bottom: 2px solid #d5d8dc;
	white-space: nowrap;
}

.mt-table td {
	padding: 10px 14px;
	border-bottom: 1px solid #eaecee;
	color: #34495e;
}

.mt-table tbody tr:hover {
	background: #fafbfc;
}

/* Badge */
.sub-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.sub-badge.active {
	background: #d4efdf;
	color: #1e8449;
}

.sub-badge.expired,
.sub-badge.cancelled {
	background: #fadbd8;
	color: #c0392b;
}

/* Report */
.report-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 32px;
	padding-bottom: 20px;
	border-bottom: 2px solid #1a5276;
}

.report-title {
	font-size: 28px;
	font-weight: 700;
	color: #1a1a2e;
}

.report-date {
	font-size: 13px;
	color: #7f8c8d;
	white-space: nowrap;
}

.report-section {
	margin-bottom: 32px;
}

.report-section h3 {
	font-size: 18px;
	font-weight: 600;
	color: #1a5276;
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 1px solid #eaecee;
}

.report-kv {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 8px 16px;
}

.report-kv dt {
	font-weight: 600;
	color: #566573;
	font-size: 14px;
}

.report-kv dd {
	color: #2c3e50;
	font-size: 14px;
	margin: 0;
}

/* Date picker modal */
.mt-date-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
}

.mt-date-modal-content {
	background: #fff;
	border-radius: 12px;
	padding: 32px;
	max-width: 400px;
	width: 90%;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.mt-date-modal-content h3 {
	margin: 0 0 8px;
	font-size: 20px;
	color: #1a1a2e;
}

.mt-date-modal-content p {
	margin: 0 0 20px;
	font-size: 14px;
	color: #566573;
}

.mt-date-modal-content label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #566573;
	margin-bottom: 4px;
}

.mt-date-modal-content input[type="date"] {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #d5d8dc;
	border-radius: 6px;
	font-size: 14px;
	margin-bottom: 16px;
}

.mt-date-modal-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 8px;
}

/* Toast notifications */
.mt-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: #1a5276;
	color: #fff;
	padding: 14px 24px;
	border-radius: 8px;
	font-size: 14px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	z-index: 100000;
	animation: mt-slide-up 0.3s ease-out;
}

.mt-toast.error {
	background: #c0392b;
}

.mt-toast.success {
	background: #1e8449;
}

@keyframes mt-slide-up {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive */
@media (max-width: 768px) {
	.mt-search {
		flex-direction: column;
	}

	.mt-search select {
		min-width: unset;
	}

	.judge-grid {
		grid-template-columns: 1fr;
	}

	.report-header {
		flex-direction: column;
		gap: 8px;
	}

	.report-kv {
		grid-template-columns: 1fr;
	}

	.mt-table {
		font-size: 13px;
	}

	.mt-table th,
	.mt-table td {
		padding: 8px 10px;
	}
}
/* Judge search results */
.mt-results-count { font-size: 14px; opacity: 0.6; margin: 16px 0 8px; }
.mt-no-results { margin-top: 24px; opacity: 0.6; }
.mt-hint { opacity: 0.5; font-size: 15px; margin-top: 20px; }
.mt-section-label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.5; margin: 24px 0 10px; font-weight: 600; }

/* Judge card stats */
.judge-stats { display: flex; gap: 16px; margin: 10px 0; flex-wrap: wrap; }
.judge-stats .stat { display: flex; flex-direction: column; }
.judge-stats .stat-value { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.judge-stats .stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.5; }
.judge-stats .stat-warn { color: #f85149; }
.judge-stats .stat-quality { color: #3fb950; }

/* Table styles */
.mt-judge-table th.num, .mt-judge-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.mt-judge-table td.warn { color: #f85149; font-weight: 600; }
.mt-judge-table td.quality { color: #3fb950; font-weight: 600; }

/* Report stats grid */
.report-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 20px 0; }
.report-stat-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 16px; text-align: center; }
.report-stat-value { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.report-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.5; margin-top: 4px; }
.report-stat-card.warn .report-stat-value { color: #f85149; }
.report-stat-card.quality .report-stat-value { color: #3fb950; }

/* Appeal chips */
.appeal-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.appeal-chip { padding: 6px 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; font-size: 13px; }
.appeal-chip.warn { border-color: rgba(248,81,73,0.4); color: #f85149; }
.appeal-chip.ok { border-color: rgba(63,185,80,0.4); color: #3fb950; }
.appeal-chip.caution { border-color: rgba(210,153,34,0.4); color: #d29922; }
.appeal-chip.muted { opacity: 0.5; }

/* Filter chips */
.report-filter-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.filter-chip { padding: 5px 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; font-size: 12px; color: inherit; text-decoration: none; transition: border-color 0.15s; }
.filter-chip:hover { border-color: rgba(255,255,255,0.3); }
.filter-chip.active { background: rgba(47,129,247,0.2); border-color: #2f81f7; }

/* Cases table */
.mt-cases-table .case-number { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.appeal-status { font-size: 12px; font-weight: 600; }
.appeal-status.reversed { color: #f85149; }
.appeal-status.upheld { color: #3fb950; }
.appeal-status.returned { color: #d29922; }
.muted { opacity: 0.4; }

/* Report pager */
.report-pager { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.pager-info { font-size: 13px; opacity: 0.5; }

/* Report header */
.report-subtitle { font-size: 13px; opacity: 0.5; margin-top: 2px; }
