/* Ilya leoshko (c) 2018 */

/* fonts */
@font-face { font-family:"UbuntuRegular"; src:url("../fonts/Ubuntu-R.ttf") format('truetype'); }
@font-face { font-family:"UbuntuBold"; src:url("../fonts/Ubuntu-B.ttf") format('truetype'); }
@font-face { font-family:"UbuntuMedium"; src:url("../fonts/Ubuntu-M.ttf") format('truetype'); }
@font-face { font-family:"UbuntuLight"; src:url("../fonts/Ubuntu-L.ttf") format('truetype'); }


/* ILYAs css reset */
* { -webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;outline:none; }
*:before,*:after {-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box; }
a { text-decoration:none; color: #000; }
a:hover { text-decoration: underline; }

/* ILYAs Styles */
body { margin: 0; padding: 0; font-family:"UbuntuRegular"; font-size: 16px; color: #000; padding-bottom: 30px; position: relative; min-height: 100vh; }
* { transition: all .3s; }
input { display: block;width: auto; border: none; background: transparent; }
input:focus { box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6); border-color: #66afe9; }
input.zoom { width: 50px; }
.h1 b { font-family:"UbuntuBold"; }
.clearer { clear: both; }
.center { text-align: center; }
.inp0 { padding: 10px 15px; border: 1px solid #999; height: 40px; background: #fff; }
.defb, .cancel { color: #fff; text-transform: uppercase; background: #2E75B6; border: 0; padding: 10px 15px; display: inline-block; }
.m-l-5 { margin-left: 5px; }
.cancel { margin-left: 5px; background: #676767; }
.defb:hover, .cancel:hover { text-decoration: none; background: #5B9BD5; color: #fff; }
.content { margin: 0 auto; width: 100%; max-width: 3200px; min-width: 320px; padding: 0 15px }
.red { color: #f00; font-family:"UbuntuBold"; font-weight: 100; }
.info { font-family:"UbuntuLight"; color: #2FA0DE; }
.warn { font-family:"UbuntuLight"; color: #f00;  }
header.header { background: #DBDBDB; display: flex; align-items: center; height: 50px; position: relative; z-index: 1; }
header.header .content { display: flex; align-items: center; width: 100%; }
.logo { width: 15%; margin-right: 15px; }
.logo img { width: 100px; }
.mmenu { width: 70%; list-style: none; display: flex; justify-content: space-between; margin: 0; padding: 0; max-width: 600px; }
.mmenu li {  }
.mmenu li a { text-transform: uppercase; }
.loglink { width: 15%; float: right; padding-left: 15px; }
.loglink p { margin: 0; font-size: 14px; text-align: right; }
.close, .bmenu { display: none; }
footer.footer { width: 100%; text-align: center; position: absolute; bottom: 0; padding: 5px 0; background: #DBDBDB; height: 30px; }
footer.footer p { margin: 0; }
.main { display: flex; padding: 30px 0; justify-content: center; }
.mainbox { display: flex; width: 100%; height: 100%; justify-content: center; align-items: center; position: absolute; top: 0; left: 0; overflow: auto; padding: 50px 0; flex-wrap: wrap; }

.window { background: #F2F2F2; border: 1px solid #000; padding: 30px 20px; min-width: 290px; max-width: 90%; }
.window h2 { text-align: center; margin-top: 0; text-transform: uppercase; font-weight: 100; font-size: 22px; font-family:"UbuntuMedium"; }
.loginw { max-width: 300px; }
.loginw .inp0 { width: 100%; margin-bottom: 20px; }
.loginw .defb { display: block; float: left; }
.loginw .cancel { float: right; }

table.mtable { border: 1px solid #ccc; border-collapse: collapse; margin: 0; padding: 0; table.mtable-layout: fixed; margin-bottom: 30px; margin-top: 10px; }
table.mtable tr { background: #D9D9D9;  border: 1px solid #ddd;  padding: .35em; }
table.mtable tr:nth-child(2n) td { background: #fff; }
table.mtable tr td:last-child, table.mtable tr th:last-child { text-align: center; width: 70px; }
table.mtable tr td:last-child div { height: 60px; text-align: left; min-width: 240px; overflow-x: auto; }
table.mtable th, table.mtable td { padding: .5em; text-align: left; font-size: 14px; }
table.mtable th { font-size: 12px; text-transform: uppercase; background: #5B9BD5; color: #fff; font-weight: 100; }
table.mtable th a { color: #fff; }
table.mtable .col.last { width: 70px; }
table.mtable tr td img { max-width: 100px; }
table.mtable tr .big img { max-width:250px; }
table.mtable tr td input, .colthree input, .colone input { padding: 5px 0; text-align: center; border: 1px solid #a9a9a9; border-radius: 0; }
.topbar { padding: 0 0 20px 0; }
.topbar .addnew { float: left; width: 30%; }
.topbar .search { float: left; width: 70%; }
.topbar .search .inp0, .topbar .search .defb { height: 38px; display: inline-block; }
.icn { width: 50px; display: inline-block; margin: 0 5px; opacity: 0.6; }
.icn:hover { opacity: 1; }
.icn img { max-width: 100% !important; }
.icn-sm img { max-width: 40% !important; }
.file { padding-top: 7px; border: 1px solid #999; background: #fff; height: 40px; position: relative; padding-right: 15px; }
.file::-webkit-file-upload-button { visibility:hidden; }
.file::before { content: 'from file ...'; display: flex; position: absolute; top: 0; left: 0;  outline: none; white-space: nowrap; cursor: pointer;  background: #2E75B6; border: none; color: #fff; height: 100%; justify-content: center; align-items: center; padding: 0 10px;}
.neworder { width: 550px; }
.neworder span, .defw span, .neworder label, .defw label, .loginw label { display: inline-block; width: 100%; text-transform: uppercase; font-size: 12px; margin-bottom: 0; font-weight: 100; }
.neworder .inp0 { width: 100%; margin-bottom: 20px; }
.neworder .inp2 { resize: none; height: 80px; }
.neworder .leftside { width: 65%; float: left; padding-right: 15px; }
.neworder .rightside { width: 35%; float: right; }
.neworder .file { margin-bottom: 20px; width: 100%; padding-left: 15px; }
.defw .file { width: 100%; }
.int { display: block; position: relative; padding-left: 30px; margin-bottom: 20px; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; min-height: 25px; padding-top: 3px; }
.int input { position: absolute; opacity: 0; cursor: pointer; }
span.checkmark { position: absolute; top: 0; left: 0; height: 25px; width: 25px; background-color: #eee; border: 1px solid #999; }
.int:hover input ~ .checkmark { background-color: #ccc; }
.int input:checked ~ .checkmark { background-color: #2E75B6; }
.checkmark:after { content: ""; position: absolute; display: none; }
.int input:checked ~ .checkmark:after { display: block; }
.int .checkmark:after { left: 9px; top: 5px; width: 5px; height: 10px; border: solid white; border-width: 0 3px 3px 0; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); }
.tablewrp { width: 100%; overflow: auto; max-height: 85vh; }
.colthree { width: 33.33%; float: left; }
.colthree table { width: 100%; border-spacing: initial; border-collapse: initial; }
.colthree table td { padding: 5px; }
.colthree table td .int { margin-bottom: 0; padding-top: 5px; padding-bottom: 5px; }
.colthree table .blue { background: #5B9BD5; color: #fff; }
.colone { width: 100%; float: left; }
.colone table { width: 100%; border-spacing: initial; border-collapse: initial; }
.colone table td { padding: 5px; }
.colone table td .int { margin-bottom: 0; padding-top: 5px; padding-bottom: 5px; }
.colone table .blue { background: #5B9BD5; color: #fff; }
.upload { max-width: 400px; }
.upload .inp0 { width: 100%; }
[data-label=Photo] img { max-width: 100px; }
.loginw img { max-width: 100%; }
.inf { position: absolute; left: 0; text-align: center; width: 100%; padding: 5px 15px; }
.form-horizontal .form-group { margin:  0 0 0 0!important; }
.form-group, .help-block { margin: 0; }
.has-error { position: relative; }
.help-block-error { position: absolute; bottom: -18px; color: #a94442; }
.green { background: green; }
.green:hover { background: darkgreen; }
/* breakpoints */

/* width */
@media (max-width:1100px){
	.loglink { width: auto; }
	table.mtable, .colthree table { zoom: 0.8; }
}

@media (max-width:860px){
	.colthree { width: 100%; }
	table.mtable, .colthree table { zoom: initial; }
	table.mtable { border: 0; }
	table.mtable thead { border: none; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
	table.mtable tr { border-bottom: 3px solid #ddd; display: block; margin-bottom: .625em; }
	table.mtable td { border-bottom: 1px solid #565656; display: block; font-size: .8em; text-align: right; min-height: 32px; min-width: 100%; }
	table.mtable td:before { content: attr(data-label); float: left; font-weight: bold; text-transform: uppercase; }
	table.mtable td:last-child { border-bottom: 0; }
	table.mtable tr td:last-child { text-align: right; }
	.topbar .addnew { width: 50%; }
	.topbar .search { width: 50%; }
	.topbar .search .inp0 { width: 165px; }
	table.mtable tr td:last-child, table.mtable tr th:last-child { width: auto; }
	table.mtable input { float: right; text-align: right; }
}

@media (max-width:780px){
	header.header { height: auto; padding: 5px 0; }
	header.header .content { display: block; }
	.mmenu { width: 100%; }
	.logo { text-align: center; width: 100%; padding-bottom: 5px; margin-right: 0; }
	.loglink { display: none; }

	
}

@media (max-width:580px){
	.neworder { width: 100%; }
	.neworder .leftside { width: 100%; float: left; padding-right: 0px; }
	.neworder .rightside { width: 100%; float: right; }
	.mmenu { display: block; position: absolute; background: #DBDBDB; left: 0; top: 0; display: none; }
	.mmenu li { width: 100%; padding: 5px 15px; border-bottom: 1px solid #000; }
	.close { position: absolute; top: -1px; right: 10px; font-size: 20px;  color: #808080; cursor: pointer; display: block; }
	.bmenu { position: absolute; top: -5px; right: 10px; font-size: 20px;  color: #808080; cursor: pointer; display: block; font-size: 40px; }
	.topbar .search, .topbar .addnew { width: 100%; }
	.topbar .addnew { text-align: center; padding-bottom: 20px; }
	.topbar .search .defb { float: right; max-width: 50px; }
	.topbar .search .inp0 { width: calc(100% - 55px); }
}

/* height */
@media screen and (max-height: 533px) {
	.mainbox { position: initial; }
}

.rotated-picture {
    -ms-transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
    margin-top: 130px;
}