/* 
    Document   : core
    Created on : Dec 13, 2011, 3:51:47 PM
    Author     : SDenis
    Description:
        Purpose of the stylesheet follows.
*/

body {
    padding-top: 60px;
}

p {
	margin-bottom: 5px;
}

#page {
	display: none;
	min-width: 940px;
}

#exposeMask {
    z-index: 10001 !important;
}

#number {
	text-transform: uppercase;
}

.dhtmlxcalendar_line li {
	font-size: 10pt !important;
}

/* Dialog */
div#settings,
div#order-view-box {
	display: none;
	background: #fff;
}

#order-view-box {
	height: 95%;
    overflow: hidden;
}

input.search-query {
	text-transform: uppercase;
	height: 18px;
}

.search-query::-webkit-input-placeholder {
	text-transform: none;
}
.search-query:-moz-placeholder {
	text-transform: none;
}
.search-query:-ms-input-placeholder {
	text-transform: none;
}

#dialog-header {
    background: url("../img/hd-bg.png") repeat scroll 0 0 transparent;
    /*border-bottom: 1px solid #CCCCCC;
    border-right: 1px solid #CCCCCC;*/
    border-radius: 3px;
    padding: 6px 16px;
    text-shadow: 0 1px 0 #FFFFFF;
    box-shadow: 0 0 2px #7F7F7F inset;
}

#dialog-header.search {
	background: #EFEFEF;
	padding: 10px 16px;
	border: none;
}

#dialog-header .chzn-results {
	text-shadow: none;
}

#dialog-header h2 {
    color: #444444;
    font-size: 1.5em;
    font-weight: 500;
    /*margin-bottom: 3px;*/
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

#dialog-content {
    padding: 18px 18px 14px;
}

#dialog-content-wrap {
	height: 100%;
    position: relative;
}

#dialog-content-wrap .tab-content {
    overflow: auto;
    width: 100%;
}

#dialog-button-pane {
    overflow: hidden;
    padding: 13px 16px;
    
    margin: 0;
}

#dialog-button-pane > * {
    float: right;
}
/* Dialog */

/* Footer */
.footer {
    height: 70px;
    background: url(../img/footer-bg.png) repeat #333;
    /*margin-top: 30px;
    padding: 0 5%;*/
    color: #fff;
    font-family: Tahoma;
    font-size: 8pt;
	flex-shrink: 0;
}
.footer span.copyright {
    float: right;
    position: relative;
    top: 16px;
}
.footer span.cbs-logo {
    background: url("../img/cbs-logo-footer.png") no-repeat scroll left center transparent;
    float: left;
    height: 50px;
    left: -14px;
    position: relative;
    top: 10px;
    width: 220px;
}
.footer span.tapioca-logo {
    background: url("../img/tapioca-logo.png") no-repeat scroll left center transparent;
    float: left;
    height: 50px;
    left: -20px;
    position: relative;
    top: 10px;
    width: 120px;
}
.footer a {
	color: #fff;
	text-decoration: underline;
}
/* Footer */

/** Table */
.table {
	table-layout: fixed;
}

.table th {
    background: url(../img/table-header-bg.png) repeat-x;
    color: #333;
    line-height: 2em;
    padding: 5px;
    padding-left: 15px;
    text-align: left;
    /*text-transform: uppercase;*/
    border: 1px solid #DCDCDC;
    
    -webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
	user-select: none;
}

.table th.headerSortDown,
.table th.headerSortUp {
	background: url(../img/table-header-bg-current.png) repeat-x;
}

.table tbody td {
    cursor: pointer;
    /*white-space: nowrap;*/
}
.table tbody tr:hover > td {
    background-color: #FFFBC0 !important;/*#EEEEEE;*/	
}
.table tbody tr.current > td {
    background-color: #FFFBC0 !important;
}

.tableFloatingHeader {
   box-shadow: 0 5px 5px -1px silver;/*#5DBCFF;*/
   z-index: 2;
}

.index {
    text-align: right;
}

.nowrap {
    white-space: nowrap;
}
/** Table */

input {
	margin: 0;
}

