@import url(https://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700|PT+Sans:400,400italic,700&subset=latin,cyrillic);

.chart-transparent { opacity: 0; }
.chart-title {
	font-family: 'PT Sans';
	font-size: 18px;
	font-weight: 700;
}
.dou-charts-mobile { display: none; }

.dou-chart .control-panel {
	display: flex;
	align-items: end;
	font-size: 14px;
	line-height: 16px;
	color: #000;
	margin-bottom: 24px;
}
.dou-chart .control-panel .ctrl-item {
	border-bottom: 1px dashed #000;
	margin-right: 21px;
	cursor: pointer;
}
.dou-chart .control-panel .ctrl-item:hover {
	color: #f93703;
	border-bottom-color: #f93703;
}
.dou-chart .control-panel .ctrl-item.active {
	font-weight: bold;
	border-bottom: none;
	pointer-events: none;
}

#table-tooltip {
	font-size: 14px;
	line-height: 18px;
	font-weight: 400;
	pointer-events: none; 
	background: white;
	color: #000;
	position: absolute;
	padding: 2px 8px 3px;
	display: none;
	z-index: 1000;
	border-radius: 2px 2px 2px 0px;
}
#table-tooltip .tt-corner {
	width: 9px;
	height: 9px;
	position: absolute;
	top: 100%;
	left: 0px;
}
#table-tooltip.right { border-radius: 2px 2px 0px 2px; }
#table-tooltip.right .tt-corner { transform: scaleX(-1); }

.doutable-emprating {
	display: flex;
	flex-direction: row;
	margin: 30px 0;
}
.doutable-emprating .gr-col {
	display: flex;
	flex-direction: column;
	flex: none;
	margin-right: 20px;
}
.doutable-emprating .gr-col .gr-col-head {
	font-size: 18px;
	line-height: 24px;
	font-weight: 400;
}
.doutable-emprating .gr-col .gr-item {
	display: flex;
	flex-direction: row;
	align-items: center;
	margin: 12px 0;
}
.doutable-emprating .gr-col .gr-item svg {
	width: 24px;
	height: 24px;
	margin-right: 15px;
}
.doutable-emprating .gr-col .gr-item svg * { pointer-events: none; }
.doutable-emprating .gr-col .gr-item a {
	display: inline-block;
	width: 140px;
	font-size:  20px;
	line-height: 26px;
	text-decoration: none;
	color: black;
	/* white-space: nowrap; */
}
.doutable-emprating .gr-col .gr-item a:hover {
	color: #f93703;
	text-decoration-line: none;
}

#dou-employers-rating-historical { margin: 30px 0; }
#dou-employers-rating-historical .control-panel { margin-left: 174px; }
#dou-employers-rating-historical .wrapper { display: flex; }
#hist-table .thead {
	display: flex;
	font-size: 14px;
	line-height: 16px;
	margin-bottom: 20px;
	position: sticky;
	top: 0;
	padding: 0 0 5px;
	background: #fff;
}

#hist-sort-switch {
	display: flex;
	align-items: center;
	position: relative;
}
#hist-sort-switch .item { 
	cursor: pointer; 
}
#hist-sort-switch .item:hover { color: #f93703; }
#hist-sort-switch .item:first-child { margin-right: 10px; }
#hist-sort-switch .active {
	font-weight: bold;
	pointer-events: none;
}

#hist-sort-switch .arrow {
	height: 6px;
	width: 8px;
	margin: 2px 0 0 4px;
	cursor: pointer;
	transition: transform .5s;
}

#hist-sort-switch.visible .arrow { transform: rotate(180deg); }
#ht-button {
	display: inline-block;
	font-size: 14px;
	line-height: 16px;
    border-bottom: 1px dashed #000;
    margin-top: 20px;
    cursor: pointer;
}
#ht-button:hover {
	color: #f93703;
	border-bottom-color: #f93703;
}

#hist-sort-switch .arrow path { fill: #000; }
#hist-table .thead .time-series { color: #999; background: #fff; }
#hist-table .thead .time-series,
#hist-table .row .time-series {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 520px;
}
#hist-table .row { margin-bottom: 15px; }
#hist-table .time-series .ts-item { width: 40px; text-align: center; }
#hist-table .thead .name { width: 140px; margin-right: 15px; padding: 2px 0 3px; background: #fff; }
#hist-table .row, #hist-table .row .name { display: flex; align-items: center; }
#hist-table .row .name { align-items: center; margin-right: 15px; }
#hist-table .row .name .mark {
	width: 9px;
	height: 9px;
	margin: 2px 8px 0 0;
	border-radius: 100%;
	cursor: help;
}
#hist-table .row .name .label {
	display: inline-block;
	width: 140px;
	font-size: 20px;
	line-height: 26px;
	text-decoration: none;
	color: #000;
}
#hist-table .row .name .label:hover {
	color: #f93703;
	text-decoration-line: none;
}
#hist-table .row .time-series .ts-item { height: 24px; }
#hist-table .row .time-series svg {
	width: 24px;
	height: 24px;
}
#hist-table .row .time-series .ts-item svg.zero circle { fill: #bbb; }
#hist-table .row .time-series svg * { pointer-events: none; }
#hist-legend {
	display: flex;
	flex-direction: column;
}
#hist-legend .types-item {
	display: flex;
	align-items: center;
	font-size: 14px;
	line-height: 16px;
	color: #999;
	margin-bottom: 15px;
}
#hist-legend .types-item .mark {
	width: 9px;
	height: 9px;
	border-radius: 100%;
	margin:  2px 8px 0 0;
}

