html{
    font-family: Verdana, sans-serif;
    color: #444;
    font-size: 13px;
    overflow: hidden;
}
body{
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0px;
    background-color: #FEFEFE;
}
table, select, textarea, input, button{
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}
a{
    color: #00D;
}
*{
    box-sizing: border-box;
}

/*================================================Разное=============================================*/

.icon{
	width: 26px;
	vertical-align: middle;
}

/*Кнопки*/
.button{
    cursor: pointer;
    text-decoration: none;
}
button.button, input.button{
    margin: 0;
    overflow: visible;
    font: inherit;
    text-transform: none;
    display: inline-block;
    vertical-align: middle;
    min-height: 26px;
    min-width: 28px;
    text-decoration: none;
    text-align: center;
    border: 1px solid #ccc;
    box-sizing: border-box;
    background-origin: border-box;
    background-image: linear-gradient(to bottom, #f5f5f5, #e5e5e5);
    border-radius: 3px;
    text-shadow: 0 1px 0 #fff;
}
button.button:focus, input.button:focus{
    transition: .2s;
    outline: 0;
}
button.button:hover, input.button:hover{
    color: #444;
    background-color: #eee;
    border-color: #bbb;
    transition: .2s;
}
button.button:active, input.button:active{
    background-color: #f5f5f5;
    color: #666;
    border-color: rgba(0,0,0,.2);
    border-top-color: rgba(0,0,0,.3);
    background-image: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,.1);
}

/*Кнопка*/
a.button .fa{
    color: #666;
}
a.button:focus .fa{
    outline: 0;
}
a.button:hover .fa{
    color: #444;
}

/*Кнопка*/
a.button{
    text-decoration: none;
}
a.button:hover{
    text-decoration: underline;
}

/*Summary*/
summary{
    outline: none;
    cursor: pointer;
}
fieldset{
   border: 1px solid #E5E5E5;
   border-radius: 3px;
}

/*AJAX*/
#ajax{
    display: none;
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    background-repeat: no-repeat;
    background-image: url('image/ajax-active.gif');
    z-index: 9999;
}
#modalwindow{
    background-color: whitesmoke !important;
    border-color: #DDD !important;
}

/*Аватар*/
img.avatar{
    width: 52px;
    height: 52px;
    border-radius: 30px;
    border: 1px solid #bbb;
}

/*Формат вывода с типом*/
.format small{
    color: #777;
}
.overflow{
    overflow: auto;
}
.nowrap{
    white-space: nowrap;
}

/*=================================================Навигация============================================*/
nav ul{
  list-style: none;
  margin: 0px;
  padding: 0px;
  z-index: 100;
  line-height: 30px;
}
nav button.nav{
  display: none;
  margin: 5px 0px;   
  padding: 0px;
}
nav li{
  transition: .2s;
  cursor: default;
}
nav a{
   line-height: inherit;
   color: inherit;
   text-decoration: none;
}
nav a:hover{

}

/*Основное меню*/
nav > ul > li:first-child{
	border-left: 1px solid #DDD;
}
nav > ul > li{
	border-right: 1px solid #DDD;
	display: inline-block;
	background-color: rgb(230, 230, 230);
	padding: 0px 10px;
}
nav > ul > li:hover{
	background-color: rgb(240, 240, 240);
}

