/* AI billing rules — extends ai-model-guide layout */

.ag-layout--wide {
	max-width: 960px;
}

.ab-formula {
	margin: 0 0 12px;
	padding: 14px 16px;
	border-radius: 8px;
	background: #edf2f7;
	color: #1a365d;
	font-size: 16px;
	line-height: 1.5;
}

.ab-table-wrap {
	margin: 0 0 8px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.ab-table-wrap--scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ab-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 13.5px;
	line-height: 1.5;
	color: #2d3748;
}

.ab-table th,
.ab-table td {
	padding: 10px 12px;
	border-top: 1px solid #edf2f7;
	text-align: left;
	vertical-align: top;
}

.ab-table thead th {
	border-top: 0;
	background: #f7fafc;
	font-size: 12.5px;
	font-weight: 700;
	color: #4a5568;
	white-space: nowrap;
}

.ab-table tbody th[scope="row"] {
	font-weight: 600;
	color: #1a365d;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 12.5px;
	background: #fafbfc;
	border-right: 1px solid #edf2f7;
	white-space: nowrap;
}

.ab-table--coeff td:last-child {
	white-space: nowrap;
	color: #2a4365;
	font-weight: 600;
}

@media (max-width: 767px) {
	.ab-table {
		font-size: 12.5px;
		min-width: 640px;
	}

	.ab-table th,
	.ab-table td {
		padding: 8px 10px;
	}
}
