/*
    Document   : main
    Created on : 2013-aug-04, 14:09:15
    Author     : Gunnar Rikardsson <gunnar.rikardsson@candere.se>
    Description: Adapted for SAMS
*/

body
{
	margin: 0;
	padding: 0;
	color: #555;
	font: normal 10pt Arial,Helvetica,sans-serif;
	background: #EFEFEF;
/*	border: 1px solid red;   */
}

.container
{
/*	border: 1px solid black;    */
}

#page
{
	margin-top: 5px;
	margin-bottom: 5px;
	background: white;
	border: 1px solid #B7C3D8;
}

#header
{
	margin: 0;
	padding: 0;
	border-top: 3px solid #B7C3D8;
  height: 47px;
/*	border-bottom: 1px solid blue;    */
/*	border-left: 1px solid blue;      */
/*	border-right: 1px solid blue;     */
}

#logo
{
  height: 47px;
    background: url('../images/logo/logo_main.png') no-repeat;
/*	border: 1px solid green;    */
}

#appname
{
  height: 47px;
  font-size: 150%;
  text-indent: 20px;
  line-height: 45px;
  vertical-align: middle;
}

#userinfo
{
  height: 42px;
  margin: 5px 0 0 0;
  text-align: right;
  vertical-align: middle;
}

#header-title {
	margin-top: 15px;
}

#mainmenu
{
	/* background:white url(bg.gif) repeat-x left top; */
	background: #8092B0;
}

#mainmenu ul
{
	padding: 6px 20px 5px 5px;  /* här kan horisontell justering av menyvalen göras, ändra vänster, dvs sista värdet */
	margin: 0;
/*	border: 1px yellow solid;  */
}

#mainmenu ul li
{
	display: inline;
}

#mainmenu ul li a
{
	color:#ffffff;
	background-color:transparent;
	font-size:12px;
	font-weight:bold;
	text-decoration:none;
	padding:5px 8px;
}

#mainmenu ul li a:hover, #mainmenu ul li.active a
{
	color: #2A4572;
	background-color:#B7C3D8;
	text-decoration:none;
}

.breadcrumbs
{
	font-size: 0.9em;
	padding: 5px 12px;
/*  width: 700px;
	border: 1px brown solid;   */
}

.breadcrumbs span
{
	font-weight: bold;
}

.breadcrumps a:focus, a:hover
{
 color: #392C77;
}

.breadcrumps a
{
 color: #2A4572;
}

#content
{
    padding: 10px;
/*	border: 1px brown solid;    */
}

#content h4
{
/*	border: 1px blue solid;   */
}

#operations
{
/*	border: 1px blue solid;   */
    text-align: right;
    float: right;
}

.operationsmenu
{
/*	background: #FFE4B2;  */
	background: #FFFFFF;
}

.operationsmenu ul
{
	padding: 5px 0px;  /* här kan horisontell justering av menyvalen göras, ändra vänster, dvs sista värdet */
	margin: 0;
}

.operationsmenu ul li
{
	background: #FFE4B2;
	display: inline;
}

.operationsmenu ul li a, .operationsmenu ul li span
{
	color: #392C77;
/*	background-color: transparent;  */
	font-size: 12px;
/*	font-weight:bold;  */
	font-variant: small-caps;
	text-decoration: underline;
	padding: 0px 5px;
}

.operationsmenu ul li a:hover, .operationsmenu ul li span:hover
{
	color: #392C77;
	background-color:#C1BBDB;
	text-decoration:none;
}

.operationslink
{
        background: #FFE4B2;
	color: #392C77;
	font-size: 12px;
	font-variant: small-caps;
	text-decoration: underline;
        border: none;
        cursor: pointer;
}

a.operationslink:hover, .operationslink:hover
{
	color: #392C77;
	background-color:#C1BBDB;
	text-decoration:none;
        border: none;
        cursor: pointer;
}

div.search-form
{
	padding: 5px;
	margin: 0;
	background: #EEEEEE;
}

.span-11 > h4{
  margin-bottom: 0;
}

#footer
{
	padding: 10px;
	margin: 5px 10px 0 10px;
	font-size: 0.8em;
	text-align: center;
	border-top: 1px solid #C9E0ED;
}

hr {
  color: #C9E0ED;
  background-color: #C9E0ED;
}

div.flash-error, div.flash-notice, div.flash-success
{
	padding:.8em;
	margin-bottom:1em;
	border:2px solid #ddd;
}

div.flash-error
{
	background:#FBE3E4;
	color:#8a1f11;
	border-color:#FBC2C4;
}

div.flash-notice
{
	background:#FFF6BF;
	color:#514721;
	border-color:#FFD324;
}

