/* Макет основных страниц - начало*/

*{
    box-sizing: border-box;
}
html, body {
    padding: 0;
    margin: 0;
    font-family: verdana, arial, sans-serif;
}

body {
    color: #010101;
    font-size: 1.1em;
    /*padding: 1em;*/
    display: flex;
    flex-direction: column;
    
}

main {
    display: flex;
    flex-direction: column;
}

article {
    background-color: #e5eaeb;
    flex: 2 2 60%;
    padding: 1em;
    height: calc(100vh - 100px);
    overflow: auto;
}

nav, aside {
    /*flex: 1;*/
    background-color: #e5eaeb;
    /*height: calc(100vh - 100px);*/
    
}

nav {
    order: -1;  
}
 
header {
    /*flex: 0 0 4em;*/
    height: 50px;
    background-color: #bfe0f0;
    border-bottom: 1px solid #0da7f4;
}
footer {
    /*flex: 0 0 3em;*/
    height: 50px;
    background-color: #bfe0f0;
    border-top: 1px solid #0da7f4;
    
}
.hi_user {
    display: flex;
    flex-direction: row;
    align-items: center;
    /*justify-content: space-between;*/
    width: auto;
    
    /*border: 1px solid #010101;*/
}
.user {
    padding-right: 30px;
}
.user a {
    display: block;
    text-decoration: none;
    padding: 7px;
    color: #585555a5;
    font-size: 20px;
    /*border: 1px solid #585555a5;*/
    border-radius: 5px;
}
.user a:hover {
    color: #0da7f4;
    border: 1px solid #0da7f4;
}
.user_quit {
    padding-right: 30px;
}
.user_quit a {
    display: block;
    text-decoration: none;
    padding: 3px;
    color: #585555a5;
    font-size: 28px;
    /*border: 1px solid #585555a5;*/
    border-radius: 5px;
}
.user_quit a:hover {
    color: #0da7f4;
    border: 1px solid #0da7f4;
}
@media screen and (min-width: 600px) {
     
    body{
        min-height: 100vh;
        width: 100%;
    }
    main {
        flex-direction: row;
        min-height: 100%;
        width: 100%;
        flex: 1 1 auto;
    }
    
}

/* Макет основных страниц - конец */

/* Стили блока меню вертикального - начало*/

ul.navmenu{
    margin-left: 5px;
    padding-left: 0px;
    list-style: none;
}
ul.navmenu a {
    display: block;
    width: auto;
    padding:10px;
    background-color: #e5eaeb;
    text-decoration: none;
    color: #010101;
}
ul.navmenu a:hover{
    background-color: #bfe0f0;
    border: 1px solid #0da7f4;
    color: #010101;
}



/* Стили блока меню вертикального - конец */

/* Стили блока header - начало */
.header_all {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 50px;
}
.header_left {
    padding-left: 50px;
    /*border: 1px solid #010101;*/
    font-size: 10px;
    color: #010101;
}
.header_center {
    /*border: 1px solid #010101;*/
    color: #010101;
}
.header_right {
    display: flex;
    flex-direction: row;
    /*align-items: center;*/
    width: auto;
    /*padding-right: 30px;*/
    /*border: 1px solid #010101;*/
    color: #010101;
}
/* Стили блока header - конец */

/* Стили блока footer - начало */
.footer_all {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 49px;
    /*border: 1px solid #010101;*/
}
.footer_left {
    display: flex;
    flex-direction: row;
    width: 300px;
    padding-left: 30px;
    /*border: 1px solid #010101;*/
    font-size: 14px;
    color: #010101;
    margin-right: 5px;
       
}
.footer_left p {
    margin-right: 5px;
}
.footer_center {
    width: 200px;
    /*border: 1px solid #010101;*/
    font-size: 14px;
    color: #585555a5;
       
}
.footer_right {
    width: 200px;
    padding-right: 50px;
    /*border: 1px solid #010101;*/
    font-size: 14px;
    color: #010101;
       
}
/*Пагинация в футере*/
.footer_right a {
    font-size: 22px;
    color: #010101;
    text-decoration: none;
    border: 1px solid #010101;
    border-radius: 5px;
    margin-left: 3px;
}
.footer_right a:hover {
    font-size: 22px;
    color: #0da7f4;
    text-decoration: none;
    border: 1px solid #0da7f4;
    border-radius: 5px;
    margin-left: 3px;
}
/*Пагинация в футере*/
/* Стили блока footer - конец */

/*Красная строка в тексте*/
.ks {
    text-indent: 50px;
    margin-top: 20px;
}
/*Красная строка в тексте*/

