/* Shortcuts */
.fl { float: left; }
.fr { float: right; }
.cl { clear: both; }
.l  { text-align: left; }
.r  { text-align: right; }
.c  { text-align: center; }
.nw { white-space: nowrap; }

.hide{ display: none }
.bold { font-weight: bold }
.relative{ position: relative; }
.absolute{ position: absolute; }
.fixed{ position: fixed; }
.block{ display: block; }
.iblock	{ display: inline-block; }
.inline-block{ display: inline-block; }
.txt_fs11{ font-size: 11px; }
.txt_fs12{ font-size: 12px; }
.txt_fs13{ font-size: 13px; }
.txt_fs14{ font-size: 14px; }
.txt_fs15{ font-size: 15px; }
.txt_fs16{ font-size: 16px; }
.txt_fs17{ font-size: 17px; }
.txt_fs18{ font-size: 18px; }
.margt5{ margin-top: 5px; }
.margt10{ margin-top: 10px; }
.margt15{ margin-top: 15px; }
.margb5{ margin-bottom: 5px; }
.margb10{ margin-bottom: 10px; }
.margb15{ margin-bottom: 15px; }
.margl5{ margin-left: 5px; }
.margl10{ margin-left: 10px; }
.margl15{ margin-left: 15px; }
.margr5{ margin-right: 5px; }
.margr10{ margin-right: 10px; }
.margr15{ margin-right: 15px; }
.padt5{ padding-top: 5px; }
.padt10{ padding-top: 10px; }
.padt15{ padding-top: 15px; }
.padb5{ padding-bottom: 5px; }
.padb10{ padding-bottom: 10px; }
.padb15{ padding-bottom: 15px; }
.padl5{ padding-left: 5px; }
.padl10{ padding-left: 10px; }
.padl15{ padding-left: 15px; }
.padr5{ padding-right: 5px; }
.padr10{ padding-right: 10px; }
.padr15{ padding-right: 15px; }
.pnt { cursor: pointer; }

