/* ticket system */

body, form, input, label, li, select {
	color: #0F0F0F;
}

optgroup, option, select {
	background-color: #FFFFFF;
}

.primary {
	color: #FFFFFF !important;
}

a:hover {
	color: #0069D6;
}

body {
 	min-width: 880px;
}

blockquote, q {
	quotes:none;
}

blockquote:before, blockquote:after,
q:before, q:after {
	content:'';
	content:none;
}

blockquote p {
	font-size: 13px;
    font-weight: normal;
    line-height: 18px;
    margin-bottom: 9px;
}

blockquote, blockquote {
	border-left: 2px solid #8900FE;
	margin: 5px 0;
	padding: 5px 0px 5px 7px;
}

blockquote blockquote { border-color: #00CCFF !important; }
blockquote blockquote blockquote { border-color: #72FF00 !important; }
blockquote blockquote blockquote blockquote { border-color: #FE0000 !important; }
blockquote blockquote blockquote blockquote blockquote { border-color: #FF0090 !important; }
blockquote blockquote blockquote blockquote blockquote blockquote { border-color: #FFF601 !important; }
blockquote blockquote blockquote blockquote blockquote blockquote blockquote { border-color: #FFAD00 !important; }

ul, ol {
    margin: 0;
}

.clear {
    clear: both;
}

.overflow-hidden {
	overflow: hidden;
}

.overflow-x-hidden {
	overflow-x: hidden;
}

.overflow-y-hidden {
	overflow-y: hidden;
}

.inputs-list input[type="radio"], .inputs-list input[type="checkbox"] {
	margin: 3px 5px 0 -20px; /* remove this with new bootstrap versoin and have a new look at it */
}

.clearfix.error span.mceEditor > table {
	border: 1px solid #EE5F5B !important;
	border-radius: 3px 3px 3px 3px !important;
}

/* TOP BAR */

#top-bar {
    background: #2D2D2D;
    height: 29px;
    border-bottom: 1px solid #000000;
    color: #CCCCCC;
}

#top-bar div.menu {
    /*padding-left: 4px;*/
}

#top-bar div.menu ul {
    list-style: none;
}

#top-bar div.menu ul li {
    float: left;
    margin: 0 4px;
}

#top-bar div.menu ul > li.strike {
    border-right: 1px solid #ccc;
	padding-right: 5px;
}

#top-bar div.menu ol > li.strike {
    border-top: 1px solid #ccc;
    padding-top: 5px;
    margin-top: 5px;
}

#top-bar div.menu ul li a,
#top-bar div.menu li > span {
    color: #CCCCCC;
    display: block;
    line-height: 27px;
    font: 13px/27px Arial,sans-serif;
    text-decoration: none;
}

#top-bar div.menu ul li a span {
    border-top: 2px solid transparent;
    display: block;
    padding: 0 5px;
}

#top-bar div.menu ul > li > a.active {
    color: #fff;
    font-weight: bold;
}

#top-bar div.menu ul li a:hover span,
#top-bar div.menu ul li a:focus span {
    background-color: #4C4C4C;
}

#top-bar div.menu ul li.sub-open > a span {
    background: #fff;
    box-shadow: 0 1px 5px #CCCCCC;
    border-bottom: 1px solid #fff;
    color: #3366CC;
}

#top-bar div.menu ul li ol {
    display: none;
    z-index: 2000;
    background: #fff;
    box-shadow: 0 5px 5px #CCCCCC;
    position: absolute;
    padding: 10px 0;
	border: 1px solid #E9E9E9;
	border-top: none;
}

#top-bar div.menu ol li {
    float: none;
    list-style: none;
    margin: 0;
}

#top-bar div.menu ol > li > a.active {
    font-weight: bold;
}

#top-bar div.menu ul li ol li a {
    color: #3366CC;
}

#top-bar div.menu ul li ol li span {
    padding: 0 20px;
}

#top-bar div.menu ul li ol li strong {
    color: #000;
    font-weight: bold;
}

#top-bar div.menu ul li ol li a span {
    padding: 0 20px;
}

#top-bar div.menu ul li ol li a:hover span,
#top-bar div.menu ul li ol li a:focus span {
    background: #EFF3FB;
}

#top-bar-search form {
	margin: 0;
	padding: 3px;
}

#top-bar-search input {
	background-color: #444444;
	border: 0;
	color: #FFFFFF;
	height: 16px;
	width: 170px;
}

