/*
| Layout for the section skeletons (see /media/page-skeleton.js).
| The shimmer itself comes from .msk in /media/modal-modern.css.
*/

/* The legacy loader (gear + "Загрузка...") is inserted by the bundled
   loadURL() during page parse, before page-skeleton.js replaces it. Do not let
   it paint even for one frame in browsers that support :has(). */
#content > h1:has(> i.fa-cog) {
	display: none;
}

.ps-wrap {
	padding: 2px 0 30px;
}

.ps-title-bar {
	display: block;
	width: 260px;
	max-width: 60%;
	height: 26px;
	margin: 2px 0 18px;
	border-radius: 6px;
}

.ps-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 16px;
}

.ps-row:last-child {
	margin-bottom: 0;
}

.ps-col {
	flex: 1 1 300px;
	min-width: 0;
}

.ps-col-main {
	flex: 2 1 460px;
}

.ps-col-side {
	flex: 1 1 240px;
}

.ps-card {
	padding: 16px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
}

.ps-card-head {
	display: block;
	height: 14px;
	margin-bottom: 16px;
	border-radius: 4px;
}

.ps-line {
	display: block;
	height: 12px;
	margin-bottom: 12px;
	border-radius: 4px;
}

.ps-line-70 {
	width: 70%;
}

.ps-line-50 {
	width: 50%;
}

.ps-line-40 {
	width: 40%;
}

.ps-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 8px;
}

.ps-field {
	display: block;
	flex: 1 1 140px;
	height: 38px;
	margin-bottom: 12px;
	border-radius: 6px;
}

.ps-trow {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 11px 0;
	border-bottom: 1px solid #eef1f4;
}

.ps-trow:last-child {
	border-bottom: 0;
}

.ps-cell {
	height: 12px;
	border-radius: 4px;
}

.ps-cell-name {
	flex: 1 1 auto;
	max-width: 45%;
}

.ps-cell-mid {
	flex: 0 0 18%;
}

.ps-cell-num {
	flex: 0 0 12%;
}

.ps-chart {
	height: 320px;
	border-radius: 8px;
}

.ps-chart-sm {
	height: 180px;
}

.ps-cal {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
}

.ps-cal-head {
	height: 16px;
	border-radius: 4px;
}

.ps-cal-cell {
	height: 56px;
	border-radius: 6px;
}

.ps-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}

.ps-tab {
	width: 110px;
	height: 30px;
	border-radius: 6px;
}

.ps-textarea {
	display: block;
	height: 120px;
	margin-bottom: 14px;
	border-radius: 8px;
}

.ps-btn {
	display: block;
	width: 140px;
	height: 34px;
	border-radius: 6px;
}

.ps-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

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

.ps-card-compact {
	padding: 12px;
}

.ps-grid-3 .ps-split {
	margin-bottom: 10px;
}

.ps-split {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.ps-amount {
	flex: 0 0 auto;
	width: 90px;
	height: 16px;
	border-radius: 4px;
}

.ps-line-60 {
	width: 60%;
}

.ps-foot {
	display: flex;
	justify-content: flex-end;
	margin-top: 8px;
}

@media (max-width: 991px) {
	.ps-grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.ps-grid-2,
	.ps-grid-3 {
		grid-template-columns: 1fr;
	}

	.ps-chart {
		height: 220px;
	}

	.ps-cal-cell {
		height: 44px;
	}

	.ps-trow {
		gap: 8px;
	}

	.ps-cell-mid {
		flex-basis: 22%;
	}

	.ps-title-bar {
		height: 22px;
	}
}
