/*
 * ProjectManagement plugin - styles for MantisBT 2.x (Bootstrap 3 / ACE theme).
 * All classes are prefixed with 'pm-' to avoid conflicts with Bootstrap/ACE
 * (e.g. .progress, .bar, .invisible, .hidden, .category).
 */

/* ---- General ---- */

.pm-bold,
.pm-total-row > td,
.pm-total-row > th {
	font-weight: bold;
}

.pm-italic {
	font-style: italic;
}

.pm-negative {
	color: #d15b47;
}

.pm-positive {
	color: #629b58;
}

.pm-overdue {
	color: #d15b47;
	font-weight: bold;
}

.pm-total-row > td,
.pm-total-row > th {
	background-color: #eff3f8;
}

.pm-subheader-row > th {
	font-weight: normal;
	font-style: italic;
}

input.pm-modified {
	background-color: #fff5b1;
}

/* ace-mantis.css sets .input-sm widths with !important, so these need it too */
input[type="text"].pm-small-textbox {
	width: 3.5em !important;
	min-width: 0 !important;
	padding-left: 4px;
	padding-right: 4px;
}

input[type="text"].pm-large-textbox {
	width: 100% !important;
	max-width: 500px;
}

input[type="text"].pm-time-input {
	width: 5.5em !important;
	min-width: 0 !important;
}

input[type="text"].pm-date-input {
	width: 8em !important;
	min-width: 0 !important;
}

input[type="text"].pm-deployability-input {
	width: 3.5em !important;
	min-width: 0 !important;
	height: 22px;
	padding: 1px 4px;
	color: #333;
}

.pm-day-input {
	display: inline-block;
	margin-right: 10px;
	white-space: nowrap;
}

.pm-customer-checkbox,
.pm-clear-label {
	display: inline-block;
	margin-right: 12px;
	margin-bottom: 0;
	white-space: nowrap;
}

/* ---- Targets ---- */

td.pm-target-date-overdue {
	background-color: #f2dede !important;
}

td.pm-target-date-notice {
	background-color: #fcf8e3 !important;
}

/* ---- Expand / collapse ---- */

a.pm-subtle,
a.pm-subtle:link,
a.pm-subtle:visited,
a.pm-subtle:active {
	color: inherit;
	text-decoration: none;
}

a.pm-subtle:hover {
	color: #999999;
	text-decoration: none;
}

.pm-toggle-icon {
	width: 1.1em;
}

div.pm-content-list {
	margin-left: 20px;
}

/* ---- Project progress report ---- */

.pm-progress-overview {
	padding: 8px;
}

div.pm-project,
div.pm-category {
	border: 1px solid #d5e3ef;
	margin-bottom: 4px;
}

span.pm-progress-total-section {
	display: inline-block;
	width: 100%;
}

span.pm-progress-text-section {
	display: inline-block;
	width: 15%;
	padding: 2px 4px;
	vertical-align: top;
	border-right: 2px solid #ffffff;
	overflow: hidden;
	text-overflow: ellipsis;
}

span.pm-progress-bar-section {
	display: inline-block;
	width: 84%;
	vertical-align: top;
}

span.pm-title-section {
	font-weight: bold;
	background: #eff3f8;
}

span.pm-resource-name-section {
	display: inline-block;
	min-width: 10%;
	max-width: 19%;
	padding: 0 4px;
	border-right: 2px solid #ffffff;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: top;
}

span.pm-resource-progress-section {
	display: inline-block;
	width: 80%;
	vertical-align: top;
}

div.pm-bug:nth-child(odd) span.pm-row {
	background-color: #f9f9f9;
}

div.pm-bug:nth-child(even) span.pm-row {
	background-color: #f1f1f1;
}

/* ---- Bars (both reports) ---- */

div.pm-resource-section {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0 0 2px 0;
	line-height: 14px;
	white-space: nowrap;
	vertical-align: top;
}

span.pm-progress,
span.pm-bar,
span.pm-filler {
	display: inline-block;
	height: 14px;
	margin: 0;
	vertical-align: top;
	overflow: visible;
}

span.pm-progress {
	border: 1px solid #4d994d;
	background: #c8ffc8;
	box-sizing: content-box;
}

span.pm-bar {
	background: #4d994d;
	text-align: center;
	font-size: 8pt;
	line-height: 14px;
	color: #333333;
	white-space: nowrap;
}

span.pm-bar-overdue {
	background: #666600;
}

span.pm-bar-na {
	background: #bbbbbb;
}

span.pm-plain-link,
span.pm-plain-link:hover {
	color: #000000;
	text-decoration: none;
	cursor: default;
}

/* ---- Resource progress (Gantt) report ---- */

table.pm-gantt {
	margin-bottom: 0;
}

.table > tbody > tr.pm-progress-row > td {
	padding: 1px 4px;
	line-height: 16px;
	vertical-align: middle;
}

.table > tbody > tr.pm-children-row > td {
	padding: 0;
	border-top: none;
}

td.pm-gantt-label {
	width: 15%;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 250px;
	position: relative;
}

td.pm-gantt-bar {
	width: 85%;
	text-align: left;
}

tr.pm-row-project > td.pm-gantt-label {
	font-weight: bold;
}

tr.pm-row-category > td {
	background-color: #f5f5f5;
}

.pm-description-info {
	position: absolute;
	margin-left: 4px;
	opacity: 0.2;
}

.pm-gantt-toolbar {
	display: inline-block;
	line-height: 36px;
	padding-right: 8px;
	color: #ffffff;
}

.pm-gantt-toolbar label {
	margin-bottom: 0;
	font-weight: normal;
}
