html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video, input, textarea {
	margin: 0;
	padding: 0;
	border: 0;
	box-sizing: border-box;
	position: relative;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, div {
	display: block;
}
html, body {
    background: #e5e5e5;
	color: #333;
    font-family: "OpenSansRegular", sans-serif;
    font-weight: 400;
	font-size: 14px;
    line-height: 1.625;
}
ol, ul {
	list-style: none;
}


h1,
h2,
h3,
h4,
h5,
h6,
strong, 
b {
  	font-family: 'OpenSansBold';
    margin: 0;
    line-height: 1.2;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 18px;
}

h5 {
    font-size: 15px;
}

h6 {
    font-size: 13px;
}


blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}


input[type='text'], button, input[type='button'], input[type="submit"], input[type="number"], input[type="email"], input[type="password"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
	
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -khtml-border-radius: 3px;
}

button, input[type='button'], input[type="submit"], a.input {
  	font-family: 'OpenSansBold';
	cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

button {
    border: none;
    background: none;
}

button:focus,
input:focus,
textarea:focus {
    outline: none;
}

input:not([type='checkbox']):not([type='radio']), textarea, select, a.input {
    border: 1px solid #e5e5e5;
	padding: 0 17px;
	height: 45px;
	line-height: 43px;
    border-radius: 3px;
}

textarea:disabled, input:disabled, input[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}
input:not([type="submit"]):focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}
::-webkit-scrollbar {
    width: 3px;
    height: 5px;
}
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}
::-webkit-scrollbar-thumb {
  background-color: darkgrey;
  outline: 1px solid slategrey;
}

textarea:disabled, .input:disabled, .input[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}
.input-block {
	display: block;
	width: 100%;
}
.input-inline {
	display: inline-block;
	margin: 5px 5px 0 0;
	width: 225px;
}
.input-label {
    padding: 0 10px;
    line-height: 43px;
}
select.errorSelect {
    border-color: red;
	color: red;
}
.inline-form input, .inline-form select {
	margin: 0 2px 2px 0;
}
.filter {
	padding: 5px;
}
.filter .input-inline {
	margin: 3px 3px 0 0;
	width: 165px;
	padding: 0 5px;
}
.form-group {
	display: table;
    margin-bottom: 5px;
	width: 100%;
	max-width: 100%;
}
.input-group {
	display:table-row;
	width: 100%;
}
.input-group label, .input-group input:not([type='checkbox']):not([type='radio']) {	
	display: table-cell;
    border: 1px solid rgba(0, 0, 0, 0.15);
}
.input-group label {
	text-align: center;
    background-color: #e9ecef;
	padding: 0 10px;
}
.input-group input:not([type='checkbox']):not([type='radio']), .input-group select {	
	width: 100%;
    border-radius: 0;
	border-left: none;
}
.input-mb input, .input-mb select {
	display: block;
	margin-bottom: 7px;
}
input:not([type='checkbox']):not([type='radio']).input-counter {
	width:50px; 
	padding: 0 5px; 
	text-align: right;
}
/* -------------------------------------- */



table {
	border-collapse: collapse;
	border-spacing: 0;
}
table th, table td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
table th.tda, table td.tda {
    padding: 3px;
}
table th.tda a, table td.tda a {
    padding: 6px 9px;
}
table th.nopd, table td.nopd {
	padding: 0;
}
table.br-top td {
   border-top: 1px solid #d0d0d0;
}
table td.counter {
	padding: 5px;
	max-width: 45px;
	text-align: right;
	font-weight: 700;
}
table.full-width {
	width: 100%;
}
table:not(.wrap) th, table:not(.wrap) td {
    white-space: nowrap;
}
table:not(.wrap) td.wrap {
    white-space: normal;
	min-width: 200px;
}
table td.edit-buttons {
	text-align: right;
	padding: 3px;
}
table td.edit-buttons a {
	display: inline-block;
	font-size: 19px;
	margin-right: 4px;
}
table th, td a {
	text-align: left;
  	font-family: 'OpenSansBold';
}
.link1 a {
	color: #23282c;
    font-family: "OpenSansRegular", sans-serif;
    font-weight: 400;
}
table:not("#form-input") a i.fa {
	font-size: 18px;
}

/* Задаем стили для нечетных рядов таблицы */
table tr:nth-child(odd){ 
    background: #f5f5f5;
}
/* Задаем стили для четных рядов таблицы */
table tr:nth-child(even){ 
    background: #fff;
}
table tr:nth-child(even):hover, table tr:nth-child(odd):hover {
    background: #ecebe1;
    color: #66615B;
}

/* ------------------------------------------- 
					Links
------------------------------------------- */