.cred { color: #c00 }

/* HTML */
body { margin: 0; background: #eee; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; }

.top-line { background: #222; padding: 6px 10px; color: #ccc }
.top-line a { color: #fff }
.top-line img { height: 30px; }
.top-line .user { color:#fff; margin: 5px; padding: 3px 5px; background-color: #5ad; border-radius: 2px; box-shadow: 0 1px 1px #000 inset; }
.top-line .fr { margin-top: 8px; }

.menu { position: relative; background-color:#245ea4; height: 23px; font-size:11px; padding:4px 15px; z-index:2; background: linear-gradient(#3980bb,#245ea4); color:#fff; box-shadow: 0 0 2px #555; }
.menu a { color:#aaf; }
.menu ul { padding: 0; margin: 0;  position: absolute; top:1px; left:5px; }
.menu li { padding: 3px 3px; background-color:#245ea4; margin-right: 1px; display: inline-block; height: 23px; overflow: hidden; background: linear-gradient(#3980bb,#245ea4); vertical-align: top }
.menu li.focus , .menu li:hover { height: auto;  box-shadow: 0 2px 14px #468, 0 0px 3px #356 inset; border-radius: 2px; }
.menu li.nosub.focus, .menu li.nosub:hover { height:23px; }
.menu li a { cursor: pointer; display: block; padding:5px 8px 5px 8px; margin-bottom: 5px;  text-decoration:none;  color:#fff; width:20px }
.menu li a:first-child, .menu li:hover a, .menu li.focus a { width:auto; }
.menu li a[href]:hover, .menu li a.sel { background-color:#5ad; color:#fff; border-radius:3px; }
.menu li a:focus { background-color:#ff0; border-radius:3px; color:#000 }
.menu .user { float: right; margin: 5px; padding: 3px 5px; background-color: #5ad; border-radius: 2px; box-shadow: 0 1px 1px #111 inset; }
.menu .objects { position: relative;  float: right;  margin-top: -3px }
.menu .objects ul { right: 0; left: auto;}
.menu .objects a { white-space: nowrap }
.menu .switch { margin: 5px; padding: 3px 5px; background-color: #b38; border-radius: 2px; box-shadow: 0 1px 1px #111 inset; color: #fff }

.content { position: relative; background-color: #eee; padding: 10px; }


/* Inputs */
form { margin: 10px 0; }
form div.fl { margin-right:20px; }
form p { margin: 0px 0px 10px; }
input, textarea, select, .multiselect-title { background: linear-gradient(#f5f5f5, #fff); margin: 0px 0; border: 1px solid #c5c5c5; border-radius: 2px; box-shadow: 0 1px 1px #eee inset; padding: 5px 6px; }
textarea { margin-top: 5px; }
select { text-align: left; padding: 4px 5px; max-width: 200px; }
tr:focus, li:focus, input:focus, button:focus { outline: none; }
table input { padding: 2px 6px; }

input:hover, textarea:hover, select:hover { box-shadow: 0 0px 3px #ccc inset; }
input:focus, .edit textarea:focus, select:focus { box-shadow: 0 0px 3px #ccc inset; border-color: #bbb; background: #ff9; outline: none; }
input:disabled, input[readonly], select[readonly], textarea[readonly] { background: #ccc; border: 1px solid #bbb; color: #000; box-shadow:none }
span.label { display: inline-block; width: 140px; vertical-align: top; padding: 6px 0; }
input.autoselect, input.autoselect:hover, input.autoselect:focus { width: auto; padding: 0; border: none; background: none; box-shadow: none; }

input + label { display: inline-block; cursor: pointer; position: relative; padding-left: 29px; margin: 0 10px 0 -18px; font-size: 13px; line-height: 24px; }
input + label:before { content: ""; display: inline-block; width: 24px; height: 24px; border-radius: 12px;
    margin-right: 14px; position: absolute; left: 0; bottom: 0px; background: #bbb;
    box-shadow: inset 0px 1px 1px 0px rgba(0, 0, 0, .3), 0px 1px 0px 0px rgba(255, 255, 255, .8); }
input:focus:checked + label:before, input:checked + label:before { text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
	content: "\2022"; color: #62AF58; font-size: 40px; text-align: center; line-height: 19px; background: #eee; }
input:focus + label:before, input:focus:checked + label:before { color: #69CE7E; background: #ff0; }
th.c, td.c { white-space: nowrap; }
table input[type=checkbox] + label { padding-left: 10px; }
input[type=checkbox] + label:before { border-radius: 3px; }
input[type=checkbox]:checked + label:before { content: "";background: url(images/tick.png) center no-repeat, linear-gradient(#ccc, #eee); }
input[type=checkbox]:focus:checked + label:before { background: url(images/tick.png) center no-repeat, linear-gradient(#ee0, #ff0); }

input[name=id] { text-align: right; }
input.datepicker { width: 70px; }

a { cursor: pointer; text-decoration: none; }
a.button { position: relative; display: inline-block; vertical-align: top; border-radius: 1px; padding: 5px 6px; height: 16px; min-width: 16px; margin: 2px;
						background-color: #ddd; color: #00f; line-height: 16px; white-space: nowrap; background: #eee center no-repeat; box-shadow: 0px 1px 1px rgba(0,0,0,0.5); }
a.button.on { background-color: #ff0; }
a.button img { vertical-align: top; }
a.button:hover { text-decoration: none; background-color: #fff; }

button { background-color: #53A93F; color: #fff; margin: 2px 0; border-radius: 3px; padding: 4px 20px; cursor: pointer;
		 border: 1px solid; border-color: #7a2 #481 #370; font-size: 15px; font-family: tahoma;
		 text-shadow: 0px 1px 3px rgba(0,0,0,0.4);
		 box-shadow: 0px 1px 1px 0px rgba(255,255,255,0.3) inset, 0px 1px 3px rgba(0,0,0,0.3); }
button:hover, button:focus { background-color: #65B045; color:#ff0; }

button[type=button] { background-color: #7af; margin: 0; border: 1px solid; border-color: #9cf #7af #69f; }
button[type=button]:hover { background-color: #8bf; }
button[type=button] img { margin-left: -4px; }
.mce-btn button[type=button] { background: transparent; border: none; } /* fix tinymce */

form.edit .fields select[name^=parent] { display: block; margin-bottom: 3px; }
.fields textarea, .fields input:not([name=id]) { width:300px; }
.prod_prices .fields input { width: 100px; }
.fields input[type=checkbox], .fields input[type=radio] { width: auto }
form.edit .tinymce { width: 420px; padding: 5px 0; }
.popup iframe, .hidden { display: none }
img { vertical-align: bottom; border: none }

/* Custom */
.navpack.articles form, .navpack.sale form, .navpack.temp form, .navpack.receive form { height:77px; }
.articles span.place { font-size: 48px; font-weight: bold; margin-right: 60px;}
.articles span.price { font-size: 48px; font-weight: bold; color: #c00 }
textarea[name=label] { font-family: 'Times new roman'; font-size:14px; width:160px; text-align: center; }
.popimg { width: 200px; margin-right: 0px; }


/* Pages */
.pages { margin: 0px auto; }
.pages a, .pages a:visited { font-size: 13px; display: inline-block; border-radius: 2px; width: 28px; padding: 3px 0px; text-align: center;
	margin: 2px 0 0 0; border: 1px solid transparent; text-shadow: 0px 1px 0px rgba(255,255,255,0.5);	-moz-user-select: none; -webkit-user-select: none; }
.pages a:hover { background-color: #f5f5f5; border: 1px solid #ccc }
.pages input { width: 28px; padding: 3px 0px; text-align: center; margin: 2px 2px 2px 2px; }


/* Table */
table { background: linear-gradient(#ddddFE,#ccccfc 30px), #ccccfc; width: 100%; text-align: left; border-radius: 4px; border: 1px solid #abe; border-spacing: 1px; }
th { font-weight: normal; line-height: 14px; padding: 9px 4px; font-size: 11px; background: center no-repeat }
th:first-child, td:first-child { border-left: none; }
th[data-field] { color: #00b; cursor: pointer; }
th[data-field]:hover:after { content: "\0025B2"; padding: 0; line-height: 6px; margin-right: -11px; }
th[data-field].asc:after   { content: "\0025B2"; padding: 0; line-height: 6px; margin-right: -11px; }
th[data-field].desc:after  { content: "\0025BC"; padding: 0; line-height: 6px; margin-right: -11px; }
td { background: #fff center no-repeat; padding: 3px 4px; font-size: 11px; }
tr:nth-child(odd) td1 { background-color: #E8EDFF; }
tr.green td, td.green { background-color: #cFc }
tr.blue td { background-color: #ccf }
tr.red td { background-color: #f99 }
tbody tr:hover td { background-color: #ddd; }
tbody tr:focus td, tr.focus td { background-color: #ff0; }
tbody tr.mark td { background-color: #f99; }
tfoot td { background: none }

.bimportant, .bimportant > td	{ background-color: #afa }
.bwarning, .bwarning > td		{ background-color: #faa }
.binfo, .binfo > td				{ background-color: #eee }
.cimportant, .cimportant > td	{ color: #00c }
.cwarning, .cwarning > td		{ color: #e00 }
.cinfo, .cinfo > td				{ color: #888 }

td.button, tr:focus td.button, tr:hover td.button  { cursor: pointer; padding: 2px 14px; height:16px; background-color: #eef; text-align: center }
td.button:hover { outline: #789 1px solid; }
table .txt		{ background-image: url(images/page_white_text.png); }
table .pdf		{ background-image: url(images/page_white_acrobat.png); }
table .view		{ background-image: url(images/zoom.png); }
table .add, a.add		{ background-image: url(images/add.png); }
table .edit, a.edit		{ background-image: url(images/pencil.png); }
table .del, span.del, a.del		{ background-image: url(images/delete.png); }
table .lock		{ background-image: url(images/lock.png); }
table .on, span.ok		{ background-image: url(images/accept.png); }
table .off		{ background-image: url(images/cancel.png); }
table .image	{ background-image: url(images/picture.png); }
table .video	{ background-image: url(images/film.png); }
table .document { background-image: url(images/book.png); }
table .icon		{ background-image: url(images/palette.png); }
table .text		{ background-image: url(images/page_white_text.png); }
table .order	{ background-image: url(images/arrow_up.png); }
table .enter, table .pick	{ background-image: url(images/arrow_right.png); }
table .print	{ background-image: url(images/printer.png); }
span.add		{ background-image: url(images/add.png); }
.nav td.input { box-shadow1: 0 0 3px #bbb inset; background: #fff; padding: 1px 3px; border1: 1px solid #4285F4 }
.nav td input.edit { width:100%; margin: 0; padding: 0; border: none; box-shadow: none; background: none; font-family: verdana; font-size:11px; }

td.dis, tr:focus td.dis { background-color: #ccc; }
.big { font-size: 14px }

/* Notification */
.notif { position: fixed; width: auto; background-color: #ddd; border-radius: 3px; box-shadow: 0 4px 16px #777; font-size: 13px; cursor: pointer; z-index: 9999; }
.notif > div { padding: 10px 20px; border-radius: 3px; }
.notif .info	{ background-color: #eee; }
.notif .warning { background-color: #a00; color:#fff }
.notif .success { background-color: #ff9; }


/* Popup */
.popup-back { display: none; background-color: #777; position: fixed;  top: 0; left: 0; width: 100%; bottom: 0px; z-index: 100; cursor: pointer; opacity: 0.7; }
.popup.login { display: block; position: relative; margin: 160px auto 160px auto; width: 370px; padding: 20px; left: auto; visibility: visible }
.popup { visibility: hidden; position: fixed; width: auto; padding: 0px; top: 50%; z-index: 110; }
.popup-title { display:none; margin-top: -10px; font-size: 15px; font-weight: bold; color:#050; font-family: arial; text-shadow: 1px 1px 3px rgba(0,0,0,0.2); }
.popup-title { display: block }
.popup-close { position: absolute; background: #e4e4e4; top: 0px; right: 0px; border-radius: 0px 2px 2px 0px; display: block; padding: 5px 8px 8px 8px;
			  font-size: 22px; color: #000; width: 18px; line-height: 18px; font-weight: bold; }
.popup-close:hover { background: lightcoral; color: #FFF; }
.popup-content { padding: 15px; background-color: #ddd; background: linear-gradient(#e5e5e5, #ccc); border-radius: 2px 0px 2px 2px; box-shadow: 0 4px 16px #777; max-height: 100%; max-width: 100%; overflow: auto; }

.preview { float:right; margin:-16px 20px 3px 0; height: 100px; max-width:300px; box-shadow: 0 0 17px #bbb; cursor: pointer; z-index: 1; background-color: #fff  }
.preview.fixed { position:fixed; top:30px; right:40px; }
.preview.fixed.preview-gif { right: 240px; }
.img-full { position:fixed; top:5%; right:20px;  z-index: 2; box-shadow: 0 0 17px #bbb; cursor: pointer; background-color: #fff; max-width: 600px; max-height: 700px }



/* Tree */
#tree { position: absolute; top: 60px; right: 30px; min-width: 600px; height: 650px; background-color: #bbb; border: 1px solid #555; border-radius: 4px; padding: 5px 10px; }
#tree iframe { width: 100%; height: 630px; }
.tree { min-width: 300px; height: 550px; padding: 10px 20px; background-color: #f5f5f5; line-height: 16px; margin: 0px 0 0 0px; border-radius: 4px; box-shadow: inset 0 0px 2px 0px #777; overflow-y: scroll; }
.tree .expand, .tree .collapse { padding: 0 0px; margin-left: -23px; cursor: pointer; display: inline-block; width: 16px; height: 16px; }
.tree .expand, .categories-tree .expand { background: url(images/expand.png) no-repeat; }
.tree .collapse, .categories-tree .collapse { background: url(images/collapse.png) no-repeat; }
.tree ul { list-style-type: none; padding-left: 15px; display: block; }
.tree li { padding: 1px 5px 1px 5px; display: block; clear: both; height: 16px; }
.tree li a { float: left; }
.tree li:hover { background-color: #ff0; }
.tree span { visibility: hidden; text-align: right; float: right; }
.tree li:hover span { visibility: visible; }
.tree em { color: #777; }
.tree a { color: #333; }
.tree img { vertical-align: top }
.tree-leve1l { margin-left: 10px }
.level-1 li { background-color: #f5f5f5; font-size: 14px; }
.level-2 li { background-color: #eee; font-size: 13px; }
.level-3 li { background-color: #e5e5e5; font-size: 12px; }
.level-4 li { background-color: #ddd; font-size: 11px; }
.level-5 li { background-color: #ccc; font-size: 10px; }
.level-6 li { background-color: #bbb; font-size: 10px; }

option.level-1, td.level-1 { background-color: #fff; }
option.level-2, td.level-2 { padding-left: 10px; background-color: #f5f5f5; font-size: 14px; }
option.level-3, td.level-3 { padding-left: 20px; background-color: #e5e5e5; font-size: 13px; }
option.level-4, td.level-4 { padding-left: 30px; background-color: #ddd; font-size: 12px; }
option.level-5, td.level-5 { padding-left: 40px; background-color: #ccc; font-size: 11px; }
option.level-6, td.level-6 { padding-left: 50px; background-color: #bbb; font-size: 10px; }