.dropdown-menu {
    /*margin-left: -1px !important;*/
   right: -1px;
}

.nav-tabs {
    margin: 0 !important;
    /*margin-top: 20px !important;*/
}

.tabs a {
    outline: none;
}

/* City filter */
#city-filter, #status-filter, #service-type-filter,
#reg-number-filter, #serial-number-filter {
    width: 279px;
}

.vendors {
	width: 871px;
}

#city_filter_chzn, #status_filter_chzn, #service_type_filter_chzn,
#city_list_chzn, #status_list_chzn, #service_type_list_chzn,
#reg_number_filter_chzn, #serial-number-filter_chzn,
#vendor_filter_chzn {
    padding-right: 3px;
    vertical-align: top;
}

#city_filter_chosen, #status_filter_chosen, #service_type_filter_chosen,
#city_list_chosen, #status_list_chosen, #service_type_list_chosen,
#reg_number_filter_chosen, #serial_number_filter_chosen,
#vendor_filter_chosen, #vendor_filter2_chosen {
	padding-right: 3px;
	margin-right: 3px;
	vertical-align: top;
}

#service_type_filter_chosen,
#city_list_chosen,
#vendor_filter_chosen,
#vendor_filter2_chosen {
	margin-right: 0;
}

.form-row .chosen-container + .chosen-container,
.filter-container .chosen-container + .chosen-container {
	margin-left: 3px;
}

#service_type_filter_chzn {
	padding: 0;
}

#city-list, #status-list, #service-type-list {
	width: 270px;
}

.chzn-choices {
    border-radius: 3px;
}

.chzn-container-multi .chzn-choices {
	min-height: 30px;
}

.chzn-container-multi .chzn-choices .search-field .default {
	margin-top: 2px;
}

li.search-field input {
	height: 100%;
}

.search-choice {
    padding: 3px 19px 6px 6px !important;
}

.search-choice span {
    position: relative;
    top: 1px;
}

.search-choice a {
    top: 6px !important;
}
/* City filter */

.loading {
    background: url("../img/loader.gif") no-repeat scroll center center transparent;
}

.unvisible {
    display: none;
    visibility: hidden;
}

#overlay {
	display: none;
	background: #fff;
}

#overlay-dlg {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	opacity: 0.6;
	filter: alpha(opacity = 60);
	background: #000;
	z-index: 10000;
	display: none;
}

#order {
	height: 100%;
}

#dialog-content-wrap table {
	margin-bottom: 0;
}

#order-details thead {
	border-bottom: 1px solid #DDD;
}

#order-details td {
	border: none !important;
	padding: 10px 10px 9px;
	vertical-align: top;
}

#order-details th {
	font-weight: normal;
	font-size: 14pt;
	color: #8B8E9A;
    text-align: left;
    padding: 10px 10px 9px;
}

#order-details span {
	/*margin-left: 150px;*/
	display: block;
    min-height: 20px;
}

#order-details label {
	font-weight: bold;
	float: none;
	position: absolute;
	padding-top: 0;
	text-align: inherit;
	width: 130px;
}

#order-details span,
#order-details label {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10pt;
}

#order-details span {
	margin-left: 150px;
}

#order-details col {
	width: 20%;
}

.btn:focus {
	outline: none;
}

@media screen and (max-width: 1024px) {
	p {
		margin-bottom: 0;
	}
	
	.table td {
		padding: 7px;
	}
	
	#dialog-content {
		padding-top: 5px;
	}
	
	#order-details th {
		font-size: 11pt;
    	font-weight: bold;
	}
	
	.table tbody td,
	.table thead th,
	#order-details span,
	#order-details label,
	#order-details td {
		font-family: Tahoma;
		font-size: 8pt;
	}
	
	.table thead th.sortable span {
		top: 2px;
	}
	
	#order-details span {
		margin-left: 110px;
	}
}

fieldset {
    margin-bottom: 18px;
    padding-top: 18px;
}

a#search-query-label {
	color: #999;
	text-decoration: none;
}

a#search-query-label:hover {
	color: #fff;
}

