/*
 * Front-end staff panel ([spv_staff_panel] shortcode). admin.css (loaded
 * alongside this) supplies the shared grid/legend/detail styling used by
 * both wp-admin and here. This file only recreates the handful of WP
 * *core* admin classes the shared templates also rely on (nav-tab-wrapper,
 * form-table, .button) — those come from wp-admin's own stylesheets,
 * which aren't loaded on the front end, so without this the panel would
 * render as unstyled HTML outside of wp-admin.
 */

.spv-frontend-panel {
	max-width: 960px;
	background: #fff;
	border: 1px solid #dcdcde;
	padding: 20px 24px;
	box-sizing: border-box;
}

.spv-frontend-panel * {
	box-sizing: border-box;
}

/* Tab nav */
.spv-frontend-panel .nav-tab-wrapper {
	border-bottom: 1px solid #c3c4c7;
	margin: 0 0 20px;
	padding-bottom: 0;
}

.spv-frontend-panel .nav-tab {
	display: inline-block;
	padding: 8px 14px;
	margin: 0 4px -1px 0;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	color: #50575e;
	background: #f0f0f1;
	border: 1px solid #c3c4c7;
	border-bottom: none;
	border-radius: 3px 3px 0 0;
}

.spv-frontend-panel .nav-tab-active {
	background: #fff;
	color: #1d2327;
	border-bottom: 1px solid #fff;
}

/* Notices */
.spv-frontend-notice {
	border-left: 4px solid #999;
	background: #fff;
	padding: 4px 12px;
	margin: 0 0 16px;
}

.spv-frontend-notice-success {
	border-left-color: #00a32a;
}

.spv-frontend-notice-error {
	border-left-color: #d63638;
}

/* Toolbar (Add Client button + search) */
.spv-panel-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 16px;
}

/* Buttons — minimal recreation of wp-admin's .button classes */
.spv-frontend-panel .button {
	display: inline-block;
	font-size: 13px;
	line-height: 2.15384615;
	min-height: 30px;
	padding: 0 10px;
	cursor: pointer;
	border-width: 1px;
	border-style: solid;
	border-radius: 3px;
	white-space: nowrap;
	box-sizing: border-box;
	text-decoration: none;
	background: #f6f7f7;
	border-color: #c3c4c7;
	color: #2c3338;
}

.spv-frontend-panel .button-primary {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.spv-frontend-panel .button-link-delete {
	background: none;
	border: none;
	color: #b32d2e;
	text-decoration: underline;
	padding: 0;
	min-height: 0;
}

/* Forms — minimal recreation of wp-admin's .form-table */
.spv-frontend-panel .form-table {
	border-collapse: collapse;
	width: 100%;
	margin: 12px 0;
}

.spv-frontend-panel .form-table th {
	text-align: left;
	padding: 12px 10px 12px 0;
	width: 180px;
	font-weight: 600;
	vertical-align: top;
}

.spv-frontend-panel .form-table td {
	padding: 10px 0;
	vertical-align: top;
}

.spv-frontend-panel input[type="text"],
.spv-frontend-panel input[type="date"],
.spv-frontend-panel input[type="number"],
.spv-frontend-panel input[type="search"],
.spv-frontend-panel select {
	padding: 4px 8px;
	border: 1px solid #8c8f94;
	border-radius: 3px;
	font-size: 14px;
}

.spv-frontend-panel .description {
	color: #646970;
	font-size: 13px;
	font-style: italic;
	display: block;
	margin-top: 4px;
}

.spv-frontend-panel .spv-filters {
	display: flex;
	gap: 6px;
	align-items: center;
}

.spv-frontend-panel .regular-text {
	width: 25em;
	max-width: 100%;
}

.spv-frontend-panel .widefat {
	width: 100%;
	border-collapse: collapse;
}

.spv-frontend-panel .widefat th,
.spv-frontend-panel .widefat td {
	padding: 8px;
	border-bottom: 1px solid #e5e5e5;
	text-align: left;
}
