
[role=gridcell],[role=textbox],.ui-keyboard-button[role=button] { font-family: Calibri light !important; }
audio{
	vertical-align:middle;
}
fieldset{
    border: 1px solid #C8D5E2;
    border-radius: 2px;
    padding-top: 0px;
    padding-bottom: 0px;
    z-index: 500;
    position: relative;
	margin-right:5px;
}
legend{
	font-style: italic;
    color: #4b5563;
    margin: 0 !important;
	font-size:12px !important;
}
textarea{
	width:100%;
}
.ui-jqgrid-btable a:hover{
	text-decoration: underline;
}
html {
    position: relative;
    min-height: 100%;
}
body {
    margin: 0 0 20px; /* bottom = footer height */
}
footer {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 20px;
    width: 100%;
}
.footer-content {
    min-height: 100%;
    background-color: #DDF;
}
footer a{
	color: orange !important;
}

.ui-tabs-panel {padding:0px !important;}

.ui-pg-table td[align=left]{
 display:block;
}
textarea[name=translation]{
	font-size:14px !important;
}
.error{
	color:red;
}
#lang_atlas{
    width: 100%;
    display: inline-block;
}
#map {
	width: 80%;
	height: 400px;
	float:left;
}
#map_info, #map_tooltip {
	width: 20%;
	float:right;
	font-size:12px;
}
#map_tooltip{
	width: 18%;
	position:absolute;
	right:0px;
	top:0px;
	font-size:10px;
	background:#ffffee;
	border-radius:3px;
	border: 1px solid silver;
	box-shadow: 4px 4px 10px 1px rgba(0,0,0,0.5);
}

.box{
	border-radius:3px;
	border: 1px solid silver;
	box-shadow: 4px 4px 5px 1px rgba(0,0,50,0.1);
	margin:5px;
	font-size:12px;
}

.switch-wrapper {
  display: inline-block;
  position: relative;
  top: 3px;
  padding-left:5px;
  padding-right:5px;
}

 .ui-autocomplete-loading {
    background: white url("images/ui-anim_basic_16x16.gif") right center no-repeat;
  }
fieldset input{
	margin:5px;
}
.ui-autocomplete{
	z-index:1000 !important;
}
.filter_elem {
	display:inline-block;
}

#dialog_textareas textarea {
 
    height: 100%;
}
.ui-jqgrid tr.jqgrow td{
	height:auto;
}

.tabs-left {
    position: relative;
    padding-left: 9em;
}
.tabs-left .ui-tabs-nav {
    position: absolute;
    left: 0.25em;
    top: 0.25em;
    bottom: 0.25em;
    width: 8.5em;
    padding: 0.2em 0 0.2em 0.2em;
}
.tabs-left .ui-tabs-nav li {
    right: 1px;
    width: 100%;
    border-right: none;
    border-bottom-width: 1px !important;
    -moz-border-radius: 4px 0px 0px 4px;
    -webkit-border-radius: 4px 0px 0px 4px;
    border-radius: 4px 0px 0px 4px;
    overflow: hidden;
}
.tabs-left .ui-tabs-nav li.ui-tabs-selected,
.tabs-left .ui-tabs-nav li.ui-state-active {
    border-right: 1px solid transparent;
}
.tabs-left .ui-tabs-nav li a {
    float: right;
    width: 100%;
    text-align: right;
}

/* Force limit for allomorph table height to stop 1000px+ explosion */
#gview_allom_table .ui-jqgrid-bdiv {
    height: 150px !important;
    max-height: 150px !important;
}

/* Highlight "New" buttons in grids */
.ui-pg-button[title="Новый"], 
.ui-pg-button[title="Создать"],
.ui-pg-button[title="Новая лексема"],
.subgrid-edit-button.ui-button {
    background: #5fa052 !important;
    color: #fff !important;
    border: 1px solid #4d8a41 !important;
    font-weight: 600 !important;
    padding: 3px 10px !important;
    border-radius: 4px !important;
    margin-left: 6px !important;
    transition: all 0.2s;
}

.ui-pg-button[title="Новая лексема"] {
    background: #5fa052 !important;
    font-size: 12px !important;
}

.ui-pg-button[title="Новый"]:hover, 
.ui-pg-button[title="Новая лексема"]:hover {
    background: #4d8a41 !important;
}

.ui-pg-button[title="Новый"] .ui-icon,
.ui-pg-button[title="Новая лексема"] .ui-icon {
    background-image: url(/css/orange/images/ui-icons_ffffff_256x240.png) !important;
}

