.api-costs-page {
	display: grid;
	gap: 1rem;
}

.api-costs-header,
.api-cost-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.api-costs-header h2,
.api-cost-section-head h3,
.api-cost-panel h3 {
	margin: 0;
}

.api-cost-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.api-cost-filters,
.price-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0.75rem;
	align-items: end;
}

.api-cost-filters label {
	display: grid;
	gap: 0.25rem;
	font-weight: 600;
}

.api-cost-filters input,
.api-cost-filters select,
.price-form input,
.price-form select {
	width: 100%;
	min-height: 2.4rem;
	box-sizing: border-box;
}

.api-cost-kpis {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0.75rem;
}

.api-cost-kpis div,
.api-cost-panel {
	border: 1px solid #d8dee6;
	background: #fff;
	border-radius: 6px;
	padding: 1rem;
}

.api-cost-kpis span {
	display: block;
	color: #58606e;
	font-size: 0.85rem;
}

.api-cost-kpis strong {
	display: block;
	font-size: 1.45rem;
	margin-top: 0.25rem;
}

.api-cost-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
	gap: 1rem;
}

.table-wrap {
	width: 100%;
	overflow-x: auto;
}

.api-cost-panel table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.api-cost-panel th,
.api-cost-panel td {
	border-bottom: 1px solid #e6eaf0;
	padding: 0.45rem 0.5rem;
	text-align: left;
	vertical-align: top;
	white-space: nowrap;
}

.api-cost-panel th {
	background: #f6f8fb;
	font-weight: 700;
}

.api-cost-error {
	border: 1px solid #c95050;
	background: #fff2f2;
	color: #8f1f1f;
	border-radius: 6px;
	padding: 0.75rem 1rem;
}

.hidden {
	display: none !important;
}