/* начало стиля таблицы вывода записей из базы */
.container_table {
	display: flex;
	height: calc(100vh - 214px);
	box-sizing: border-box;
	/*height: calc(100vh - 120px);*/
	width: 100%;
    margin-top: 20px;
	top: 0;
	left: 0;
	justify-content: start;
	overflow: auto;
}
.table{
	border-collapse: collapse;
	/*
	white-space: nowrap;  // не переносит слова*/

}
.table th {
	position: sticky;
	top: 0;
	height: 15px;
	font-weight: bold;
	font-size: 14px;
	padding: 5px 10px;
	background: #a09fa1fa;
	/*border: 1px solid #222;*/
	border: none;
	white-space: nowrap;
}
.table td[name="sh"]{
	white-space: nowrap;
}
.table td {
	font-size: 12px;
	padding: 5px 15px;
	border-left: 1px solid #a2a2a3fa;
	border-bottom: 1px solid #a2a2a3fa;
	text-align: left;
	
}

@media (min-device-width: 320px) and (max-device-width: 568px) {
	.table td {
		font-size: 14px;
		padding: 5px 15px;
		border-left: 1px solid #a2a2a3fa;
		border-bottom: 1px solid #a2a2a3fa;
		text-align: left;
		
	}
}
.table tbody tr:nth-child(odd){
	background: #fff;
}
.table tbody tr:nth-child(even){
	background: #F7F7F7;
}
.table td[name="center_column"]{
	text-align: center;
	
}
.blok_actions form{
    display: flex;
    flex-direction: row;
}
.blok_actions button[name="ok"]:hover{
    color: #010101;
    background-color: green;
}
.blok_actions button[name="del"]:hover{
    color: #010101;
    background-color: red;
}
.blok_actions button[name="no"]:hover{
    color: #010101;
    background-color: red;
}
/* конец стиля таблицы вывода записей из базы */

/* Начало стиля страницы регистрации пользователей */