div.flash-success
{
	background:#E6EFC2;
	color:#264409;
	border-color:#C6D880;
}

div.flash-error a
{
	color:#8a1f11;
}

div.flash-notice a
{
	color:#514721;
}

div.flash-success a
{
	color:#264409;
}

/* for display of ajax errors, initially hidden */
div#errormsg
{
  display: none;
}

div.view   /* används för listning av poster */
{
	padding: 10px;
	margin: 10px 0;
	border: 1px solid #C9E0ED;
}

#header-border {
  border: 10px solid #8092B0;
  background-color: #8092B0;
}

.hidden-link a {
  color: #FFFFFF;
}

/*  Forms    */

input[readonly] {
  background-color: #D8D8D8;
  color: #697384;

}

.alignleft {
	text-align: left;
}

.alignright {
  text-align:  right;
}

.aligncenter {
  text-align: center;
}

.aligned-right-cell {

}

.list-header {
 /* margin-top: 10px; */
  padding-top: 5px;
}

.list-row {
  padding-top: 3px;
  padding-bottom: 3px;
}

.odd {
	background: #F8F8F8;
}

.even {
	background: #E5F1F4;
}

.not-current-odd {
  color: darkgray;
  background-color: #F8F8F8;
}

.not-current-even {
  color: darkgray;
  background-color: #E5F1F4;
}

.swap-odd {
  color: red;
  background-color: #F8F8F8;
}

.swap-even {
  color: red;
  background-color: #E5F1F4;
}

.grid-view table.items tr.missing {
  background: #ffa84c;

}

div.working {
  background:url(loading.gif) no-repeat;
  width: 30px;
  margin-left: auto;
  margin-right: auto;
}

/* wizard */

#wzd-menu {
	padding: 0;
  margin-top: 5px;
}

#wzd-menu li {
	background: #c9e0ed;
	color: #888;
	display: inline;
	font-weight: bold;
	list-style: none;
	margin: 0 20px 0 -23px;
	padding: 0.5em 10px 0.5em 23px;
	position: relative;
}

#wzd-menu li:before {
	content:"";
	display:block; /* reduce the damage in FF3.0 */
	position:absolute;
	width:0;
	height:0;
	top:0px; /* controls vertical position */
	right:-20px; /* value = - border-left-width - border-right-width */
	bottom:auto;
    left:auto;
	border-width:15px 0 15px 20px;
	border-style:solid;
	border-color:transparent #c9e0ed;
	z-index: 1;
}

/* creates the smaller  triangle */
#wzd-menu li:after {
	content:"";
	display:block; /* reduce the damage in FF3.0 */
	position:absolute;
	width:0;
	height:0;


	top:6px; /* value = (:before top) + (:before border-top) - (:after border-top) */
	right:-15px; /* value = - border-left-width - border-right-width */
	bottom:auto;
    left:auto;
	border-width:9px 0 9px 15px;
	border-style:solid;
	border-color:transparent #fff;
	z-index: 1;
}

#wzd-menu li.wzd-first {
	margin-left:0;
	padding-left: 10px;
}

#wzd-menu li.wzd-last:before, #wzd-menu li.wzd-last:after {
	display: none;
}

#wzd-menu li.wzd-active {
	background: #a7d77e;
}

#wzd-menu li.wzd-active:before {
	border-color:transparent #a7d77e;
}

#wzd-menu li.wzd-previous {
	background: #7db4d4;
}

#wzd-menu li.wzd-previous:before {
	border-color:transparent #7db4d4;
}

#wzd-menu li a {
	text-decoration: none;
}

#wzd-menu li.wzd-active a, #wzd-menu li.wzd-previous a {
	color: #333;
}

#wzd-step {
  margin-top: -10px;
}

#wzd-step h3 {
  margin-top: 5px
}

/* hide header used for printing page */
#print-header {
  display: none;
}

table.detail-view tbody tr.header th{
  background: #95C8D5;
  text-align: left;
}

.grid-view .headline
{
	font-size: 1em;
  	font-weight:bold;
}

.detail-view-headline {
	font-size: 1em;
	font-weight: bold;
}

/* change color for empty text in editable fields
   see jqueryui-editable.css and jquery-editable.js emptyclass*/
.sams-editable-empty {
  color: #BDBDBD;
}

/* loading is used for ajax calls*/
#loading
{
  background-image: url(loading.gif);
  background-repeat: no-repeat;
  height: 16px;
  width: 16px;
  display: none;
}

/* processing is used for non ajax, separate in order not to interfere
   whith yii internal spinners for ajax */
#processing
{
  background-image: url(loading.gif);
  background-repeat: no-repeat;
  height: 16px;
  width: 16px;
  display: none;
}