.escape {
	display: inline-block; 
	width: 16px; 
	height: 16px; 
	background: url('../img/key_escape.png') no-repeat scroll 0px 0px transparent; 
	position: relative; 
	top: 4px;
	cursor: help;
}

#not-found-alert {
	margin: 70px;
	text-align: center;
}

#not-found-alert a {
	border-bottom: 1px dashed;
	font-weight: bold;
}

#not-found-alert a:hover {
	text-decoration: none;
}

.sp-block {
	display: inline-block;
	margin-left: 5px;
}

.sp-block > span {
	position: relative; 
	top: -9px;
}

.sp-loader {
	background: url("../img/loading.gif") no-repeat scroll 0 center transparent;
    margin-left: 10px;
    padding: 10px 10px 10px 30px;	
}

.inline-label {
	display: table-cell;
    min-width: 82px;
    padding-right: 7px;
    padding-top: 7px;
    text-align: right;
    vertical-align: top;
    font-weight: bold;
    color: #3a3a3a;
}

.filter-container {
	background: #f7f7f7;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 12px;
	padding: 10px 12px;
	width: 100%;
	--filter-action-col-width: 118px;
}

.filter-row {
	display: grid;
	grid-template-columns: 82px minmax(0, 1fr) var(--filter-action-col-width);
	align-items: start;
	column-gap: 8px;
}

.filter-row-main {
	row-gap: 0;
}

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

.filter-fields-grid .chosen-container {
	margin: 0 !important;
	width: 100% !important;
}

.filter-row-action-spacer {
	width: var(--filter-action-col-width);
}

.filter-row-vendors {
	width: 100%;
}

.filter-row-vendors > .vendor-bar {
	grid-column: 1 / -1;
}

.tooltip {
	z-index: 10000;
}

.tooltip.in {
    opacity: 1;
}

.tooltip-inner {
    background: #3875d7;
    color: #fff;
    max-width: none;
}

.tooltip-arrow {
	z-index: 10000;
} 

.tooltip.top .tooltip-arrow {
	border-top: 5px solid #3875d7;
}

.tooltip.left .tooltip-arrow {
	border-left: 5px solid #3875d7;
}

.tooltip.right .tooltip-arrow {
	border-right: 5px solid #3875d7;
}

.tooltip.bottom .tooltip-arrow {
	border-bottom: 5px solid #3875d7;
}

.form-row {
	display: table;
	margin-bottom: 8px;
}

.input-small {
	width: 119px;
}

input {
	height: 21px;
	border: 1px solid #aaa;
}

div.chzn-container-multi input:hover,
ul.chzn-choices:hover,
.animated-input:hover {
	cursor: pointer;
}

div.chzn-container-active ul.chzn-choices:hover,
div.chzn-container-active input:hover,
.animated-input:focus {
	cursor: text;
}

/*ul.chzn-choices {
	background-image: none !important;
}*/

.animated-input:hover,
ul.chzn-choices {
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	     -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	          box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	  -webkit-transition: border linear 0.1s, box-shadow linear 0.1s;
	     -moz-transition: border linear 0.1s, box-shadow linear 0.1s;
	      -ms-transition: border linear 0.1s, box-shadow linear 0.1s;
	       -o-transition: border linear 0.1s, box-shadow linear 0.1s;
	          transition: border linear 0.1s, box-shadow linear 0.1s;
}

.animated-input:hover,
div.chzn-container-active ul.chzn-choices,
ul.chzn-choices:hover
/*ul.chzn-choices:focus*/ {
	border-color: rgba(82, 168, 236, 0.8);
	  outline: 0;
	  outline: thin dotted \9;
	  /* IE6-9 */
	
	  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
	     -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
	          box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
}

.regular-input {
	margin-right: 3px;
    width: 270px;
}

#vendor-label {
	padding-top: 7px;
	float: none;
	justify-self: end;
	white-space: nowrap;
}

#vendor-label a {
	border-bottom: 1px dashed;
}

#vendor-label a:hover {
	border-bottom: none;
	text-decoration: none;
}

#waiting-bar {
	display: none;
}

