.bttn,
.bttn-ico,
.submit_buttons.new_page_section input[type='submit'].bttn {
	background-color: #f5f5f5;
	border: solid 1px #c4c4c4;
	border-radius: 3px;
	color: #646464;
	cursor: pointer;
	display: inline-block;
	font: normal 14px "Helvetica Neue", Helvetica, Arial; /* For inputs with .bttn class */
	margin: 0;
	padding: 6px 18px;
	text-decoration: none;
	text-shadow: none;
}
.bttn::-moz-focus-inner {
	border: 0;
	padding: 0;
}
.bttn:hover,
.bttn-ico:hover {
	border-color: #adadad;
	text-decoration: none !important; /* TODO: Remove !important. */
}
.bttn:active,
.bttn.active,
.bttn-ico:active,
.bttn-ico.selected {
	background-color: #ededed;
	border-color: #adadad;
	color: #515252;
}
.bttn.disabled:hover,
.bttn-ico.disabled:hover {
	border: solid 1px #c4c4c4;
	cursor: default;
}
.bttn.disabled:active,
.bttn.disabled.active,
.bttn-ico.disabled:active {
	background-color: #f5f5f5;
	border: solid 1px #c4c4c4;
	color: #646464;
	cursor: default;
}
.bttn-m {
	font-size: 12px;
	padding: 4px 14px;
}
.bttn-s {
	font-size: 11px;
	padding: 2px 10px;
}

.bttn-green,
.ui-dialog .ui-button.bttn-green,
.ui-dialog .ui-button.bttn-green.ui-state-default,
.submit_buttons.new_page_section input[type='submit'].bttn-green {
	background-color: #86b829;
	border-color: #78a12c;
	color: #fff;
}
.bttn-green:hover,
.ui-dialog .ui-button.bttn-green.ui-state-hover,
.submit_buttons.new_page_section input[type='submit'].bttn-green:hover {
	background-color: #82b327;
	border-color: #6e8f31;
}
.bttn-green:active,
.bttn-green.active,
.ui-dialog .ui-button.bttn-green.ui-state-active,
.ui-dialog .ui-button.bttn-green.ui-state-focus,
.submit_buttons.new_page_section input[type='submit'].bttn-green:active {
	background-color: #69990f;
	border-color: #69990f;
	color: #fff;
}
.bttn-green.disabled,
.bttn-green.disabled:hover {
	background-color: #86b829 !important;
	border-color: #78a12c !important;
	color: #fff;
	opacity: .5;
}

.bttn-blue {
	background-color: #0186bd;
	border-color: #006f9e;
	color: #fff;
}
.bttn-blue:hover,
.bttn-blue.hover {
	background-color: #0078a9;
	border-color: #006b99;
}
.bttn-blue:active {
	background-color: #006f9e;
	border-color: #006f9e;
	color: #fff;
}

.bttn-red,
.ui-dialog .ui-button.bttn-red,
.ui-dialog .ui-button.bttn-red.ui-state-default {
	background-color: #e02b28;
	border-color: #cc2727;
	color: #fff;
}
.bttn-red:hover,
.ui-dialog .ui-button.bttn-red.ui-state-hover {
	background-color: #cc2727;
	border-color: #c22020;
}
.bttn-red:active,
.ui-dialog .ui-button.bttn-red.ui-state-active,
.ui-dialog .ui-button.bttn-red.ui-state-focus {
	background-color: #cc2727;
	border-color: #cc2727;
	color: #fff;
}

.bttn-close {
	background: url('../../../images/ui/btn-close.png') bottom;
	cursor: pointer;
	display: block;
	height: 12px;
	width: 12px;
}
.bttn-close:hover {
	background-position: top;
}

.bttn-dropdown {
	background-image: url('../../../images/ui/ico-dropdown.gif');
	background-repeat: no-repeat;
	background-position: center;
	padding: 0;
}

.bttn-cancel {
	color: #646464 !important; /* TODO: remove !important */
	margin-left: 10px;
}

.bttn-ico {
	padding-top: 0;
	padding-bottom: 0;
	height: 28px;
}

.bttn-ico-text {
	color: #646464 !important;
	padding-left: 34px;
	padding-top: 6px;
	padding-bottom: 6px;
	position: relative;
}
.bttn-ico-text span {
	height: 15px;
	left: 9px;
	position: absolute;
	top: 7px;
	width: 15px;
}