.ui-dialog-content {
    overflow: hidden !important;
}
.ui-dialog-content > table {
    margin-bottom: 10px;
}
#dialog_textareas {
    margin-top: 15px;
    box-sizing: border-box;
}
.tabs-left .ui-tabs-panel {
    padding: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
}
.tabs-left .ui-tabs-panel > textarea {
    width: 100%;
    height: 100%;
    margin: 0;
    resize: none;
    box-sizing: border-box;
    padding: 10px;
}

/*compact*/
.compact .navbar {
	margin-bottom: 0px;
	clear:both;
}
.compact .navbar-header {
	height:20px;
}
.compact .filter_elem {
	display:block;
	width:200px;
}
.compact .filter_elem input, .compact .filter_elem label{
	width:90%;
	text-align:left;
}
.compact #filter_panel button{
	width:90%;
	text-align:center;
}


.compact #filter_panel{
	float:left;
	clear:right;
	width:204px;
}

.compact #map{
	position:absolute;
	left:204px;
	right:280px;
	width: auto;
	height: 550px;
}
.compact #map_info {
	width: 300px;
	height:550px;

	background: url(images/hmaobg.jpg);
background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.27) 100%), url(bg.png) repeat 0 0, url(images/hmaobg.jpg); repeat 0 0;

background: -moz-linear-gradient(top, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.27) 100%), url(images/hmaobg.jpg); repeat 0 0;

background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.98)), color-stop(100%,rgba(255,255,255,0.27))), url(images/hmaobg.jpg); repeat 0 0;

background: -webkit-linear-gradient(top, rgba(255,255,255,0.98) 0%,rgba(255,255,255,0.27) 100%), url(images/hmaobg.jpg); repeat 0 0;

background: -o-linear-gradient(top, rgba(255,255,255,0.98) 0%,rgba(255,255,255,0.27) 100%), url(images/hmaobg.jpg); repeat 0 0;

background: -ms-linear-gradient(top, rgba(255,255,255,0.98) 0%,rgba(255,255,255,0.27) 100%), url(images/hmaobg.jpg); repeat 0 0;

background: linear-gradient(to bottom, rgba(255,255,255,0.98) 0%,rgba(255,255,255,0.27) 100%), url(images/hmaobg.jpg); repeat 0 0;

    background-position:1300px 0px;

 -webkit-animation:300s scroll infinite linear;
  -moz-animation:300s scroll infinite linear;
  -o-animation:300s scroll infinite linear;
  -ms-animation:300s scroll infinite linear;
  animation:300s scroll infinite linear;
                       
}
.compact #map_info>div{
	background:white;
	opacity:0.9;
	border: 1px solid silver;
	border-radius:5px;
	margin:1px;
	box-shadow:2px 2px 2px gray;
}

@-webkit-keyframes scroll{
  100%{
    background-position:-3000px 0px;
  }
}

@-moz-keyframes scroll{
  100%{
    background-position:-3000px 0px;
  }
}

@-o-keyframes scroll{
  100%{
    background-position:-3000px 0px;
  }
}

@-ms-keyframes scroll{
  100%{
    background-position:-3000px 0px;
  }
}

@keyframes scroll{
  100%{
    background-position:-3000px 0px;
  }
}


.compact .tabs-min { 
    background: transparent; 
    border: none; 
} 
.compact .tabs-min .ui-widget-header { 
    background: transparent; 
    border: none; 
    border-bottom: 1px solid #c0c0c0; 
    -moz-border-radius: 0px; 
    -webkit-border-radius: 0px; 
    border-radius: 0px; 
} 
.compact .tabs-min .ui-tabs-nav .ui-state-default { 
    background: transparent; 
    border: none; 
} 
.compact .tabs-min .ui-tabs-nav .ui-state-active { 
    background: transparent url(images/uiTabsArrow.png) no-repeat bottom center; 
    border: none; 
} 
.compact .tabs-min .ui-tabs-nav .ui-state-default a { 
    color: #c0c0c0; 
} 
.compact .tabs-min .ui-tabs-nav .ui-state-active a { 
    color: #459e00; 
}

