/* часть стилей из main.css основного проекта
нужная на новых страницах Список компаний и Детализация компаний
после подключения нового хэдера из d21-common-template-blocks.php
*/

.button_theme_islands {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    cursor: pointer;
}
a:hover,
.link:hover {
	color: #E50000;
}
.text-decor_dashed {
	text-decoration: underline;
	-webkit-text-decoration-style: dashed;
	text-decoration-style: dashed;
}


.campaigns-action-group {
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: row;
	-ms-flex-direction: row;
	flex-direction: row;
	-webkit-flex-wrap: nowrap;
	-ms-flex-wrap: nowrap;
	flex-wrap: nowrap;
	-webkit-justify-content: space-between;
	-ms-flex-pack: justify;
	justify-content: space-between;
	-webkit-align-content: stretch;
	-ms-flex-line-pack: stretch;
	align-content: stretch;
	-webkit-align-items: flex-start;
	-ms-flex-align: start;
	align-items: flex-start;
	margin-bottom: 10px;
}




.modal_ext .modal__content {
	padding: 10px;
}
.modal_ext .modal__inner {
	padding: 10px 0;
}
.modal_ext .modal__title {
	font-family: "Roboto Slab", serif;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.15;
	margin: 0 0 5px 0;
}
.modal__content {
	font-family: 'Exo 2', sans-serif;
	line-height: 1.5;
}
.modal_ext .modal__content {
	margin: 10px;
	border: none;
	border-radius: 2px;
	box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2), 0px 0px 5px rgba(0, 0, 0, 0.1);
}
.modal_ext .form__group:last-child {
	padding-bottom: 0;
}

/*modal_ext*/
.modal_ext .modal_theme_islands,
.modal_ext .modal_theme_islands,
.modal_ext .modal__content,
.modal_ext.modal_theme_islands,
.modal_ext.modal_theme_islands .modal__content {
	-webkit-animation: none !important;
	-moz-animation: none !important;
	-o-animation: none !important;
	-ms-animation: none !important;
	animation: none !important;
}
.popup_theme_islands.popup_direction_right-bottom,
.popup_theme_islands.popup_direction_right-center,
.popup_theme_islands.popup_direction_right-top {
	animation-name: none !important;
}
.modal_ext .modal__content {
	margin: 10px;
	border: none;
	border-radius: 2px;
	box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2), 0px 0px 5px rgba(0, 0, 0, 0.1);
}
.modal_ext {
	background: rgba(70, 51, 101, 0.5);
}
.modal_ext__title {
	font-size: 16px;
	font-weight: bold;
	margin-bottom: 10px;
}
.modal_ext .form__group:last-child {
	padding-bottom: 0;
}
.modal_strategy .modal-article__content,
.modal_strategy .modal__content {
	padding: 0;
}
.modal_strategy .modal-article__content {
    scrollbar-width: thin;
    /* не стилизуем цвет скроллбара и ползунка */
    /* чтобы не терять эффект ховера в блинк-браузерах */
}
.modal_strategy .modal-article__footer {
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/*popup-ext*/
.popup {
	border: none;
	box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2), 0px 0px 5px rgba(0, 0, 0, 0.1);
	border-radius: 2px;
}
.popup-ext__content {
	padding: 10px;
	border: none;
	box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2), 0px 0px 5px rgba(0, 0, 0, 0.1);
	border-radius: 2px;
}
.popup-ext__content_top:after {
	right: 100%;
	top: 50%;
	border-color: rgba(255, 255, 255, 0);
	border-right-color: #fff;
	margin-top: -8px;
}
.popup-ext__content_right:after {
	right: 50%;
	top: 100%;
	border-top-color: #fff;
	margin-right: -8px;
}
.popup-ext__content .table-light__options-item {
	display: block;
	margin-right: 0;
	margin-bottom: 10px;
}
.popup-ext__content .table-light__options-item:last-child {
	margin-bottom: 0;
}


.link_dots {
    position: relative;
    top: 3px;
    display: inline-block;
    margin: 0;
    width: 20px;
    height: 14px;
    line-height: 14px;
    cursor: pointer;
    border: 1px solid #888;
    text-align: center;
    border-radius: 2px;
    background-image: url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3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1LjYzNiwyNC45MDctNTUuNjM2LDU1LjYzNmMwLDMwLjcyOSwyNC45MDYsNTUuNjM2LDU1LjYzNiw1NS42MzYgICAgIEM1ODcuMDkzLDM2MS42MzYsNjEyLDMzNi43Myw2MTIsMzA2QzYxMiwyNzUuMjcsNTg3LjA5MywyNTAuMzY0LDU1Ni4zNjQsMjUwLjM2NHoiIGZpbGw9IiM4ODg4ODgiLz4KCQk8L2c+Cgk8L2c+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==);
    -webkit-background-size: 73%;
    background-size: 66%;
    background-position: center;
    background-repeat: no-repeat;
    outline: none !important;
}