.waiting-bar {
	bottom: 0; 
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

#waiting-bg { 
	background: url("../img/tile_bg.png") repeat scroll 0 0 transparent;
	opacity: 0.7;
    z-index: 10000;
}

#waiting-loader {
	opacity: 1;
    z-index: 10001;
}

.dropdown-menu li > a:hover, 
.dropdown-menu .active > a, 
.dropdown-menu .active > a:hover {
	background-color: #3875d7;
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3875d7', endColorstr='#2a62bc', GradientType=0 );  
	background-image: -webkit-gradient(linear, 0 0, 0 100%, color-stop(20%, #3875d7), color-stop(90%, #2a62bc));
	background-image: -webkit-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
	background-image: -moz-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
	background-image: -o-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
	background-image: linear-gradient(#3875d7 20%, #2a62bc 90%);
	color: #fff;
}

#announce-bar {
	display: none;
}

.announce-bar {
	bottom: 0; 
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
}

#announce-bg { 
	background: url("../img/tile_bg.png") repeat scroll 0 0 transparent;
    opacity: 0.7;
    z-index: 10000;
}

#announce-content {
	background: none repeat scroll 0 0 #FFFFFF;
    border: 1px solid #AAAAAA;
    border-radius: 5px 5px 5px 5px;
    bottom: 80px;
    box-shadow: 0 0 100px 0 #888888;
    left: 80px;
    min-height: 250px;
    opacity: 1;
    overflow: hidden;
    right: 80px;
    top: 80px;
    z-index: 10001;
}

#announce-header {
	background-color: #F5F5F5;
    border-bottom: 1px solid #DDDDDD;
    border-radius: 5px 5px 0 0;
    font-size: 14pt;
    height: 30px;
    line-height: 27px;
    padding: 10px;
    text-shadow: 0 1px 0 #FFFFFF;
}

#announce-text {
	bottom: 56px;
	background: #FFFFFF;
    left: 0;
    overflow-y: auto;
    padding-left: 60px;
    padding-right: 60px;
    position: absolute;
    right: 1px;
    top: 52px;
}

#announce-text p {
	margin-top: 15px;
}

#announce-footer {
	bottom: 0;
    height: 56px;
    left: 0;
    margin: 0;
    position: absolute;    
    right: 0;
    border-radius: 0 0 5px 5px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 20px;
	box-sizing: border-box;
}

.announce-footer-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.announce-footer-label input {
	margin: 0;
}

.announce-footer-close {
	margin: 0;
}

/* While announce modal is open, disable sticky behavior to prevent overlap artifacts. */
body.announce-open .sticky-head thead th {
	position: static;
}


.vendor-stripes {
    animation: 3s linear 0s normal none infinite animate-stripes;
    background-color: #EEEEEE !important;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.5) 75%, transparent 75%, transparent) !important;
    background-size: 30px 30px !important;
    min-height: 30px !important;
}

.sticky-head thead th {
	position: sticky;
	top: 40px;
	z-index: 1;
}

.vendor-bar {
	display: grid;
	grid-template-columns: 82px minmax(0, 1fr) var(--filter-action-col-width);
	align-items: start;
	column-gap: 8px;
	width: 100%;
}

.vendor-bar-spacer {
	min-height: 1px;
}

.vendor-bar-content {
	min-width: 0;
}

.vendor-bar-content .chosen-container {
	margin: 0 !important;
	width: 100% !important;
}

@media screen and (max-width: 1260px) {
	.filter-fields-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 920px) {
	.filter-container {
		padding: 10px;
	}

	.filter-row,
	.vendor-bar {
		grid-template-columns: 1fr;
		row-gap: 6px;
	}

	.vendor-bar-spacer {
		display: none;
	}

	.filter-row .inline-label,
	.vendor-bar .inline-label {
		min-width: 0;
		padding-top: 0;
		padding-right: 0;
		text-align: left;
		line-height: 1.2;
	}

	.filter-fields-grid {
		grid-template-columns: 1fr;
	}

	.filter-fields-grid .chosen-container,
	.vendor-bar-content .chosen-container {
		min-width: 0;
		width: 100% !important;
	}

	.filter-row-action-spacer {
		display: none;
	}

	#vendor-label {
		float: none;
		padding-top: 0;
	}
}

