body.al-app {
	margin: 0;
	background: #f3f6fb;
	color: #1c2434;
	font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.al-sidebar {
	position: fixed;
	inset: 0 auto 0 0;
	width: 248px;
	background: #1b2434;
	color: #c9d2e0;
	display: flex;
	flex-direction: column;
	z-index: 40;
}

.al-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 22px 20px 18px;
	color: #fff;
	text-decoration: none;
}

.al-brand:hover { color: #fff; text-decoration: none; }

/* Логотип на белой плашке: черные элементы картинки на темном меню иначе не видны */
.al-logo {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #fff;
	display: grid;
	place-items: center;
	flex: 0 0 40px;
	overflow: hidden;
}
.al-logo img { width: 40px; height: 40px; display: block; }

.al-brand-text {
	font-weight: 700;
	letter-spacing: 0.04em;
	font-size: 13px;
	line-height: 1.15;
}

.al-nav {
	list-style: none;
	margin: 0;
	padding: 8px 12px;
	overflow: auto;
	flex: 1;
}

.al-nav a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	color: #c5cedb;
	text-decoration: none;
	font-size: 14px;
	margin-bottom: 2px;
}

.al-nav a svg { flex: 0 0 18px; opacity: 0.9; }

.al-nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; text-decoration: none; }

.al-nav a.active {
	background: #2f6fed;
	color: #fff;
}