#top-bar-search input:-moz-placeholder {
	color: #E6E6E6;
}
#top-bar-search input::-webkit-input-placeholder {
	color: #E6E6E6;
}
#top-bar-search input:hover {
	background-color: #BFBFBF;
	color: #FFFFFF;
}
#top-bar-search input:focus, #top-bar-search input.focused {
	background-color: #FFFFFF;
	color: #404040;
}

#profile-menu {
    float: right;
    margin-right: 5px;
}

#profile-menu ol {
    min-width: 200px;
}

/* HEADER */
div#header {
    background-color: #f5f5f5;
    border-bottom: 1px solid #ccc;
	padding: 8px 10px;
	height: 80px;
	position: relative;
}

#banner_times {
	float: right;
	height: 100%;
}

#banner_times table {
	width: auto;
	margin: 0;
	height: 100%;
}

#banner_times table td, #banner_times table th {
	border: 0;
	padding: 3px;
	vertical-align: middle;
}

#banner_times table table td {
	padding-left: 5px;
}

#banner_times table table th {
	border-right: 1px solid #CCCCCC;
	font-weight: normal;
	padding-right: 5px;
	text-align: right;
}

.alert-wrapper {
	position: absolute;
	width: 600px;
	top: 80px;
	left: 50%;
	margin-left: -300px;
}

/* PAGE */
div#page {
	margin: 25px 10px;
}

/* SIDEBAR */
div#sidebar {
    width: 160px;
    float: left;
}

/* SUB-MENU */

div#sub-menu ul {
    list-style: none;
}

div#sub-menu ul > li.strike span {
    border-top: 1px solid #ccc;
    display: block;
	margin: 6px;
}

div#sub-menu ul li a {
    color: #333;
    text-decoration: none;
}

div#sub-menu ul li a span {
    display: block;
    margin: 6px;
    padding: 6px 4px;
}

div#sub-menu ul li a:hover span,
div#sub-menu ul li a:focus span {
    background: #f5f5f5;
}

div#sub-menu li a.active {
    font-weight: bold;
    color: #DD4B39;
}

div#sub-menu ol {
	list-style-type: none;
}

div#sub-menu ol li a {
	margin: 0;
	padding: 7px 10px 7px 20px;
}

/* CONTENT */
div#content {
	padding-top: 10px;
	margin-left: 160px;
	min-width: 650px;
}

div#content a.close, div.modal a.close {
	color: #BBBBBB;
	font-size: 13px;
	position: absolute;
	top: 5px;
	right: 7px;
}
div#content a.close:hover, div.modal a.close:hover {
	text-decoration: none;
	color: #0F0F0F;
}

div#content a[href^="http://"]:after, div#content a[href^="https://"]:after {
	font-family: FontAwesome;
	content: " \f08e";
}

/* CONTROLS */
div.button-group {
    display: inline;
}

a.button {
    background: #f5f5f5;
    position: relative;
    color: #666;
    border: 1px solid #ccc;
    padding: 6px 10px;
    margin: 0;
    text-decoration: none;
    float: left;
    z-index: 999;
}
a.button:hover, a.button:focus {
    color: #0F0F0F;
    border-color: #0F0F0F;
    z-index: 1000 !important;
}

a.button-left {
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
    left: 1px;
}

a.button-right {
    left: -1px;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
    margin-right: 10px
}

a.button-icon-down {
    background: url("../images/sort-asc.gif") no-repeat scroll right center #F5F5F5;
    padding-right: 20px;
}

.dropdown-trigger-selected {
	background: url("../images/sort-asc.gif") no-repeat scroll right #A9DBA9 !important;
	border-color: #46A546 !important;
	color: #0F0F0F !important;
}

.dropdown-trigger-open {
	background: url("../images/sort-asc.gif") no-repeat scroll right #fff !important;
	border-bottom: 1px solid #fff !important;
	border-top: 1px solid #ccc !important;
	border-left: 1px solid #ccc !important;
	border-right: 1px solid #ccc !important;
	border-bottom-right-radius: 0 !important;
}

ul.dropdown {
	background: #FFFFFF;
    border: 1px solid #CCCCCC;
    box-shadow: 0 1px 5px #CCCCCC;
    padding: 10px 0;
 	list-style: none;
}

ul.dropdown li.strike {
	display: block;
	border-top: 1px solid #CCCCCC;
	margin: 5px 0;
}

ul.dropdown li.selected {
	background: #A9DBA9;
}

ul.dropdown li a {
	display: block;
	padding: 2px 10px;
	color: #0F0F0F;
	text-decoration: none;
}