a {	
    text-decoration: none;
    color: #4272d7;
}
a:hover {
    color: #d00;
}

.edit0 {
	display:none;
}









/* ------------------------------------------- 
					Buttons
------------------------------------------- */

.button, .inline-button {
	display: block;
    padding: 0 17px;
    height: 45px;
    line-height: 43px;
    border-radius: 3px;    
	border: 1px solid rgba(0, 0, 0, 0.15);
	margin-bottom: 10px;
  	font-family: 'OpenSansBold';
	text-align: center;
}
.inline-button {
	display: inline-block;
	margin: 5px 5px 0 0;
}
a.success:hover {
    color: #155724;
}
a.danger:hover {
    color: #721c24;
}
a.warning:hover {
    color: #856404;
}
a.info:hover {
    color: #0c5460;
}

/* ------------------------------------------- 
					Alerts
------------------------------------------- */
.alert {
	width: 99%;
	margin: 0 0.5%;
	padding: 15px;
    box-shadow: 4px 2px 5px 0px rgba(0, 0, 0, 0.15);
}
.success, table tr.success:nth-child(even), table tr.success:nth-child(odd), table tr.note-st1:nth-child(even), table tr.note-st1:nth-child(odd) {
    color: #155724;
    background: #d4edda;
    border-color: #c3e6cb;
}
.danger, table tr.danger:nth-child(even), table tr.danger:nth-child(odd), table tr.note-st2:nth-child(even), table tr.note-st2:nth-child(odd), input.errorInput {
    color: #721c24;
    background: #f8d7da;
    border-color: #f5c6cb;
}
.warning, table tr.warning:nth-child(even), table tr.warning:nth-child(odd) {
    color: #856404;
    background: #fff3cd;
    border-color: #ffeeba;
}
.info, table tr.selected:nth-child(even), table tr.selected:nth-child(odd)  {
    color: #0c5460;
    background: #d1ecf1;
    border-color: #bee5eb;
}
table tr.deactivated:nth-child(even), table tr.deactivated:nth-child(odd)  {
    color: #909090;
    background: #c5c5c5;
}
table tr.top1:nth-child(even), table tr.top1:nth-child(odd)  {
    color: #fff;
    background: #f35d2f;
}
table tr.top2:nth-child(even), table tr.top2:nth-child(odd)  {
    color: #fff;
    background: #f35d2f;
}

td.ts-1:not(.ok), td.ts-1:not(.ok) i {
	background: #e24150;
	color: #fff;
}
td.ts0 {
	background: #d3eef3;
}
td.ts1:not(.cancel), td.ts1:not(.cancel) i {
	background: #11862b;
	color: #fff;
}

/* ---------------------------------------- */

table tr.os2:nth-child(even), table tr.os2:nth-child(odd) {
    color: #721c24;
    background: #f8d7da;
    border-color: #f5c6cb;
}
table tr.os3:nth-child(even), table tr.os3:nth-child(odd) {
    color: #fff;
    background: #cc3340;
    border-color: #fff;
}
table tr.os3:nth-child(even) a, table tr.os3:nth-child(odd) a {
    color: #fff;
}
table tr.os4:nth-child(even), table tr.os4:nth-child(odd) {
    color: #856404;
    background: #fff3cd;
    border-color: #ffeeba;
}
table tr.os5:nth-child(even), table tr.os5:nth-child(odd) {
    color: #155724;
    background: #d4edda;
    border-color: #c3e6cb;
}
/* Синий фон */
table tr.os6:nth-child(even), table tr.os6:nth-child(odd) {
    color: #0c5460;
    background: #d1ecf1;
    border-color: #bee5eb;
}
table tr.os7:nth-child(even), table tr.os7:nth-child(odd) {
    color: #333;
    background: #bdbdb8;
    border-color: #333;
}
table tr.offline:nth-child(even), table tr.offline:nth-child(odd) {
    background: #a5a5a0;
    border-color: #a5a5a0;
}
td.paid {
	background: #9ab5a1;
}
td.paidred {
	color: red;
}
td.paid0 {
	background: #d6c591;
}
/* ------------------------------------------- 
					Auth
------------------------------------------- */


#auth {
	width: 94%;
	height: auto;
	background: #fff;
	max-width: 400px;
	margin: 150px auto 20px;
	text-align: center;
	padding: 20px 15px;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.08);
}
#auth h2 {
	padding: 15px 0;
	margin-bottom: 20px;
}
#auth h3 {
	font-size: 21px;
	padding: 15px 0;
	border-top: 1px solid #e5e5e5;
}

