/* Plumber Jobs — front-end portal and admin status badges */

.pj-portal {
	--pj-ink: #12232b;
	--pj-water: #1f6b7e;
	--pj-line: #d8e0e0;
	--pj-muted: #5e7278;
	max-width: 900px;
	margin: 0 auto;
	color: var(--pj-ink);
}

.pj-portal-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.pj-h2 { margin: 0 0 4px; font-size: 1.5rem; line-height: 1.2; }
.pj-h3 { margin: 0 0 4px; font-size: 1.15rem; }
.pj-muted { color: var(--pj-muted); margin: 0 0 8px; }
.pj-hint { font-size: .85em; color: var(--pj-muted); display: block; margin-top: 4px; }
.pj-link { color: var(--pj-water); }

/* notices */
.pj-notice {
	padding: 12px 16px;
	margin-bottom: 20px;
	border-left: 3px solid;
	font-size: .95em;
}
.pj-notice-ok { background: #e6f2ea; border-color: #2d7a53; color: #1d5c3d; }
.pj-notice-bad { background: #f8ece6; border-color: #a85a2a; color: #7d3f1a; }

/* table */
.pj-table-scroll { overflow-x: auto; margin-bottom: 28px; }
.pj-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .94em;
	min-width: 620px;
	background: #fff;
	border: 1px solid var(--pj-line);
}
.pj-table th {
	text-align: left;
	font-size: .85em;
	color: var(--pj-muted);
	font-weight: 600;
	padding: 10px 14px;
	border-bottom: 1px solid var(--pj-line);
	background: #fafcfc;
	white-space: nowrap;
}
.pj-table td {
	padding: 12px 14px;
	border-bottom: 1px solid #eef2f2;
	vertical-align: top;
}
.pj-table tr:last-child td { border-bottom: 0; }
.pj-ref { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.pj-note { font-size: .88em; color: var(--pj-muted); margin-top: 3px; }

/* empty state */
.pj-empty {
	background: #fff;
	border: 1px solid var(--pj-line);
	padding: 36px 20px;
	text-align: center;
	margin-bottom: 28px;
}
.pj-empty h3 { margin: 0 0 6px; }
.pj-empty p { margin: 0; color: var(--pj-muted); }

/* request form */
.pj-card {
	background: #fff;
	border: 1px solid var(--pj-line);
	padding: 22px;
}
.pj-field { margin: 0 0 16px; }
.pj-field label { display: block; font-weight: 600; font-size: .9em; margin-bottom: 5px; }
.pj-field input,
.pj-field select,
.pj-field textarea {
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--pj-line);
	border-radius: 2px;
	font: inherit;
	font-size: .95em;
	background: #fff;
	color: var(--pj-ink);
	box-sizing: border-box;
}
.pj-field input:focus,
.pj-field select:focus,
.pj-field textarea:focus { border-color: var(--pj-water); outline: 2px solid rgba(31,107,126,.25); }

.pj-btn {
	background: var(--pj-water);
	color: #fff;
	border: 0;
	border-radius: 2px;
	padding: 12px 22px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.pj-btn:hover { background: var(--pj-ink); }
.pj-btn:focus-visible { outline: 3px solid var(--pj-water); outline-offset: 2px; }

/* login */
.pj-login { max-width: 420px; }
.pj-login .login-username,
.pj-login .login-password { margin-bottom: 14px; }
.pj-login label { display: block; font-weight: 600; font-size: .9em; margin-bottom: 5px; }
.pj-login input[type="text"],
.pj-login input[type="password"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--pj-line);
	border-radius: 2px;
	box-sizing: border-box;
}

/* services list */
.pj-services { margin: 0 0 1em 1.2em; }
.pj-services li { margin-bottom: .35em; }

/* status badges — used on the front end and in the admin list table */
.pj-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	padding: 2px 10px;
	border-radius: 999px;
	white-space: nowrap;
	background: #eceff0;
	color: #46595f;
}
.pj-badge-new { background: #e4f0f2; color: #1f6b7e; }
.pj-badge-quoted { background: #ece7f6; color: #54408c; }
.pj-badge-scheduled { background: #e4f0f2; color: #1f6b7e; }
.pj-badge-progress { background: #faf0d8; color: #8a6410; }
.pj-badge-done { background: #e3f1e9; color: #2d7a53; }
.pj-badge-cancelled { background: #f1eded; color: #7a6a6a; }

/* admin tweaks */
.pj-ref { font-weight: 600; }

@media (max-width: 600px) {
	.pj-card { padding: 18px 16px; }
}