.vendor-pill {
	white-space: nowrap;
	margin: 0;
}

.pager-ipp {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 30px;
}

.pager-ipp-label {
	position: static;
	line-height: 1;
}

.legacy-pager-chosen + .chosen-container {
	vertical-align: middle;
}

.legacy-pager-chosen + .chosen-container .chosen-single {
	height: 26px;
	line-height: 24px;
	font-size: 12px;
}

.legacy-pager-chosen + .chosen-container .chosen-single div b {
	background-position-y: 2px;
}

@media screen and (max-width: 940px) {
	body {
		padding-top: 45px;
	}

	#page {
		min-width: 0;
	}

	#content {
		overflow-x: auto;
	}

	#content .table {
		min-width: 860px;
	}
}

@-webkit-keyframes animate-stripes { 
	0% {background-position: 0 0;} 100% {background-position: 60px 0;}
}

@-moz-keyframes animate-stripes {
	0% {background-position: 0 0;} 100% {background-position: 60px 0;}
}

@keyframes animate-stripes {
	0% {background-position: 0 0;} 100% {background-position: 60px 0;}
}

/* =========================================================================
   Mobile-ready (feature 001-mobile-ready) — ТОЛЬКО АДДИТИВНО.
   Все правила ниже действуют на узких экранах (<= 768px / <= 480px) либо на
   элементы, которые рендерятся исключительно на мобильном (карточки заявок).
   Десктоп (>= 769px) этим блоком не затрагивается. См. Desktop-Safety Invariant.
   ========================================================================= */

/* --- Карточка заявки (OrderCard) — присутствует в DOM только на мобильном --- */
.order-cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Больше воздуха сверху на мобильном (между фиксированным навбаром и контентом).
   padding-top у body должен покрывать высоту фиксированного навбара (кнопки 44px),
   иначе контент уезжает под него и верхний отступ «съедается». */
@media screen and (max-width: 768px) {
	body {
		padding-top: 46px;
	}

	#content {
		padding-top: 20px;
	}
}

/* Футер на мобильном: фикс-высота + float'ы ломаются на узком экране —
   переводим в вертикальный центрированный стек авто-высоты. */
@media screen and (max-width: 768px) {
	.footer {
		height: auto;
		margin-top: 24px;
		padding: 14px 16px;
		text-align: center;
	}

	.footer span.cbs-logo,
	.footer span.tapioca-logo {
		float: none;
		display: inline-block;
		position: static;
		left: auto;
		top: auto;
		vertical-align: middle;
	}

	.footer span.copyright {
		float: none;
		display: block;
		position: static;
		top: auto;
		margin-top: 10px;
		line-height: 1.5;
	}
}

/* Search-форма: легче (белая карточка вместо серого well) и с отступами на мобильном */
@media screen and (max-width: 768px) {
	#pane1 .well {
		background: #fff;
		border: 1px solid #e3e8ef;
		border-radius: 10px;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
		padding: 16px;
	}

	#search-form .form-row {
		margin-bottom: 16px;
	}

	#search-form .inline-label {
		font-size: 13px;
		font-weight: bold;
		color: #6b7280;
		margin-bottom: 6px;
	}

	/* Вертикальные отступы между селектами (статусы / виды работ / города) */
	#search-form .mobile-select {
		margin-bottom: 10px;
	}

	#search-form .mobile-select:last-child {
		margin-bottom: 0;
	}

	/* Кнопки-пресеты периода занимают строку с отступом сверху */
	#search-form .btn-mini {
		margin: 8px 6px 0 0 !important;
	}

	/* Главная кнопка поиска — на всю ширину для удобного тапа.
	   Таргетим только submit: иначе правило протекает на кнопку «Готово»
	   (.btn-primary) внутри bottom-sheet, который рендерится внутри #search-form. */
	#search-form button[type="submit"] {
		width: 100%;
		box-sizing: border-box;
	}
}

