.gcj-app {
	max-width: 480px;
	margin: 0 auto;
	font-family: inherit;
}

.gcj-panel {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 28px;
}

.gcj-title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 600;
}

.gcj-subtitle {
	margin: 0 0 20px;
	font-size: 14px;
	color: #666;
}

.gcj-field {
	margin-bottom: 16px;
}

.gcj-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #333;
}

.gcj-field input,
.gcj-field select {
	width: 100%;
	padding: 11px 12px;
	font-size: 15px;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
}

.gcj-btn {
	display: inline-block;
	padding: 12px 22px;
	font-size: 14px;
	font-weight: 600;
	border: none;
	border-radius: 6px;
	background: #1d1d1d;
	color: #fff;
	cursor: pointer;
	margin: 0 8px 8px 0;
}

.gcj-btn:hover {
	opacity: 0.9;
}

.gcj-btn:disabled {
	opacity: 0.55;
	cursor: default;
}

.gcj-btn-secondary {
	background: transparent;
	color: #1d1d1d;
	border: 1px solid #ccc;
}

.gcj-error {
	margin-top: 14px;
	color: #c0392b;
	font-size: 13px;
}

.gcj-note {
	margin-top: 14px;
	font-size: 12px;
	color: #888;
}

/* Pending-approval badge */
.gcj-badge-pending {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: #fff4d6;
	color: #8a5a00;
	border: 1px solid #f3d98b;
	font-size: 12px;
	font-weight: 600;
}

/* Progress dots */
.gcj-progress {
	display: flex;
	gap: 10px;
	margin: 18px 0 14px;
}

.gcj-dot {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 2px solid #ddd;
	color: #bbb;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
}

.gcj-dot.done {
	background: #1d1d1d;
	border-color: #1d1d1d;
	color: #fff;
}

.gcj-status-line {
	margin: 6px 0;
	font-size: 14px;
}

/* Staff panel — wider than the public app so the customer table has room to breathe. */
.gcj-staff.gcj-app {
	max-width: 960px;
}

/* Forms inside the staff app (login, search, add, edit) stay compact and centered;
   the customer list panel is the one exception that uses the full width. */
.gcj-staff .gcj-panel-narrow {
	max-width: 480px;
	margin: 0 auto;
}

.gcj-staff-nav {
	max-width: 480px;
	margin: 0 auto 14px;
	display: flex;
	gap: 8px;
}

.gcj-staff-nav .gcj-staff-tab {
	flex: 1;
	margin: 0;
	text-align: center;
}

.gcj-staff-nav .gcj-staff-tab.is-active {
	background: #1d1d1d;
	color: #fff;
	border-color: #1d1d1d;
}

.gcj-table-wrap {
	overflow-x: auto;
	margin-top: 6px;
}

.gcj-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.gcj-table th,
.gcj-table td {
	text-align: left;
	padding: 10px 8px;
	border-bottom: 1px solid #eee;
	white-space: nowrap;
}

.gcj-table th {
	color: #666;
	font-weight: 600;
	font-size: 12px;
}

.gcj-row-actions {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.gcj-btn-edit,
.gcj-btn-remove {
	margin: 0;
	padding: 6px 12px;
	font-size: 12px;
}

.gcj-btn-remove {
	color: #c0392b;
	border-color: #f0c4c4;
}

.gcj-no-results {
	padding: 16px 4px;
	color: #888;
	font-size: 14px;
}

/* Below 700px the table becomes a stack of cards — one per customer — instead of
   a cramped, horizontally-scrolling grid. Each cell keeps its column label. */
@media (max-width: 700px) {
	.gcj-table thead {
		display: none;
	}

	.gcj-table,
	.gcj-table tbody,
	.gcj-table tr,
	.gcj-table td {
		display: block;
		width: 100%;
	}

	.gcj-table tr {
		margin-bottom: 14px;
		border: 1px solid #e6e6e6;
		border-radius: 8px;
		padding: 4px 12px;
	}

	.gcj-table td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		white-space: normal;
		text-align: right;
		padding: 10px 0;
		border-bottom: 1px solid #f2f2f2;
	}

	.gcj-table td:last-child {
		border-bottom: none;
	}

	.gcj-table td::before {
		content: attr(data-label);
		font-weight: 600;
		font-size: 12px;
		color: #666;
		text-align: left;
		flex-shrink: 0;
	}
}

.gcj-staff .gcj-customer-card {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.gcj-cust-name {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
}

.gcj-cust-meta {
	margin: 2px 0;
	font-size: 13px;
	color: #666;
}

.gcj-btn-confirm {
	width: 100%;
	padding: 16px;
	font-size: 16px;
	margin-top: 10px;
}

.gcj-success {
	padding: 20px;
	border-radius: 8px;
	background: #edf7ed;
	border: 1px solid #c8e6c9;
	font-size: 15px;
	margin-top: 20px;
}

.gcj-success.gcj-final {
	background: #fff8e1;
	border-color: #ffe082;
}

@media (max-width: 600px) {
	.gcj-panel {
		padding: 20px;
	}
	.gcj-btn {
		width: 100%;
		margin-right: 0;
	}
}