.popup-info {
	font-size: 14px;
	line-height: 1.4;
	margin-bottom: 15px;
}
.popup-info p:first-child {
	margin: -10px -10px 10px -10px;
	padding: 10px;
	background: rgba(255, 219, 77, 0.5);
	border-radius: 2px 2px 0px 0px;
	font-weight: bold;
	color: #A46D00;
	margin-bottom: 10px;
}
.popup-info p:last-child {
	margin-bottom: 0;
}

/*tooltip-ext*/
.tooltip-ext__content {
	font-size: 12px;
	line-height: 1;
	color: #fff;
	padding: 2px 5px 4px;
	border: none;
	text-align: center;
	box-shadow: none;
	background: rgba(0, 0, 0, 0.7);
	border-radius: 2px;
	white-space: nowrap;
}
.tooltip-ext__content:after {
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-width: 6px;
}
.tooltip-ext__content_top:after {
	top: 100%;
	left: 50%;
	border-color: rgba(0, 0, 0, 0);
	border-top-color: rgba(0, 0, 0, 0.7);
	margin-left: -6px;
}
.tooltip-ext__link {
	cursor: pointer;
	text-decoration: none !important;
	outline: none;
}
.tooltip-ext__link:focus {
    outline: 0;
}




/*ui-dialog_formula*/
.ui-dialog_formula .ui-dialog-titlebar {
	display: none !important;
}
.ui-dialog_formula__content {
	padding: 10px 0;
}
.ui-dialog_formula__item {
	padding-right: 10px;
	padding-left: 10px;
}
.ui-dialog_formula__item p {
	font-size: 14px;
	margin-bottom: 5px;
}
.ui-dialog_formula__title {
	font-size: 16px;
	margin-bottom: 10px;
}
.ui-dialog_formula__sub-title {
	font-size: 14px;
	margin-bottom: 5px;
}

/*table-light_formula*/
.table-light_formula {
	margin-bottom: 15px;
}
.table-light_formula .table-light__head,
.table-light_formula .table-light__row {
	border-bottom: none;
}
.table-light_formula td {
	padding: 0;
}
.table-light_formula .table-light__head-text,
.table-light_formula .table-light__row-item {
	padding: 10px;
}
.ui-dialog_formula .ui-dialog-buttonpane .ui-close-modal_action {
	margin-right: 6px;
}

.ui-dialog_formula .ui-dialog-buttonpane .ui-close-modal_link {
	float: right;
	padding-right: 0;
	padding-left: 0;
	border: none !important;
	background-color: transparent !important;
}

.ui-dialog_formula .ui-dialog-buttonpane .ui-close-modal_link .ui-button-text {
	font-size: 13px;
	color: #0054b9;
	text-decoration: underline;
}
.ui-dialog_formula .ui-dialog-buttonpane .ui-close-modal_link:hover .ui-button-text {
	color: #E50000;
}


/*campaigns-list*/
#campaign_copy_dialog {
	padding: 0 10px;
}
#campaign_copy_dialog p {
	color: #888;
}
#campaign_copy_dialog + .ui-dialog-buttonpane button {
	margin-right: 5px;
}
#campaign_copy_dialog select[name="client"] {
	margin-right: 5px;
}
/* rewrite main.css */
.campaign-copy-dialog__select,
.campaign-copy-dialog__input {
	margin: 3px 0;
	padding: 0 5px;
	height: 28px;

    font-size: 14px;
    font-family: 'Exo 2', sans-serif;
	line-height: 28px;
	border: 1px solid rgba(0,0,0,.2);
	border-radius: 2px;
}
/* /rewrite main.css */

@media (max-width: 567px) {
	.ui-dialog .ui-dialog-buttonpane .ui-button {
		line-height: 36px;
		width: 100%;
		height: 36px;
		margin: 0 0 10px 0;
	}
}
@media (max-width: 991px) {
	.ui-dialog {
		position: fixed !important;
		width: 100% !important;
		height: 100vh !important;
		min-height: 100vh !important;
		max-height: 100vh !important;
		z-index: 1010 !important;
		top: 0 !important;
		bottom: 0 !important;
		right: 0 !important;
		margin: 0;
		border-radius: 0;
	}
	.ui-dialog-content {
		width: 100% !important;
		height: 100% !important;
	}
	.ui-dialog-titlebar,
	.ui-dialog-buttonpane {
		position: fixed;
		left: 0;
		right: 0;
		width: 100%;
	}
	.ui-dialog-titlebar {
		top: 0;
	}
	.ui-dialog-buttonpane {
		bottom: 0;
	}
}