#auth input {
	display: block;
    width: 100%;
    margin-bottom: 9px;
}
#forgot-link {
    display: block;
	color: #ff2e44;
	text-align: right;
	padding: 5px 0;
}
#register-link {
    display: block;
	border-top: 1px solid #e5e5e5;
	color: #555;
	margin: 21px 0 -15px;
	padding: 15px 0;
}









/* ------------------------------------------- 
					Wrapper
------------------------------------------- */


nav {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 220px;
	height: 100%;
	z-index: 311;
    background: #fff;
	white-space: nowrap;
	overflow-x: hidden;
	overflow-y: auto;
    border-right: 1px solid rgba(0,0,0,0.16);
    padding: 7px;
}
#navbar {
	display: none;
}

nav label#logo {
	display: block;
    background: #fefefe;
    height: 75px;
    line-height: 80px;
    text-align: center;
	padding: 0;
	font-size: 21px;
	color: #7e7b39;
  	font-family: 'OpenSansBold';
    box-shadow: 4px 2px 5px 0px rgba(0, 0, 0, 0.15);	
	margin: -12px -12px 5px -12px;
	cursor: pointer;
}
nav a {
    display: block;
    color: #66615B;
    font-size: 15px;
    padding: 8px 0 8px 8px;	
    border-bottom: 1px solid #ddddce;	
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
nav a i.fa {
	width: 30px;
	font-size: 17px;
	text-align: center;
}
nav a:hover {
    background: #ecebe1;
    color: #66615B;
}
nav a.active {
	color: #7e7b39;
  	font-family: 'OpenSansBold';
}

#content {
	margin-left: 220px;
	padding: 18px 10px;
}

#mobile-bar {
	display: none;
	position: fixed;
	top:0;left:0;right:0;width:100%;
	z-index: 111;
	padding: 12px 10px;
	background: #fff;
    box-shadow: 4px 2px 5px 0px rgba(0, 0, 0, 0.15);
	font-size: 20px;
	text-align: center;
	color: #7e7b39;
	cursor: pointer;
  	font-family: 'OpenSansBold';
}

#navbar:checked ~ nav {
	display:none;
}
#navbar:checked ~ #content {
	margin-left: 0;
	padding: 69px 10px 21px;
}
#navbar:checked ~ #mobile-bar {
	display: block;
}

#top-bar * {
	display: inline-block;
	margin-right: 7px;
}
/* -------------------------------------- */

section {
	width: 100%;
	margin-bottom: 25px;
}
section:after {
	content: "";
	display: block;
	clear: both;
	height: 0;
}
aside {
	background: #fff;
	padding: 15px;
	width: 99%;
	margin: 0 0.5%;
	float: left;
}
aside.no-padding {
	padding: 0;
}
aside header {
	background-color: rgba(0,0,0,.03);
    border-bottom: 1px solid rgba(0,0,0,.125);
	margin: -15px -15px 15px -15px;
	padding: 15px;
  	font-family: 'OpenSansBold';
}
aside.no-padding header {
	margin: 0;
}
aside.header {
	background: rgba(255,255,255,.7);
    border-bottom: 1px solid rgba(0,0,0,.125);
  	font-family: 'OpenSansBold';
}
aside header a {
	float: right;
    margin: -15px -15px -15px 0;
	padding: 0 15px;
	line-height: 50px;
}
aside header a i.fa {
	font-size: 21px;
}
aside header:after {
	content: "";
	display: block;
	clear: both;
	height: 0;
}
#form-input {
	position: sticky;
	top: 0;
	z-index: 300;
	width: 100%;
    box-shadow: 4px 2px 5px 0px rgba(0, 0, 0, 0.15);
}
#form-input th {
	background: #fff;
}
#form-input th a {
    color: #155724;
	font-size: 27px;
}
.table-responsive {
	margin: -15px;
	overflow: auto;
}
aside.no-padding .table-responsive {
	margin: 7px 0 0;
}

.p-25 {
	width: 24%;
}
.p-33 {
	width: 32.333333%;
}
.p-50 {
	width: 49%;
}
.p-67 {
	width: 65.666666%;
}
.p-75 {
	width: 74%;
}

/* -------------------------------------- */



.pagination {
	text-align: center;
	border-top: 1px solid rgba(0,0,0,0.16);
	margin: 15px -15px 0 -15px;
	padding-top: 15px;
}
.pagination a {
	display: inline-block;
	margin: 0 3px;
	padding: 9px 15px;
	background: #fff;
	color: #66615B;
	border: 1px solid #7e7b39;
  	font-family: 'OpenSansBold';
}
.pagination a:hover {
    background: #ecebe1;
    color: #66615B;
}
.pagination a.active {
    background: #7e7b39;
    color: #fff;	
}