ul.dropdown li a:hover {
	background: #E8E8E8;
}

a.button-clicked {
	background: -moz-linear-gradient(center top , #777777, #999999) repeat scroll 0 0 transparent;
}

a.button-single {
    border-radius: 2px;
    margin-right: 10px
}

a.button-disabled {
    opacity: 0.6;
    cursor: default;
}

a.button-disabled:hover,
a.button-disabled:focus {
    color: #666;
    border: 1px solid #ccc;
}

div.panel-controls {
	height: 50px;
}

div.panel-controls select {
	box-shadow: none;
	border-radius: 2px;
}

div.panel-search {
    float: left;
    border: 1px solid #ccc;
    border-radius: 2px;
    padding: 4px 10px 5px 25px;
    background: url("../images/searchfield_left.png") no-repeat 0 2px;
    height: 16px;
    margin-left: 2px;
}

div.panel-search input {
	padding: 0;
    border: none;
    box-shadow: none;
    height: 16px !important;
}

div.panel-search input:focus {
    box-shadow: none;
}

a.panel-filter-clear-button {
    display: inline-block;
    position: relative;
    top: 1px;
    width: 11px;
    height: 11px;
    background: url("../images/searchfield_reset.png") no-repeat 0 0;
}

div.pager {
    float: right;
}

div.pager a {
	margin-right: 0;
}

div#page-count {
    float: left;
    font-weight: bold;
    line-height: 30px;
    padding-right: 10px;
}

/* TABLE */
table.panel {
    width: 100%;
    background: #f5f5f5;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-left: none;
    border-right: none;
}

table.panel tr {
	border-collapse: collapse !important;
}

table.panel td {
	vertical-align: middle;
}

table.panel tbody tr:hover {
	cursor: pointer;
	background-color: #FCFCFC;
}

table.panel tr th:first-child, table.panel tr td:first-child {
	padding-left: 10px;
}

table.panel tr th:first-child, table.panel tr td:last-child {
	padding-right: 10px;
}

table.panel tbody tr.checked {
    background: #FFFFCC;
}

table.panel thead tr th {
    background: #fff;
    line-height: 30px;
    font-weight: bold;
    text-align: left;
    border: none;
    padding: 0;
}

table.panel thead tr th a {
    color: #0F0F0F;
    text-decoration: none;
}

table.panel thead th.header:after {
	content: none; /* reset a stupid bootstrap feature */
}

table.panel thead th.header a {
    background: url("../images/sort-header.gif") no-repeat scroll right center transparent;
    padding-right: 23px;
}
table.panel thead th.headerSortDown a {
    background: url("../images/sort-asc.gif") no-repeat scroll right center transparent;
}
table.panel thead th.headerSortUp a {
    background: url("../images/sort-desc.gif") no-repeat scroll right center transparent;
}

table.panel tbody tr td {
    border-top: 1px solid #E4E4E4;
    border-bottom: none;
    border-left: none;
    padding: 5px 5px 5px 0;
}

table.panel td.panel-actions a {
	padding: 0 2px;
}

select.selectDropDown {
	display: none;
}

/* BREADCRUMB */
#breadcrumb {
    background: none repeat scroll 0 0 #fff;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    height: 27px;
    line-height: 27px;
    margin: 0 0 20px 0;
}
#breadcrumb li {
    display: inline;
    float: left;
    list-style-type: none;
    margin: 0;
    padding: 0;
}
#breadcrumb li a {
    display: inline;
    float: left;
    line-height: 27px;
}
#breadcrumb a {
    background: url("../images/link-arrow-active.gif") no-repeat scroll left center transparent;
    margin-right: 8px;
    padding-left: 8px;
    color: #0F0F0F;
    text-decoration: none;
}
#breadcrumb a:hover, #breadcrumb a:focus, #breadcrumb a:active {
    text-decoration: underline;
}

/* Ticket Detail */

div.timeline-controls, #ticket-info > div.panel-controls {
	float: right;
	line-height: 36px;
	height: auto;
}

#ticket-info h2 {
	margin-bottom: 10px;
}

table.ticket-detail {
	margin-bottom: 0;
    width: 100%;
}

table.ticket-detail th, table.ticket-detail td {
    text-align: left;
}

table.ticket-detail th {
    width: 150px;
    padding: 10px 5px;
    background: #f5f5f5;
	border-bottom: none;
    border-left: 1px solid #DDDDDD;
}

