h6 {
  font-weight: 700;
  font-style: italic;
}
form {
  margin-bottom: 0px;
}
form input[type=number], input[type=text] .ng-dirty.ng-valid {
  border-bottom: 1px solid #4CAF50;
  box-shadow: 0 1px 0 0 #4CAF50;
}

form .ng-dirty.ng-invalid {
  border-bottom: 1px solid #F44336;
  box-shadow: 0 1px 0 0 #F44336;
}
a {
  cursor: pointer;
}

nav {
  height: 43px;
  margin-bottom: 15px;
  line-height: 40px;
  background-color: white;
  color: #555;
  border-bottom: 1px solid #ddd;
  -moz-box-shadow: 0px 15px 23px 0px #fff;
  -webkit-box-shadow: 0px 15px 23px 0px #fff;
  box-shadow: 0px 15px 23px 0px #fff;
}
nav ul a {
  transition: none;
  color: #428bca;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
}
nav ul a:hover {
  background-color: #eee;
  color: #2a6496;
  border-color: #eee #eee #ddd;
}
nav ul li {
  margin-bottom: -1px;
  transition: none;
}
nav ul li.active a {
  transition: none;
  background-color: white;
  color: #555;
  border: 1px solid #ddd;
  border-bottom-color: transparent;
}
nav .brand-logo {
  color: #555;
  font-size: 1.4em;
}
.nav-wrapper {
  border: 1px solid transparent;
  border-radius: 4px;
}
.nomargin {
  margin: 0;
}
.collapse-animate {
  height: 0px;
  overflow: auto;
  -webkit-transition:all ease-out 0.3s;
  -moz-transition:all ease-out 0.3s;
  -ms-transition:all ease-out 0.3s;
  -o-transition:all ease-out 0.3s;
  transition:all ease-out 0.3s;
}
.inkomsttabell input[type=number] {

}
.dropdown-content li {
  min-height: 30px;
}
.dropdown-content li > a, .dropdown-content li > span {
  padding: 10px 16px;
  line-height: 18px;
}

.icons {
  font-size: large;
}

.edit-btn {
  font-size: medium !important;
  color: #ccc;
}

.edit-btn:hover {
  color: #039be5;
}

.bold-label {
  font-weight: bold;
  color: #039be5 !important;
}

.new-person-modal {
  height: 40% !important ;
}

/**
*   Datatables
*
*/

table.dataTable {
  font-size: small;

}
table.dataTable .odd {
  background-color: #f2f2f2;
}
table.dataTable .cell_truncate {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width:50px;
}
table.dataTable .person_namn {
  color: #26a69a;
  max-width:180px;
}
table.dataTable thead .sorting:hover,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
  cursor: pointer;
  *cursor: hand;
  text-decoration: underline;
}

table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 16px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  word-wrap: normal;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  content: "arrow_forward";
  -webkit-transform: rotate(90deg);
  display: inline-block;
  vertical-align: middle;
}

table.dataTable thead .sorting:after {
    color: white;
}

table.dataTable thead .sorting:hover:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
  color: #222222;
}
table.dataTable thead .sorting_asc:after {
  content: "arrow_back";
}

table.dataTable tr.highlight {
/*
  -webkit-transition: background-color .25s ease;
  transition: background-color .25s ease;
*/
  cursor: pointer;
}

table.dataTable tr.highlight:hover {
  background-color: #f2f2f2;
}

.inkomsttabell input {
  margin:0;
  height:auto;
  max-width: 100px;
  min-width: 40px;
}

/**
* Currency input format
*
*/

.input-icon {
  position: relative;
}

.input-icon > i {
  position: absolute;
  display: block;
  transform: translate(0, -50%);
  top: 35%;
  pointer-events: none;
  width: 25px;
  text-align: center;
	font-style: normal;
}

.input-icon > input {

	padding-right: 0;
}

.input-icon-right > i {
  right: 0;
  padding-left: 30px;
}

.input-icon-right > input {


}

/**
*   Treelist
*
*/

.tree-control {
  padding-top: 10px;
  padding-bottom: 15px;
}

.tree-control .tree-input {

  text-align: left;
  /* border-bottom: 1px solid #c6c6c6; */
  /* padding: 1px 8px 1px 8px; */
  font-size: 14px;
  min-height : 38px !important;
  border-radius: 4px;
  color: #555;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
  white-space:normal;
  background-color: #fff;
}

.tree-control .tree-input:hover {
  /* background-image: linear-gradient(#fff, #e9e9e9); */
}


.tree-control .tree-input span.selected-items .selected-item {
  background: #f2f2f2;
  border: 1px solid darkgray;
  border-radius: 3px;
  padding: 3px;
  cursor: text;
}
.tree-control .tree-input span.selected-items .selected-item-close {
  width: 20px;
  cursor: pointer;
  font-weight: bold;
  display: inline-block;
  padding: 5px;
}
.tree-control .tree-input span.selected-items .selected-item-close:hover {
  background-color: #f2f2f2
}
.tree-control .tree-input span.selected-items .selected-item-close:before {
  content: 'x';
}