.right-text {
	text-align: right;
}
.pr-img {
	width: 90px;
	min-width: 90px;
	height: 90px;	
	padding: 0;
	background: url(https://img.dukenplus.kz/img/no-img.png) #fff no-repeat center center; 
	background-size: contain;
}
.pr-img img {
	display: block;
	max-height: 90px;
	max-width: 90px;	
}
.pr-img.small {
	width: 65px;
	min-width: 65px;
	height: 65px;	
}

.gl-img {
	display: block;
	max-height: 300px;
	max-width: 100%;
	margin: 0 auto 20px;
}

.order-pr-count {
	width: 45px;
	padding: 0 5px;
	text-align: center;
}
.overhead-pr-edit {
	width: 45px;
	padding: 0 5px;
	text-align: center;
}
.order-pr-edit {
	width: 45px;
	padding: 0 5px;
	text-align: center;
}

tg {
	font-size: 12px;
	letter-spacing: 2px;
}
.sum-pos {
	padding: 5px;
}
.prst {
    font-family: 'OpenSansBold';
	text-align: center;
	font-size: 18px;
}
	


#popup {
	display: none;
	position: fixed;	
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	z-index: 330;
}
#popup_close {
	display: block;
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	z-index: 331;
	background: rgba(0,0,0,0.5);
}
#popup_info {
	display: block;
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	width: 98%;
	height: 98%;
	max-width: 880px;
	max-height: 520px;
	margin: auto;
	background: #fff;
	z-index: 333;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.08);
	overflow: hidden;
	overflow-y: auto;
	padding: 15px 25px;
}
#popup_close {
	display: block;
	position: absolute;
	padding: 10px;
	color: #757474;
	top: 0;
	right: 0;
	cursor: pointer;
}
#popup_close_i {
	display: block;
	position: absolute;
	padding: 10px;
	color: #757474;
	top: 0;
	right: 0;
	cursor: pointer;
}
#push {
	display: none;
	position: fixed;
    max-width: 555px;
	top: 15px;
	right: 15px;
	z-index: 340;
    box-shadow: 0 0 0 9px rgba(0, 0, 0, 0.5);
	color: #000;
	padding: 10px 0;
}
#push div, #push i {
	width: calc(100% - 35px);
	height: 100%;
	display: inline-block;
	padding-left: 15px;
    vertical-align: top;
    line-height: 21px;
}
#push i {
	width: 35px;
	cursor: pointer;
	color: #721c24;
}






#header-k {
	text-align: right;
    box-shadow: 4px 2px 5px 0px rgba(0, 0, 0, 0.15);
	background: #fff;
	padding-bottom: 5px;
}
#content-k {
	width: 98%;
	max-width: 1000px;
	margin: 15px auto;	
	background: #fff;
	font-size: 15px;
}
.cart-pr-counter span{
	display: inline-block;
	width: 38px;
	height: 38px;
	line-height: 38px;
	text-align: center;
}
.cart-pr-counter span:not(.cart-pr-count) {
    background: #e0dede;
    cursor: pointer;
}
.cart-pr-counter span.cart-pr-plus {
    background: #7c9555;
    color: #fff;
}


#popup_info.popup-pr-info {
	max-width: 600px;
	max-height: 293px;
	padding: 7px;
}
.crm-prinfo div {
	display: inline-block;
	width: 58%;
	margin: 0.5%;
	vertical-align: top;
}
.crm-prinfo div.primg {
	width: 38%;
	height: 250px;
}
/* -------------------------------------- */

@media screen and (max-width: 991px) {
	#content {
		margin-left: 0;
		padding: 69px 10px 21px;
	}
	section {
		margin-bottom: 0;
	}
	aside, .p-25, .p-33, .p-50, .p-67, .p-75, .alert {
		width: 100%;
		margin: 0 0 25px;
		float: none;
	}	
	.pagination a {
		margin: 0 2px;
		padding: 5px 12px;
	}
}

@media screen and (max-width: 560px) {
	#push {
		max-width: 98%;
		top: 9px;
		right: 9px;
		box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.5);
	}
	#push div, #push i {
		padding-left: 7px;
	}

	#popup_info.popup-pr-info {
		max-width: : 90%;
		max-height: 80%;
	}
	.crm-prinfo div {
		display: block;
		width: 100%;
		height: auto;
		max-height: none;
	}
	.crm-prinfo div.primg {
		height: 250px;
		margin: auto;
	}
	
	table.full-width1 {
		width: 100%;
	}
}

@media screen and (max-height: 560px) {
	#auth {
		margin: 92px auto 10px;
	}
}
/* -------------------------------------- */

td.wb {
	padding: 0;
	width: 3px;
	min-width: 3px;
	background: #000;
}