.table-details { display: flex; flex-direction: column; margin: 30px 0; }
.table-details .thead { margin-bottom: 20px; }
.table-details .thead, .table-details .thead .category-series { display: flex; }
.table-details .thead .cs-item { width: 35px; margin: 0 6px; }
.table-details .thead .cs-item:nth-child(2) { width: 48px; }
.table-details .thead svg {
	width: 17px;
	height: 16px;
	cursor: pointer;
}
.table-details .thead .category-series { color: #999; }
.table-details .thead .category-series,
.table-details .row .category-series {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.table-details .row { margin-bottom: 15px; }
.table-details .category-series .cs-item { width: 35px; margin: 0 6px; text-align: center; }
.table-details .row .category-series .cs-item { height: 35px; }
.table-details .row .category-series .cs-item:nth-child(2) { 
	width: 48px; 
	font-size: 20px;
	line-height: 26px;
	text-align: right;
	color: #A2A1A1;
	height: 30px;
	padding-top: 5px;
}
.table-details .thead .name { width: 157px; margin-right: 15px; }
.table-details .row, .table-details .row .name { display: flex; align-items: center; }
.table-details .row .name { align-items: center; margin-right: 15px; }
.table-details .row .name .mark {
	width: 9px;
	height: 9px;
	margin: 2px 8px 0 0;
	border-radius: 100%;
	cursor: help;
}
.table-details .row .name .label {
	display: inline-block;
	width: 140px;
	font-size: 20px;
	line-height: 26px;
	text-decoration: none;
	color: #000;
	/* white-space: nowrap; */
	word-break: normal;
}
.table-details .row .name .label:hover {
	color: #f93703;
	text-decoration-line: none;
}
.table-details .row .category-series svg {
	width: 35px;
	height: 35px;
}
/* .table-details .row .category-series .cs-item:first-child svg { cursor: help; } */
.table-details .row .category-series .cs-item:not(:nth-child(2)) svg { cursor: help; }
.table-details .row .category-series svg text {
	text-anchor: middle;
	font-size: 16px;
	fill: #000;
}
.table-details .row .category-series .sorted svg text,
.table-details .row .category-series .sorted.cs-item:nth-child(2) {
	font-weight: bold;
}

#ua-regions-map path {
	fill: #E6E6E6;
	stroke: #fff;
	stroke-width: 1px;
}

#map-companies .company circle { cursor: help; }
#map-companies .company text { fill: #000; cursor: help; }
#map-companies .company, #map-trophies .trophy { transition: opacity .25s; }
#map-trophies .trophy.fade { opacity: .2; }
#map-companies .company.fade { opacity: .3; }

#theme-switch { text-align: right; }
#theme-switch .wrapper { 
	display: inline-flex; 
	margin: 10px 0 25px; 
	padding: 4px;
	border-radius: 5px;
	background-color: rgba(29,120,114,.2);
	user-select: none;
}
#theme-switch div.item { 
	padding: 9px 20px 10px;
	border-radius: 3px;
	cursor: pointer; 
	text-transform: uppercase;
	letter-spacing: .15em;
	font-size: 12px;
	font-weight: bold;
	line-height: 16px;
	color: #003d37;
	opacity: .4;
}
#theme-switch div:hover { opacity: .7; }
.dark-mode #theme-switch div { color: #b3e5e1; }
#theme-switch div.active { 
	background-color: #06b9b1; 
	background: linear-gradient(#ffffff, #dff2f0);
	color: #03968e;
	opacity: 1;
	pointer-events: none; 
	box-shadow: 0 2px 3px -1px rgba(29,120,114,.8);
}
.dark-mode #theme-switch div.active {
	background: linear-gradient(#06b9b1, #1d7872);
	color: #fff;
	box-shadow: 0 2px 3px -1px rgba(0,0,0,.8);
}