table.ticket-detail tr + tr th {
    border-top: 1px solid #DDDDDD;
}

#ticket_comment_add {
	margin-top: 20px;
}

div.comment {
    margin: 20px 0;
}

div.comment .comment-desc {

}

div.comment .comment-icons {
	float: right;
	display: none;
}

div.comment:hover .comment-icons {
	display: block;
}

div.comment .comment-icons i {
	color: #BBBBBB;
	font-weight: bold;
}
div.comment .comment-icons i:hover {
	color: #0F0F0F;
	text-decoration: none;
}

div.comment .comment-text .arrow {
    height: 8px;
    background: url(../images/comment-arrow.png) no-repeat 30px top;
    position: relative;
    top: 1px;
}

div.comment .comment-text .text {
    margin: 0 15px;
    padding: 9px 9px 0 9px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 5px;
}

div.comment .comment-text .text .changes {
    list-style: none;
	margin: 0 0 9px 0;
	padding: 0;
}

div.comment .comment-text .text .description {
	margin-top: 0 0 9px 0;
}

div.timeline {
	width: 500px;
	min-height: 15px;
}

div.timeline > blockquote { padding-top: 0; }
div.timeline blockquote { border-color: #FFAD00 }
div.timeline blockquote blockquote { border-color: #8900FE }

div.timeline div.header {
    font-size: 120%;
	padding: 5px;
	border-bottom: 1px solid #666;
}

div.timeline div.change {
    margin-top: 10px;
}

div.timeline div.change .change-text .arrow {
    height: 8px;
    background: url(../images/comment-arrow.png) no-repeat 85px top;
    position: relative;
    top: 1px;
    z-index: 1001;
}

div.timeline div.change .change-text a.close {
	display: none;
}

div.timeline div.change .change-text .text {
	position: relative;
    padding: 10px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: #0f0f0f;
    z-index: 1000;
}

div.timeline div.change-read .change-text {
    opacity: 0.6;
}

div.timeline div.change-read .change-text:hover {
	opacity: 1.0;
}

div.timeline div.change .change-text:hover .arrow {
    background: none;
}

div.timeline div.change .change-text:hover a.close {
	display: block;
}

div.timeline div.change .change-text:hover .text {
	cursor: pointer;
	background-color: #FCFCFC;
    border-color: #666;
    box-shadow: 0 1px 7px #CCCCCC;
}

div.timeline div.change .change-text .text .list {
    list-style: none;
	margin-top: 10px;
    padding-left: 1em;
}

div.timeline div.change .change-text .text .list li {
	margin-bottom: 2px;
}

#filter-view-controls {
	text-align: right;
}

/* FOOTER */
#footer {
    line-height: 20px;
    margin-top: 30px;
    padding-top: 10px;
    border-top: 1px solid #ccc;
    font-size: 85%;
    text-align: center;
    color: #666;
}

#footer div.footer-copyright a:hover {
	text-decoration: none;
}

/* password lost */
.captcha {
    margin-left: 150px;
}

.captcha img#password_lost_captcha {
	border: 1px solid #CCCCCC;
    border-radius: 0 3px 3px 0;
    margin: 0;
    padding: 4px;
    width: 210px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) inset;
}

.captcha span.add-on {
	height: 54px;
}

/* content */
.text p {
	margin: 0 0 9px 0;
	padding: 0;
}

.text ul, .text ol {
	margin: 0 0 9px 25px;
	padding: 0;
}

.text li {
	margin: 0;
	padding: 0;
}

/* dialog */
div.choice_dialog_searchbar {
	margin-bottom: 5px;
}

li.choice_dialog_entry {
	padding: 5px;
}

li.choice_dialog_entry:hover, li.choice_dialog_entry.checked {
	background-color: #F5F5F5;
}

ul.inputs-list h3 {
	font-size: 14px;
	line-height: 24px;
	margin-left: -5px;
	margin-top: 5px;
}

div.choice_dialog hr {
	margin: 8px 0;
}

/* form */
form.form div.select-overlay span.text {
	display: inline-block;
	margin-right: 10px;
    padding: 7px 0;
}

form.form .input-file ul {
	margin: 4px 0 0 25px;
}

form.form .input-file li a {
	margin-left: 4px;
}

div.choice_dialog_searchbar input {
	width: 100%;
}

/* Milestone */
#project-milestone-overall {
	line-height: 30px;
}

div#project-milestone-container {
	padding-top: 10px;
	position: relative;
	overflow-x: auto;
	overflow-y: hidden;
	height: 280px;
}

