/* Milestone counters on a process's record page (neo/js/streamRecords/zpMilestoneCounters.js) */
.zp-mc-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 12px;
	box-sizing: border-box;
	height: 92px;              /* fixed: streamObject.js#setHeight sizes the list around it before the counts arrive */
	margin: -12px 0 14px;      /* up into the title bar's bottom padding (it is sized for the New button) */
	padding: 4px 24px;         /* the breadcrumb and the list card below both start 24px in; 4px keeps the active ring unclipped */
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
}
.zp-mc-row::-webkit-scrollbar { display: none; }
.zp-mc-tile {
	flex: 1 1 0;
	min-width: 132px;
	box-sizing: border-box;
	height: 84px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 6px;
	padding: 0 16px;
	border: 1px solid #e4e4ea;
	border-top: 3px solid var(--zp-mc-color, #a9a6b2);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}
.zp-mc-tile:hover { box-shadow: 0 2px 6px rgba(16, 24, 40, .08); }
.zp-mc-tile:focus-visible { outline: 2px solid #7c3aed; outline-offset: 2px; }
.zp-mc-label {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #3f3d46;
}
.zp-mc-count { font-size: 28px; line-height: 32px; font-weight: 700; color: #1c1b22; }
.zp-mc-active {
	border-color: #7c3aed;
	border-top-color: var(--zp-mc-color, #7c3aed);
	box-shadow: 0 0 0 1px #7c3aed, 0 0 0 4px rgba(124, 58, 237, .14);
}

/* "Stage: <milestone> x" beside the search box while a tile filters the list */
.zp-mc-pill {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	margin: 0 4px 0 8px;
	padding: 0 6px 0 12px;
	border: 1px solid #e4dcfb;
	border-radius: 999px;
	background: #f4f0fe;
	color: #5b21b6;
	font-size: 13px;
	white-space: nowrap;
}
.zp-mc-pill b { font-weight: 600; }
.zp-mc-pill-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #5b21b6;
	cursor: pointer;
}
.zp-mc-pill-x:hover { background: #e4dcfb; }

/* phone layer (zpPortalMobile.css): the title and breadcrumb sit 16px in, not 24 */
@media (max-width: 767px) {
	.zp-mc-row { padding: 4px 16px; margin-top: 6px; } /* the phone title bar has no spare padding to pull up into */
	.zp-mc-tile { min-width: 120px; }
}

/* Record list page heads (Process Records, My Records, Shared Data) ~15% shorter (tiles, view tabs, search bar,
   column header). zpMilestoneCounters.js puts .zp-records-page on the page; the main:not(#id)s outrank zpPortalV2.css / zpPortal.css. Desktop only -
   the phone layer has its own sizes. */
@media (min-width: 768px) {
	body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-records-page { --zp-v2-tab-h: 42px; }
	body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-records-page .zp-mc-row { height: 74px; margin-bottom: 12px; }
	body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-records-page .zp-mc-tile { height: 66px; gap: 4px; }
	body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-records-page .zp-mc-count { font-size: 24px; line-height: 28px; }
	body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-records-page .stream-list-search { padding: 12px 16px !important; }
	body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-records-page .search-bar .div-1 { min-height: 40px; }
	body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-records-page .search-bar .div-1 input { height: 34px !important; }
	body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-records-page .advance-search-link { padding-top: 8px !important; padding-bottom: 8px !important; }
	body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-records-page .zp-mc-pill { height: 28px; }
	body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-records-page table.smart-object-reocrd-list thead th { padding-top: 10px !important; padding-bottom: 10px !important; }
}
