/* ==========================================================
   JCF Case Management System — Front-End Styles
   ========================================================== */

.jcf-alert {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 20px;
}

.jcf-alert ul {
	margin: 0;
	padding-left: 18px;
}

.jcf-alert-success {
	background: #e6f4ea;
	border: 1px solid #34a853;
	color: #1e7e34;
}

.jcf-alert-error {
	background: #fdecea;
	border: 1px solid #d93025;
	color: #a4231d;
}

.jcf-alert-info {
	background: #eef3f8;
	border: 1px solid #6b8caf;
	color: #33475b;
}

.jcf-form {
	max-width: 640px;
}

.jcf-form-row {
	display: flex;
	gap: 16px;
}

.jcf-form-row .jcf-form-group {
	flex: 1;
}

.jcf-form-group {
	margin-bottom: 16px;
}

.jcf-form-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.jcf-form-group input[type="text"],
.jcf-form-group input[type="email"],
.jcf-form-group input[type="password"],
.jcf-form-group input[type="date"],
.jcf-form-group input[type="time"],
.jcf-form-group input[type="url"],
.jcf-form-group input[type="file"],
.jcf-form-group select,
.jcf-form-group textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d0d5dd;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}

.jcf-form-checkbox label {
	font-weight: normal;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.jcf-required {
	color: #d93025;
}

.jcf-radio-group {
	display: flex;
	gap: 24px;
}

.jcf-radio-option {
	font-weight: normal !important;
	display: flex;
	align-items: center;
	gap: 6px;
}

.jcf-form-actions {
	margin-top: 20px;
	display: flex;
	gap: 12px;
}

.jcf-btn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 4px;
	border: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
}

.jcf-btn-primary {
	background: #c0392b;
	color: #fff;
}

.jcf-btn-secondary {
	background: #eef0f2;
	color: #333;
}

/* Dashboard */

.jcf-dashboard-header {
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

/* Language Switcher */

.jcf-lang-switcher {
	font-size: 13px;
}

.jcf-lang-link {
	text-decoration: none;
	color: #888;
}

.jcf-lang-link.is-active {
	color: #c0392b;
	font-weight: 700;
}

.jcf-lang-sep {
	margin: 0 4px;
	color: #ccc;
}

.jcf-dashboard-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	border-bottom: 2px solid #e5e5e5;
	margin-bottom: 24px;
}

.jcf-tab-link {
	padding: 10px 16px;
	text-decoration: none;
	color: #444;
	border-bottom: 3px solid transparent;
	font-weight: 600;
}

.jcf-tab-link.is-active {
	color: #c0392b;
	border-bottom-color: #c0392b;
}

.jcf-tab-logout {
	margin-left: auto;
	color: #888;
}

/* Tables */

.jcf-profile-table,
.jcf-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.jcf-profile-table th,
.jcf-profile-table td,
.jcf-table th,
.jcf-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid #eee;
}

.jcf-profile-table th {
	width: 240px;
	color: #555;
}

.jcf-table thead th {
	background: #f7f7f7;
}

/* Complaint Form Sections */

.jcf-form-section {
	margin-bottom: 28px;
}

.jcf-section-title {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #c0392b;
	color: #fff;
	padding: 10px 16px;
	font-weight: 700;
	border-bottom: 4px solid #922b21;
}

.jcf-section-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
}

.jcf-section-title-plain {
	margin: 0 0 12px;
}

.jcf-section-fields {
	padding: 16px 4px 0;
}

/* Status Badges */

.jcf-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	background: #eee;
}

.jcf-status-pending {
	background: #fff4e5;
	color: #b26a00;
}

.jcf-status-in_review {
	background: #e5f1ff;
	color: #0b5fbf;
}

.jcf-status-resolved {
	background: #e6f4ea;
	color: #1e7e34;
}

.jcf-case-form-qr {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #eee;
	text-align: center;
}