.order-card {
	border: 1px solid #e3e8ef;
	border-left: 3px solid #2a62bc;
	border-radius: 10px;
	background: linear-gradient(180deg, #ffffff 0%, #f3f7fd 100%);
	padding: 14px 16px;
	cursor: pointer;
	box-sizing: border-box;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
	/* FR-012: длинные значения переносятся, а не выходят за пределы экрана */
	overflow-wrap: anywhere;
	word-break: break-word;
}

.order-card:active {
	box-shadow: 0 4px 12px rgba(42, 98, 188, 0.18);
	transform: translateY(1px);
}

.order-card-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e8edf4;
}

.order-card-number {
	font-weight: 700;
	font-size: 13pt;
	color: #1f2d3d;
}

.order-card-status {
	flex: 0 0 auto;
	background: #eef3fb;
	color: #2a62bc;
	border: 1px solid #d7e3f7;
	border-radius: 12px;
	padding: 3px 10px;
	font-size: 12px;
	line-height: 1.5;
	white-space: nowrap;
	text-align: center;
}

.order-card-row {
	display: flex;
	gap: 8px;
	padding: 2px 0;
}

.order-card-label {
	flex: 0 0 110px;
	color: #8B8E9A;
	font-weight: bold;
}

.order-card-row > span:last-child {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* --- Пагинация (SimplePager): базовый класс заменяет инлайновый top:-9 --- */
.pager-page-info {
	display: inline;
	position: relative;
	top: -9px;
	margin: 0 10px;
}

@media screen and (max-width: 768px) {
	/* FR-002: запрет горизонтальной прокрутки страницы целиком */
	html, body {
		max-width: 100%;
		overflow-x: hidden;
	}

	/* FR-004 / SC-003: тач-область >= 44px; font-size 16px гасит авто-zoom iOS (SC-002) */
	input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
	select,
	textarea {
		min-height: 44px;
		height: auto;
		font-size: 16px;
		box-sizing: border-box;
	}

	button,
	.btn,
	a.btn,
	input[type="submit"],
	#login-button {
		min-height: 44px;
	}

	/* FR-012: длинный контент в карточках/ячейках не ломает раскладку */
	.order-card,
	.order-card-row span {
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	/* SimplePager (T029): кнопки и блоки переносятся, ipp-селект уходит на новую строку */
	.simple-pager {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 6px;
	}

	.simple-pager .pull-right {
		float: none;
		margin-left: 0;
	}

	.simple-pager .pager-page-info {
		top: 0;
		margin: 0 6px;
	}

	.simple-pager .sp-block > span {
		top: 0;
	}

	/* Recovery (T026): инлайновая форма восстановления стекается вертикально */
	.recovery-page .form-inline label {
		display: block;
		margin-bottom: 6px;
	}

	.recovery-page .form-inline input,
	.recovery-page .form-inline .btn {
		display: block;
		width: 100%;
		margin: 6px 0;
		box-sizing: border-box;
	}

	/* OrderDetail (US2): детали в одну колонку (T010) */
	#order-details thead {
		display: none;
	}

	#order-details tbody,
	#order-details tr,
	#order-details td {
		display: block;
		width: 100%;
	}

	#order-details td {
		padding: 6px 0;
	}

	#order-details td:nth-child(3)::before {
		content: "Описание:";
		display: block;
		font-weight: bold;
		color: #8B8E9A;
		margin-bottom: 4px;
	}

	#order-details label {
		position: static;
		display: inline;
		width: auto;
		padding-right: 6px;
	}

	#order-details span {
		display: inline;
		margin-left: 0;
		min-height: 0;
	}

	#order-details p {
		margin-bottom: 4px;
	}

	/* OrderDetail (US2): таблицы История/Комментарии — внутриблочная прокрутка (T011).
	   Контейнер .tab-content уже имеет overflow:auto; добавляем momentum-скролл. */
	#dialog-content-wrap .tab-content {
		-webkit-overflow-scrolling: touch;
	}
}