/*histogram-indicator*/
.pos-stats__modal .histogram-indicator {
	width: 112px !important;
}
.histogram-indicator__item {
	display: block;
}
.histogram-indicator .tooltip-ext {
	float: left;
}
.tooltip-ext_mark .tooltip-ext__link {
	font-size: 8px;
	color: #888;
	line-height: 10px;
	text-align: center;
	display: inline-block;
	width: 12px;
	height: 12px;
	border: 1px solid #888;
	border-radius: 50%;
}


/*pos-stats*/
.modal_pos .modal__content {
    width: 450px;
}
@media (max-width: 479px) {
	.modal_pos .modal__content {
		width: 300px;
	}
}
.modal_pos .modal__title {
	margin-bottom: 0;
}
.modal_pos .histogram-indicator__label .text-colon {
    display: none;
}
.pos-stats__modal .histogram-indicator__label,
.pos-stats__modal .histogram-indicator__value {
	display: none;
}
.modal_pos .tooltip-ext {
	float: none;
	margin-bottom: 2px;
}
.histogram-indicator .tooltip-ext__link {
	display: inline-block;
}
.modal_pos .histogram-indicator .tooltip-ext__link {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
}
.modal_pos .histogram-indicator__label,
.modal_pos .histogram-indicator__value {
        float: left;
	padding-right: 3px;
	font-size: 9px;
	line-height: 1;
        white-space: nowrap;
}
.modal_pos .histogram-indicator__label {
    width: 18%;
}
.modal_pos .histogram-indicator__value {
    width: 12%;
	text-align: right;
}
.modal_pos .histogram-indicator__track {
        overflow: hidden;
	position: relative;
	float: right;
	display: block;
	width: 70%;
	height: 10px;
	background-color: #F2F2F2;
	text-align: left;
}
.modal_pos .histogram-indicator__track:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    margin: auto;
    width: 100%;
    height: 100%;
    background: transparent !important;
}
.pos-stats .link_pos {
	visibility: hidden;
	font-size: 9px;
	color: #888;
	margin-top: 2px;
}
.pos-stats:hover .link_pos {
	visibility: visible;
}
.pos-stats .link_pos:hover,
.pos-stats .link_pos:focus,
.pos-stats .link_pos:active {
	color: #E50000;
	outline: none;
}

.pos-stats__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pos-stats__item {
	margin-bottom: 15px;
}
.pos-stats__title {
	margin: 0 0 5px;
}
.pos-stats__title:after {
    clear: both;
    content: "";
    display: block;
}
.pos-stats__sub-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    float: left;
}
.pos-stats__sub-title--right {
    width: 70%;
}
.pos-stats__sub-title--left {
    width: 30%;
}


/*rotate*/
.rotate-180 {
	-moz-transform: scale(1) rotate(180deg) translateX(0px) translateY(0px) skewX(0deg) skewY(0deg);
	-webkit-transform: scale(1) rotate(180deg) translateX(0px) translateY(0px) skewX(0deg) skewY(0deg);
	-o-transform: scale(1) rotate(180deg) translateX(0px) translateY(0px) skewX(0deg) skewY(0deg);
	-ms-transform: scale(1) rotate(180deg) translateX(0px) translateY(0px) skewX(0deg) skewY(0deg);
	transform: scale(1) rotate(180deg) translateX(0px) translateY(0px) skewX(0deg) skewY(0deg);
}


.spent_total {
	display: none;
}






/* To top button styles */
.arrow-up {
	height: 20px;
	width: 3px;
	background-color: #ffcc19;
	position: relative;
}
.arrow-up:before,
.arrow-up:after {
	content: '';
	position: absolute;
	width: 3px;
	height: 10px;
	background-color: #ffcc19;
}
.arrow-up:before {
	transform: rotate(45deg);
	left: -4px;
}
.arrow-up:after {
	transform: rotate(-45deg);
	right: -4px;
}

.to-top {
	position: fixed;
	bottom: 50px;
	right: 50px;
	width: 50px;
	height: 50px;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	border-radius: 50%;
	background-color: #4D3A73;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 1001;
}
.to-top.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}
@media (max-width: 767px) {
	.to-top {
		display: none;
	}
}

/* To top button styles */