.al-nav-row { position: relative; }
.al-nav-row > a { padding-right: 40px; }
.al-nav-toggle {
	position: absolute;
	top: 50%;
	right: 6px;
	width: 28px;
	height: 28px;
	margin-top: -15px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #8b97ab;
	cursor: pointer;
	padding: 0;
}
.al-nav-toggle:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.al-nav-toggle:focus-visible { outline: 2px solid #7aa2f7; outline-offset: 0; }
.al-nav-row > a.active + .al-nav-toggle { color: #fff; }
.al-nav-row > a.active + .al-nav-toggle:hover { background: rgba(255, 255, 255, 0.16); }
.al-nav-toggle svg { transition: transform 0.15s ease; }
.al-nav-group.open .al-nav-toggle svg { transform: rotate(90deg); }

.al-subnav {
	display: none;
	list-style: none;
	margin: 2px 0 6px;
	padding: 0 0 0 42px;
}
.al-nav-group.open .al-subnav { display: block; }
.al-nav .al-subnav a {
	position: relative;
	padding: 7px 10px;
	margin-bottom: 1px;
	font-size: 13px;
	color: #9aa6b8;
	border-radius: 8px;
}
.al-nav .al-subnav a:before {
	content: "";
	position: absolute;
	left: -14px;
	top: 50%;
	width: 5px;
	height: 5px;
	margin-top: -2px;
	border-radius: 50%;
	background: #4a5568;
}
.al-nav .al-subnav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.al-nav .al-subnav a.active { background: rgba(47, 111, 237, 0.18); color: #fff; font-weight: 600; }
.al-nav .al-subnav a.active:before { background: #2f6fed; }

.al-side-foot {
	padding: 16px 20px 18px;
	font-size: 12px;
	color: #8b97ab;
	line-height: 1.45;
}

.al-main {
	margin-left: 248px;
	min-height: 100vh;
}

.al-topbar {
	height: 68px;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 0 28px;
	background: #f3f6fb;
}

.al-menu-btn {
	display: none;
	border: 0;
	background: #fff;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.al-search {
	flex: 1;
	max-width: 560px;
	margin: 0 auto;
	position: relative;
}

.al-search input {
	width: 100%;
	height: 42px;
	border: 1px solid #e4e9f1;
	background: #fff;
	border-radius: 12px;
	padding: 0 72px 0 42px;
	font-size: 14px;
	outline: none;
	color: #1c2434;
}

.al-search input:focus { border-color: #2f6fed; }
.al-suggest {
	position: absolute;
	top: 48px;
	left: 0;
	right: 0;
	z-index: 30;
	background: #fff;
	border: 1px solid #e6ebf2;
	border-radius: 14px;
	box-shadow: 0 16px 40px rgba(16, 24, 40, 0.12);
	max-height: 420px;
	overflow: auto;
	padding: 6px;
}
.al-sug-empty { padding: 14px; color: #8b95a7; font-size: 14px; }
.al-sug-card { padding: 6px 6px 4px; border-bottom: 1px solid #f2f5f9; }
.al-sug-card:last-child { border-bottom: 0; }
.al-sug-client, .al-sug-order { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #1c2434; border-radius: 8px; }
.al-sug-client { flex-wrap: wrap; padding: 8px; }
.al-sug-client small { width: 100%; color: #8b95a7; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.al-sug-client b { font-size: 14px; }
.al-sug-client span, .al-sug-client em { color: #526074; font-size: 12px; font-style: normal; }
.al-sug-client:hover, .al-sug-order:hover { background: #f4f7fb; }
.al-sug-order { padding: 6px 8px 6px 16px; font-size: 13px; color: #526074; }
.al-sug-order b { color: #2f6fed; min-width: 64px; }
.al-sug-order-top { padding-left: 8px; }

.al-search svg {
	position: absolute;
	left: 14px;
	top: 12px;
	color: #98a2b3;
}

.al-kbd {
	position: absolute;
	right: 12px;
	top: 9px;
	border: 1px solid #e4e9f1;
	border-radius: 6px;
	padding: 2px 6px;
	font-size: 11px;
	color: #98a2b3;
	background: #fafbfc;
}

.al-top-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: auto;
}

.al-bell {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	color: #526074;
	background: transparent;
}

.al-bell:hover { background: #fff; color: #1c2434; }

.al-user { position: relative; }

.al-user summary {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.al-user summary::-webkit-details-marker { display: none; }

.al-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #2f6fed;
	color: #fff;
	display: grid;
	place-items: center;
	font-size: 13px;
	font-weight: 700;
}

.al-user-meta { display: flex; flex-direction: column; }
.al-user-name { font-size: 14px; font-weight: 600; color: #1c2434; line-height: 1.2; }
.al-user-role { font-size: 12px; color: #8b95a7; }

.al-user-menu {
	position: absolute;
	right: 0;
	top: 48px;
	background: #fff;
	border: 1px solid #e6ebf2;
	border-radius: 12px;
	min-width: 180px;
	box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
	padding: 6px;
	z-index: 20;
}

.al-user-menu a {
	display: block;
	padding: 8px 10px;
	border-radius: 8px;
	color: #1c2434;
	text-decoration: none;
	font-size: 14px;
}

.al-user-menu a:hover { background: #f3f6fb; }

.al-content { padding: 4px 28px 40px; }

.al-page-head { margin-bottom: 18px; }
.al-page-head h1 {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.02em;
}
.al-page-head .breadcrumb { background: transparent; padding: 0; margin: 6px 0 0; }

.dash-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.dash-head h1 {
	margin: 0 0 4px;
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.dash-head p { margin: 0; color: #6b7689; font-size: 14px; }

.al-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #2f6fed;
	color: #fff !important;
	border-radius: 10px;
	padding: 10px 16px;
	font-weight: 600;
	text-decoration: none !important;
	border: 0;
	font-size: 14px;
}

.al-btn:hover { background: #245fe0; }

.dash-kpis {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 16px;
}

.dash-kpi, .dash-card {
	background: #fff;
	border: 1px solid #e7edf5;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.dash-kpi { padding: 16px 18px; }
.dash-kpi span { display: block; color: #8b95a7; font-size: 13px; margin-bottom: 8px; }
.dash-kpi strong { display: block; font-size: 26px; letter-spacing: -0.03em; line-height: 1; }
.dash-kpi em { display: block; margin-top: 8px; font-style: normal; color: #526074; font-size: 13px; }

.dash-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 16px;
	align-items: start;
}

.dash-card { padding: 18px 18px 8px; margin-bottom: 16px; }
.dash-card h2 { margin: 0; font-size: 18px; font-weight: 700; }

.dash-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.dash-card select {
	height: 36px;
	border: 1px solid #e4e9f1;
	border-radius: 10px;
	padding: 0 10px;
	background: #fff;
	color: #1c2434;
}

.dash-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dash-table th {
	text-align: left;
	color: #8b95a7;
	font-weight: 600;
	font-size: 12px;
	padding: 8px 8px 10px;
	border-bottom: 1px solid #eef2f7;
}
.dash-table td { padding: 10px 8px; border-bottom: 1px solid #f2f5f9; vertical-align: middle; }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table .num { text-align: right; white-space: nowrap; }
.dash-table a { color: #2f6fed; font-weight: 600; }
.dash-section td { background: #f8fafc; font-weight: 700; }
.dash-empty { color: #8b95a7; padding: 12px 8px 18px; }

body.al-guest {
	margin: 0;
	min-height: 100vh;
	background: #f3f6fb;
	color: #1c2434;
	font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}
.al-guest-wrap {
	min-height: 100vh;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px 16px;
}
.al-guest-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: #1c2434; text-decoration: none; }
.al-guest-brand:hover { color: #1c2434; text-decoration: none; }
.al-guest-card {
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #e7edf5;
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(16, 24, 40, 0.06);
	padding: 28px;
}
.al-guest-card .alert { border-radius: 10px; font-size: 14px; margin-bottom: 18px; }
.al-guest-foot { margin-top: 18px; font-size: 12px; color: #8b97ab; }

.al-auth h1 { margin: 0 0 6px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.al-auth-sub { margin: 0 0 22px; color: #6b7689; font-size: 14px; }
.al-field { margin-bottom: 16px; }
.al-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #3d4a5c; }
.al-input {
	display: block;
	width: 100%;
	height: 44px;
	box-sizing: border-box;
	border: 1px solid #d5deea;
	border-radius: 10px;
	background: #fff;
	padding: 0 14px;
	font-size: 14px;
	color: #1c2434;
	box-shadow: none;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.al-input:focus { border-color: #2f6fed; box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15); }
.al-field.has-error .al-input { border-color: #d12b3a; }
.al-field.has-error .al-input:focus { box-shadow: 0 0 0 3px rgba(209, 43, 58, 0.15); }
.al-error { margin-top: 6px; font-size: 12px; color: #d12b3a; }
.al-error:empty { display: none; }
.al-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -2px 0 20px; font-size: 14px; }
.al-auth-row a, .al-auth-alt a { color: #2f6fed; font-weight: 600; text-decoration: none; }
.al-auth-row a:hover, .al-auth-alt a:hover { text-decoration: underline; }
.al-check { margin: 0; }
.al-check label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; color: #3d4a5c; cursor: pointer; }
.al-check input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: #2f6fed; }
.al-check .al-error { display: none; }
.al-btn-block { width: 100%; justify-content: center; height: 44px; cursor: pointer; }
.al-btn:focus-visible { outline: 3px solid rgba(47, 111, 237, 0.35); outline-offset: 2px; }
.al-auth-alt { margin: 18px 0 0; text-align: center; font-size: 14px; }

@media (max-width: 480px) {
	.al-guest-card { padding: 22px 18px; }
}

@media (max-width: 1100px) {
	.dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dash-grid { grid-template-columns: 1fr; }
}

.ord-head, .ord-head-actions, .ord-filters, .ord-tabs, .ord-foot { display: flex; align-items: center; gap: 12px; }
.ord-head { justify-content: space-between; margin-bottom: 16px; }
.ord-head h1 { margin: 0 0 4px; font-size: 36px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.ord-head p { margin: 0; color: #6b7689; font-size: 15px; }
.ord-head-actions { margin-left: auto; }
.ord-period { display: flex; align-items: center; gap: 8px; height: 44px; margin: 0; padding: 0 12px; background: #fff; border: 1px solid #d5deea; border-radius: 12px; color: #1c2434; }
.ord-period input[type="date"] { width: 138px; height: 36px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 14px; font-weight: 700; color: #1c2434; }
.ord-period span { font-weight: 700; color: #526074; }
.ord-filters {
	background: #fff;
	border: 1px solid #e7edf5;
	border-radius: 14px;
	padding: 12px 14px;
	align-items: center;
	flex-wrap: nowrap;
}
.ord-search, .ord-field { display: flex; align-items: center; gap: 8px; margin: 0; height: 40px; font-weight: 400; white-space: nowrap; }
.ord-field span { color: #6b7689; font-size: 13px; }
.ord-filters input[type="search"], .ord-filters input[type="number"], .ord-filters input[type="date"], .ord-filters button {
	box-sizing: border-box;
	height: 40px;
	margin: 0;
	line-height: 20px;
	vertical-align: middle;
	box-shadow: none;
}
.ord-filters input[type="search"], .ord-filters input[type="number"], .ord-filters input[type="date"] {
	border: 1px solid #d5deea;
	background: #fff;
	border-radius: 10px;
	padding: 0 12px;
	color: #1c2434;
	font-size: 14px;
}
.ord-filters input:focus { border-color: #2f6fed; outline: none; }
.ord-filters button {
	border: 1px solid #d5deea; background: #fff; color: #2f6fed; border-radius: 10px; padding: 0 14px; font-weight: 600; font-size: 14px;
}
.ord-filters input[type="date"] { width: 142px; }
.ord-filters input[type="number"] { width: 96px; }
.ord-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.ord-kpi { border-radius: 16px; padding: 14px 16px 12px; min-height: 118px; }
.ord-kpi-top { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.ord-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 36px; background: #fff; font-style: normal; }
.ord-ico svg { width: 20px; height: 20px; }
.ord-kpi-top span { flex: 1; }
.ord-kpi-blue .ord-ico { color: #2f6fed; }
.ord-kpi-green .ord-ico { color: #128a4a; }
.ord-kpi-amber .ord-ico { color: #d97706; }
.ord-kpi-mint .ord-ico { color: #059669; }
.ord-kpi-red .ord-ico { color: #e11d48; }
.ord-kpi span, .ord-kpi em { display: block; color: #3d4a5c; font-size: 15px; font-weight: 600; font-style: normal; line-height: 1.25; }
.ord-kpi strong { display: block; margin: 8px 0 4px; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.ord-up, .ord-down { font-size: 13px; font-weight: 700; }
.ord-kpi-blue { background: #eef4ff; }
.ord-kpi-green { background: #e8f8ee; }
.ord-kpi-amber { background: #fff6e8; }
.ord-kpi-mint { background: #eefbf4; }
.ord-kpi-red { background: #fff0f1; }
.ord-up { color: #128a4a; }
.ord-down { color: #d12b3a; }
.ord-filters { margin-bottom: 14px; }
.ord-search { flex: 1; min-width: 180px; }
.ord-search input { width: 100%; }
.ord-reset { color: #2f6fed; font-size: 14px; margin-left: auto; white-space: nowrap; }
.ord-card { background: #fff; border: 1px solid #e7edf5; border-radius: 16px; }
.ord-tabs { margin: 2px 0 12px; padding: 0 2px; border: 0; gap: 6px; flex-wrap: nowrap; background: transparent; }
.ord-tabs a { color: #526074; text-decoration: none; padding: 8px 4px 10px; font-size: 14px; }
.ord-tabs a.active { color: #2f6fed; box-shadow: inset 0 -2px 0 #2f6fed; font-weight: 600; }
.ord-tabs b { display: inline-block; margin-left: 6px; background: #eef1f6; border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 600; color: #526074; }
.ord-tabs a.active b { background: #e7efff; color: #2f6fed; }
.ord-tabs b.hot { background: #ffe4e8; color: #e11d48; }
.ord-export {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 12px !important;
	border: 1px solid #d5deea;
	border-radius: 10px;
	background: #fff;
	color: #2f6fed !important;
	font-weight: 600;
	box-shadow: none !important;
}
.ord-table-wrap { overflow-x: auto; }
.ord-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ord-table th {
	text-align: left;
	color: #98a2b3;
	font-weight: 600;
	font-size: 13px;
	padding: 14px 16px;
	background: #f8fafc;
	border-bottom: 1px solid #e7edf5;
	white-space: nowrap;
}
.ord-table td { padding: 14px 16px; border-bottom: 1px solid #f3f6fb; vertical-align: middle; }
.ord-table .num, .ord-table th.num { text-align: right; }
.ord-table th a.ord-th {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #98a2b3;
	font-weight: 600;
	text-decoration: none;
}
.ord-table th.num a.ord-th { flex-direction: row; }
.ord-sort {
	position: relative;
	width: 8px;
	height: 12px;
	flex: 0 0 8px;
}
.ord-sort:before,
.ord-sort:after {
	content: "";
	position: absolute;
	left: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
}
.ord-sort:before { top: 0; border-bottom: 4px solid #c5ceda; }
.ord-sort:after { bottom: 0; border-top: 4px solid #c5ceda; }
.ord-th.asc .ord-sort:before { border-bottom-color: #2f6fed; }
.ord-th.desc .ord-sort:after { border-top-color: #2f6fed; }
.ord-th:hover { color: #526074; }
.ord-id, .ord-client { color: #1c2434; font-weight: 600; text-decoration: none; }
.ord-client { color: #2f6fed; }
.ord-phone, .ord-dates { color: #6b7689; font-size: 12px; }
.ord-badge { display: inline-block; border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 600; }
.ord-badge-ok { background: #e5f8ec; color: #128a4a; }
.ord-badge-info { background: #e7efff; color: #2f6fed; }
.ord-badge-warn { background: #fff1df; color: #c26a00; }
.ord-badge-bad { background: #ffe8ea; color: #d12b3a; }
.ord-empty { text-align: center; color: #8b95a7; padding: 28px !important; }
.ord-menu { position: relative; }
.ord-menu summary { width: 28px; height: 28px; border-radius: 8px; cursor: pointer; list-style: none; text-align: center; line-height: 28px; }
.ord-menu summary::-webkit-details-marker { display: none; }
.ord-menu summary:before { content: "···"; letter-spacing: 1px; color: #526074; }
.ord-menu a { display: block; padding: 8px 10px; color: #1c2434; text-decoration: none; white-space: nowrap; }
.ord-menu[open] { background: #fff; }
.ord-menu[open] a { position: relative; }
.ord-menu[open] { position: relative; z-index: 2; }
.ord-menu[open] summary + a, .ord-menu[open] a { background: #fff; border: 1px solid #e7edf5; }
.ord-menu[open] summary + a { position: absolute; right: 0; top: 30px; border-radius: 10px 10px 0 0; min-width: 140px; }
.ord-menu[open] a + a { position: absolute; right: 0; top: 64px; border-radius: 0 0 10px 10px; border-top: 0; min-width: 140px; }
.ord-foot { justify-content: space-between; padding: 12px 16px; color: #6b7689; font-size: 13px; flex-wrap: wrap; }
.ord-pager { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.ord-pager li { float: none; }
.ord-pager li a, .ord-pager li span { display: block; min-width: 32px; height: 32px; line-height: 32px; text-align: center; border-radius: 8px; color: #1c2434; text-decoration: none; }
.ord-pager li.active a, .ord-pager li.active span { background: #2f6fed; color: #fff; }
.ord-foot select { height: 32px; border: 1px solid #e7edf5; border-radius: 8px; margin-left: 6px; }

@media (max-width: 1500px) {
	.ord-head h1 { font-size: 30px; }
	.ord-kpi { padding: 12px 12px 10px; min-height: 0; }
	.ord-kpi strong { font-size: 26px; }
	.ord-kpi span, .ord-kpi em { font-size: 13px; }
	.ord-ico { width: 32px; height: 32px; flex-basis: 32px; }
	.ord-ico svg { width: 18px; height: 18px; }
	.ord-kpis { gap: 8px; }
}
@media (max-width: 1320px) {
	.ord-head h1 { font-size: 26px; }
	.ord-head p { font-size: 13px; }
	.ord-head, .ord-head-actions { gap: 8px; }
	.ord-kpi strong { font-size: 20px; }
	.ord-kpi span, .ord-kpi em, .ord-up, .ord-down { font-size: 12px; }
	.ord-kpi { padding: 10px; }
	.ord-ico { width: 28px; height: 28px; flex-basis: 28px; border-radius: 8px; }
	.ord-ico svg { width: 16px; height: 16px; }
	.ord-period { height: 40px; padding: 0 8px; gap: 4px; }
	.ord-period input[type="date"] { width: 112px; font-size: 12px; }
	.al-btn { padding: 8px 12px; font-size: 13px; }
	.ord-tabs a { font-size: 13px; }
	.ord-filters { padding: 8px 10px; gap: 8px; }
	.ord-search { min-width: 0; }
}
@media (max-width: 1080px) {
	.ord-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ord-kpi strong { font-size: 24px; }
	.ord-head { align-items: flex-start; flex-direction: column; }
	.ord-head-actions { margin-left: 0; flex-wrap: wrap; }
	.ord-filters, .ord-tabs { flex-wrap: wrap; }
}

@media (max-width: 860px) {
	.al-sidebar { transform: translateX(-100%); transition: transform 0.2s ease; }
	body.al-nav-open .al-sidebar { transform: none; }
	.al-main { margin-left: 0; }
	.al-menu-btn { display: inline-grid; place-items: center; }
	.al-user-meta { display: none; }
	.al-content, .al-topbar { padding-left: 16px; padding-right: 16px; }
}

/* ===== Карточка заказа ===== */
.al-btn-ghost { background: #fff; color: #1c2434 !important; border: 1px solid #d5deea; }
.al-btn-ghost:hover { background: #f4f7fb; border-color: #c5d0df; }
.al-btn svg { flex: 0 0 16px; }

.ov-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.ov-back { display: inline-block; margin-bottom: 6px; font-size: 13px; color: #6b7689; text-decoration: none; }
.ov-back:hover { color: #2f6fed; text-decoration: none; }
.ov-head h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 4px; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.ov-head h1 .ord-badge { font-size: 13px; letter-spacing: 0; }
.ov-head p { margin: 0; color: #6b7689; font-size: 15px; }
.ov-head p a { color: #2f6fed; font-weight: 600; text-decoration: none; }
.ov-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.ov-more { position: relative; }
.ov-more summary { list-style: none; cursor: pointer; min-width: 44px; justify-content: center; letter-spacing: 1px; }
.ov-more summary::-webkit-details-marker { display: none; }
.ov-more-menu {
	position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px; padding: 6px;
	background: #fff; border: 1px solid #e6ebf2; border-radius: 12px; box-shadow: 0 12px 30px rgba(16, 24, 40, 0.1);
}
.ov-more-menu a { display: block; padding: 8px 10px; border-radius: 8px; color: #1c2434; font-size: 14px; text-decoration: none; white-space: nowrap; }
.ov-more-menu a:hover { background: #f3f6fb; text-decoration: none; }
.ov-more-menu a.ov-danger { color: #d12b3a; }
.ov-more-menu a.ov-danger:hover { background: #fff0f1; }
.ov-more-sep { display: block; height: 1px; margin: 6px 4px; background: #eef2f7; }

.ov-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ov-kpis .ord-kpi { min-height: 0; }
.ov-kpis .ord-kpi strong { font-size: 28px; }
.ov-kpis .ord-kpi em { font-size: 13px; font-weight: 400; color: #6b7689; }

.ov-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; align-items: start; }
.ov-card { padding-bottom: 18px; }
.ov-dl { display: grid; grid-template-columns: 170px 1fr; gap: 0; margin: 0; font-size: 14px; }
.ov-dl dt, .ov-dl dd { margin: 0; padding: 9px 0; border-bottom: 1px solid #f2f5f9; }
.ov-dl dt { color: #6b7689; font-weight: 400; }
.ov-dl dd { color: #1c2434; font-weight: 600; }
.ov-dl dt:last-of-type, .ov-dl dd:last-of-type { border-bottom: 0; }
.ov-dl a { color: #2f6fed; text-decoration: none; }
.ov-dl .ord-badge { margin-left: 6px; }
.ov-froze { margin-bottom: 2px; }
.ov-froze a { margin-left: 8px; font-size: 12px; font-weight: 400; color: #d12b3a !important; }

.ov-calc { font-size: 14px; }
.ov-calc h3 { margin: 14px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #8b95a7; }
.ov-calc h3:first-child { margin-top: 0; }
.ov-calc > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; }
.ov-calc > div span { color: #526074; }
.ov-calc > div small { display: block; font-size: 12px; color: #c26a00; }
.ov-calc > div b { white-space: nowrap; font-weight: 600; }
.ov-calc .ov-calc-total { border-top: 1px dashed #e4e9f1; margin-top: 2px; padding-top: 8px; }
.ov-calc .ov-calc-total span { color: #1c2434; font-weight: 600; }
.ov-calc .ov-calc-total b { font-weight: 800; font-size: 16px; }
.ov-calc .ov-bad b { color: #d12b3a; }
.ov-calc .ov-calc-action { justify-content: flex-end; padding-top: 0; }
.ov-calc-action a { color: #d12b3a; font-weight: 600; font-size: 13px; }

.ov-section { margin-bottom: 16px; }
.ov-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 12px; flex-wrap: wrap; }
.ov-section-head h2 { margin: 0; font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ov-section-head .ord-export { margin-left: 0; text-decoration: none; }
.ov-count { background: #eef1f6; border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 600; color: #526074; }
.ov-tabs { margin: 0; }
.ov-muted { color: #8b95a7; }
.ov-block { display: block; font-size: 12px; }
.ov-unpaid td { background: #fff8f8; }
.ov-unpaid td b { color: #d12b3a; }
.ov-badge-plain { background: #f1f4f8; color: #3d4a5c; }
.ov-row-actions { white-space: nowrap; text-align: right; width: 1%; }
.ov-icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #526074; text-decoration: none; }
.ov-icon-btn:hover { background: #eef4ff; color: #2f6fed; }
.ov-icon-danger:hover { background: #fff0f1; color: #d12b3a; }
.ov-matrix th:first-child, .ov-matrix td:first-child { position: sticky; left: 0; background: #fff; min-width: 220px; }
.ov-matrix th:first-child { background: #f8fafc; }
.ov-matrix td.num, .ov-matrix th.num { white-space: nowrap; }
.ov-section .ord-empty { margin: 0; padding: 8px 16px 24px !important; text-align: left; }

@media (max-width: 1200px) {
	.ov-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ov-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.ov-dl { grid-template-columns: 1fr; }
	.ov-dl dt { padding-bottom: 0; border-bottom: 0; }
	.ov-head h1 { font-size: 24px; }
}

/* ===== Модальные окна (Bootstrap) ===== */
.al-app .modal-content { border: 0; border-radius: 16px; box-shadow: 0 24px 60px rgba(16, 24, 40, 0.2); }
.al-app .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 10px; border-bottom: 0; }
.al-app .modal-header h4 { margin: 0; font-size: 18px; font-weight: 700; color: #1c2434; }
.al-app .modal-header .close { order: 2; margin: 0; padding: 0; width: 32px; height: 32px; border-radius: 8px; font-size: 22px; line-height: 32px; opacity: 0.6; text-shadow: none; }
.al-app .modal-header .close:hover { background: #f3f6fb; opacity: 1; }
.al-app .modal-body { padding: 8px 22px 22px; }
.al-app .modal-body .control-label, .al-app .modal-body label { font-size: 13px; font-weight: 600; color: #3d4a5c; }
.al-app .modal-body .form-control {
	height: 42px; border: 1px solid #d5deea; border-radius: 10px; box-shadow: none; font-size: 14px; color: #1c2434;
}
.al-app .modal-body textarea.form-control { height: auto; }
.al-app .modal-body .form-control:focus { border-color: #2f6fed; box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15); }
.al-app .modal-body .has-error .form-control { border-color: #d12b3a; }
.al-app .modal-body .help-block { font-size: 12px; }
.al-app .modal-body .btn-gradient-primary, .al-app .modal-body .btn-primary, .al-app .modal-body .btn-success {
	background: #2f6fed; border: 0; border-radius: 10px; color: #fff; font-weight: 600; font-size: 14px; padding: 10px 20px !important; box-shadow: none;
}
.al-app .modal-body .btn-gradient-primary:hover, .al-app .modal-body .btn-primary:hover, .al-app .modal-body .btn-success:hover { background: #245fe0; }
.al-app .modal-header { background: #fff !important; border-radius: 16px 16px 0 0; }
.al-app .modal-header h4 { flex: 1; text-align: left; }
.al-app .modal-header .close { position: static; color: #526074; }

/* ===== Формы заказа (создание, редактирование, возврат, списание) ===== */
.al-btn-danger { background: #d12b3a; }
.al-btn-danger:hover { background: #b91f2d; }
.al-btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.of-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.of-card { padding: 18px; margin-bottom: 16px; }
.of-card .dash-card-head { margin-bottom: 14px; }
.of .form-group { margin-bottom: 14px; }
.of .control-label, .of-inline > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #3d4a5c; }
.of .form-control {
	display: block; width: 100%; max-width: none; height: 42px; box-sizing: border-box;
	border: 1px solid #d5deea; border-radius: 10px; background: #fff; padding: 0 12px;
	font-size: 14px; color: #1c2434; box-shadow: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.of textarea.form-control { height: auto; padding: 10px 12px; resize: vertical; }
.of .form-control[readonly] { background: #fff; cursor: pointer; }
.of .form-control:focus { border-color: #2f6fed; box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15); outline: none; }
.of .has-error .form-control { border-color: #d12b3a; }
.of .help-block { margin: 6px 0 0; font-size: 12px; color: #d12b3a; }
.of .help-block:empty { display: none; }
.of .form-group:has(> input[type="hidden"]) { display: none; }

.of-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.of-row > .form-group { flex: 1 1 150px; }
.of-row-end { justify-content: flex-end; }
.of-row-end > .form-group { flex: 0 1 200px; margin-bottom: 0; }
.of-days { flex: 0 0 auto; margin-bottom: 14px; min-width: 120px; }
.of-days span { display: flex; align-items: center; height: 42px; padding: 0 14px; border-radius: 10px; background: #eef4ff; color: #2f6fed; font-size: 20px; font-weight: 800; }
.of-days span:empty:before { content: "—"; color: #98a2b3; font-weight: 600; }
.of-client { margin: 0 0 14px; font-size: 16px; font-weight: 600; }
.of-client a { color: #2f6fed; text-decoration: none; }
.of-alert { margin: -4px 0 14px; padding: 10px 12px; border-radius: 10px; background: #ffe8ea; color: #d12b3a; font-weight: 600; font-size: 14px; }

.of-summary { display: flex; flex-wrap: wrap; gap: 14px 32px; font-size: 14px; }
.of-summary > div { display: flex; flex-direction: column; gap: 3px; min-width: 120px; }
.of-summary span { color: #8b95a7; font-size: 12px; }
.of-summary a { color: #2f6fed; font-weight: 600; text-decoration: none; }

.of-num { width: 88px; height: 36px; box-sizing: border-box; border: 1px solid #d5deea; border-radius: 8px; padding: 0 10px; text-align: right; font-size: 14px; color: #1c2434; background: #fff; }
.of-num:focus { border-color: #2f6fed; box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15); outline: none; }
.of-quick { display: flex; gap: 8px; }
.of-quick .ord-export { cursor: pointer; }
.of-total th { background: #f8fafc; color: #1c2434; font-size: 14px; padding: 12px 16px; }
.of-foot { display: flex; align-items: flex-end; justify-content: flex-end; gap: 12px; flex-wrap: wrap; padding: 16px; border-top: 1px solid #eef2f7; }
.of-inline { margin: 0; font-weight: 400; }
.of-inline .form-control { width: 180px; }
.of-date { width: 150px !important; }

.of-check { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 14px; font-weight: 400; color: #3d4a5c; cursor: pointer; }
.of-check input { width: 16px; height: 16px; margin: 0; accent-color: #2f6fed; }
.of-row-end .of-check { margin: 0 8px 12px 0; }

.of-total-list { margin-bottom: 14px; font-size: 14px; }
.of-total-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: #526074; border-bottom: 1px solid #f2f5f9; }
.of-total-list > div > span { color: #1c2434; font-weight: 600; white-space: nowrap; }
.of-total-list .of-total-main { border-bottom: 0; padding-top: 10px; color: #1c2434; font-weight: 600; }
.of-total-list .of-total-main > span { font-size: 18px; font-weight: 800; }
.of-totals .of-row-end { margin-top: 4px; }
.of-submit { margin-top: 6px; }

.of-picker #eq_select { min-width: 260px; }
.of-picker #eq_select .form-control { margin: 0; }
.of-subhead { margin: 0; padding: 14px 16px 10px; font-size: 15px; font-weight: 700; border-top: 1px solid #eef2f7; }

/* Таблица выбора оборудования (подгружается в #eq_table) */
.of-eq-table:empty { display: none; }
.of-eq-table { padding: 0 16px 16px; }
.of-eq-table .table_report_big { width: 100%; border-collapse: collapse; font-size: 14px; }
.of-eq-table .table_report_big th { text-align: left; color: #98a2b3; font-weight: 600; font-size: 13px; padding: 10px 12px; background: #f8fafc; border-bottom: 1px solid #e7edf5; }
.of-eq-table .table_report_big th a { color: #98a2b3; }
.of-eq-table .table_report_big td { padding: 8px 12px; border-bottom: 1px solid #f3f6fb; background: #fff !important; vertical-align: middle; }
.of-eq-table .table_report_big .form-control { width: 88px; height: 34px; border: 1px solid #d5deea; border-radius: 8px; padding: 0 10px; box-shadow: none; }
.of-eq-table .table_report_big .form-control:focus { border-color: #2f6fed; }
.of-eq-table .pagination { display: flex; gap: 4px; margin: 10px 0; padding: 0; list-style: none; }
.of-eq-table .pagination li a, .of-eq-table .pagination li span { display: block; min-width: 30px; height: 30px; line-height: 30px; padding: 0 6px; text-align: center; border: 0; border-radius: 8px; color: #1c2434; background: transparent; }
.of-eq-table .pagination li.active a, .of-eq-table .pagination li.active span { background: #2f6fed; color: #fff; }
#eq_table #add_to_order {
	display: inline-flex; align-items: center; margin: 12px 0 0; padding: 10px 18px !important; border: 0; border-radius: 10px;
	background: #2f6fed; color: #fff !important; font-weight: 600; font-size: 14px; box-shadow: none;
}
#eq_table #add_to_order:hover { background: #245fe0; }
.of .delete-tr { cursor: pointer; }
#products .glyphicon.delete-tr { color: #98a2b3; padding: 6px; border-radius: 8px; }
#products .glyphicon.delete-tr:hover { color: #d12b3a; background: #fff0f1; }
#products .product_count .form-control { width: 88px; height: 34px; border: 1px solid #d5deea; border-radius: 8px; padding: 0 10px; text-align: right; }

/* jQuery UI: календарь и автодополнение */
.ui-datepicker { padding: 8px; border: 1px solid #e6ebf2 !important; border-radius: 12px; background: #fff !important; box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12); font-family: inherit; z-index: 1060 !important; }
.ui-datepicker .ui-datepicker-header { border: 0; background: transparent; font-weight: 700; color: #1c2434; }
.ui-datepicker th { color: #8b95a7; font-weight: 600; font-size: 12px; }
.ui-datepicker td a, .ui-datepicker td span { text-align: center !important; border: 0 !important; border-radius: 8px; background: transparent !important; color: #1c2434 !important; }
.ui-datepicker td a:hover { background: #eef4ff !important; }
.ui-datepicker td .ui-state-highlight { background: #eef4ff !important; color: #2f6fed !important; font-weight: 700; }
.ui-datepicker td .ui-state-active { background: #2f6fed !important; color: #fff !important; }
.ui-autocomplete { padding: 6px; border: 1px solid #e6ebf2 !important; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12); max-height: 320px; overflow: auto; font-family: inherit; }
.ui-autocomplete .ui-menu-item-wrapper { padding: 8px 10px; border: 0 !important; border-radius: 8px; font-size: 14px; color: #1c2434; }
.ui-autocomplete .ui-state-active { background: #f3f6fb !important; color: #1c2434 !important; margin: 0 !important; }

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

/* ===== Сворачиваемое левое меню ===== */
.al-menu-btn { place-items: center; flex: 0 0 40px; cursor: pointer; color: #526074; }
.al-menu-btn:hover { color: #1c2434; box-shadow: 0 1px 4px rgba(16, 24, 40, 0.1); }
.al-sidebar, .al-main { transition: width 0.18s ease, margin-left 0.18s ease; }

/* Кнопка свернуть/развернуть на правом краю меню */
.al-collapse-btn {
	position: absolute;
	top: 50%;
	right: -14px;
	z-index: 45;
	width: 28px;
	height: 28px;
	margin-top: -14px;
	padding: 0;
	display: grid;
	place-items: center;
	border: 1px solid #e4e9f1;
	border-radius: 50%;
	background: #fff;
	color: #526074;
	box-shadow: 0 2px 8px rgba(16, 24, 40, 0.15);
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.al-collapse-btn:hover { background: #2f6fed; border-color: #2f6fed; color: #fff; transform: scale(1.08); }
.al-collapse-btn:focus-visible { outline: 3px solid rgba(47, 111, 237, 0.4); outline-offset: 2px; }
.al-collapse-btn svg { transition: transform 0.18s ease; }
.al-collapsed .al-collapse-btn svg { transform: rotate(180deg); }
@media (max-width: 860px) {
	.al-collapse-btn { display: none; }
}

/* Тонкий скроллбар меню: виден только при наведении */
.al-nav { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.al-nav:hover { scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }
.al-nav::-webkit-scrollbar { width: 6px; }
.al-nav::-webkit-scrollbar-track { background: transparent; }
.al-nav::-webkit-scrollbar-button { display: none; height: 0; }
.al-nav::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
.al-nav:hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); }
.al-nav::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.32); }

@media (min-width: 861px) {
	.al-collapsed .al-sidebar { width: 72px; }
	.al-collapsed .al-main { margin-left: 72px; }
	.al-collapsed .al-brand { justify-content: center; padding-left: 0; padding-right: 0; }
	.al-collapsed .al-brand-text,
	.al-collapsed .al-side-foot,
	.al-collapsed .al-nav a > span,
	.al-collapsed .al-nav-toggle { display: none; }
	.al-collapsed .al-nav { padding: 8px 10px; overflow: visible; }
	.al-collapsed .al-nav > li { position: relative; }
	.al-collapsed .al-nav > li > a,
	.al-collapsed .al-nav-row > a { justify-content: center; padding: 11px 0; }
	.al-collapsed .al-nav-group .al-subnav { display: none; }

	/* Подменю всплывает справа при наведении */
	.al-collapsed .al-nav-group:hover .al-subnav,
	.al-collapsed .al-nav-group:focus-within .al-subnav {
		display: block;
		position: absolute;
		left: 100%;
		top: 0;
		z-index: 50;
		min-width: 200px;
		margin: 0 0 0 8px;
		padding: 6px;
		background: #1b2434;
		border: 1px solid #2a3547;
		border-radius: 12px;
		box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
	}
	.al-collapsed .al-nav-group:hover .al-subnav:before {
		content: "";
		position: absolute;
		left: -10px;
		top: 0;
		bottom: 0;
		width: 10px;
	}
	.al-collapsed .al-nav .al-subnav a { padding: 8px 10px; }
	.al-collapsed .al-nav .al-subnav a:before { display: none; }
}

/* ===== Клиенты ===== */
.cl-switch { display: inline-flex; padding: 3px; gap: 2px; background: #e9eef5; border-radius: 12px; }
.cl-switch a { padding: 8px 14px; border-radius: 9px; color: #526074; font-size: 14px; font-weight: 600; text-decoration: none; }
.cl-switch a:hover { color: #1c2434; text-decoration: none; }
.cl-switch a.active { background: #fff; color: #1c2434; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1); }
.cl-tabs { padding: 4px 16px 0; margin: 0; border-bottom: 1px solid #eef2f7; }
.cl-flag { margin-left: 6px; font-size: 11px; padding: 2px 7px; vertical-align: 1px; white-space: nowrap; }
.cl-debt { color: #d12b3a; white-space: nowrap; }
.ord-filters .ord-search svg { flex: 0 0 18px; }
.cl-alert { margin: -6px 0 16px; padding: 12px 16px; border-radius: 12px; background: #ffe8ea; color: #d12b3a; font-weight: 700; font-size: 14px; }
.ov-dl dd.cl-note { font-weight: 400; }
.lg-contacts { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.lg-contacts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f2f5f9; }
.lg-contacts li:last-child { border-bottom: 0; }
.lg-contacts a { color: #2f6fed; font-weight: 600; text-decoration: none; }
.lg-contacts span { color: #526074; white-space: nowrap; }
.lg-empty { margin: 0; font-size: 14px; }
.ov-matrix th a.lg-overdue { color: #d12b3a; }
.ov-matrix td.lg-overdue-cell { background: #fff0f1; color: #d12b3a; font-weight: 700; }

/* ===== Инвентарь ===== */
.inv-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.inv-tree-card { padding: 16px 10px 12px; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.inv-tree-card .dash-card-head { padding: 0 6px; margin-bottom: 8px; }
.inv-tree ul { list-style: none; margin: 0; padding: 0; }
.inv-tree ul ul { display: none; padding-left: 18px; }
.inv-tree li.open > ul { display: block; }
.inv-node { display: flex; align-items: center; gap: 2px; border-radius: 8px; padding: 2px 6px 2px 2px; }
.inv-node:hover { background: #f4f7fb; }
.inv-node a { flex: 1; min-width: 0; padding: 6px 4px; color: #1c2434; font-size: 14px; text-decoration: none; line-height: 1.3; }
.inv-node a:hover { text-decoration: none; color: #2f6fed; }
.inv-node b { flex: 0 0 auto; padding: 1px 7px; border-radius: 999px; background: #eef1f6; color: #526074; font-size: 11px; font-weight: 600; }
.inv-node.active { background: #eef4ff; }
.inv-node.active a { color: #2f6fed; font-weight: 600; }
.inv-node.active b { background: #dbe7ff; color: #2f6fed; }
.inv-root a { font-weight: 600; }
.inv-twisty, .inv-twisty-space { flex: 0 0 24px; width: 24px; height: 24px; }
.inv-twisty { display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #8b95a7; cursor: pointer; }
.inv-twisty:hover { background: #e7edf5; color: #1c2434; }
.inv-twisty svg { transition: transform 0.15s ease; }
li.open > .inv-node .inv-twisty svg { transform: rotate(90deg); }
.inv-cat-actions { display: flex; align-items: center; gap: 6px; }
.inv-cat-actions .ord-export { text-decoration: none; }
.inv-name { font-weight: 600; }

@media (max-width: 1000px) {
	.inv-layout { grid-template-columns: 1fr; }
	.inv-tree-card { position: static; max-height: 360px; }
}

/* ===== Склад ===== */
.st-sqm { display: block; color: #8b95a7; font-size: 11px; font-weight: 400; }
.st-bar-col { width: 140px; }
.st-bar { height: 6px; border-radius: 999px; background: #eef1f6; overflow: hidden; }
.st-bar i { display: block; height: 100%; border-radius: inherit; }
.st-bar-ok i { background: #2f6fed; }
.st-bar-warn i { background: #d97706; }
.st-bar-bad i { background: #d12b3a; }
.st-error { max-width: 520px; margin: 40px auto; text-align: center; padding: 32px; }
.st-error h1 { margin: 0 0 8px; font-size: 24px; font-weight: 800; }
.st-error p { color: #6b7689; margin: 0 0 18px; }
.st-nowrap { white-space: nowrap; }

/* ===== Финансы ===== */
.fin-filters { flex-wrap: wrap; gap: 8px; }
.fin-label { color: #6b7689; font-size: 13px; margin-right: 2px; }
.fin-sep { margin-left: 12px; }
.fin-chip { position: relative; margin: 0; font-weight: 400; cursor: pointer; }
.fin-chip input { position: absolute; opacity: 0; pointer-events: none; }
.fin-chip span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid #d5deea; border-radius: 999px; background: #fff; color: #3d4a5c; font-size: 13px; font-weight: 600; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.fin-chip:hover span { border-color: #b8c4d6; }
.fin-chip input:checked + span { background: #2f6fed; border-color: #2f6fed; color: #fff; }
.fin-chip input:focus-visible + span { outline: 3px solid rgba(47, 111, 237, 0.35); outline-offset: 1px; }

/* ===== Главная ===== */
.hm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.hm-head h1 { margin: 0 0 6px; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.hm-head p { margin: 0; color: #6b7689; font-size: 15px; }
.hm-head-actions { display: flex; align-items: center; gap: 12px; }
.hm-date { display: flex; align-items: center; gap: 8px; height: 46px; margin: 0; padding: 0 14px; background: #fff; border: 1px solid #d5deea; border-radius: 12px; color: #526074; }
.hm-date input { height: 36px; border: 0; background: transparent; font-size: 15px; font-weight: 600; color: #1c2434; outline: none; }
/* Переключатель периода карточек */
.hm-period { display: flex; height: 46px; padding: 4px; gap: 2px; background: #fff; border: 1px solid #d5deea; border-radius: 12px; }
.hm-period a { display: flex; align-items: center; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: #526074; text-decoration: none; white-space: nowrap; }
.hm-period a:hover { background: #f1f5fb; color: #1c2434; text-decoration: none; }
.hm-period a.active { background: #2f6fed; color: #fff; }
.hm-period a { padding: 0 12px; }
.hm-date-sep { color: #8a94a6; }
.hm-sub { margin: 2px 0 0; font-size: 13px; color: #6b7689; }
@media (max-width: 1500px) {
	.hm-head-actions { flex-wrap: wrap; }
}
@media (max-width: 640px) {
	.hm-period { width: 100%; height: auto; display: grid; grid-template-columns: repeat(3, 1fr); }
	.hm-period a { justify-content: center; height: 36px; }
	.hm-date { width: 100%; }
	.hm-date input { min-width: 0; flex: 1; }
}
.hm-new { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 12px; }

.hm-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.hm-kpi { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 16px; border: 1px solid transparent; color: #1c2434; text-decoration: none; min-width: 0; }
a.hm-kpi:hover { text-decoration: none; color: #1c2434; box-shadow: 0 4px 14px rgba(16, 24, 40, 0.08); }
.hm-kpi > div { min-width: 0; }
.hm-kpi span { display: block; font-size: 14px; color: #3d4a5c; margin-bottom: 6px; }
.hm-kpi strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 8px; white-space: nowrap; }
.hm-kpi em { font-style: normal; font-size: 13px; }
.hm-kpi em.ord-up, .hm-kpi em.ord-down { font-weight: 700; }
.hm-muted { color: #6b7689; }
.hm-ico { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-style: normal; }
.hm-blue { background: #eef4ff; border-color: #dfe9ff; } .hm-blue .hm-ico { background: #dbe7ff; color: #2f6fed; }
.hm-green { background: #e8f8ee; border-color: #d3f1df; } .hm-green .hm-ico { background: #cdeedb; color: #128a4a; }
.hm-amber { background: #fff4e5; border-color: #ffe7c7; } .hm-amber .hm-ico { background: #ffe5c2; color: #c26a00; }
.hm-violet { background: #f3f0ff; border-color: #e7e1ff; } .hm-violet .hm-ico { background: #e4dcff; color: #6d4ae0; }
.hm-red { background: #fff0f1; border-color: #ffdfe2; } .hm-red .hm-ico { background: #ffdade; color: #d12b3a; }

.hm-row { display: grid; gap: 16px; margin-bottom: 16px; align-items: stretch; }
.hm-row-top { grid-template-columns: 1fr 1fr; }
.hm-row-bottom { grid-template-columns: 1.05fr 1fr 1fr; }
.hm-row .dash-card { margin-bottom: 0; }
.hm-card { padding: 20px 20px 14px; min-width: 0; }
.hm-card .dash-card-head h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; }
.hm-more { color: #2f6fed; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; background: none; border: 0; padding: 0; cursor: pointer; }
.hm-more:hover { text-decoration: underline; }
.hm-toggle { margin-top: 10px; }
/* line-height: 1 — иначе внутри действует высота строки заголовка (35px) и цифра съезжает вниз */
.hm-badge { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.hm-table td { padding: 9px 8px; }
.hm-table td a { color: #2f6fed; }
.hm-ellipsis { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-cat { display: inline-flex; align-items: center; gap: 10px; }
.hm-cat svg { flex: 0 0 18px; color: #3d4a5c; }
.hm-extra { display: none; }
.hm-all .hm-extra { display: table-row; }

.hm-legend { display: flex; gap: 22px; margin: -4px 0 6px; font-size: 13px; color: #526074; }
.hm-legend span { display: inline-flex; align-items: center; gap: 8px; }
.hm-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.hm-dot-green { background: #22a55b; }
.hm-dot-blue { background: #2f6fed; }
.hm-chart { display: block; width: 100%; height: auto; }
.hm-grid { stroke: #eef2f7; stroke-width: 1; }
.hm-axis { fill: #6b7689; font-size: 11px; font-family: inherit; }
.hm-bar { fill: #a7e3bd; }
.hm-bar:hover { fill: #6fcf97; }
.hm-line { fill: none; stroke: #2f6fed; stroke-width: 2.5; stroke-linejoin: round; }
.hm-point { fill: #2f6fed; stroke: #fff; stroke-width: 2; }

@media (max-width: 1400px) {
	.hm-row-bottom { grid-template-columns: 1fr 1fr; }
	.hm-row-bottom > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
	.hm-row-top, .hm-row-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.hm-head h1 { font-size: 26px; }
}
.hm-card { overflow-x: auto; }
@media (max-width: 1500px) {
	.hm-row-top { grid-template-columns: 1fr; }
}
/* Все 5 карточек в один ряд: на узких экранах иконка уходит над текстом, шрифты меньше */
@media (max-width: 1600px) {
	.hm-kpi { flex-direction: column; gap: 12px; padding: 16px; }
	.hm-kpi strong { font-size: 26px; margin-bottom: 6px; }
	.hm-kpi span { font-size: 13px; margin-bottom: 4px; }
	.hm-kpi em { font-size: 12px; }
	.hm-ico { flex-basis: 40px; width: 40px; height: 40px; border-radius: 11px; }
	.hm-ico svg { width: 20px; height: 20px; }
}
@media (max-width: 1100px) {
	.hm-kpi strong { font-size: 22px; }
}
@media (max-width: 900px) {
	.hm-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.hm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hm-head-actions { flex-wrap: wrap; }
}

/* Крестик модального окна: рисуем линиями, чтобы был ровно по центру и при наведении не «прыгал» */
.al-app .modal-header { align-items: center; }
.al-app .modal-header .close {
	position: relative;
	flex: 0 0 32px;
	float: none;
	width: 32px;
	height: 32px;
	margin: 0 -6px 0 12px;
	padding: 0;
	font-size: 0;
	line-height: 0;
	color: #526074;
	opacity: 1;
	text-shadow: none;
	border-radius: 8px;
	transform: none;
	transition: background 0.15s, color 0.15s;
}
.al-app .modal-header .close::before,
.al-app .modal-header .close::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 16px;
	height: 2px;
	margin: -1px 0 0 -8px;
	border-radius: 1px;
	background: currentColor;
	transform: rotate(45deg);
}
.al-app .modal-header .close::after { transform: rotate(-45deg); }
.al-app .modal-header .close:hover,
.al-app .modal-header .close:focus { background: #f1f4f8; color: #1c2434; opacity: 1; margin: 0 -6px 0 12px; padding: 0; outline: none; }
.al-app .modal-header .close:focus-visible { box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.35); }
.al-app .modal-header h4 { margin: 0; line-height: 1.3; }
.al-app .modal-backdrop.show, .al-app .modal-backdrop.in { opacity: 0.45; }
.al-app .modal .modal-header .close { text-indent: -9999px; overflow: hidden; white-space: nowrap; color: transparent; }
.al-app .modal .modal-header .close::before,
.al-app .modal .modal-header .close::after { background: #526074; text-indent: 0; }
.al-app .modal .modal-header .close:hover::before,
.al-app .modal .modal-header .close:hover::after { background: #1c2434; }

/* ===== Модальные формы (.mf) ===== */
.al-app .modal-content:has(.mf) { padding: 0; overflow: hidden; border-radius: 18px; background: #f6f8fc; }
.al-app .modal-content:has(.mf) > .modal-header { display: none; }
.al-app .modal-content:has(.mf) > .modal-body { padding: 0; }
.al-app .modal-dialog:has(.mf) { max-width: 760px; margin-top: 28px; margin-bottom: 28px; }

.mf-head { position: relative; display: flex; align-items: center; gap: 14px; padding: 20px 64px 18px 22px; background: #fff; border-bottom: 1px solid #e9eef5; }
.mf-head-ico { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #eaf1ff; color: #2f6fed; }
.mf-head h3 { margin: 0 0 3px; font-size: 20px; font-weight: 800; color: #1c2434; letter-spacing: -0.01em; }
.mf-head p { margin: 0; font-size: 13px; color: #6b7689; }
.mf-close { position: absolute; top: 50%; right: 18px; width: 36px; height: 36px; margin-top: -18px; padding: 0; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.mf-close::before, .mf-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; border-radius: 1px; background: #526074; transform: rotate(45deg); }
.mf-close::after { transform: rotate(-45deg); }
.mf-close:hover { background: #f1f4f8; }
.mf-close:hover::before, .mf-close:hover::after { background: #1c2434; }
.mf-close:focus-visible { outline: 3px solid rgba(47, 111, 237, 0.35); outline-offset: 1px; }

.mf-form { margin: 0; }
.mf-body { padding: 14px 18px 4px; max-height: calc(100vh - 220px); overflow-y: auto; }
.mf-sec { margin-bottom: 12px; padding: 14px 16px 6px; background: #fff; border: 1px solid #e9eef5; border-radius: 14px; }
.mf-sec h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #1c2434; }
.mf-sec h4 svg { color: #2f6fed; flex: 0 0 18px; }
.mf-grid { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.mf-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mf-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mf-field { margin-bottom: 12px; min-width: 0; }
.mf .mf-label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 500; color: #3d4a5c; }
.mf-required .mf-label::after { content: " *"; color: #e5484d; }
.mf-input { display: flex; align-items: stretch; height: 38px; border: 1px solid #d9e1ec; border-radius: 9px; background: #fff; overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.mf-input:focus-within { border-color: #2f6fed; box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.14); }
.mf-ico { flex: 0 0 38px; display: grid; place-items: center; color: #2f6fed; background: #f6f8fc; border-right: 1px solid #e3e9f1; }
.mf .mf-control { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0 12px; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 14px; color: #1c2434; outline: none; }
.mf .mf-control::placeholder { color: #98a2b3; }
.mf .mf-control[type="date"] { padding-right: 10px; }
.mf .mf-control[type="date"]::-webkit-calendar-picker-indicator { opacity: 0.65; cursor: pointer; }
.mf-input-area { height: auto; min-height: 72px; }
.mf-input-area .mf-ico { align-items: start; padding-top: 10px; }
.mf .mf-input-area .mf-control { padding: 9px 12px; resize: vertical; min-height: 70px; }
.mf .has-error .mf-input { border-color: #e5484d; }
.mf-error { margin-top: 5px; font-size: 12px; color: #d12b3a; }
.mf-error:empty { display: none; }

.mf-checks { display: flex; flex-wrap: wrap; gap: 4px 40px; padding-bottom: 6px; }
.mf-check { margin: 0 0 6px; }
.mf-check label { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: 14px; font-weight: 400; color: #1c2434; cursor: pointer; }
.mf-check input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: #2f6fed; }
.mf-check .help-block, .mf-check .mf-error { display: none; }

.mf-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 18px 18px; }
.mf-btn-ghost { height: 42px; padding: 0 22px; border: 0; border-radius: 10px; background: #e9eef5; color: #3d4a5c; font-size: 14px; font-weight: 600; cursor: pointer; }
.mf-btn-ghost:hover { background: #dfe5ee; color: #1c2434; }
.mf-btn-primary { height: 42px; padding: 0 22px !important; border-radius: 10px; }
.mf-btn-primary svg { flex: 0 0 18px; }

@media (max-width: 640px) {
	.mf-grid-2, .mf-grid-3 { grid-template-columns: 1fr; }
	.mf-head { padding: 16px 56px 14px 16px; }
	.mf-head-ico { display: none; }
	.mf-body { padding: 12px 12px 2px; max-height: none; }
}

/* ===== Светлый кастомный скроллбар: модалки, таблицы, дерево, выпадающие списки ===== */
.mf-body { scrollbar-gutter: stable; }
.mf-body::-webkit-scrollbar,
.ord-table-wrap::-webkit-scrollbar,
.inv-tree-card::-webkit-scrollbar,
.al-suggest::-webkit-scrollbar,
.ui-autocomplete::-webkit-scrollbar,
.hm-card::-webkit-scrollbar { width: 10px; height: 10px; }
.mf-body::-webkit-scrollbar-track,
.ord-table-wrap::-webkit-scrollbar-track,
.inv-tree-card::-webkit-scrollbar-track,
.al-suggest::-webkit-scrollbar-track,
.ui-autocomplete::-webkit-scrollbar-track,
.hm-card::-webkit-scrollbar-track { background: transparent; }
.mf-body::-webkit-scrollbar-button,
.ord-table-wrap::-webkit-scrollbar-button,
.inv-tree-card::-webkit-scrollbar-button,
.al-suggest::-webkit-scrollbar-button,
.ui-autocomplete::-webkit-scrollbar-button,
.hm-card::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.mf-body::-webkit-scrollbar-thumb,
.ord-table-wrap::-webkit-scrollbar-thumb,
.inv-tree-card::-webkit-scrollbar-thumb,
.al-suggest::-webkit-scrollbar-thumb,
.ui-autocomplete::-webkit-scrollbar-thumb,
.hm-card::-webkit-scrollbar-thumb {
	background: #cfd8e5;
	border-radius: 999px;
	border: 3px solid transparent;
	background-clip: padding-box;
	min-height: 40px;
}
.mf-body::-webkit-scrollbar-thumb:hover,
.ord-table-wrap::-webkit-scrollbar-thumb:hover,
.inv-tree-card::-webkit-scrollbar-thumb:hover,
.al-suggest::-webkit-scrollbar-thumb:hover,
.ui-autocomplete::-webkit-scrollbar-thumb:hover,
.hm-card::-webkit-scrollbar-thumb:hover { background-color: #a9b6c9; }
.mf-body::-webkit-scrollbar-corner,
.ord-table-wrap::-webkit-scrollbar-corner { background: transparent; }
/* Firefox (у него нет ::-webkit-scrollbar) */
@supports (-moz-appearance: none) {
	.mf-body, .ord-table-wrap, .inv-tree-card, .al-suggest, .ui-autocomplete, .hm-card {
		scrollbar-width: thin;
		scrollbar-color: #cfd8e5 transparent;
	}
}
.mf-body { padding-right: 8px; }

/* Поиск в шапке — по левому краю, на одной линии с заголовком страницы */
.al-topbar .al-search { margin: 0; }

/* Кнопка внутри поля (справа) и автозаполнение DaData */
.mf-suffix-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; margin: 3px; padding: 0 12px; border: 0; border-radius: 7px; background: #eaf1ff; color: #2f6fed; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.mf-suffix-btn:hover { background: #2f6fed; color: #fff; }
.mf-suffix-btn:disabled { opacity: 0.6; cursor: wait; }
.mf-suffix-btn:focus-visible { outline: 3px solid rgba(47, 111, 237, 0.35); outline-offset: 1px; }
.mf-dadata { margin: -2px 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.45; background: #f1f5fb; color: #3d4a5c; }
.mf-dadata-info { background: #eef4ff; color: #2f4f9e; }
.mf-dadata-ok { background: #e8f8ee; color: #155d36; }
.mf-dadata-warn { background: #fff4e5; color: #8a4b00; }
.mf-dadata-bad { background: #ffeef0; color: #b4232f; }
.mf-dadata-alert { margin-top: 6px; font-weight: 700; color: #b4232f; }
.mf-dadata-list { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 8px; }
.mf-dadata-list span { color: #526074; }
.mf-dadata-list button { padding: 0; border: 0; background: none; color: #2f6fed; font-size: 13px; text-align: left; cursor: pointer; }
.mf-dadata-list button:hover { text-decoration: underline; }
.mf-spinner { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: mf-spin 0.7s linear infinite; }
@keyframes mf-spin { to { transform: rotate(360deg); } }
.mf-input.mf-filled { animation: mf-flash 1.4s ease; }
@keyframes mf-flash { 0%, 30% { border-color: #22a55b; box-shadow: 0 0 0 3px rgba(34, 165, 91, 0.18); } 100% { border-color: #d9e1ec; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) {
	.mf-input.mf-filled, .mf-spinner { animation: none; }
}
.mf-dadata-list .mf-dadata-current { color: #155d36; font-weight: 600; }

/* ===== Новый заказ (oc-) ===== */
.oc-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; margin-bottom: 16px; }
.oc-card { background: #fff; border: 1px solid #e7edf5; border-radius: 16px; padding: 20px; margin-bottom: 16px; min-width: 0; }
.oc-grid > .oc-card { margin-bottom: 0; }
.oc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.oc-head h2 { margin: 0; font-size: 18px; font-weight: 700; color: #1c2434; }
.oc-head p { margin: 3px 0 0; font-size: 13px; color: #6b7689; }
.oc-head-ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: #eaf1ff; color: #2f6fed; }
.oc-head-ico.oc-green { background: #e5f6ec; color: #1f9254; }
.oc-head-right { margin-left: auto; min-width: 260px; }
.oc-form .mf-input { height: 42px; }
.oc-form .mf-input-area { height: auto; }
.oc-form .mf-ico { font-style: normal; }
.oc-form .form-control { height: 42px; border: 1px solid #d9e1ec; border-radius: 9px; box-shadow: none; font-size: 14px; color: #1c2434; background-color: #fff; }
.oc-form .form-control:focus { border-color: #2f6fed; box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.14); }
.oc-form .form-control[disabled] { background: #f6f8fc; color: #98a2b3; }
#group_list select { width: 100% !important; }
.oc-client-row { grid-template-columns: 1.4fr 1fr; }
.oc-client-input { position: relative; }
.oc-clear { flex: 0 0 34px; position: relative; border: 0; background: transparent; cursor: pointer; border-radius: 8px; margin: 4px; }
.oc-clear::before, .oc-clear::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 1px; background: #8b95a7; transform: rotate(45deg); }
.oc-clear::after { transform: rotate(-45deg); }
.oc-clear:hover { background: #f1f4f8; }
.oc-clear:hover::before, .oc-clear:hover::after { background: #1c2434; }
.oc-counter { margin-top: 5px; text-align: right; font-size: 12px; color: #98a2b3; }
.oc-readonly { background: #f6f8fc; }
.oc-readonly span { display: flex; align-items: center; padding: 0 12px; font-size: 15px; font-weight: 700; color: #2f6fed; }
.oc-readonly span:empty::before { content: "—"; color: #98a2b3; font-weight: 400; }
.oc-note { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #eef4ff; color: #2f4f9e; font-size: 13px; }
.oc-note svg { flex: 0 0 16px; color: #2f6fed; }
.oc-dates .mf-field { margin-bottom: 14px; }
.oc-empty-pick { padding: 18px; border: 1px dashed #d9e1ec; border-radius: 12px; text-align: center; color: #8b95a7; font-size: 14px; }
.of-picker .of-eq-table { padding: 0; }
.of-picker .of-eq-table:not(:empty) + .oc-empty-pick { display: none; }
.oc-card .ord-table-wrap { margin: 0 -20px -20px; }
.oc-card .of-total-list { margin-top: -4px; }
.oc-submit-top { height: 44px; padding: 0 20px; }

@media (max-width: 1100px) {
	.oc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
	.oc-client-row, .oc-dates { grid-template-columns: 1fr; }
	.oc-head { flex-wrap: wrap; }
	.oc-head-right { margin-left: 0; width: 100%; min-width: 0; }
}

/* Редактирование заказа */
.oc-client-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #d9e1ec; border-radius: 10px; background: #f8fafd; color: #1c2434; text-decoration: none; }
.oc-client-card:hover { border-color: #2f6fed; text-decoration: none; color: #1c2434; }
.oc-client-card b { display: block; font-size: 15px; color: #2f6fed; }
.oc-client-card small { display: block; font-size: 12px; color: #6b7689; }
.oc-client-ava { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #eaf1ff; color: #2f6fed; }
.oc-head h2 .ov-count { margin-left: 6px; vertical-align: 2px; }
.oc-totals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.oc-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; padding-top: 14px; border-top: 1px solid #eef2f7; }
.oc-cancel { display: inline-flex; align-items: center; text-decoration: none; }
.oc-cancel:hover { text-decoration: none; }
.of-picker #eq_itogo .of-subhead { padding-left: 0; padding-right: 0; }
@media (max-width: 800px) {
	.oc-totals-grid { grid-template-columns: 1fr; }
}
.oc-grid { grid-template-columns: 1fr 1fr; }
.oc-dates.mf-grid-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.7fr); gap: 0 12px; }
.oc-dates .mf-ico { flex-basis: 34px; }
.oc-form .oc-dates .mf-control[type="date"] { padding: 0 6px 0 10px; font-size: 13.5px; }
@media (max-width: 1360px) {
	.oc-dates.mf-grid-3 { grid-template-columns: 1fr 1fr; }
	.oc-dates #arenda_days { grid-column: 1 / -1; }
}

/* ===== Модалка оплаты ===== */
.al-app .modal-dialog:has(.mf-narrow) { max-width: 580px; }
.pf-due { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 12px 16px; border-radius: 12px; font-size: 14px; }
.pf-due b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.pf-due-bad { background: #fff0f1; color: #b4232f; }
.pf-due-ok { background: #e8f8ee; color: #155d36; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 10px; }
.pf-chip { position: relative; margin: 0; cursor: pointer; font-weight: 400; }
.pf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pf-chip span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border: 1px solid #d9e1ec; border-radius: 999px; background: #fff; color: #3d4a5c; font-size: 14px; font-weight: 600; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.pf-chip:hover span { border-color: #b8c4d6; }
.pf-chip input:checked + span { background: #2f6fed; border-color: #2f6fed; color: #fff; }
.pf-chip input:focus-visible + span { outline: 3px solid rgba(47, 111, 237, 0.35); outline-offset: 1px; }
.mf select.mf-control { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23526074' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.mf input[type="number"].mf-control { -moz-appearance: textfield; }
.mf input[type="number"].mf-control::-webkit-outer-spin-button,
.mf input[type="number"].mf-control::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pf-static { display: flex; align-items: center; padding: 0 12px; font-size: 14px; font-weight: 700; color: #1c2434; }
.mf-head-ico.pf-ico-ice { background: #e6f6fd; color: #0b84b5; }
.mf .oc-note { margin-bottom: 12px; }
.mf .pf-chips { margin-top: 2px; }

/* ===== Черновики заказов ===== */
.ov-head-actions .al-btn-ghost.oc-submit-top { background: #fff; }
.oc-draft-bar { display: flex; align-items: center; gap: 10px; margin: -4px 0 16px; padding: 12px 16px; border-radius: 12px; background: #eef4ff; color: #2f4f9e; font-size: 14px; }
.oc-draft-bar svg { flex: 0 0 18px; color: #2f6fed; }
.oc-draft-bar span { flex: 1; }
.oc-draft-bar a { color: #2f6fed; font-weight: 600; white-space: nowrap; }
.oc-draft-bar-muted { background: #f3f6fb; color: #526074; }
.oc-toast { position: fixed; right: 24px; bottom: 24px; z-index: 2000; max-width: 420px; padding: 14px 18px; border-radius: 12px; background: #1c2434; color: #fff; font-size: 14px; box-shadow: 0 12px 30px rgba(16, 24, 40, 0.25); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.oc-toast.show { opacity: 1; transform: none; }
.oc-toast-ok { background: #155d36; }
.oc-toast-warn { background: #8a4b00; }
.oc-toast-bad { background: #b4232f; }
.ord-head-actions .al-btn-ghost .ov-count { margin-left: 4px; }
.dr-continue { margin-right: 4px; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .oc-toast { transition: none; } }

/* ===== Отчеты ===== */
.rp-form { margin: 0; }
.rp-filters { gap: 8px; }
.rp-quick { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px; color: #3d4a5c; font-size: 13px; font-weight: 600; text-decoration: none; }
.rp-quick:hover { background: #f1f4f8; color: #1c2434; text-decoration: none; }
.rp-quick.active { background: #eaf1ff; color: #2f6fed; }
.rp-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.rp-select { height: 34px; padding: 0 30px 0 12px; border: 1px solid #d5deea; border-radius: 10px; font-size: 13px; color: #1c2434; appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23526074' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; cursor: pointer; }
.rp-columns { position: relative; }
.rp-columns summary { list-style: none; display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border: 1px solid #d5deea; border-radius: 10px; font-size: 13px; font-weight: 600; color: #2f6fed; cursor: pointer; background: #fff; }
.rp-columns summary::-webkit-details-marker { display: none; }
.rp-columns-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; padding: 10px; background: #fff; border: 1px solid #e6ebf2; border-radius: 12px; box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12); }
.rp-columns-menu label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 4px; font-size: 14px; font-weight: 400; color: #1c2434; cursor: pointer; }
.rp-columns-menu input { width: 16px; height: 16px; margin: 0; accent-color: #2f6fed; }
.rp-columns-menu .al-btn { margin-top: 8px; justify-content: center; }
.rp-sign-plus { color: #128a4a; }
.rp-sign-minus { color: #d12b3a; }
.rp-table td { padding-top: 11px; padding-bottom: 11px; }
.rp-total td { background: #f8fafc; font-weight: 700; }

@media print {
	.al-sidebar, .al-topbar, .al-collapse-btn, .rp-filters, .ord-head-actions, .ord-foot, .yii-debug-toolbar { display: none !important; }
	.al-main { margin-left: 0 !important; }
	.al-content { padding: 0 !important; }
	body.al-app { background: #fff !important; }
	.ord-card, .ord-kpi, .dash-card { box-shadow: none !important; border-color: #ccc !important; break-inside: avoid; }
	.ord-table-wrap { overflow: visible !important; }
	.ord-table th, .ord-table td { padding: 6px 8px !important; font-size: 11px !important; }
	a { color: inherit !important; text-decoration: none !important; }
}
.rp-table td.num, .rp-table th.num { white-space: nowrap; }
.mf-head-ico.pf-ico-out { background: #fff0f1; color: #d12b3a; }
.rp-kpi-text { font-size: 20px !important; white-space: normal !important; line-height: 1.2; }
.rp-group td { background: #f8fafc; font-weight: 700; color: #1c2434; border-top: 1px solid #e7edf5; }
.rp-indent { padding-left: 32px !important; }
.rp-person { max-width: 140px; }
.rp-person a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #2f6fed; font-weight: 600; text-decoration: none; }
.ov-matrix tfoot td:first-child { position: sticky; left: 0; background: #f8fafc; }

/* ===== Договоры ===== */
.dc-base { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.dc-tpl { display: flex; align-items: flex-start; gap: 14px; padding: 18px; margin: 0; }
.dc-tpl-ico { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #eaf1ff; color: #2f6fed; }
.dc-tpl-ico.dc-missing { background: #fff0f1; color: #d12b3a; }
.dc-tpl-main { flex: 1; min-width: 0; }
.dc-tpl-main h2 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.dc-tpl-main p { margin: 0 0 8px; font-size: 13px; color: #6b7689; }
.dc-tpl-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.dc-tpl-actions .ord-export { margin: 0; justify-content: center; text-decoration: none; }
.dc-upload { margin: 0; }
.dc-upload-btn { position: relative; height: 36px; padding: 0 14px; font-size: 13px; cursor: pointer; justify-content: center; }
.dc-upload-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dc-upload-btn:focus-within { outline: 3px solid rgba(47, 111, 237, 0.35); outline-offset: 2px; }
.dc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-chip { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 10px; border-radius: 999px; background: #eef4ff; font-size: 13px; }
.dc-chip a { color: #2f6fed; text-decoration: none; font-weight: 600; }
.dc-chip .dc-chip-x { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #8b95a7; font-weight: 400; font-size: 15px; line-height: 1; }
.dc-chip .dc-chip-x:hover { background: #ffe8ea; color: #d12b3a; }
.dc-drop { position: relative; display: flex; align-items: center; justify-content: center; min-height: 72px; margin: 0 0 8px; padding: 12px; border: 2px dashed #d9e1ec; border-radius: 12px; background: #f8fafd; color: #526074; font-size: 14px; font-weight: 400; text-align: center; cursor: pointer; }
.dc-drop:hover, .dc-drop:focus-within { border-color: #2f6fed; background: #eef4ff; }
.dc-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dc-hint, .dc-current { margin: 0 0 10px; font-size: 12px; color: #6b7689; }
.dc-current a { color: #2f6fed; }
@media (max-width: 900px) { .dc-base { grid-template-columns: 1fr; } }

/* ===== Сотрудники и профиль ===== */
.us-person { display: flex; align-items: center; gap: 10px; }
.us-avatar { flex: 0 0 34px; width: 34px; height: 34px; font-size: 12px; }
.us-mail { color: #2f6fed; text-decoration: none; }
.us-head-row { display: flex; align-items: center; gap: 14px; }
.us-photo { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; background: #eef1f6; }
.us-danger { color: #d12b3a !important; }
.us-danger:hover { background: #fff0f1; border-color: #f3c2c7; }
.us-perms .list-group { margin: 0 0 8px; }
.us-perms .list-group-item { border: 1px solid #e7edf5; border-radius: 10px !important; background: #f8fafd; color: #1c2434; padding: 10px 12px; }
.us-perms .list-group-item-heading { margin: 0; font-size: 14px; font-weight: 700; color: #1c2434; }
.us-perms .list-group-item .list-group-item { margin-top: 6px; background: #fff; font-size: 13px; }
.us-cropper .cropper-widget, .us-cropper .new-photo-area { max-width: 100%; }
.us-cropper img { max-width: 100%; border-radius: 12px; }
.us-foot, .us-foot-inline { display: flex; justify-content: flex-end; gap: 10px; }
.us-foot { margin: 0 0 16px; }
.us-foot-inline { padding-top: 4px; }
.oc-grid > div > .oc-card { margin-bottom: 16px; }
.us-perm-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: start; }
.us-perm-grid .oc-card { margin: 0; }
.us-perm-actions { display: flex; flex-direction: column; gap: 10px; align-self: center; }
.us-list { width: 100%; min-height: 320px; padding: 6px; border: 1px solid #d9e1ec; border-radius: 10px; font-size: 14px; color: #1c2434; outline: none; }
.us-list:focus { border-color: #2f6fed; box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.14); }
.us-list option { padding: 7px 8px; border-radius: 6px; }
.us-list option:checked { background: #eaf1ff linear-gradient(0deg, #eaf1ff 0%, #eaf1ff 100%); color: #1c2434; }
@media (max-width: 900px) {
	.us-perm-grid { grid-template-columns: 1fr; }
	.us-perm-actions { flex-direction: row; justify-content: center; }
}
.us-cropper .btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid #d5deea; border-radius: 9px; background: #fff; color: #3d4a5c; font-size: 13px; font-weight: 600; box-shadow: none; }
.us-cropper .btn:hover { border-color: #b8c4d6; color: #1c2434; }
.us-cropper .btn-danger { color: #d12b3a; border-color: #f3c2c7; }
.us-cropper .btn-danger:hover { background: #fff0f1; color: #b4232f; }
.us-cropper .new-photo-area { border: 2px dashed #d9e1ec !important; border-radius: 12px; background: #f8fafd; color: #526074; }

/* Документы заказа */
.ov-docs summary svg { flex: 0 0 16px; }
.ov-docs .ov-count { margin-left: 2px; }
.ov-docs .ov-more-menu small { color: #8b95a7; }
.ov-more-disabled { display: block; padding: 8px 10px; color: #98a2b3; font-size: 14px; white-space: nowrap; cursor: default; }
.ov-docs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 16px 16px; }
.ov-doc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e7edf5; border-radius: 12px; background: #fff; color: #1c2434; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
a.ov-doc:hover { border-color: #2f6fed; box-shadow: 0 4px 14px rgba(47, 111, 237, 0.12); text-decoration: none; color: #1c2434; }
.ov-doc-ico { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: 0.02em; background: #eef1f6; color: #8b95a7; }
.ov-doc-docx { background: #e8f0ff; color: #2b5fd9; }
.ov-doc-xlsx { background: #e5f6ec; color: #1f7a45; }
.ov-doc-text { flex: 1; min-width: 0; }
.ov-doc-text b { display: block; font-size: 14px; }
.ov-doc-text small { display: block; font-size: 12px; color: #8b95a7; }
.ov-doc em { font-style: normal; font-size: 13px; font-weight: 600; color: #2f6fed; }
.ov-doc-missing { background: #f8fafd; border-style: dashed; }
.ov-doc-missing b { color: #6b7689; }
@media (max-width: 1000px) { .ov-docs-grid { grid-template-columns: 1fr; } }

/* Мобильное меню: крестик и затемнение для закрытия */
.al-nav-close { display: none; }
.al-backdrop { display: none; }
@media (max-width: 860px) {
	.al-sidebar { z-index: 60; box-shadow: 0 0 40px rgba(0, 0, 0, 0.35); }
	body:not(.al-nav-open) .al-sidebar { box-shadow: none; }
	.al-nav-close {
		display: grid; place-items: center;
		position: absolute; top: 18px; right: 12px; z-index: 2;
		width: 40px; height: 40px; padding: 0;
		border: 0; border-radius: 10px;
		background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer;
	}
	.al-nav-close:hover { background: rgba(255, 255, 255, 0.16); }
	.al-nav-close:focus-visible { outline: 2px solid #7aa2f7; outline-offset: 2px; }
	.al-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(16, 24, 40, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
	body.al-nav-open .al-backdrop { opacity: 1; pointer-events: auto; }
	body.al-nav-open { overflow: hidden; }
	.al-sidebar .al-brand { padding-right: 60px; }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
	.al-backdrop, .al-sidebar { transition: none; }
}

/* ===== Новый/редактируемый заказ: мобильная версия ===== */
@media (max-width: 1100px) {
	/* правило «две равные колонки» выше перебивало перестройку в одну колонку */
	.oc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
	.oc-form .oc-card { padding: 16px; border-radius: 14px; }
	.oc-head { gap: 12px; margin-bottom: 12px; }
	.oc-head h2 { font-size: 17px; }
	.oc-head-ico { flex-basis: 36px; width: 36px; height: 36px; }
	.oc-client-row, .oc-dates.mf-grid-3 { grid-template-columns: 1fr 1fr; }
	.oc-client-row > .mf-field:first-child { grid-column: 1 / -1; }
	.oc-client-row > #group_list { grid-column: 1 / -1; }
	.oc-dates #arenda_days { grid-column: 1 / -1; }
	.oc-note { font-size: 12px; padding: 10px 12px; }

	/* 16px — чтобы iPhone не увеличивал страницу при фокусе на поле */
	.oc-form .mf-control, .oc-form .form-control, .oc-form input.product_count, #eq_table .form-control { font-size: 16px; }
	.oc-form .mf-input { height: 46px; }
	.oc-form .mf-input-area { height: auto; }
	.oc-form .form-control { height: 46px; }

	/* Кнопки «Черновик» и «Создать» — закреплены внизу экрана, под пальцем */
	body:has(#order-form) .ov-head-actions {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
		display: flex; gap: 10px; margin: 0;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, 0.96);
		border-top: 1px solid #e7edf5;
		box-shadow: 0 -8px 24px rgba(16, 24, 40, 0.08);
	}
	body:has(#order-form) .ov-head-actions .al-btn { flex: 1; justify-content: center; height: 48px; padding: 0 10px; font-size: 15px; }
	body:has(#order-form) .al-content { padding-bottom: 96px; }
	body:has(#order-form) .of-submit, body:has(#order-form) .oc-foot { display: none; }
	body:has(#order-form) .oc-toast { bottom: 88px; left: 16px; right: 16px; max-width: none; }
	body:has(#order-form) .ov-head { margin-bottom: 12px; }
	body:has(#order-form) .ov-head h1 { font-size: 24px; }

	/* Каталог (#eq_table): строки таблицы → карточки «название / доступно · цена / количество» */
	#eq_table thead { display: none; }
	#eq_table .table_report_big, #eq_table .table_report_big tbody { display: block; width: 100%; }
	#eq_table .table_report_big tr {
		display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name qty" "meta qty";
		align-items: center; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef2f7;
	}
	#eq_table .table_report_big td { padding: 0 !important; border: 0 !important; background: none !important; }
	#eq_table .table_report_big td.product_name { grid-area: name; font-weight: 600; font-size: 14px; color: #1c2434; }
	#eq_table .table_report_big td:nth-child(2) { grid-area: meta; font-size: 12px; color: #6b7689; }
	#eq_table .table_report_big td:nth-child(2)::before { content: "Доступно: "; }
	#eq_table .table_report_big td.product_price { grid-area: meta; justify-self: end; margin-right: 4px; font-size: 12px; color: #6b7689; }
	#eq_table .table_report_big td.product_price::after { content: " ₽/сут"; }
	#eq_table .table_report_big td.product_count { grid-area: qty; }
	#eq_table .table_report_big td.product_count .form-control { width: 76px; height: 44px; text-align: center; }
	#eq_table .table_report_big td.weight, #eq_table .table_report_big td.product_summ { display: none; }
	#eq_table .summary, #eq_table .pagination { font-size: 13px; }
	#eq_table #add_to_order {
		position: sticky; bottom: 82px; z-index: 5; width: 100%; height: 48px; justify-content: center; font-size: 15px;
		box-shadow: 0 6px 16px rgba(47, 111, 237, 0.3);
	}
	.oc-head-right { min-width: 0; }

	/* Корзина (#products): «название ✕ / количество · сумма» */
	#eq_tableitogo { margin: 0 !important; overflow: visible; }
	#products thead { display: none; }
	#products, #products tbody { display: block; width: 100%; }
	#products tr {
		display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "name name del" "qty price sum";
		align-items: center; column-gap: 10px; row-gap: 8px; padding: 12px 0; border-bottom: 1px solid #eef2f7;
	}
	#products td { padding: 0 !important; border: 0 !important; }
	#products td:nth-child(1), #products td.weight, #products td.weight_summ { display: none; }
	#products td:nth-child(2) { grid-area: name; font-weight: 600; font-size: 14px; }
	#products td.product_count { grid-area: qty; }
	#products td.product_count .form-control { width: 76px; height: 44px; text-align: center; font-size: 16px; }
	#products td.product_price { grid-area: price; font-size: 12px; color: #6b7689; }
	#products td.product_price::before { content: "× "; }
	#products td.product_price::after { content: " ₽/сут"; }
	#products td.total_count { grid-area: sum; font-weight: 700; white-space: nowrap; }
	#products td.total_count::after { content: " ₽/сут"; font-weight: 400; font-size: 12px; color: #6b7689; }
	#products td:last-child { grid-area: del; }
	#products .delete-tr { display: inline-grid; place-items: center; width: 36px; height: 36px; }
}
.oc-short { display: none; }
@media (max-width: 700px) {
	.oc-long { display: none; }
	.oc-short { display: inline; }
}

/* Каталог в заказе: без рамки Bootstrap, ровные строки, аккуратное количество */
#eq_table .table-responsive { border: 0 !important; margin: 0; overflow-x: auto; }
/* Количество на десктопе: [−][ 0 ][+] одной группой. Ячейка остается table-cell (иначе съедут колонки),
   поэтому рамку группы рисуют сами кнопки и поле */
@media (min-width: 701px) {
	#eq_table .table_report_big td.product_count { width: 1%; white-space: nowrap; font-size: 0; }
	#eq_table .table_report_big td.product_count .form-control {
		display: inline-block; vertical-align: middle; width: 52px; height: 34px; padding: 0;
		border: 1px solid #d5deea; border-left: 0; border-right: 0; border-radius: 0; box-shadow: none;
		text-align: center; font-size: 15px; font-weight: 700; color: #1c2434; background: #fff;
	}
	#eq_table .table_report_big td.product_count .form-control::placeholder { color: #b8c2d0; font-weight: 400; }
	#eq_table .table_report_big td.product_count .form-control:focus { border-color: #d5deea; }
	.qty-btn {
		display: inline-grid; place-items: center; vertical-align: middle; width: 32px; height: 34px; padding: 0;
		border: 1px solid #d5deea; background: #f4f7fb; color: #2f6fed; font-size: 18px; font-weight: 600; line-height: 1; cursor: pointer;
	}
	.qty-minus { border-radius: 8px 0 0 8px; }
	.qty-plus { border-radius: 0 8px 8px 0; }
	.qty-btn:hover:not(:disabled) { background: #e3ecff; }
	.qty-btn:disabled { color: #c5ceda; background: #f8fafc; cursor: default; }
	.qty-btn:focus-visible { outline: 2px solid #2f6fed; outline-offset: -2px; }
	#eq_table td.product_count:focus-within .qty-btn,
	#eq_table td.product_count:focus-within .form-control { border-color: #2f6fed; }
	#eq_table tr.qty-picked td.product_name { color: #2f6fed; }
}
/* «Товары в заказе» при редактировании: та же группа [−][ 0 ][+] на любой ширине */
#products_old .qty-cell { white-space: nowrap; font-size: 0; }
#products_old .qty-cell .of-num {
	display: inline-block; vertical-align: middle; width: 56px; height: 34px; padding: 0;
	border: 1px solid #d5deea; border-left: 0; border-right: 0; border-radius: 0; box-shadow: none;
	text-align: center; font-size: 15px; font-weight: 700; -moz-appearance: textfield;
}
#products_old .qty-cell .of-num::-webkit-inner-spin-button,
#products_old .qty-cell .of-num::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#products_old .qty-cell .qty-btn {
	display: inline-grid; place-items: center; vertical-align: middle; width: 32px; height: 34px; padding: 0;
	border: 1px solid #d5deea; background: #f4f7fb; color: #2f6fed; font-size: 18px; font-weight: 600; line-height: 1; cursor: pointer;
}
#products_old .qty-cell .qty-minus { border-radius: 8px 0 0 8px; }
#products_old .qty-cell .qty-plus { border-radius: 0 8px 8px 0; }
#products_old .qty-cell .qty-btn:hover:not(:disabled) { background: #e3ecff; }
#products_old .qty-cell .qty-btn:disabled { color: #c5ceda; background: #f8fafc; cursor: default; }
#products_old .qty-cell:focus-within .qty-btn,
#products_old .qty-cell:focus-within .of-num { border-color: #2f6fed; }
@media (max-width: 700px) {
	#products_old .qty-cell .of-num { width: 48px; height: 40px; font-size: 16px; }
	#products_old .qty-cell .qty-btn { width: 36px; height: 40px; font-size: 20px; }
	/* строки — карточками, чтобы количество не уезжало за край экрана:
	   [№] Название             [×]
	       1000 ₽/сут
	       [−][1][+]     1000 ₽/день */
	#products_old thead { display: none; }
	#products_old, #products_old tbody { display: block; width: 100%; }
	#products_old tr {
		display: grid; grid-template-columns: 22px 1fr auto;
		grid-template-areas: "n name del" ". price price" ". qty total";
		gap: 6px 10px; align-items: center; padding: 12px 2px; border-bottom: 1px solid #eef2f7;
	}
	#products_old tr:last-child { border-bottom: 0; }
	#products_old td { display: block; width: auto !important; padding: 0 !important; border: 0 !important; text-align: left !important; }
	#products_old td:nth-child(1) { grid-area: n; }
	#products_old td:nth-child(2) { grid-area: name; font-weight: 600; line-height: 1.3; }
	#products_old td.product_price { grid-area: price; color: #6b7689; font-size: 13px; }
	#products_old td.product_price::after { content: " ₽/сут"; }
	#products_old td.qty-cell { grid-area: qty; }
	#products_old td.total_count { grid-area: total; justify-self: end; font-weight: 700; }
	#products_old td.total_count::after { content: " ₽/день"; font-weight: 400; color: #6b7689; font-size: 13px; }
	#products_old td.ov-row-actions { grid-area: del; justify-self: end; }
}
@media (max-width: 700px) {
	#eq_table .table_report_big tr {
		grid-template-columns: auto auto 1fr auto;
		grid-template-areas: "name name name qty" "avail price . qty";
		column-gap: 0; row-gap: 3px;
		padding: 12px 2px;
	}
	#eq_table .table_report_big tr:first-child { padding-top: 4px; }
	#eq_table .table_report_big tr:last-child { border-bottom: 0; }
	#eq_table .table_report_big td.product_name { padding-right: 12px !important; line-height: 1.3; }
	#eq_table .table_report_big td:nth-child(2) { grid-area: avail; white-space: nowrap; }
	#eq_table .table_report_big td.product_price { grid-area: price; justify-self: start; margin: 0; white-space: nowrap; }
	#eq_table .table_report_big td.product_price::before { content: "\00a0·\00a0"; }

	/* Количество: [−][ 0 ][+] */
	#eq_table .table_report_big td.product_count { display: flex; align-items: center; border: 1px solid #d9e1ec !important; border-radius: 12px; background: #fff !important; overflow: hidden; }
	#eq_table .table_report_big td.product_count:focus-within { border-color: #2f6fed !important; box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.14); }
	#eq_table .table_report_big td.product_count .form-control {
		width: 44px; height: 40px; padding: 0; border: 0 !important; border-radius: 0; box-shadow: none !important;
		text-align: center; font-size: 16px; font-weight: 700; color: #1c2434; background: transparent;
	}
	#eq_table .table_report_big td.product_count .form-control::placeholder { color: #b8c2d0; font-weight: 400; }
	.qty-btn {
		display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 40px; padding: 0;
		border: 0; background: #f4f7fb; color: #2f6fed; font-size: 20px; font-weight: 600; line-height: 1; cursor: pointer;
		-webkit-tap-highlight-color: transparent; touch-action: manipulation;
	}
	.qty-btn:active { background: #e3ecff; }
	.qty-btn:disabled { color: #c5ceda; background: #f8fafc; cursor: default; }
	.qty-btn:focus-visible { outline: 2px solid #2f6fed; outline-offset: -2px; }
	#eq_table tr.qty-picked td.product_name { color: #2f6fed; }
}
.al-btn.is-busy { opacity: 0.7; cursor: progress; }