/* --- Мобильная навигация (US3) — бургер; присутствует в DOM только на мобильном --- */
.mobile-nav-toggle {
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	padding: 8px 12px;
	cursor: pointer;
}

@media screen and (max-width: 768px) {
	/* Мобильная шапка (T013/T014): бургер слева, кнопка пользователя справа;
	   ссылки навигации раскрываются выпадающей панелью под шапкой. */
	.navbar.mobile .container-fluid {
		display: flex;
		align-items: center;
		justify-content: space-between;
		position: relative;
		padding-left: 0;
		padding-right: 0;
	}

	/* Компактная панель (как было до добавления кнопки пользователя) */
	.navbar.mobile .navbar-inner {
		min-height: 0;
		padding: 5px 0;
	}

	/* Бургер и кнопка пользователя отступают от края на 16px — как пункты меню (li) */
	.navbar.mobile .mobile-nav-toggle {
		order: 0;
		flex: 0 0 auto;
		min-height: 0;
		padding: 6px 16px;
		line-height: 1;
	}

	.navbar.mobile .btn-group {
		order: 2;
		flex: 0 0 auto;
		float: none;
		margin: 0;
	}

	/* Кнопка пользователя: прозрачная, как бургер; имя/компания скрыты — только иконка + caret */
	.navbar.mobile .btn-group .dropdown-toggle {
		background: transparent;
		border: 0;
		box-shadow: none;
		color: #fff;
		min-height: 0;
		padding: 6px 16px;
		line-height: 1;
	}

	.navbar.mobile .btn-group .caret {
		border-top-color: #fff;
	}

	.navbar.mobile .user-label {
		display: inline-block;
		max-width: 60vw;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		vertical-align: middle;
		font-size: 12px;
	}

	/* Ссылки навигации — выпадающая панель под шапкой */
	.navbar.mobile .nav {
		display: none;
	}

	.navbar.mobile.menu-open .nav {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		margin: 0;
		padding: 6px 0;
		background: #2c2c2c;
		border-top: 1px solid #3f3f3f;
		box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
		z-index: 1040;
	}

	.navbar.mobile .nav > li {
		float: none;
		display: block;
	}

	.navbar.mobile .nav > li > a {
		padding: 12px 16px;
	}

	/* Поиск по номеру (T014): в раскрытой панели, на всю ширину */
	.navbar.mobile.menu-open #top-search-form {
		display: flex;
		align-items: stretch;
		gap: 8px;
		margin: 8px 16px !important;
	}

	.navbar.mobile.menu-open #top-search-form .search-query {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
		margin: 0;
		box-sizing: border-box;
	}

	.navbar.mobile.menu-open #top-search-form .top-search-btn {
		flex: 0 0 auto;
		width: auto;
		margin: 0;
		white-space: nowrap;
		box-sizing: border-box;
	}

	/* Меню пользователя раскрывается под правой кнопкой */
	.navbar.mobile .btn-group .dropdown-menu {
		position: absolute;
		right: 0;
		left: auto;
		top: 100%;
		z-index: 1041;
	}

	.navbar.mobile .dropdown-menu li > a {
		padding: 10px 16px;
	}

	/* Overlay-объявление (T015 / FR-009): помещается на узком экране */
	#announce-content {
		left: 10px;
		right: 10px;
		top: 10px;
		bottom: 10px;
	}

	#announce-text {
		padding-left: 16px;
		padding-right: 16px;
		bottom: 72px;
	}

	#announce-footer {
		height: auto;
		min-height: 56px;
		flex-wrap: wrap;
		gap: 8px;
		padding: 10px;
	}

	/* Настройки (T027): form-horizontal стекается вертикально */
	#settings .control-label {
		float: none;
		width: auto;
		display: block;
		text-align: left;
		margin-bottom: 4px;
	}

	#settings .controls {
		margin-left: 0;
	}

	#settings .xlarge,
	#settings .controls input {
		width: 100%;
		box-sizing: border-box;
	}

	#settings .form-actions {
		padding-left: 0;
	}

	/* Фильтры поиска (T019): form-row стекается, нативные селекты/инпуты на всю ширину */
	.form-row {
		display: block;
	}

	.form-row .inline-label {
		display: block;
		text-align: left;
		min-width: 0;
		padding: 0 0 4px;
	}

	.form-row .input-small,
	.form-row select {
		width: 100% !important;
		max-width: 100%;
		box-sizing: border-box;
		margin-bottom: 6px;
	}

	/* VendorBar (T030): нативный мультиселект вендоров на всю ширину */
	.vendor-bar-content select {
		width: 100% !important;
		max-width: 100%;
		box-sizing: border-box;
	}
}

