/*
 * Board - Holdings.
 *
 * Read from cp-all-designer css/about-us-board.css:198-437 (.bodhold,
 * .bodtab) and the tokens of css/app.css it uses.
 *
 * What the Style tab sets arrives through the widget's selectors; a size
 * left empty there scales with the window the way the design's does,
 * through the two numbers below (app.css:127-128, 2889-2900).
 */

.custom-board-holdings {
	--custom-vwu: 14.4px;
	--custom-vhu: clamp(5.2px, 1svh, 9px);
	--custom-pad: 90px;
	--custom-bod-r: clamp(22px, calc(2.4 * var(--custom-vwu)), 34px);
	position: relative;
	display: block;
	box-sizing: border-box;
	overflow: hidden;
	/* app.css:385-389 .sec--rhythm, .container --pad */
	padding: min(clamp(52px, calc(8.6 * var(--custom-vwu)), 160px), calc(13.7 * var(--custom-vhu))) var(--custom-pad);
	background: var(--custom-bodhold-ground, #F0F9FD);
	letter-spacing: normal;
	transition: background 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 1280px) { .custom-board-holdings { --custom-vwu: 12.2px; --custom-vhu: clamp(5.2px, 1svh, 8.5px); } }
@media (max-width: 1200px) { .custom-board-holdings { --custom-vwu: 11.2px; --custom-vhu: clamp(5.2px, 1svh, 8.35px); } }
@media (max-width: 1024px) { .custom-board-holdings { --custom-vwu: 9.2px; --custom-vhu: clamp(5.2px, 1svh, 8px); --custom-pad: 40px; } }
@media (max-width: 860px)  { .custom-board-holdings { --custom-vwu: 7.7px; --custom-vhu: clamp(5.2px, 1svh, 7.8px); } }
@media (max-width: 640px)  { .custom-board-holdings { --custom-vwu: 4.2px; --custom-vhu: clamp(5.2px, 1svh, 7.6px); --custom-pad: 24px; } }
@media (max-width: 380px)  { .custom-board-holdings { --custom-vwu: 3.6px; --custom-vhu: clamp(5.2px, 1svh, 7.2px); } }

.custom-board-holdings *,
.custom-board-holdings *::before,
.custom-board-holdings *::after {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ */
/* The tabs — about-us-board.css:211-246                               */
/* ------------------------------------------------------------------ */

.custom-board-holdings__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: clamp(22px, calc(2.4 * var(--custom-vwu)), 36px);
}

.custom-board-holdings .custom-board-holdings__tab {
	-webkit-appearance: none;
	        appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 11px 24px;
	border: 0;
	border-radius: 999px;
	font-family: inherit;
	font-size: clamp(14px, calc(1.05 * var(--custom-vwu)), 16px);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	background: #FFFFFF;
	color: var(--custom-bodhold-tab, #16418C);
	box-shadow: none;
	transition: background 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-board-holdings .custom-board-holdings__tab:hover { background: #E8F4FB; color: var(--custom-bodhold-tab, #16418C); }
.custom-board-holdings .custom-board-holdings__tab:active { transform: translateY(1px); }
.custom-board-holdings .custom-board-holdings__tab:focus { outline: none; }
.custom-board-holdings .custom-board-holdings__tab:focus-visible { outline: 3px solid #50A3D5; outline-offset: 3px; }

/* the chosen one is a solid block of navy */
.custom-board-holdings .custom-board-holdings__tab.is-active { background: var(--custom-bodhold-tab, #16418C); color: #FFFFFF; }
.custom-board-holdings .custom-board-holdings__tab.is-active:hover { background: #10305F; color: #FFFFFF; }

.custom-board-holdings__panel[hidden] {
	display: none;
}

/* ------------------------------------------------------------------ */
/* The heading over each report — about-us-board.css:250-268           */
/* ------------------------------------------------------------------ */

.custom-board-holdings__head {
	margin-bottom: clamp(16px, calc(1.8 * var(--custom-vwu)), 26px);
	font-size: 16px;
	line-height: 1.6;
}

.custom-board-holdings__title {
	margin: 0;
	padding: 0;
	font-size: clamp(20px, calc(1.7 * var(--custom-vwu)), 26px);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	color: var(--custom-bodhold-title, #16418C);
	transition: color 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-board-holdings__sub {
	margin: 8px 0 0;
	font-size: clamp(14px, calc(1.05 * var(--custom-vwu)), 16px);
	font-weight: 300;
	line-height: 1.6;
	color: #64748B;
	transition: color 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-board-holdings__note {
	margin: 14px 0 0;
	font-size: 12px;
	font-weight: 300;
	line-height: 1.6;
	color: #64748B;
	transition: color 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ------------------------------------------------------------------ */
/* The executives' view — about-us-board.css:270-330                   */
/* ------------------------------------------------------------------ */

.custom-board-holdings.is-exec {
	background:
		radial-gradient(120% 90% at 8% 0%, rgba(80, 163, 213, 0.38) 0%, rgba(80, 163, 213, 0) 58%),
		linear-gradient(135deg, #16418C 0%, #10305F 55%, #0E1E54 100%);
}

.custom-board-holdings.is-exec .custom-board-holdings__title { color: #FFFFFF; }
.custom-board-holdings.is-exec .custom-board-holdings__sub { color: rgba(255, 255, 255, 0.82); }
.custom-board-holdings.is-exec .custom-board-holdings__note { color: rgba(255, 255, 255, 0.68); }

.custom-board-holdings.is-exec .custom-board-holdings__tab {
	background: rgba(255, 255, 255, 0.14);
	color: #FFFFFF;
	-webkit-backdrop-filter: blur(10px);
	        backdrop-filter: blur(10px);
}

.custom-board-holdings.is-exec .custom-board-holdings__tab:hover { background: rgba(255, 255, 255, 0.24); color: #FFFFFF; }
.custom-board-holdings.is-exec .custom-board-holdings__tab.is-active { background: #FFFFFF; color: #16418C; }
.custom-board-holdings.is-exec .custom-board-holdings__tab.is-active:hover { background: rgba(255, 255, 255, 0.9); color: #16418C; }
.custom-board-holdings.is-exec .custom-board-holdings__tab:focus-visible { outline-color: #FFFFFF; }

/* on navy the card loses its hairline and lifts on its shadow alone */
.custom-board-holdings.is-exec .custom-board-holdings__card {
	border-color: transparent;
	box-shadow: 0 30px 64px -28px rgba(3, 10, 30, 0.6);
}

/* ------------------------------------------------------------------ */
/* The table card — about-us-board.css:332-437                         */
/* ------------------------------------------------------------------ */

.custom-board-holdings__card {
	overflow: hidden;
	border: 1px solid rgba(22, 65, 140, 0.09);
	border-radius: var(--custom-bod-r) 0 var(--custom-bod-r) 0;
	background: #FFFFFF;
	box-shadow: 0 10px 26px -18px rgba(22, 65, 140, 0.34);
}

/* the table keeps its width and this box scrolls it; the ends fade while there is more */
.custom-board-holdings__view {
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
	        mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
}

.custom-board-holdings__view.is-start {
	-webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
	        mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
}

.custom-board-holdings__view.is-end {
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 100%);
	        mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 100%);
}

.custom-board-holdings__view.is-start.is-end {
	-webkit-mask-image: none;
	        mask-image: none;
}

.custom-board-holdings .custom-board-holdings__table {
	width: 100%;
	min-width: 940px;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: auto;
	font-variant-numeric: tabular-nums;
	font-size: clamp(12px, calc(1 * var(--custom-vwu)), 14px);
	line-height: 1.6;
}

/* head */
.custom-board-holdings .custom-board-holdings__table thead th {
	padding: 11px 12px;
	border: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.14);
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	background: var(--custom-bodtab-head, #16418C);
	color: #FFFFFF;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
}

.custom-board-holdings .custom-board-holdings__table thead tr:first-child th:first-child { border-left: 0; }
.custom-board-holdings .custom-board-holdings__table thead th.custom-board-holdings__grp { background: var(--custom-bodtab-group, #10305F); font-weight: 400; }
.custom-board-holdings .custom-board-holdings__table thead th.custom-board-holdings__delta { min-width: 96px; white-space: normal; }
.custom-board-holdings .custom-board-holdings__table thead tr:last-child th { font-size: 0.92em; font-weight: 400; }

/* body */
.custom-board-holdings .custom-board-holdings__table tbody th,
.custom-board-holdings .custom-board-holdings__table tbody td,
.custom-board-holdings .custom-board-holdings__table tfoot th,
.custom-board-holdings .custom-board-holdings__table tfoot td {
	padding: 11px 12px;
	border: 0;
	border-bottom: 1px solid #EEF2F7;
	background: transparent;
	color: var(--custom-bodtab-cell, #475569);
	font-weight: 400;
	text-align: right;
	white-space: nowrap;
	vertical-align: middle;
}

.custom-board-holdings .custom-board-holdings__table tbody tr { background: #FFFFFF; }
.custom-board-holdings .custom-board-holdings__table tbody tr:nth-child(even) { background: #FAFBFD; }
.custom-board-holdings .custom-board-holdings__table tbody tr:hover { background: #E8F4FB; }

/* the name column is the row's header, pinned while the figures scroll past it */
.custom-board-holdings .custom-board-holdings__table .custom-board-holdings__name {
	position: sticky;
	left: 0;
	z-index: 2;
	min-width: 218px;
	background: #FFFFFF;
	box-shadow: 1px 0 0 #EEF2F7;
	color: var(--custom-bodtab-name, #16418C);
	font-weight: 500;
	text-align: left;
}

.custom-board-holdings .custom-board-holdings__table thead .custom-board-holdings__name {
	z-index: 3;
	background: var(--custom-bodtab-head, #16418C);
	box-shadow: 1px 0 0 rgba(255, 255, 255, 0.14);
	color: #FFFFFF;
	font-weight: 500;
	text-align: center;
}

.custom-board-holdings .custom-board-holdings__table tbody tr:nth-child(even) .custom-board-holdings__name { background: #FAFBFD; }
.custom-board-holdings .custom-board-holdings__table tbody tr:hover .custom-board-holdings__name { background: #E8F4FB; }

/* totals */
.custom-board-holdings .custom-board-holdings__table .custom-board-holdings__total th,
.custom-board-holdings .custom-board-holdings__table .custom-board-holdings__total td {
	border-top: 2px solid #16418C;
	border-bottom: 1px solid #EEF2F7;     /* the demo's tfoot rule outweighs its own border-bottom: 0 */
	background: #E8F4FB;
	color: #16418C;
	font-weight: 600;
}

.custom-board-holdings .custom-board-holdings__table .custom-board-holdings__total--grand th,
.custom-board-holdings .custom-board-holdings__table .custom-board-holdings__total--grand td {
	border-top-color: #16418C;
	background: #16418C;
	color: #FFFFFF;
}

.custom-board-holdings .custom-board-holdings__table .custom-board-holdings__total .custom-board-holdings__name { background: #E8F4FB; color: #16418C; font-weight: 600; }
.custom-board-holdings .custom-board-holdings__table .custom-board-holdings__total--grand .custom-board-holdings__name { background: #16418C; color: #FFFFFF; }

/* a figure in brackets is a decrease */
.custom-board-holdings .custom-board-holdings__table td.is-neg { color: var(--custom-bodtab-neg, #CE2929); }
.custom-board-holdings .custom-board-holdings__table .custom-board-holdings__total--grand td.is-neg { color: #EF9895; }

/* a phone */
@media (max-width: 620px) {
	.custom-board-holdings .custom-board-holdings__table { min-width: 860px; }
	.custom-board-holdings .custom-board-holdings__table .custom-board-holdings__name { min-width: 168px; }

	/* two tabs, half the row each */
	.custom-board-holdings .custom-board-holdings__tab {
		flex: 1 1 0;
		padding-left: 14px;
		padding-right: 14px;
	}
}
