﻿/* =========================================================
   Core layout
   ========================================================= */
.cutmap-metabox p {
	margin: 0 0 12px;
}

.cutmap-action-stack,
.column-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.cutmap-inline-form {
	display: inline-block;
	margin: 0;
}

.cutmap-toolbar-form {
	margin-left: 8px;
	vertical-align: middle;
}

.cutmap-task-list {
	margin: 0;
	padding-left: 18px;
}

.cutmap-inline-status {
	color: #50575e;
}

/* =========================================================
   Post-type filter tabs
   ========================================================= */
.cutmap-post-type-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 20px;
}

.cutmap-post-type-tab {
	border: 1px solid #d0d7de;
	border-radius: 999px;
	background: #fff;
	color: #1d2327;
	padding: 8px 14px;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cutmap-post-type-tab:hover,
.cutmap-post-type-tab:focus {
	border-color: #2271b1;
	color: #2271b1;
}

.cutmap-post-type-tab.is-active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

/* =========================================================
   User picker â€” outer wrapper
   ========================================================= */
.cutmap-user-picker {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 220px;
}

/* =========================================================
   Search box
   ========================================================= */
.cutmap-user-picker-search {
	width: 100%;
	min-height: 32px;
	border: 1px solid #8c8f94;
	border-radius: 6px;
	padding: 0 10px;
	font-size: 13px;
	box-sizing: border-box;
}

.cutmap-user-picker-search:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

/* =========================================================
   Scrollable list
   Show ~2 rows (each row ~36px) then scroll.
   ========================================================= */
.cutmap-user-picker-list {
	/* 2 visible rows Ã— 36 px each + 8 px padding top/bottom */
	max-height: 88px;
	overflow-y: auto;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
	padding: 4px 6px;
	scroll-behavior: smooth;
}

/* Custom slim scrollbar (webkit) */
.cutmap-user-picker-list::-webkit-scrollbar {
	width: 5px;
}

.cutmap-user-picker-list::-webkit-scrollbar-track {
	background: #f0f0f0;
	border-radius: 4px;
}

.cutmap-user-picker-list::-webkit-scrollbar-thumb {
	background: #b4b9be;
	border-radius: 4px;
}

.cutmap-user-picker-list::-webkit-scrollbar-thumb:hover {
	background: #2271b1;
}

/* =========================================================
   Individual option row
   ========================================================= */
.cutmap-user-picker-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 6px;
	border-radius: 6px;
	cursor: pointer;
	min-height: 32px;
	transition: background-color 0.15s ease;
}

.cutmap-user-picker-option:hover {
	background: #f0f6fc;
}

/* ---- Selected option highlight (pinned to top) ---- */
.cutmap-user-picker-option:has(.cutmap-user-picker-input:checked) {
	background: #f0f6fc;
	border-left: 3px solid #2271b1;
	padding-left: 4px;
	font-weight: 500;
}

.cutmap-user-picker-option:has(.cutmap-user-picker-input:checked):hover {
	background: #e8f3fc;
}

/* Fallback for browsers without :has() support */
.cutmap-user-picker-option.is-selected {
	background: #f0f6fc;
	border-left: 3px solid #2271b1;
	padding-left: 4px;
	font-weight: 500;
}

/* =========================================================
   Option name label
   ========================================================= */
.cutmap-user-picker-name {
	line-height: 1.3;
	font-size: 13px;
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* =========================================================
   Empty-state message
   ========================================================= */
.cutmap-user-picker-empty {
	margin: 0;
	padding: 6px 4px 2px;
	color: #646970;
	font-size: 12px;
	text-align: center;
}

/* =========================================================
   Column widths
   ========================================================= */
.column-creator,
.column-approvers {
	width: 250px;
}

/* =========================================================
   Page header â€” title left, branding right
   ========================================================= */
.cutmap-page-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 4px;
}

.cutmap-page-title {
	margin: 0 !important;
	line-height: 1.4 !important;
}

.cutmap-page-branding {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	flex-shrink: 0;
}

.cutmap-branding-company {
	font-size: 20px;
	font-weight: 700;
	color: #2271b1;
	letter-spacing: 0.01em;
	line-height: 1.3;
	text-decoration: none;
}

.cutmap-branding-company a {
	color: inherit;
	text-decoration: none;
}

.cutmap-branding-company a:hover {
	color: #135e96;
	text-decoration: none;
}

.cutmap-branding-author {
	font-size: 12px;
	color: #646970;
	line-height: 1.3;
}

.cutmap-branding-author strong {
	color: #1d2327;
	font-weight: 600;
}