/* =========================================================================
   Мобильный мультиселект (bottom-sheet + чипы). Классы присутствуют в DOM только
   на мобильном (компонент MobileMultiSelect рендерится при useIsMobile) — десктоп
   этими правилами не затрагивается.
   ========================================================================= */
.mobile-select {
	display: block;
	width: 100%;
}

.mobile-select-field {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	min-height: 44px;
	padding: 6px 10px;
	background: #fff;
	border: 1px solid #aaa;
	border-radius: 4px;
	text-align: left;
	box-sizing: border-box;
	cursor: pointer;
}

.mobile-select-placeholder {
	color: #888;
	flex: 1 1 auto;
}

.mobile-select-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	flex: 1 1 auto;
	min-width: 0;
}

.mobile-select-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #eef3fb;
	border: 1px solid #cdddf5;
	border-radius: 12px;
	padding: 2px 6px 2px 8px;
	font-size: 13px;
	line-height: 1.4;
}

.mobile-select-chip-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #cdddf5;
	color: #2a62bc;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}

.mobile-select-caret {
	color: #888;
	flex: 0 0 auto;
}

.mobile-sheet-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 9000;
	display: flex;
	align-items: flex-end;
}

.mobile-sheet {
	background: #fff;
	width: 100%;
	max-height: 80vh;
	border-radius: 12px 12px 0 0;
	display: flex;
	flex-direction: column;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

.mobile-sheet-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px;
	border-bottom: 1px solid #e5e5e5;
}

.mobile-sheet-title {
	flex: 1 1 auto;
	min-width: 0;
	text-align: center;
	font-weight: bold;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mobile-sheet-done {
	flex: 0 0 auto;
	width: auto;
	margin: 0;
}

.mobile-sheet-cancel {
	flex: 0 0 auto;
	background: transparent;
	border: 0;
	color: #2a62bc;
	font-size: 15px;
	padding: 6px 4px;
	cursor: pointer;
}

.mobile-sheet-search {
	padding: 10px 14px;
	border-bottom: 1px solid #eee;
}

.mobile-sheet-search input {
	width: 100%;
	box-sizing: border-box;
}

.mobile-sheet-list {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 4px 0 8px;
}

.mobile-sheet-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	margin: 0;
	border-bottom: 1px solid #f2f2f2;
	cursor: pointer;
}

.mobile-sheet-option input {
	width: 20px;
	height: 20px;
	margin: 0;
	flex: 0 0 auto;
}

.mobile-sheet-empty {
	padding: 16px;
	color: #888;
	text-align: center;
}

/* Равная ширина фильтров на мобильном: блочный стек вместо grid —
   каждый контрол занимает 100% ширины контейнера (одинаковые поля).
   !important перебивает фиксированные id-ширины (#city-filter:279px, #city-list:270px
   и т.п.), которые иначе попадают на сам .mobile-select и делают поля разной ширины. */
@media screen and (max-width: 768px) {
	.mobile-select {
		width: 100% !important;
		box-sizing: border-box;
	}

	.filter-container .filter-row,
	.filter-container .filter-row-vendors,
	.filter-container .vendor-bar,
	.filter-container .filter-fields-grid {
		display: block;
	}

	.filter-container .mobile-select {
		margin: 0 0 8px;
	}

	.filter-container .vendor-bar-spacer {
		display: none;
	}

	.filter-container .inline-label {
		display: block;
		text-align: left;
		min-width: 0;
		padding: 0 0 4px;
	}

	.filter-container #vendor-label {
		text-align: left;
		padding-top: 2px;
	}
}