.header_msg {
    height: 50px;
}
.container_reg {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
/*.reg_input {
    border: 1px solid #010101;
}*/
.reg_input input {
    width: 200px;
    height: 30px;
    margin-bottom: 5px;
    padding: 5px;
}
.reg_input button {
    width: 200px;
    height: 30px;
    margin-top: 10px;
    margin-bottom: 5px;
    padding: 5px;
    font-size: 14px;
	text-align: center;
	color: #010101;
	border: 1px solid #010101;
	border-radius: 3px;
	background: #fff;
	cursor: pointer;
	transition: 0,3s;
}
.reg_input button:hover {
	border: 1px solid #0da7f4;
    color: #0da7f4;

    /*background: #0da7f4;
	color: black;*/
}
.reg_input button[name="edit_r_del"]:hover {
	border: 1px solid red;
    /*background: red;*/
	color: red;
}
.table button[name="edit_r"]:hover {
    border: 1px solid #0da7f4;
    /*background: red;*/
	color: #0da7f4;
}
/* Конец стиля страницы регистрации пользователей */

/* Начало стиля формы добавления комментария done.php */

.new_comment {
    display: flex;
    flex-direction: row;
}
.new_comment textarea[name="new_comment_text"] {
    width: 700px;
    height: 50px;
    margin-right: 10px;
    padding: 5px 5px;
    box-sizing: border-box;
    border: 1px solid #010101;
    border-radius: 2px;
    background-color: #f8f8f8;
    font-size: 16px;
    resize: none;
}
.bb {
	height: 30px;
	width: 100px;
	margin-top: 10px;
	margin-right: 5px;
	margin-left: 10px;
	margin-bottom: 1px;
	font-size: 14px;
	text-align: center;
	color: #010101;
	border: 1px solid #010101;
	border-radius: 5px;
	background: #fff;
	cursor: pointer;
	transition: 0,3s;
}

.lb {
    height: 20px;
	width: 40px;
	margin-right: 5px;
	font-size: 10px;
	text-align: center;
	border: 1px solid black;
	border-radius: 3px;
	background: #fff;
	cursor: pointer;
	transition: 0,3s;
}
.new_comment button[name="new_comment_button"]:hover{
	background: #bfe0f0;
	color: black;
}
.new_comment button[name="edit_st"]:hover{
	background: #e9f74f;
	color: black;
}
.new_comment button[name="done_st"]:hover{
	background: #bfe0f0;
	color: black;
}
/* Конец стиля формы добавления комментария done.php */

/* Начало стиля страниц: НЕТ ДОСТУПА, 403 и 404 */

.alert_no {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 20px;

}
.alert_no p{
    color: red;
}
.alert_no a{
    display: block;
    text-decoration: none;
    color: #010101;
    
}
.alert_no a:hover{
    color: #0da7f4;
    
}
/* Конец стиля страниц: НЕТ ДОСТУПА, 403 и 404 */

/* Начало стиля блока загрузки новой заявки */
.new_z_h1 {
    display: flex;
    flex-direction: column;   
}
.alert {
    height: 30px;
    font-size: 26px;
    margin-bottom: 10px;
}
.alert2 {
    height: 30px;
    font-size: 26px;
    color: #010101;
    margin-bottom: 10px;
}
.new_zajavka {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    border: 1px solid #010101;
    border-radius: 5px;
    padding: 20px;
    padding-left: 40px;
    width: 900px;
    background-color: #bfe0f0;

}
.ts {
    display: flex;
    flex-direction: row;
}
.ts2 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 820px;
    /*border: 1px solid #010101;*/
}
.new_zajavka button:hover {
    background: #0da7f4;
}
.new_zajavka textarea {
    margin-top: 5px;
    margin-bottom: 10px;
    margin-right: 10px;    
    padding: 5px 5px;
    box-sizing: border-box;
    border: 1px solid #010101;
    border-radius: 2px;
    background-color: #f8f8f8;
    font-size: 14px;
    resize: none;
}
.new_zajavka textarea[name="org"] {
    width: 820px;
    height: 30px;
}
.new_zajavka textarea[name="mm"] {
    width: 350px;
    height: 30px;
}
.new_zajavka textarea[name="tip"] {
    width: 300px;
    height: 30px;
}
.new_zajavka textarea[name="grz"] {
    width: 150px;
    height: 30px;
    text-align: center;
}
.new_zajavka textarea[name="fio"] {
    width: 350px;
    height: 30px;
}
.new_zajavka textarea[name="tel"] {
    width: 300px;
    height: 30px;
}
.new_zajavka textarea[name="srok"] {
    width: 150px;
    height: 30px;
    text-align: center;
}
.new_zajavka textarea[name="obosn"] {
    width: 820px;
    height: 70px;
}
.new_zajavka textarea[name="prim"] {
    width: 820px;
    height: 30px;
}
.formnew_4 {
    margin-top: 30px;
	
}
.formnew_4 a {
    
    text-decoration: none;
}
.input-file {
	position: relative;
	display: inline-block;
}
.input-file-text {
	padding: 0 10px;
	line-height: 30px;
	text-align: left;
	background-color: #fff;
	color: black;
	height: 30px;
	display: block;
	float: left;
	box-sizing: border-box;
	width: 200px;
	border-radius: 5px 0px 0 5px;
	border: 1px solid #010101;
}
.input-file-btn {
position: relative;
	display: inline-block;
	cursor: pointer;
	outline: none;
	text-decoration: none;
	font-size: 14px;
	vertical-align: middle;
	color: #010101;
	text-align: center;
	border-radius: 0 5px 5px 0;
    border: 1px solid #010101;
	background-color: #bfe0f0;
	/*line-height: 22px;*/
	height: 30px;
	padding: 7px 15px;
	box-sizing: border-box;
	/*border: none;*/
	margin: 0;
	transition: background-color 0.2s;
}
.input-file input[type=file] {
	position: absolute;
	z-index: -1;
	opacity: 0;
	display: block;
	width: 0;
	height: 0;
}
/* Focus */
.input-file input[type=file]:focus + .input-file-btn {
	box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
/* Hover/active */
.input-file:hover .input-file-btn {
	background-color: #0da7f4;
}
.input-file:active .input-file-btn {
	background-color: #bfe0f0;
}
/* Disabled */
.input-file input[type=file]:disabled + .input-file-btn {
	background-color: #eee;
}

.formnew_4 button[name="insert_file"]:hover{
	background: #ccc;
}
.formnew_4 button[name="insert_file"]:hover {
    background: #0da7f4;
}
/* Конец стиля блока загрузки новой заявки */

/* QR-code */
.imgqrcode {
    width: 200px;
    height: 200px;
}
/*Начало стиля страницы Статистика*/
.stat0 {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    
    
}
.stat {
    display: flex;
    flex-direction: row;
    margin-top: 20px;
    
}
.stat2 {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
    /*width: 600px;*/
    overflow: auto;
    
}


/*Конец стиля страницы Статистика*/

/* Начало стиля блока загрузки новой заявки ФИЗЛИЦА */
.new_zajavka_fl {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    border: 1px solid #010101;
    border-radius: 5px;
    padding: 20px;
    padding-left: 40px;
    width: 900px;
    background-color: #bfe0f0;

}
.fl1, .fl3 {
    display: flex;
    flex-direction: row;
}
.fl5 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 820px;
    /*border: 1px solid #010101;*/
}
.new_zajavka_fl textarea {
    margin-top: 5px;
    margin-bottom: 10px;
    margin-right: 10px;    
    padding: 5px 5px;
    box-sizing: border-box;
    border: 1px solid #010101;
    border-radius: 2px;
    background-color: #f8f8f8;
    font-size: 14px;
    resize: none;
}
.new_zajavka_fl textarea[name="ffl"] {
    width: 265px;
    height: 30px;
}
.new_zajavka_fl textarea[name="ifl"] {
    width: 265px;
    height: 30px;
}
.new_zajavka_fl textarea[name="ofl"] {
    width: 265px;
    height: 30px;
}
.new_zajavka_fl textarea[name="orgfl"] {
    width: 815px;
    height: 30px;
}
.new_zajavka_fl textarea[name="dfl"] {
    width: 450px;
    height: 30px;
}
.new_zajavka_fl textarea[name="nt"] {
    width: 195px;
    height: 30px;
    text-align: center;
}
.new_zajavka_fl textarea[name="sp"] {
    width: 150px;
    height: 30px;
    text-align: center;
}
.new_zajavka_fl textarea[name="ob"] {
    width: 815px;
    height: 70px;
}
.new_zajavka_fl textarea[name="prim"] {
    width: 815px;
    height: 30px;
}
.new_zajavka_fl button:hover {
    background: #fff;
    color: #0da7f4;
    border: 1px solid #0da7f4;
}
/* Конец стиля блока загрузки новой заявки ФИЗЛИЦА */