.tree-control .tree-view {
  /* background-color: #fff; */
  /* border: 1px solid rgba(0, 0, 0, 0.15); */
  /* border-radius: 4px; */
  /* -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); */
  /* box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); */
  /* min-width:348px; */
  margin-right: 10px;
  overflow: auto;
  padding: 0px 5px;
  -webkit-transition:all ease-out 0.3s;
  -moz-transition:all ease-out 0.3s;
  -ms-transition:all ease-out 0.3s;
  -o-transition:all ease-out 0.3s;
  transition:all ease-out 0.3s;
}

.dropdown {
  float: right;
  color: #9e9e9e;
  margin-right: 10px;
  cursor: pointer;
}
.dropdown:hover {
  color: #039be5;
}
.tree-control .tree-view ul {
  padding: 0;
  margin: 0;
}
.tree-control .tree-view ul .item-label {
  display: inline-block;
  margin-left: 5px;
}

/* container of helper elements */
.tree-control .tree-view .helper-container {
  border-bottom: 1px solid #ddd;
  padding: 8px 8px 0px 8px;
}
.tree-control .tree-view .helper-container .add-sfar-form {
  padding: 20px;
  border: 1px solid #e4e4e4;
  height: 320px;
  overflow: auto;
  -webkit-transition:all ease-out 0.3s;
  -moz-transition:all ease-out 0.3s;
  -ms-transition:all ease-out 0.3s;
  -o-transition:all ease-out 0.3s;
  transition:all ease-out 0.3s;
}

.tree-control .tree-view .helper-container .add-sfar-form.ng-hide {
  height: 0px;
}

/* container of multi select items */
.tree-control .tree-view .tree-container {
  padding: 8px;
}

.tree-control .tree-view .item-container {
  padding: 0px;
  color: #444;
  white-space: nowrap;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
  border: 1px solid #e4e4e4;
  border-top: 0px;
  position: relative;
}

.tree-control .tree-view .item-row {
  padding: 3px;
  cursor: pointer;
}

/* item labels focus on mouse hover */
.tree-control .tree-view .item-row:hover {
  background-color: #e2e2e2;
}

.tree-control .tree-view .selected {
  /* background-color: #f2f2f2; */
  color: #555;
}

.tree-control .tree-view .itemactive {
  background-color: #aaa !important;
}

.tree-control .tree-view .itemactive label,
.tree-control .tree-view .itemactive .dropdown  {
  color: #f6f6f6;
}

.tree-control .tree-view .item-details {
  padding: 0px;
  padding-top: 7px;
  height: 110px;
  background-color: #f2f2f2;
  border-top: 1px solid #e4e4e4;
  overflow: auto;
  -webkit-transition:all ease-out 0.3s;
  -moz-transition:all ease-out 0.3s;
  -ms-transition:all ease-out 0.3s;
  -o-transition:all ease-out 0.3s;
  transition:all ease-out 0.3s;
}
.tree-control .tree-view .item-details.ng-hide {
  height: 0px;
}



/* helper buttons (select all, none, reset); */
.tree-control .tree-view .helper-button {
  display: inline;
  text-align: center;
  cursor: pointer;
  border: 1px solid #ccc;
  height: 26px;
  font-size: 13px;
  border-radius: 2px;
  color: #666;
  background-color: #f1f1f1;
  line-height: 1.6;
  margin: 0px 0px 8px 0px;
}

/* clear button */
.tree-control .tree-view .clear-button {
  position: absolute;
  display: inline;
  text-align: center;
  cursor: pointer;
  border: 1px solid #ccc;
  height: 22px;
  width: 22px;
  font-size: 13px;
  border-radius: 2px;
  color: #666;
  background-color: #f1f1f1;
  line-height: 1.4;
  right : 2px;
  top: 2px;
  padding-top: 3px;
}

/* filter */
.tree-control .tree-view .input-filter {
  border-radius: 2px;
  border: 1px solid #ccc;
  height: 26px;
  font-size: 14px;
  width:100%;
  padding-left:7px;
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko */
  box-sizing: border-box;         /* Opera/IE 8+ */
  color: #888;
  margin: 0px 0px 8px 0px;
}

/* helper elements on hover & focus */
.tree-control .tree-view .clear-button:hover,
.tree-control .tree-view .helper-button:hover {
  /* border: 1px solid #ccc; */
  color: #999;
  background-color: #f4f4f4;
}

.tree-control .tree-view .clear-button:focus,
.tree-control .tree-view .helper-button:focus,
.tree-control .tree-view .input-filter:focus {
  border: 1px solid #66AFE9 !important;
  box-shadow: inset 0 0px 1px rgba(0,0,0,.035), 0 0 5px rgba(82,168,236,.7) !important;
}

/* ! create a "row" */
.tree-control .tree-view .line {
  /* overflow: hidden; */
  position: relative;
}

.tree-control .tree-view .tree-container li {
  list-style-type: none;
  margin-left: 30px;
}

.tree-control .tree-view .tree-container li .expand {
  display: inline-block;
  margin-right: 4px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #525252;
}
.tree-control .tree-view .tree-container li .expand-opened {
  border: none;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 10px solid #525252;
}
.tree-control .tree-view .top-level>li {
  margin: 0;
}
