.pg-aircraft-selector-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.pg-aircraft-select {
	width: 100%;
	min-height: 42px;
}

.pg-aircraft-admin {
	max-width: 1420px;
}

.pg-aircraft-page-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin: 18px 0 20px;
	padding: 26px 28px;
	border: 1px solid #d7deea;
	border-radius: 18px;
	background: linear-gradient(180deg, #ffffff, #f6f9fd);
	box-shadow: 0 16px 36px rgba(18, 38, 63, 0.06);
}

.pg-aircraft-page-header h1 {
	margin: 0 0 6px;
	font-size: 28px;
	line-height: 1.2;
}

.pg-aircraft-page-subtitle {
	margin: 0;
	max-width: 780px;
	color: #5d697a;
	font-size: 14px;
}

.pg-aircraft-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 22px;
}

.pg-aircraft-tab {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid #cfd8e4;
	border-radius: 12px;
	background: #ffffff;
	color: #1f2937;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
}

.pg-aircraft-tab:hover {
	border-color: #7aa7ff;
	color: #0f172a;
}

.pg-aircraft-tab.is-active {
	border-color: #2563eb;
	background: linear-gradient(180deg, #eff6ff, #dbeafe);
	color: #0b4dc9;
	box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}

.pg-aircraft-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	padding: 0 8px;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.1);
	font-size: 12px;
	font-weight: 700;
}

.pg-aircraft-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 24px;
	align-items: start;
}

.pg-aircraft-panel,
.pg-aircraft-side-panel > .pg-aircraft-panel {
	border: 1px solid #d7deea;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 16px 36px rgba(18, 38, 63, 0.06);
	overflow: hidden;
}

.pg-aircraft-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 22px 24px 18px;
	border-bottom: 1px solid #e7edf5;
	background: linear-gradient(180deg, #fbfcfe, #f6f9fd);
}

.pg-aircraft-panel-head h2,
.pg-aircraft-panel-head h3 {
	margin: 0 0 4px;
	font-size: 20px;
	line-height: 1.2;
}

.pg-aircraft-panel-head p {
	margin: 0;
	color: #657286;
	font-size: 13px;
}

.pg-aircraft-filter-form,
.pg-aircraft-filter-form-wide {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.pg-aircraft-filter-form select,
.pg-aircraft-filter-form-wide select,
.pg-aircraft-row-form input[type='text'],
.pg-aircraft-stack-form input[type='text'],
.pg-aircraft-stack-form select {
	min-height: 40px;
	border: 1px solid #cfd8e4;
	border-radius: 10px;
	background: #ffffff;
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.pg-aircraft-table {
	border: 0;
	box-shadow: none;
}

.pg-aircraft-table thead th {
	padding: 14px 16px;
	border-bottom: 1px solid #e7edf5;
	background: #f8fafc;
	color: #475569;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pg-aircraft-table tbody td {
	padding: 14px 16px;
	vertical-align: middle;
}

.pg-aircraft-table tbody tr:nth-child(even) td {
	background: #fcfdff;
}

.pg-aircraft-col-actions {
	width: 170px;
}

.pg-aircraft-row-form {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pg-aircraft-row-form input[type='text'] {
	flex: 1 1 auto;
	min-width: 220px;
}

.pg-aircraft-row-form .button-small {
	flex: 0 0 auto;
}

.pg-aircraft-side-panel {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.pg-aircraft-stack-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px 24px 24px;
}

.pg-aircraft-stack-form .button {
	align-self: flex-start;
}

.pg-aircraft-delete-link {
	margin-left: 4px;
	color: #b42318;
	text-decoration: none;
}

.pg-aircraft-delete-link:hover {
	color: #8f1d14;
}

@media (max-width: 1100px) {
	.pg-aircraft-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 900px) {
	.pg-aircraft-selector-grid,
	.pg-aircraft-filter-form,
	.pg-aircraft-filter-form-wide,
	.pg-aircraft-row-form {
		grid-template-columns: 1fr;
		flex-direction: column;
		align-items: stretch;
	}

	.pg-aircraft-page-header,
	.pg-aircraft-panel-head {
		padding-left: 18px;
		padding-right: 18px;
	}

	.pg-aircraft-stack-form {
		padding-left: 18px;
		padding-right: 18px;
	}
}