/* Начало стиля страницы ПРОФИЛЬ */

.profile {
    display: flex;
    flex-direction: column;

}
.profile1 {
    display: flex;
    flex-direction: row;
}
@media (min-device-width: 320px) and (max-device-width: 568px) {
	body{
        
        width: 100%;
    }
    main {
        height: calc(100vh - 100px);
        overflow: auto;
        flex-direction: column;       
    }
    nav {
        height: 40px;
        padding: 10px;
        
   /*order: 1;*/  
}
    .profile1 {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        /*height: calc(100vh - 400px);*/
        overflow: auto;
    }
    .header_all {
        justify-content: flex-end;
    }
}

.message {
    height: 30px;
    width: 100%;
    margin-top: 20px;
    font-size: 20px;
    text-align: center;
    color: red;
    /*border: 1px solid #010101;*/
}
.chng_pass {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 20px 0 0;
    padding: 10px;
    border: 1px solid #010101;
    border-radius: 5px;
    width: 300px;
    height: 250px;
    box-shadow: 5px 5px 10px grey;
}
.chng_pass1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 20px 0 0;
    padding: 10px;
    border: 1px solid #010101;
    border-radius: 5px;
    width: 300px;
    height: 250px;
    box-shadow: 5px 5px 10px grey;
}
.chng_pass1 h3 {
    text-align: center;
    margin-bottom: 5px;
}

.chng_input input {
    width: 200px;
    height: 30px;
    margin-bottom: 5px;
    padding: 5px;

}
.chng_input button {
    width: 200px;
    height: 30px;
    margin-top: 10px;
    margin-bottom: 5px;
    padding: 5px;
    font-size: 14px;
	text-align: center;
	color: #010101;
	border: 1px solid #010101;
	border-radius: 3px;
	background: #fff;
	cursor: pointer;
	transition: 0,3s;
}
.chng_input button:hover {
	border: 1px solid #0da7f4;
    color: #0da7f4;

    /*background: #0da7f4;
	color: black;*/
}
.smena {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 20px 0 0;
    padding: 10px;
    border: 1px solid #010101;
    border-radius: 5px;
    width: 500px;
    height: 350px;
    box-shadow: 5px 5px 10px grey;
}
.smena input {
    width: 300px;
    height: 100px;
    margin-top: 20px;
    padding: 5px;
    font-size: 24px;
    text-align: center;
	color: #010101;
	border: 1px solid #010101;
	border-radius: 3px;
	cursor: pointer;
	transition: 0,3s;

}
.smena input[name="smena_on"] {
    background: #affa59;
}
.smena input[name="smena_off"] {
    background: #fa8159;
}
.smena input[name="smena_on"]:hover {
    background: #95e03f;
}
.smena input[name="smena_off"]:hover {
    background: #db5b30;
}

@media (min-device-width: 320px) and (max-device-width: 568px) {
	.smena {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 20px 0 0;
    padding: 10px;
    border: 1px solid #010101;
    border-radius: 5px;
    width: auto;
    height: 350px;
    box-shadow: 5px 5px 10px grey;
    }
    .smena input {
    width: 250px;
    height: 100px;
    margin-top: 20px;
    padding: 5px;
    font-size: 24px;
    text-align: center;
	color: #010101;
	border: 1px solid #010101;
	border-radius: 3px;
	cursor: pointer;
	transition: 0,3s;

}
}
/* Конец стиля страницы ПРОФИЛЬ */