.status-change {
  font-weight: bold;
}

.status-change-aborted {
  font-weight: bold;
  color: red;
}

/* for groupgridview*/
.extrarow {
  font-weight: bold;
 /* font-size: 1.2em !important; */
}

.large-headline {
  font-size: 1.2em;
}

.very-important {
  font-weight: bold;
  color: red;
}



.searchbox {
  font-size: 0.9em;
  float: right;
  padding-top: 3px;
  padding-right: 8px;
}

#searchbox-form {
  font-size: 0.9em;
  float: right;
}

#searchbox-input {
  font-size: 0.9em;
  margin-right: 2px;
}

#searchbox-submitbutton {
  font-size: 0.9em;
}

.bordered {
  border-style: solid;
  border-width: 1px;
  border-color: #A9A9A9     /* DarkGray */
}

/* for person note items, bottom border on table cells */
.note-item {
  border-bottom: 1px solid lightgray;
}

.vertical-scrollbox {
  height: 400px;
  overflow-y: scroll;
}

.show-item {
  visibility: visible;
}

.hide-item {
  visibility: hidden;
}

.not-displayed {
	display: none;
}

.block-display {
    display: block;
}

.inline-display {
	display: inline;
}

/* used by x-editable gridcolumn for inline editing of price */
.input-small {
	width: 100px;
}

.list-table th, .list-table td {
	border-bottom: 1px solid gray;
}

/* Makes the items part, i.e. the rows only, of a CGridView horizontally
   scrollable. See views/chargeTransaction/admin as an example.
   Compare solution for scrolling the whole grid
   https://stackoverflow.com/questions/11883479/yii-cgridview-horizontal-scroll */
.gridview-items-hor-scroll {
    width: 910px;
    overflow: auto;
    white-space: nowrap;
}

.gap {
	margin-left: 20px;
}

div.form input.gap {
	margin-left: 20px;
}

tr.overdue {
	background: #ff8000;
}

tr.overdue.selected {
	background: #ff4000 !important;
}

tr:hover.overdue {
	background: #ffbf00 !important;
}

.legend {
	cursor: pointer;
}

.sort-list {
	list-style-type: none;
	border: 1px solid black;
	min-height: 20px;
	margin: 0;
	padding: 5px 0 0 0;
}

.sort-list li {
	margin: 0 5px 5px 5px;
	padding: 0 0 0 5px;
	border: 1px solid #c5c5c5;
	background: #f6f6f6;
}

.list-item-placeholder {
	height: 25px;
	line-height: 20px;
	margin: 0 5px 5px 5px;
	padding: 0 0 0 5px;
	background: #00ffff;
	border: 1px solid #c5c5c5;
}
.center-block {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.panel {
	border: 1px solid gray;
}

.panel .panel-header {
	border-bottom: 1px solid gray;
	padding: 5px 10px;
	background: #f8f9f9;
}

.panel .panel-body {
	padding: 5px 10px;
}

.panel .panel-footer {
	border-top: 1px solid gray;
	padding: 5px 10px;
}

.list dl>dt {
	float: left;
	width: 150px;
	overflow: hidden;
	clear: left;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: bold;
}

.list dl>dd {
	margin-left: 160px;
}

.h5 {
	font-size: 1em;
	font-weight: bold;
}

.lowercase {
	text-transform: lowercase;
}
.uppercase {
	text-transform: uppercase;
}
.bold {
	font-weight: bold;
}

.under-planned {
	color: red;
}

.over-planned {
	color:green;
}

.attendance-present {
	color: #009900;
}

.attendance-absent {
	color: #FF0000;
}

.attendance-training {
	color: #0000FF;
}

.attendance-inactive {
	color: #FF9900;
}

.grade-void {
	color: red;
}

.grade-valid {
	color: #555555;
}

.booked-location {
	font-style: italic;
	color: red;
}

.grid-headline-bullet-finished::after {
	content: '\2022\00A0';	/* &bull; plus &nbsp; */
	font-size: 2em;
	vertical-align: middle;
	color: green;
}
.grid-headline-bullet-unfinished::after {
	content: '\2022\00A0'; /* &bull; plus &nbsp; */
	font-size: 2em;
	vertical-align: middle;
	color: red;
}

.datepicker-cell-finished > a {
	color: limegreen !important;
}

.datepicker-cell-unfinished > a {
	color: red !important;
}

.static-control {
	padding-top: 4px;
}

.h4 {
	font-size: 1.2em;
	line-height: 1.25;
}

button.link {
	background: none;
	border: none;
	text-decoration: underline;
	color: #0066cc;
	cursor: pointer;
}

.time-reporting-done {
	color: limegreen;
}

.time-reporting-not-done {
	color: red;
}