.compact .tabs-left { 
    position: relative; 
    padding-left: 8.5em; 
} 
.compact .tabs-left .ui-tabs-nav { 
    position: absolute; 
    left: 0.25em; 
    top: 0.25em; 
    bottom: 0.25em; 
    width: 8em; 
    padding: 0.2em 0 0.2em 0.2em; 
} 
.compact .tabs-left .ui-tabs-nav li { 
    right: 1px; 
    width: 100%; 
    border-right: none; 
    border-bottom-width: 1px !important; 
    -moz-border-radius: 4px 0px 0px 4px; 
    -webkit-border-radius: 4px 0px 0px 4px; 
    border-radius: 4px 0px 0px 4px; 
    overflow: hidden; 
} 
.compact .tabs-left .ui-tabs-nav li.ui-tabs-selected, 
.compact .tabs-left .ui-tabs-nav li.ui-state-active { 
    border-right: 1px solid transparent; 
} 
.compact .tabs-left .ui-tabs-nav li a { 
    float: right; 
    width: 100%; 
    text-align: right; 
} 
.compact .tabs-left .ui-tabs-panel { 
    height: 22em; 
}
.compact .ui-jqgrid-hdiv {
	width:100%;
}
.compact .navbar-right, .compact .navbar-collapse {
	display:flex !important;
}
.compact .navbar-default{
    display: inline-table;
    width: 100%;
    position: absolute;
    top: 0;
}

.compact .ui-tabs .ui-tabs-nav li{
	line-height:29px;
}
.compact .navbar-logo {

content: url(images/logo.png)
}

.compact .navbar-brand{
    padding: 6px 15px;
    color:#00923f;
}
.compact .navbar-brand small{
    color:#25136d;
}

.nofilter #map{
	left:0px !important;
}
.nofilter #filter_panel{
	display:none !important;
}
#nofilterbutton{
    position: absolute;
    z-index: 15000;
    margin-left: -18px;
    margin-top: 105px;
}
.nofilter #nofilterbutton{
    margin-left: 0px;
}

#filter_find_btn.is-loading {
	opacity: 0.7;
}

#map_info.map-info-loading {
	position: relative;
	min-height: 60px;
}

#map_info .map-info-loading-text {
	padding: 12px;
	font-weight: 600;
	color: #374151;
}

/* mobile-pass: minimal responsive overrides without desktop layout changes */
@media (max-width: 1024px) {
	.compact #filter_panel {
		float: none;
		width: 100%;
		padding: 8px;
	}

	.compact .filter_elem {
		display: block;
		width: 100%;
		margin-bottom: 6px;
	}

	.compact .filter_elem input,
	.compact .filter_elem label,
	.compact #filter_panel button {
		width: 100%;
	}

	.compact #map {
		position: relative;
		left: auto;
		right: auto;
		width: 100%;
		height: 50vh;
		min-height: 320px;
	}

	.compact #map_info,
	.compact #map_tooltip {
		margin: 8px auto;
		height: auto;
		position: relative;
		right: auto;
		top: auto;
		font-size: 13px;
		float: none;
	}

	.compact .navbar-brand {
		font-size: 16px;
		line-height: 1.2;
	}

	.compact .navbar-brand small {
		display: block;
		font-size: 11px;
	}
}

@media (max-width: 640px) {
	.compact #map {
		height: 42vh;
		min-height: 260px;
	}

	.compact #map_info,
	.compact #map_tooltip {
		width: 61%;
		height: 42%;
	}

	.compact #map_info.map-info-mobile-corner {
		position: absolute;
		right: 8px;
		bottom: 8px;
		margin: 0;
		z-index: 1200;
	}

	.compact .navbar-default {
		position: sticky;
		top: 0;
		z-index: 2100;
		background: #ffffff;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	}

	.compact .navbar-brand {
		display: block;
		max-width: calc(100% - 72px);
		padding: 12px 10px;
		font-size: 14px;
		line-height: 1.2;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.compact .navbar-brand small {
		display: none;
	}

	.compact .navbar-toggle {
		display: block !important;
		margin-top: 8px;
		margin-right: 10px;
		border-color: #d1d5db;
	}

	.compact .navbar-collapse {
		display: none !important;
		clear: both;
		background: #fff;
		border-top: 1px solid #e5e7eb;
	}

	.compact .navbar-collapse.in {
		display: block !important;
	}

	.compact .navbar-nav,
	.compact .navbar-nav.navbar-left,
	.compact .navbar-nav.navbar-right {
		display: block !important;
		float: none !important;
		margin: 0;
	}

	.compact .navbar-nav > li {
		float: none !important;
		display: block;
		width: 100%;
	}

	.compact .navbar-nav > li > a {
		display: block;
		width: 100%;
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.compact .mobile-hide-login {
	        display: none !important;
	}
	}

	.text-uppercase {
	text-transform: uppercase !important;
	}
