/**
 * Standalone iframe: IPL points table (EntitySport /info standings).
 *
 * @package ISPV2
 */

html {
	box-sizing: border-box;
	overflow-x: hidden;
	overflow-y: visible;
	width: 100%;
	max-width: 100%;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body.isp-pt-shell {
	margin: 0;
	padding: 0;
	background: transparent;
	overflow-x: hidden;
	overflow-y: visible;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 13px;
	color: #0f172a;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}

#isp-pt-root,
.isp-points-table-inline .isp-pt {
	max-width: 100%;
	width: 100%;
}

.isp-points-table-inline.isp-pt-shell {
	box-sizing: border-box;
	max-width: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 13px;
	color: #0f172a;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}

.isp-pt {
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #bfdbfe;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
	background: #fff;
}

/* Top bar: title only */
.isp-pt-header {
	padding: 12px 16px;
	background: linear-gradient(180deg, #1d4ed8 0%, #1e40af 100%);
	color: #fff;
	border-radius: 12px 12px 0 0;
}

.isp-pt-header__title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
}

/* Card + table */
.isp-pt-card {
	background: #fff;
	border-radius: 0 0 12px 12px;
}

.isp-pt-table-wrap {
	overflow: auto;
	max-height: 520px;
	-webkit-overflow-scrolling: touch;
}

.isp-pt-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	min-width: 600px;
}

/* One gradient strip for the whole header row (avoids per-cell “boxes” on P, W, L, T, etc.). */
.isp-pt-table thead {
	background: linear-gradient(90deg, #1e3a8a 0%, #1e40af 72%, #4c1d95 100%);
}

.isp-pt-th {
	padding: 10px 10px;
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #fff;
	background: transparent;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	border-left: 0;
	border-right: 0;
	white-space: nowrap;
}

.isp-pt-th--num {
	width: 40px;
	text-align: center;
}

.isp-pt-th--team {
	min-width: 160px;
}

.isp-pt-th--stat {
	text-align: center;
	width: 44px;
}

.isp-pt-th--pts,
.isp-pt-th--nrr {
	min-width: 52px;
}

.isp-pt-td {
	padding: 10px 10px;
	border-bottom: 1px solid #e2e8f0;
	vertical-align: middle;
	color: #1e293b;
}

.isp-pt-td--num {
	text-align: center;
	font-weight: 600;
	color: #64748b;
	width: 40px;
}

.isp-pt-td--team {
	font-weight: 600;
	color: #2563eb;
}

.isp-pt-td--stat {
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.isp-pt-td--pts {
	font-weight: 700;
	color: #0f172a;
}

.isp-pt-td--nrr {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	color: #334155;
}

.isp-pt-tr--even .isp-pt-td {
	background: #f0f9ff;
}

.isp-pt-tr--even .isp-pt-td--team {
	background: #eff6ff;
}

.isp-pt-table tbody tr:hover .isp-pt-td {
	background: #e0f2fe !important;
}

.isp-pt-empty {
	text-align: center;
	padding: 28px 16px !important;
	color: #64748b;
}

/* Legend */
.isp-pt-legend {
	margin: 0;
	padding: 12px 14px 14px;
	font-size: 11px;
	line-height: 1.6;
	color: #64748b;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
}

.isp-pt-legend abbr {
	text-decoration: none;
	font-weight: 700;
	color: #475569;
	cursor: help;
}

.isp-pt-legend__sep {
	margin: 0 0.35em;
	color: #cbd5e1;
}
