.cmp-wizard {
	--cmp-primary: #0f172a;
	--cmp-accent: #c9a227;
	max-width: 640px;
	margin: 0 auto;
	background: #fff;
	border-radius: 10px;
	padding: 32px;
	box-shadow: 0 1px 4px rgba(0,0,0,.08);
	font-family: inherit;
}
.cmp-wizard .cmp-logo { max-height: 48px; margin-bottom: 16px; }
.cmp-wizard .cmp-title { color: #e81e26; margin-top: 0; text-align: center; }
.cmp-wizard .cmp-step0-heading { color: #e81e26; text-align: center; }
.cmp-wizard label { display: block; margin-bottom: 14px; font-weight: 600; font-size: 14px; color: #374151; }
.cmp-wizard input[type="text"],
.cmp-wizard input[type="email"],
.cmp-wizard input[type="tel"],
.cmp-wizard select,
.cmp-wizard textarea {
	width: 100%; padding: 10px 12px; margin-top: 6px; border: 1px solid #d1d5db;
	border-radius: 6px; font-weight: 400; font-size: 14px; box-sizing: border-box;
}
.cmp-wizard textarea { min-height: 100px; }
.cmp-wizard .cmp-checkbox { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.cmp-wizard .cmp-checkbox input { width: auto; margin: 0; }
.cmp-wizard button {
	background: var(--cmp-primary); color: #fff; border: none; padding: 11px 22px;
	border-radius: 6px; cursor: pointer; font-weight: 600; margin-top: 8px;
}
.cmp-wizard button.cmp-prev { background: #e5e7eb; color: #111827; margin-right: 8px; }
.cmp-wizard .cmp-submit { background: #170e5e; color: #e81e26; }
.cmp-wizard .cmp-legal { font-size: 12px; color: #6b7280; margin: 16px 0; }
.cmp-wizard .cmp-success { text-align: center; }
.cmp-wizard .cmp-tracking-number { font-size: 20px; font-weight: 700; color: var(--cmp-accent); }

.cmp-wizard .cmp-type-toggle { display: flex; gap: 12px; margin-top: 16px; }
.cmp-wizard .cmp-type-btn {
	flex: 1; text-align: center; background: #170e5e; color: #fff; border: 2px solid #170e5e;
	border-radius: 8px; padding: 16px; cursor: pointer; margin: 0;
}
.cmp-wizard .cmp-type-btn .cmp-heart { display: block; font-size: 20px; color: #e81e26; margin-bottom: 4px; }
.cmp-wizard .cmp-type-btn strong { display: block; font-size: 16px; margin-bottom: 4px; color: #e81e26; }
.cmp-wizard .cmp-type-btn span { display: block; font-size: 12px; font-weight: 400; color: #ffffff; }
.cmp-wizard .cmp-type-btn:hover,
.cmp-wizard .cmp-type-btn.cmp-type-selected { border-color: #e81e26; }

/* Mode badge — shown on every step after type selection so it's unmistakable
   which flow (Complaint vs Compliment) the customer is currently filling in. */
.cmp-mode-badge { margin: 0 0 14px; }
.cmp-mode-badge span { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.cmp-badge-compliment { background: #170e5e; color: #ffffff; }
.cmp-badge-compliment .cmp-heart { color: #e81e26; }
.cmp-badge-complaint { background: #170e5e; color: #e81e26; }
.cmp-wizard.cmp-mode-compliment .cmp-submit { background: #170e5e; color: #e81e26; }
.cmp-wizard.cmp-mode-complaint .cmp-submit { background: #170e5e; color: #e81e26; }

/* ---- Client Portal & Master Dashboard ---- */
.cmp-portal-login {
	max-width: 380px; margin: 40px auto; background: #fff; border: 1px solid #e5e7eb;
	border-radius: 10px; padding: 28px;
}
.cmp-portal-login h2 { margin-top: 0; }
.cmp-portal-login label { display: block; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.cmp-portal-login input { width: 100%; padding: 9px 10px; margin-top: 4px; border: 1px solid #d1d5db; border-radius: 6px; box-sizing: border-box; }
.cmp-portal-login button { background: #0f172a; color: #fff; border: none; padding: 10px 22px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.cmp-login-error { color: #b91c1c; font-weight: 600; }

.cmp-portal { max-width: 1100px; margin: 0 auto; }
.cmp-portal-denied { max-width: 500px; margin: 40px auto; text-align: center; }
.cmp-portal-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.cmp-portal-header h2 { margin: 0; }
.cmp-portal-header-right { display: flex; align-items: center; gap: 14px; }
.cmp-portal-header-right select { padding: 6px 10px; border-radius: 6px; border: 1px solid #d1d5db; }
.cmp-logout { color: #b91c1c; text-decoration: none; font-weight: 600; }

.cmp-portal-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.cmp-portal-stats .cmp-stat-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px 20px; text-align: center; min-width: 110px; }
.cmp-portal-stats .cmp-stat-num { display: block; font-size: 24px; font-weight: 700; color: var(--cmp-primary, #0f172a); }

.cmp-portal-charts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 24px; }
.cmp-chart-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px; }
.cmp-chart-box.cmp-chart-wide { grid-column: 1 / -1; }

.cmp-portal-tabs { margin-bottom: 14px; }
.cmp-tab-btn { background: #f3f4f6; border: none; padding: 9px 18px; border-radius: 6px 6px 0 0; cursor: pointer; font-weight: 600; margin-right: 4px; }
.cmp-tab-btn.active { background: var(--cmp-primary, #0f172a); color: #fff; }

.cmp-case-row { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px 18px; margin-bottom: 12px; display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; }
.cmp-case-row-main { flex: 2; min-width: 240px; }
.cmp-case-row-main p { margin: 6px 0; color: #374151; font-size: 14px; }
.cmp-case-date { color: #9ca3af; font-size: 12px; margin-right: 8px; }
.cmp-case-org { color: #6b7280; font-weight: 400; font-size: 13px; }
.cmp-case-row-actions { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.cmp-case-row-actions select { padding: 6px; border-radius: 6px; border: 1px solid #d1d5db; }
.cmp-case-row-actions textarea { min-height: 50px; padding: 6px 8px; border-radius: 6px; border: 1px solid #d1d5db; }
.cmp-case-row-actions button { background: #0f172a; color: #fff; border: none; padding: 7px 14px; border-radius: 6px; cursor: pointer; font-weight: 600; align-self: flex-start; }

.cmp-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; margin-right: 4px; }
.cmp-sla-ok { background: #dcfce7; color: #166534; }
.cmp-sla-atrisk { background: #fef3c7; color: #92400e; }
.cmp-sla-breached { background: #fee2e2; color: #991b1b; }

@media (max-width: 720px) {
	.cmp-portal-charts { grid-template-columns: 1fr; }
}

.cmp-status-lookup {
	--cmp-primary: #0f172a; --cmp-accent: #c9a227;
	max-width: 420px; margin: 0 auto; background: #f9fafb; border-radius: 10px; padding: 24px;
}
.cmp-status-lookup label { display: block; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
.cmp-status-lookup input { width: 100%; padding: 9px 10px; margin-top: 4px; border: 1px solid #d1d5db; border-radius: 6px; }
.cmp-status-lookup button { background: var(--cmp-primary); color: #fff; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.cmp-status-result { margin-top: 16px; font-weight: 600; }