/*Выпадающее*/
nav ul > li > ul{
    display: none;
    width: max-content;
    text-align: initial;
    border: 1px solid #DDD;
    margin-left: -11px;
    position: absolute;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
nav ul > li > ul li{
    padding: 0px 10px;
    background-color: rgb(240, 240, 240);
}
nav ul > li > ul li:hover{
    background-color: rgb(230, 230, 230);
}
nav ul > li > ul > li ul{
    box-shadow: 5px 5px 10px rgba(0,0,0,0.1);
}

/*Субменю*/
nav ul > li > ul li.arrow{
    padding-right: 2em;
}

nav span.arrow{
    position: absolute;
    right: 0.5em;
}
nav i.fa{
    width: 20px;
    text-align: center;
}

/*=================================================Формы============================================*/
.form-group, .form-submit{
	padding: 5px 0px;
}
.form-label{

}
.form-input{
    box-sizing: border-box;
    border: 1px solid #E5E5E5;
    background: #fff;
    padding: 5px;
    min-height: 30px;
}
span.form-input, div.form-input{
    min-height: 30px;
}
input.form-input{
    padding: 5px;
}
textarea.form-input{
    min-height: 56px;
    resize: vertical;
}
select.form-input{
    padding: 4px 5px;
}
select.form-input[multiple]{
    resize: vertical;
}
select.form-input[multiple] > option{
    padding: 2px 4px;
}
input.form-input[type=radio]{
    margin-left: 0px;
    vertical-align: middle;
    margin: 3px 0px;
}
input.form-input[type=checkbox]{
    width: 1em !important;
    height: 1em !important;
    margin: unset;
}

.form-input:disabled, span.form-input, div.form-input{
        border-color: #E5E5E5 !important;
	background-color: #f5f5f5;
        color: #888;
}
.form-input:focus{
        outline: 0;
}
.form-input:hover{
        border-color: #D5D5D5;
}
.form-submit{
	text-align: center;
}
span.form-input, div.form-input{
	word-wrap: break-word;
}

/*Вертикальная форма, горизонтальынй label input*/
.form-vertical2 .form-group{
	display: flex;
	align-items: center;
}
.form-vertical2 label, .form-vertical2 button{
    margin: 0px 10px;
}
.form-vertical2 .form-label{
    width: 200px;
    text-align: right;
}
.form-vertical2 .form-input:not([type=checkbox]):not([type=radio]){
    width: 250px;
}

/*Вертикальная форма, вертикальный label input*/
.form-vertical .form-label{
	margin-bottom: 2px;
}
.form-vertical .form-group > * {
	display: block;
}
.form-vertical .form-input, .form-vertical .form-label{
	width: 100%;
}

/*Анимация полей ввода*/
@keyframes success{
    50%{
	background-color: #dff0d8;
	border-color: #6dd86f;
    }
}
@keyframes warn{
    50%{
	background-color: #edf0d8;
	border-color: #d6d86d;
    }
}
@keyframes error{
    50%{
	background-color: #f0d8d8;
	border-color: #d86d6d;
    }
}
.form-input.success{
    animation: success 1s;
}
.form-input.warn{
    animation: warn 1s;
}
.form-input.error{
    animation: error 1s;
}
/*=================================================Таблицы============================================*/

/*Таблицы*/
.table{
    text-align: initial;
    background-color: white;
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}
table thead td{
    background-color: #F1F1F1;
    text-align: center;
}

table tr{
    height: 32px;
}
table td{
    padding: 5px;
    border: 1px solid #DDD;
}
table td.datetime{
    width: 90px;
}

/* не четная строка таблицы*/
table tbody tr:nth-child(2n+1){ background-color: #FAFAFA !important; }

/* четная строка таблицы */
table tbody tr:nth-child(2n){ background-color: #FDFDFD !important; }

/*==============================================Части странницы==========================================*/


div#head{
    display: flex;
    background-color: whitesmoke;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #DDD;
    padding: 0px 5px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}	
main#main{
    padding: 15px 0px;
    overflow-y: auto;
}

/*================================================Десктопная версия========================================*/
.margin-vert{
    margin: 10px 0px;
}
.margin-hor{
    margin: 0px 10px;
}

.mainView, .editView{
    display: flex;
}
.mainView > *, .editView > *{
    padding: 0px 10px;
}
.mainView > *:last-child, .editView > *:last-child{
    width: 100%;
}
.mainView > .filter{
    width: 280px;
    padding-bottom: 10px;
}


/*=================================================Мобильная версия========================================*/

.mobile *{
    font-size: 15px;
}
.mobile .form-input{
    min-height: 32px;
}
.mobile a.button{
    min-height: auto;
}
.mobile .button{
    min-height: 30px;
    min-width: 30px;
}
.mobile .mainView, .mobile .editView{
    display: block;
    padding: 0px;
}
.mobile .mainView > *:not(:last-child), .mobile .editView > *:not(:last-child){
    padding-bottom: 10px;
}
.mobile .mainView > *:not(:first-child), .mobile .editView > *:not(:first-child){
    padding-top: 10px;
}
.mobile .mainView > .filter{
    width: 100%;
}
.mobile .editView .form-group{
    display: block;
}
.mobile .editView .form-group > *{
    display: block;
    margin: 5px 0px;
}
.mobile .editView .form-input:not([type=checkbox]):not([type=radio]){
    width: 100% !important;
    margin: 0px;
}
.mobile .editView .form-label{
    width: 100% !important;
    margin: 0px;
    text-align: initial;
}

.mobile .table thead td{
}
.mobile .table td{
}
.mobile .editView{
    display: block;
}
/*==========================================Модальное окно==============================*/
/*
.mobile #modalwindow{
    max-width: calc( 100% - 20px );
    max-height: calc( 100% - 20px );
}
.mobile #modalwindow .data{
    overflow: auto;

}
*/
/*==========================================Навиагция===================================*/
.mobile nav button.nav{
    margin: 5px 0px;   
    padding: 0px;
    display: block;
    width: 35px;
    height: 35px;
}

.mobile nav span.arrow{
    display: none;
}
.mobile nav ul{
    position: absolute;
    display: none;
    left: 0px !important;
    border: 0px;
    box-shadow: none;
}
.mobile nav ul, .mobile nav li{
    background-color: rgb(230, 230, 230) !important;
}
.mobile nav > ul{
    border-bottom: 1px solid #d2d2d2 !important;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.05);
    min-width: 70%;
    height: calc( 100% - 45px );
    overflow: auto;
}
.mobile nav > ul ul{
    margin: unset;
    position: static;
    padding: 0px 15px !important;
}
.mobile nav li{
    border: none !important;
    line-height: 40px;
    display: block;
}




/*===========================================================================================*/
.tag-value{
    width: 250px;
}
.tag-value .form-input{
    width: 100% !important;
}

@media print {
    #main { 
	display: contents; 
	padding: unset !important;
	margin: unset !important;
	overflow: hidden !important;
    }
    html { 
	overflow: hidden; 
    }

    div#head, div.filter, div.point-top, div.point-bottom, svg #background {
	display: none;
    }

    div#point-data{
	display: block !important;
    }
    div#map{
	display: block !important;
	height: 100vh !important;
	width: 100vw !important;
	padding: unset !important;
	margin: unset !important;
    }
    div#map .leaflet-control-container{
	display: none;
    }
}