.jcf-case-form-qr h3 {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.jcf-case-form-qr .jcf-btn-qr-download {
	display: inline-block;
}

/* SLA Badges */

.jcf-sla {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	background: #eee;
	color: #555;
}

.jcf-sla-overdue {
	background: #fdecea;
	color: #a4231d;
}

.jcf-sla-due_soon {
	background: #fff4e5;
	color: #b26a00;
}

.jcf-sla-on_track {
	background: #e6f4ea;
	color: #1e7e34;
}

.jcf-sla-done,
.jcf-sla-none {
	background: #eee;
	color: #777;
}

/* Case Activity History */

.jcf-case-history {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 2px solid #e2e2e2;
}

.jcf-case-history-entry {
	position: relative;
	padding: 4px 0 12px 16px;
	font-size: 13px;
	line-height: 1.5;
}

.jcf-case-history-entry::before {
	content: "";
	position: absolute;
	left: -5px;
	top: 8px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #999;
}

.jcf-case-history-time {
	display: block;
	color: #888;
	font-size: 12px;
}

.jcf-case-history-user {
	font-weight: 600;
	margin-right: 6px;
}

.jcf-case-history-empty {
	color: #888;
	font-style: italic;
}

/* Case Management */

.jcf-case-filters {
	display: flex;
	gap: 10px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.jcf-case-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 16px 0 20px;
}

.jcf-case-stat-card {
	flex: 1 1 120px;
	min-width: 110px;
	padding: 14px 16px;
	border-radius: 8px;
	background: #f7f7f7;
	border: 1px solid #eee;
	text-align: center;
}

.jcf-case-stat-card .jcf-case-stat-number {
	display: block;
	font-size: 26px;
	font-weight: 700;
	color: #c0392b;
	line-height: 1.2;
}

.jcf-case-stat-card .jcf-case-stat-label {
	display: block;
	font-size: 12px;
	color: #666;
	margin-top: 4px;
}

.jcf-case-stat-total .jcf-case-stat-number {
	color: #333;
}

.jcf-case-stat-pending .jcf-case-stat-number {
	color: #b26a00;
}

.jcf-case-stat-in_review .jcf-case-stat-number {
	color: #0b5fbf;
}

.jcf-case-stat-resolved .jcf-case-stat-number {
	color: #1e7e34;
}

.jcf-case-stat-closed .jcf-case-stat-number {
	color: #555;
}

.jcf-case-title-link {
	color: #222;
	text-decoration: none;
	font-weight: 600;
}

.jcf-case-title-link:hover {
	color: #c0392b;
	text-decoration: underline;
}

.jcf-case-view-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin: 8px 0 16px;
}

.jcf-case-view-actions {
	display: flex;
	gap: 8px;
}

.jcf-case-view-actions .jcf-btn {
	padding: 8px 16px;
	font-size: 13px;
}

.jcf-case-filters select {
	padding: 8px 10px;
	border-radius: 4px;
	border: 1px solid #ddd;
}

.jcf-case-actions a {
	margin-right: 10px;
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
}

.jcf-case-actions a.jcf-case-delete-link {
	color: #c0392b;
}

.jcf-case-print-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.jcf-case-print {
	max-width: 800px;
}

/* Standalone Print Page — No Theme Wrapper To Inherit From */

body.jcf-print-standalone {
	margin: 0;
	padding: 24px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #222;
	background: #fff;
}

.jcf-print-letterhead {
	text-align: center;
	margin-bottom: 16px;
}

.jcf-print-logo {
	max-width: 180px;
	max-height: 100px;
	width: auto;
	height: auto;
}

.jcf-print-case-number {
	font-size: 1.05em;
	margin-bottom: 20px;
}

/* Print — Hide Chrome, Keep Only The Case Content */

@media print {
	.jcf-dashboard-header,
	.jcf-dashboard-tabs,
	.jcf-alert,
	.jcf-report-noprint {
		display: none !important;
	}

	body.jcf-print-standalone {
		padding: 0;
	}
}