.project-milestone-scale div {
	height: 49px;
	border-bottom: 1px dashed #C2CBE0;
	position: relative;
}

.project-milestone-scale div span {
	font-size: 80%;
	position: absolute;
	bottom: 0;
	left: 0;
}

ul.project-milestone {
	position: absolute;
	top: 10px;
	left: 0;
    list-style: none;
    margin-left: 30px;
}

ul.project-milestone li {
	float: left;
	height: 240px;
	position: relative;
}

ul.project-milestone li.hover div.bar span {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) inset, 0 0 8px rgba(82, 168, 236, 0.6);
}

ul.project-milestone li div.bar {
	position: relative;
	height: 200px;
	padding: 0 30px;
	text-align: center;
}

ul.project-milestone li.update div.bar {
	cursor: move;
}

ul.project-milestone li div.bar span {
	position: absolute;
	bottom: 0;
	width: 30px;
	left:0;
	right:0;
	margin-left:auto;
	margin-right:auto;
}

ul.project-milestone li.dropfield {
	width: 90px;
}
.bar-green {
	background-color: #62bc62;
  	background-repeat: repeat-x;
  	background-image: -khtml-gradient(linear, left top, left bottom, from(#97d397), to(#62bc62));
  	background-image: -moz-linear-gradient(#97d397, #62bc62);
  	background-image: -ms-linear-gradient(#97d397, #62bc62);
  	background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #97d397), color-stop(100%, #62bc62));
  	background-image: -webkit-linear-gradient(#97d397, #62bc62);
  	background-image: -o-linear-gradient(#97d397, #62bc62);
  	background-image: linear-gradient(#97d397, #62bc62);
  	border-bottom-color: #46a546;
}
.bar-turquoise {
	background-color: #04aef4;
  	background-repeat: repeat-x;
  	background-image: -khtml-gradient(linear, left top, left bottom, from(#62cffc), to(#04aef4));
  	background-image: -moz-linear-gradient(#62cffc, #04aef4);
  	background-image: -ms-linear-gradient(#62cffc, #04aef4);
  	background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #62cffc), color-stop(100%, #04aef4));
  	background-image: -webkit-linear-gradient(#62cffc, #04aef4);
  	background-image: -o-linear-gradient(#62cffc, #04aef4);
  	background-image: linear-gradient(#62cffc, #04aef4);
  	border-bottom-color: #049cdb;
}
.bar-orange {
	background-color: #ffd040;
  	background-repeat: repeat-x;
  	background-image: -khtml-gradient(linear, left top, left bottom, from(#ffe38d), to(#ffd040));
  	background-image: -moz-linear-gradient(#ffe38d, #ffd040);
  	background-image: -ms-linear-gradient(#ffe38d, #ffd040);
  	background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffe38d), color-stop(100%, #ffd040));
  	background-image: -webkit-linear-gradient(#ffe38d, #ffd040);
  	background-image: -o-linear-gradient(#ffe38d, #ffd040);
  	background-image: linear-gradient(#ffe38d, #ffd040);
  	border-bottom-color: #ffc40d;
}
.bar-red {
	background-color: #d83a2e;
  	background-repeat: repeat-x;
  	background-image: -khtml-gradient(linear, left top, left bottom, from(#e4776f), to(#d83a2e));
  	background-image: -moz-linear-gradient(#e4776f, #d83a2e);
  	background-image: -ms-linear-gradient(#e4776f, #d83a2e);
  	background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #e4776f), color-stop(100%, #d83a2e));
  	background-image: -webkit-linear-gradient(#e4776f, #d83a2e);
  	background-image: -o-linear-gradient(#e4776f, #d83a2e);
  	background-image: linear-gradient(#e4776f, #d83a2e);
  	border-bottom-color: #b32b21;
}

ul.project-milestone li em {
	display: block;
	line-height: 20px;
	min-width: 90px;
	text-align: center;
}

.project-milestone-stats {
	font-size: 80%;
	margin: 0.5em 0;
}

.project-milestone-actions {
	text-align: right;
	margin-top: 0.5em;
}

.project-milestone-actions a {
	margin-left: 0.5em;
}

.menu-dropdown, .dropdown-menu {
	top: 20px;
	right: 0;
}

/* TinyMCE */

.mce-btn button {
    padding: 4px 8px !important;
    line-height: 100% !important;
}

.mce-ico {
    font-size: 16px !important;
}

.mce-path {
    padding: 4px !important;
}
