/* Analysis modals: candlestick, hedge fund, insider (injected from portfolio_analyze.php) */
.portfolio-page .pa-analysis-scroll {
	max-height: min(62vh, 480px);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 8px;
	border: 1px solid #2a2a32;
}

.portfolio-page .pa-modal-lead {
	color: #9ca3af;
	font-size: 13px;
	line-height: 1.45;
	margin: 0 0 14px 0;
}

.portfolio-page .pa-table.table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 14px;
	color: #e5e7eb;
	margin: 0;
	background: #141418;
}

.portfolio-page .pa-table.table tbody tr:nth-of-type(odd) td,
.portfolio-page .pa-table.table tbody tr:nth-of-type(even) td {
	background: transparent;
}

.portfolio-page .pa-table.table thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	background: #1c1c22 !important;
	color: #f3f4f6 !important;
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 11px 12px;
	border: none;
	border-bottom: 2px solid #6366f1;
	vertical-align: bottom;
	white-space: nowrap;
}

.portfolio-page .pa-table.table thead th i {
	opacity: 0.75;
	margin-right: 6px;
	font-size: 12px;
}

.portfolio-page .pa-table.table tbody td {
	padding: 11px 12px;
	border: none;
	border-bottom: 1px solid #2a2a32;
	vertical-align: middle;
	background: transparent;
}

.portfolio-page .pa-table.table tbody tr:last-child td {
	border-bottom: none;
}

.portfolio-page .pa-table.table tbody tr:hover td {
	background: rgba(255, 255, 255, 0.025);
}

.portfolio-page .pa-row--buy td:first-child {
	box-shadow: inset 3px 0 0 #22c55e;
}

.portfolio-page .pa-row--sell td:first-child {
	box-shadow: inset 3px 0 0 #ef4444;
}

.portfolio-page .pa-row--other td:first-child {
	box-shadow: inset 3px 0 0 #6b7280;
}

.portfolio-page .pa-signal {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 4px 10px;
	border-radius: 6px;
	line-height: 1.2;
}

.portfolio-page .pa-signal i {
	font-size: 10px;
}

.portfolio-page .pa-signal--buy {
	background: rgba(34, 197, 94, 0.14);
	color: #4ade80;
	border: 1px solid rgba(34, 197, 94, 0.32);
}

.portfolio-page .pa-signal--sell {
	background: rgba(239, 68, 68, 0.12);
	color: #f87171;
	border: 1px solid rgba(239, 68, 68, 0.32);
}

.portfolio-page .pa-signal--other {
	background: rgba(107, 114, 128, 0.15);
	color: #9ca3af;
	border: 1px solid rgba(107, 114, 128, 0.3);
}

.portfolio-page .pa-num {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum";
	color: #f3f4f6;
}

.portfolio-page .pa-pct--pos {
	color: #4ade80;
	font-weight: 600;
}

.portfolio-page .pa-pct--neg {
	color: #f87171;
	font-weight: 600;
}

.portfolio-page .pa-pct--zero {
	color: #9ca3af;
}

.portfolio-page .pa-insider {
	max-width: 200px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #e5e7eb;
}

.portfolio-page .pa-pattern {
	color: #d1d5db;
	font-size: 13px;
}

/* Dark modal shell for analysis (Bootstrap modal overrides on portfolio page) */
.portfolio-page .modal.portfolio-analysis-modal .modal-content {
	background: #1a1a1f;
	border: 1px solid #2a2a32;
}

.portfolio-page .modal.portfolio-analysis-modal .modal-body {
	background: #121216;
}

.portfolio-page .modal.portfolio-analysis-modal .modal-footer {
	background: #1a1a1f;
	border-top: 1px solid #2a2a32;
}
