/* шрифты */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');

body, td, input, textarea, select {
font-family: 'Merriweather', serif;
font-size:14pt;
}

body {
margin:0;
padding:0;
}

a {
color: #385cc9;
text-decoration: none;
border-bottom: 1px solid #a4c0ea;
}

h1 {
text-align: center;
}

.center {
text-align: center;
}

.databases_block {

background-color: #E6FA80;
padding:10px 10px 10px 10px;
width:20%;
text-align: right;

}

.content_block.view{
padding:10px;
width:80%;
}

.content_block.edit{
padding:10px;
width:50%;
margin-right: 25%;
}

.files_block {

background-color: #fdfff2;
padding:10px 10px 10px 10px;
width:20%;
text-align: left;

position: fixed;
right:0;
height:100vh;
overflow-y: auto;
}

.files_block img {
	max-width: 100%;
	height: auto;
	-webkit-box-shadow: 0px 0px 5px 0px rgba(200, 200, 200, 0.75);
    -moz-box-shadow: 0px 0px 5px 0px rgba(200, 200, 200, 0.75);
    box-shadow: 0px 0px 5px 0px rgba(200, 200, 200, 0.75);
	
}

div.add_file {
	margin-top: 1em;
}

.image {
	position: relative;
	margin: 20px 0;
}

.image img {
	min-width: 10px;
	min-height: 10px;
	border: 1px solid #ccc;;
}

.image span {
	position: absolute;
	top: 10px; 
   left: 10px; 
   background-color: rgba(0,0,0,0.7);
   color:white;
   font-size:0.6em;
   padding:5px;
}

.page {
display: flex;
justify-content: space-between;
min-height:100vh;
}

/* меню */

a.menuadd {
padding:2px;
/*border: 1px solid #d0d0d0;*/
border-radius: 50%;
width: 22px;
height: 22px;
display: inline-block;
text-align: center;

background-color: rgba(168, 197, 21, 1);
color: white;
}

a.menuadd:hover {
box-shadow: 0px 0px 15px #ccc;
}

/* таблица */

div.table {
	overflow-x: auto;
	width:100%;
}

.table table {
	margin:0 auto;
	width:80%;
	border-collapse: collapse;
}

.table th {
	padding:10px;
	background-color:white;
	text-align: center;
	border:1px solid #d0d0d0;
}

.table td {
	padding:10px;
	background-color:white;
	text-align: center;
	border:1px solid #d0d0d0;
}

tr:nth-child(odd)>td {
	/*background-color: #ededed;*/
}

tr:nth-child(even)>td {
	background-color: #f8f8f8;
	}
	
/* формы */

form.filterform {
	text-align: center;
}


select {
	font-size: 18px;
	padding:10px;
	background-color: white;
	height:48px;
	margin: 3px 0;
	border: 1px solid #d0d0d0;
	}

input {
	font-size: 18px;
	width:calc(100% - 24px);
	padding:10px;
	margin: 3px 0;
	border:1px solid #d0d0d0;
	border-radius:5px;
	}

input.filterinput {
	width:40%;
}

textarea {
	font-size: 18px;
	width:calc(100% - 24px);
	padding:10px;
	margin: 3px 0;
	min-height: 90px;
	border:1px solid #d0d0d0;
	border-radius: 5px;
	}

input.chkbox {
}

input[type=submit] {
	width:auto;
	font-size:18px;
	margin:5px;
	background-color: rgba(168, 197, 21, 1);
	height:48px;
	color:white;
	border-radius:5px;
	border:0px;
}

input[type=submit]:hover {
	box-shadow: 0px 0px 15px #ccc;
	cursor: pointer;
}

input[type=reset]:hover {
	box-shadow: 0px 0px 15px #ccc;
	cursor: pointer;
}

input[type=reset] {
	width:auto;
	font-size:18px;
	margin:5px;
	background-color: #E6FA80;
	height:48px;
	border-radius:5px;
	border:0px;
}


input[type=checkbox] {
	width:auto;
}

button[type=submit] {
	width:auto;
	font-size:18px;
	margin:5px;
	background-color: rgba(168, 197, 21, 1);
	height:48px;
	color:white;
	border-radius:5px;
	border:0px;
}

button[type=submit]:hover {
	box-shadow: 0px 0px 15px #ccc;
	cursor: pointer;
}
	
div.formfield {
position:relative;
margin:10px 0;
}

span.fieldname {
    position: absolute;
    left: 5px;
    top: -4px;
    font-size: 12px;
    background-color: white;
    padding: 1px 5px;
	border: 1px solid #d0d0d0;
	line-height: 100%;
	z-index:10;
	}

.textarea span.fieldname {
	top: -7px;
}

.tox-tinymce {
border-radius:5px !important;
border: 1px solid #d0d0d0 !important;
}
	
	
form {
margin-bottom: 3em;
}

.submitblock {
position: fixed;
bottom:0;
width:50%;
z-index:10;

/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ffffff+0,ffffff+100&0+0,1+50 */
background: -moz-linear-gradient(top,  rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,1) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,1) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */


}

	

.operation_result {
text-align: center;
}
	
.operation_result span {
padding:5px;
color:white;
background-color: rgba(168, 197, 21, 1);
}

div.pages {

text-align: center;
margin-top:20px;

}

.pages a{
padding:15px;
margin:0px;
background-color: #E6FA80;
color:black;
border-bottom: none;
}

.pages a.current_page {
background-color:rgba(168, 197, 21, 1);
color:white;
}

.pages a:hover {
}