html.dark-mode, body.dark-mode, .dark-mode .g-page { background-color: #202020; }

.dark-mode .b-typo,
.dark-mode .b-post-info,
.dark-mode .b-post-info .author .name a,
.dark-mode .doutable-emprating .gr-col .gr-item a,
.dark-mode #hist-table .row .name .label,
.dark-mode .dou-chart .control-panel .ctrl-item,
.dark-mode .table-details .row .name .label,
.dark-mode h4,
.dark-mode .b-footer,
.dark-mode .b-footer a { color: #f5f5f5; }

.dark-mode #hist-table .row .name .label:hover,
.dark-mode #hist-sort-switch .item:hover,
.dark-mode .table-details .row .name .label:hover,
.dark-mode .doutable-emprating .gr-col .gr-item a:hover { color: #999; }

.dark-mode .dou-chart .control-panel .ctrl-item, .dark-mode #ht-button { border-bottom-color: #fff; }

.dou-chart .control-panel .ctrl-item:hover,
.dark-mode #ht-button:hover { color: #999; border-bottom-color: #999; }

.dark-mode .pageviews { color: #202020; filter: invert(1); }
.dark-mode #hist-table .thead,
.dark-mode #hist-table .thead .name,
.dark-mode #hist-table .thead .time-series { background: #202020; }
.dark-mode #hist-sort-switch .arrow path { filter: invert(1); }
.dark-mode .table-details .row .category-series svg text { fill: #fff; }
.dark-mode .table-details .thead svg path { fill: #fff; }
.dark-mode #ua-regions-map path { fill: #444; stroke: #202020; }
.dark-mode .likely__widget { color: #fff!important; background: rgba(255,255,255,.1); border: none; }
.dark-mode .tg-banner { background: #2c2c2c!important; }
.dark-mode #map-companies .company text { fill: #fff; }

.dark-mode .b-head {background-color: #404040; overflow: hidden; }
.dark-mode .b-head li a.sel {background-color: #606060; color: #fff; }
.dark-mode .b-post-info .author {margin-left: 0;}
.b-post-info .author .g-avatar {display: none; }
.b-head li.m-hide {display:none!important;}

@media screen and (max-width:860px) {
	.doutable-emprating { flex-wrap: wrap; }
}

@media screen and (max-width:768px) {
	.dou-charts-desktop { display: none; }
	.dou-charts-mobile { 
		display: block; 
		margin: 0 15px 0 20px;
	}
	#hist-sort-switch { flex-wrap: wrap; }
}

@media screen and (max-width:740px) {
	.doutable-emprating { gap: 15px 30px; }
	.doutable-emprating .gr-col .gr-col-head { font-size: 14px; line-height: 20px; }
	.doutable-emprating .gr-col .gr-item { align-items: flex-start; }
	.doutable-emprating .gr-col .gr-item a { 
		width: 95px; 
		font-size: 16px;
		line-height: 22px; 
		white-space: normal;
	}
	
	#dou-employers-rating-historical .wrapper { flex-direction: column-reverse; }
	#dou-employers-rating-historical .control-panel { margin-left: 109px; }
	#hist-legend { flex-direction: row; margin-left: 109px; }
	#hist-legend .types-item { margin-right: 17px; }
	#hist-table .row .name .label { width: 75px; font-size: 16px; line-height: 22px; }
	#hist-table .thead .name { width: 75px; min-width: 75px; }
	#hist-sort-switch .item:first-child { margin-right: 0; }

	.table-details .thead .name { width: 92px; min-width: 92px; }
	.table-details .row .name .label { width: 75px; font-size: 16px; line-height: 22px; }
}

@media screen and (max-width:600px) { 

	#hist-legend .types-item { margin-right: 10px; }
}

@media screen and (max-width:450px) {
	
	#dou-employers-rating-historical .control-panel,
	#hist-legend { margin-left: 94px; }
	#hist-legend { flex-wrap: wrap; margin-bottom: 15px; }
	#hist-legend .types-item { margin-bottom: 5px; }
	#hist-table .thead .name { width: 77px; min-width: 77px; margin-right: 0; }
	#hist-table, .table-details { 
		overflow-y: hidden; 
		overflow-x: auto; 
		padding-bottom: 15px;
	}
	.table-details .thead .name { width: 88px; min-width: 88px; margin-right: 0; }
	#hist-table .row .name .label, 
	.table-details .row .name .label { width: 62px; font-size: 14px; line-height: 18px; }

	.table-details .row { margin-bottom: 5px; }
	.table-details .row .name .mark { width: 6px; height: 6px; margin-right: 5px; }
	.table-details .category-series .cs-item { width: 30px; margin: 0 4px; }
	.table-details .row .category-series .cs-item { width: 30px; height: 30px; }
	.table-details .row .category-series .cs-item svg { transform: scale(.85); }
	
	.table-details .thead .category-series .cs-item:nth-child(2) { width: 35px; }
	.table-details .row .category-series .cs-item:nth-child(2) { width: 35px; font-size: 16px; line-height: 22px; padding-top: 6px; height: 29px; }

}