.bttns-socd {
	height: 18px;
}
.bttns-socd .bttn-socd {
	background: #fff;
	border: solid 1px #d9d9d9;
	border-radius: 3px;
	color: #bababa;
	float: left;
	font-size: 12px;
	font-weight: bold;
	padding: 0 4px;
	margin: 0 4px 0 0;
	text-transform: uppercase;
}
.bttns-socd .bttn-socd.open {
	background: #86b829;
	border-color: #86b829;
	color: #fff;
}
.bttns-socd .bttn-socd.deadline {
	background: #faac44;
	border-color: #faac44;
	color: #fff;
}
.bttns-socd .bttn-socd.late {
	background: #ff423e;
	border-color: #ff423e;
	color: #fff;
}


#left_sidebar #sidebar_buttons .bttn{
	font-size: 13px;
}
#left_sidebar #sidebar_buttons .bttn-new-proof .bttn {
	height: 32px;
	box-sizing: border-box;
	border: none;
	border-bottom: 2px solid #6b901c;
}
#left_sidebar #sidebar_buttons .bttn-dropzone {
	position: relative;
	color: #3968a4;
	line-height: 100%;
	padding: 7px 0 7px 14px;
	width: 174px;
	background-color: #fff;
	margin-bottom: 2px;
}
#left_sidebar #sidebar_buttons .bttn-dropzone:active,
#left_sidebar #sidebar_buttons .bttn-dropzone.active,
#left_sidebar #sidebar_buttons .bttn-dropzone:hover {
	background-color: #f5f5f5;
}
#left_sidebar #sidebar_buttons .bttn-dropzone span.arrows_sprite {
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	width: 22px;
	height: 28px;
	box-sizing: border-box;
	background-position: center 10px;
	border-left: 1px solid #c4c4c4;
}

.bttn-new-proof {
	position: relative;
	width: 190px;
}
#left_sidebar #sidebar_buttons .bttn-new-proof .bttn {
	color: #fff;
	line-height: 100%;
	padding: 9px 0 7px 14px;
	position: relative;
	width: 167px;
	z-index: 100;
}
#left_sidebar #sidebar_buttons .bttn-new-proof .bttn:hover {
	z-index: 101;
}
#left_sidebar #sidebar_buttons .bttn-new-proof.longer .bttn {
	border-radius: 3px;
	width: 179px;
}
.bttn-new-proof .bttn-first {
	border-radius: 3px 0 0 3px;
}
#left_sidebar #sidebar_buttons .bttn-new-proof .bttn-dropdown {
	background-position: center -32px;
	border-radius: 0 3px 3px 0;
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 22px;
	padding: 0;
}
#left_sidebar #sidebar_buttons .selected .bttn-new-proof .bttn-first {
	border-radius: 3px 0 0 0;
}
#left_sidebar #sidebar_buttons .selected .bttn-new-proof .bttn-dropdown {
	border-radius: 0 3px 0 0;
}

.bttn-list-sort {
	color: #646464 !important;  /* TODO: Remove !important. */
	background-image: url('../../../images/ui/ico-dropdown-sprite.gif');
	background-position: 95% 4px;
	background-repeat: no-repeat;
	padding-right: 30px;
	display: none;
	/visibility: hidden;
}
.bttn-list-sort:active,
.bttn-list-sort.active,
.bttn-list-sort:hover {
	background-position: 95% -36px;
}

/* TODO: refactor when all buttons with icons will be implemented */
.bttn-ico.show-hide-diagram {
	background-image: url('../../../images/sbw-icons.gif');
	background-repeat: no-repeat;
	background-position: -139px 5px;
	margin-left: 24px;
}
.bttn-ico.show-hide-diagram:hover,
.bttn-ico.show-hide-diagram.selected {
	background-position: -139px -19px;
}

.bttn.add-template {
	margin-left: 24px;
}
.bttn.add-template span {
	background-image: url('../../../images/sbw-icons.gif');
	background-repeat: no-repeat;
	background-position: -87px -1px;
}
.bttn.add-template:hover span,
.bttn.add-template:active span {
	background-position: -87px -25px;
}

.bttn.context_menu {
	background-image: url('../../../images/ui/ico-dropdown-sprite.gif');
	background-repeat: no-repeat;
	background-position: 105% 4px !important;
	color: #646464;
	height: auto;
	font-size: 12px;
	padding-left: 35px;
	padding-right: 25px;
	padding-top: 8px;
	position: relative;
	width: auto;
}
.bttn.context_menu span {
	background-image: url('../../../images/ui/ico-more-opt-sprite.png');
	background-position: 3% 5px;
	background-repeat: no-repeat;
	position: absolute;
	width: 28px;
	height: 28px;
	top: 0;
	left: 0;
}
.bttn.context_menu:hover {
	background-position: 105% -36px;
}
.bttn.context_menu:hover span {
	background-position: 3% -35px;
}
