/*
    General styles for whole DFM application
    Created on : Apr 13, 2017, 3:37:52 PM
    Author     : zchapman
*/

html, body {
  font-family: sans-serif;
  font-weight: bold;
  font-size: 10pt;
  background-color: #ececec;
  min-height: 100%;
  /*background: linear-gradient(#ececec, #e6e6e6);*/
  background: linear-gradient(#e6e9ec, #e0e3e6);
  /*background: linear-gradient(#e1e7ea, #d1d7da);*/
  /*background: linear-gradient(to right, #6798d4 , #84b4e0, #97c5e9, #85b5e1, #6798d4);*/
  overflow : hidden; 
}

.tab, .tab-body {
  /*background-color: #f0f0f0;*/
  /*background-color: #cbdee7;*/
  /*background-color: #e1e7ea;*/
  background-color: #f0f1f2;
}

a {
  color: #0000EE;
}

.negative {
  /*color: #cc0000;*/
  color: #dd0000;
}

tr.selected > .negative {
  color: #ffcccc;
}

.title-home-link {
  text-decoration: none;
  color: black;
}
.title-home-link:hover {
  text-decoration: underline;
  color: #0000EE;
}

button, input[type=button], input[type=submit] {
  border: 1px solid #adadad;
  background-color: #e1e1e1;
  padding: 4px 12px;
  font-weight: bold;
  font-size: 10pt;
  cursor: pointer;
}
button:hover, input[type=button]:hover, input[type=submit]:hover {
  /*  background-color: #3399ff;*/
  background-color: #a6caf0;
  border-color: #3399ff;
}
button:active, input[type=button]:active, input[type=submit]:active {
  background-color: #55aaee;
  border-color: #3399ff;
}

textarea {
  border: 1px solid #adadad;
  outline: 0;
  font-family: sans-serif;
}

.page-header {
  position: absolute;
  top: 0px;
  height: 62px;
  left: 0px;
  right: 0px;
  white-space: nowrap;
  background-color: #b2cce5;
  padding-left: 18px;
  padding-right: 24px;
  background: linear-gradient(#b2cce5, #bed4e9);
  background: url(../images/banner.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  z-index: 99;
}

body.test .page-header {
  background: linear-gradient(#ffe7a3, #ffdc78);
}

.page-header .page-title {
  font-size: 16pt;
  font-weight: normal;
  /*line-height: 38px;*/
  line-height: 60px;
}

.page-header .page-title .page-icon,
.page-header .page-title img {
  vertical-align: middle;
  height: 50px;
  width: 50px;
}
.page-header .page-title .page-icon {
  display: inline-block;
  position: relative;
  margin-right: 12px;
}
.page-header .page-title .page-icon img {
  position: absolute;
  top: 0;
  left: 0;
}
.page-header .page-title .page-icon:after {
  position: absolute;
  content: '';
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 61.5%, transparent 62.5%);
  border-radius: 25px;
}

.page-header .page-title {
  font-size: 16pt;
  font-weight: normal;
  line-height: 60px;
}



.page-header .page-links .links-group ul {
  position: absolute;
  display: none;
  z-index: 3;
  left : 3px;
  top: 7px;
  padding-top: 1px;
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
}

.page-header .page-links .links-group ul li {
  border: none;
  height : 26px;
  background: white;
}
.page-header .page-links .links-group ul li:hover {
  cursor: pointer;
  background-color: #DCDCDC;
}

.page-header .page-links .links-group ul li.link-selected {
  background-color: #c9e6ff;
}

.page-header .page-links .links-group ul li.disabled a{
  pointer-events: none;
  color : gray !important;
}
.page-header .page-links .links-group ul li.disabled {
  cursor : not-allowed;
  display: none;
}

.page-header .page-links .links-group ul li.separator,
.page-header .page-links .links-group ul li.separator:hover {
  position: relative;
  height : 1px;
  background: #aaa;
  border-style: solid;
  border-color: white;
  border-width: 1px 2px;
  cursor: default;
}

.page-header .page-links .links-group {
  display: inline-block;
  position: relative;
}

.page-header .page-links .links-group:hover ul,
.page-header .page-links .links-group ul:hover {
  display: inline-block;
}

.page-header .page-links {
  position: absolute;
  bottom: 3px;
  right: 15px;
}
.page-header .page-links .links-group a,
.page-header .page-links a {
  /*color: #333388;*/
  color: #000080;
  font-size: 10pt;
  display: inline-block;
  text-align: center;
  min-width: 50px;
  padding: 2px 8px 1px 8px;
  border: 1px solid rgba(178, 204, 229, 0.5);
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.1s ease;
  text-decoration: none;
  margin-left: 3px;
}

.page-header .page-links .links-group ul li a {
  border: none;
  background-color: inherit;
  height: 23px;
  line-height: 23px;
  text-align: left;
  display: block;
  margin: 0;
  font-weight: normal;
}

.page-header .page-links .admin-only a::after {
  content: " \2022";
  color: #821c38;
}


.page-header .page-links a:hover {
  background: rgba(200, 200, 200, 0.5);
}


.page-links a.section-selected {
  background-color: white;
  background: rgba(255, 255, 255, 0.5);
  color: #0000b3;
}

.page-header .contact-name {
  position: absolute;
  /*top: 20px;*/
  /*right: 90px;*/
  /*bottom: 30px;*/
  top: 0px;
  /*right: 27px;*/
  right: 15px;
  font-weight: normal;
  font-size: 11pt;
  line-height: 38px;
}

.page-header .logout-button.comment {
  position: absolute;
  /*top: 19px;*/
  bottom: 3px;
  right: 24px;
  margin: 0;
  /*  color: #333388;
    background-color: #b2cce5;*/
}

.path-header {
  position: absolute;
  top: 62px;
  left: 0;
  right: 0;
  height: 26px;
  padding: 8px 12px 0 12px;
}

.path-header .path-body {
  background-color: white;
  padding: 0 12px;
  height: 22px;
  line-height: 22px;
  border: 1px solid #d9d9d9;
  color: #000080;
  /*width: 762px;*/
  overflow: hidden;
  font-size: 9pt;
  font-weight: normal;
}

.path-header .path-body .path-item {
  /*font-weight: normal;*/
  /*display: inline-block;*/
  /*padding-left: 5px;*/
  padding-right: 5px;
}

.tabs {
  position: absolute;
  z-index: 1;
  top: 88px;
  height: 36px;
  left: 12px;
  right: 12px;
  white-space: nowrap;
}

.tabs-top-left-patch {
  position: absolute;
  z-index: 1;
  top: 124px;
  height: 12px;
  left: 12px;
  border-left: 1px solid #d9d9d9;
}

.tabs-inner {
  position: absolute;
  bottom: 0px;
  left: 0px;
}

.tab {
  padding: 3px 4px 3px 5px;
  border-top: 1px solid #d9d9d9;
  border-left: 1px solid #d9d9d9;
  border-right: 1px solid #d9d9d9;
  margin-right: -1px;
  text-decoration: none;
  color: #202020;
  transition: background-color 0.1s ease;
}

.tab:first-child {
  border-left: 1px solid #d9d9d9;
}

.tab:hover {
  background-color: #ffffff;
}

.tab.tab-selected {
  color: #000000;
}

.tab.tab-disabled {
  background-color: #e8e8e8;
  color: #b8b8b8;
  cursor: default;
  pointer-events: none;
}

.tab.tab-selected {
  background-color: #ffffff;
  border-bottom: 2px solid #ffffff;
  pointer-events: none;
  cursor: default;
  padding-top: 5px;
}

.tab-body {
  position: absolute;
  z-index: 0;
  top: 127px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid #d9d9d9;
}

.tab-content {
  position: absolute;
  border: 2px solid #ffffff;
  border-left-width: 3px;
  border-top-width: 1px;
  padding: 24px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
}

.table-wrapper-inner, .tree-wrapper-inner {
  background-color: #ffffff;
  font-size: 9pt;
  padding: 1px;
}

.table-wrapper-inner {
  position: relative;
  max-height: 350px;
  overflow-y: auto;
  overflow-x: auto;
  min-height: 37px;
  /*resize: vertical;*/
}

.table-wrapper-middle, .tree-wrapper-inner {
  border-top: 1px solid #696969;
  border-left: 1px solid #696969;
  border-bottom: 1px solid #e3e3e3;
  border-right: 1px solid #e3e3e3;
  background: #f8f8f8;
}

.table-wrapper-outer, .tree-wrapper-outer {
  border-top: 1px solid #a0a0a0;
  border-left: 1px solid #a0a0a0;
  border-bottom: 1px solid #ffffff;
  border-right: 1px solid #ffffff;
}

/*table {
  font-size: 9pt;
}*/

/*** trees ***/

.tree-title-container {
  border-top: 3px solid #000000;
  border-bottom: 3px solid #000000;
  background-color: #ffffff;
  padding: 8px;
}

.tree-title-next {
  margin-left: 15px;
}

.tree-content {
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 12px;
  padding-bottom: 12px;
  line-height: 14px;
  /*resize: vertical;*/
}

.tree-content .tree-item {
  font-weight: normal;
  /*background-image: url(../images/tree-minus.png);*/
  background-repeat: no-repeat;
  /*background-size: 1px 100%;*/
}

.tree-content .tree-item-text {
  background-repeat: no-repeat;
  /*padding: 0 7px;*/
  cursor: pointer;
  height: 28px;
}

.tree-content .tree-item > .tree-item-text {
  background-image: url(../images/tree_line_middle.png);
}
.tree-content .tree-item.tree-item-expanded > .tree-item-text {
  background-image: url(../images/tree_line_middle_drop.png);
}
.tree-content .tree-item:first-child > .tree-item-text {
  background-image: url(../images/tree_line_top.png);
}
.tree-content .tree-item.tree-item-expanded:first-child > .tree-item-text {
  background-image: url(../images/tree_line_top_drop.png);
}
.tree-content .tree-item:last-child > .tree-item-text {
  background-image: url(../images/tree_line_bottom.png);
}
.tree-content .tree-item.tree-item-expanded:last-child > .tree-item-text {
  background-image: url(../images/tree_line_bottom_drop.png);
}

.tree-content > .tree-item > .tree-item-text {
  background-position: left 4px top;
}

.tree-content > .tree-item > .tree-item > .tree-item-text {
  background-position: left 36px top;
}

.tree-content > .tree-item > .tree-item > .tree-item > .tree-item-text {
  background-position: left 68px top;
}


.tree-content .tree-item-icon {
  display: inline-block;
  width: 36px;
  height: 28px;
  background-repeat: no-repeat;
  background-position: left top 9px;
  margin-left: 32px;
}

.tree-content .tree-item-text:hover {
  background-color: #3399ff;
  color: #ffffff;
}

.tree-content .tree-item-subtext {
  display: inline-block;
  padding-right: 6px;
  min-width: 40px;
  height: 26px;
  padding-top: 2px;
  line-height: 26px;
  overflow: hidden;
}

/* animation */
.tree-content .tree-item-text {
  overflow: hidden;
  transition: height 0.3s ease-out;
}
.tree-content .tree-item.tree-item-expanded .tree-item .tree-item-text {
  height: 28px;
}
.tree-content .tree-item.tree-item-collapsed .tree-item .tree-item-text {
  height: 0px;
}
/*.tree-content .tree-item.tree-item-collapsed .tree-item .tree-item-text > .tree-item-subtext {
  height: 0;
}*/
/*.tree-content .tree-item-collapsed > .tree-item {
  display: none;
}*/

/* icons */
.tree-content .tree-item-expanded > .tree-item-text > .tree-item-icon {
  background-image: url(../images/tree-minus.png);
}
.tree-content .tree-item-collapsed > .tree-item-text > .tree-item-icon {
  background-image: url(../images/tree-plus.png);
}

/* tree indents */
.tree-content .tree-item-indent {
  display: inline-block;
  width: 32px;
  height: 28px;
}
.tree-content .tree-item-indent.tree-item-left-line {
  background-image: url(../images/tree_line_vertical.png);
  background-repeat: no-repeat;
  background-position: left 4px center;
}


.tree-content .tree-item-selected{
  background-color:blue;
  color: white;
  font-weight: bolder;
}
[contenteditable="true"]:active,
[contenteditable="true"]:focus {
  border: none;
  outline: none;
}


td:nth-child(1) > button.delete {
  margin:0;

  width:100%;
}
td:nth-child(1) > button.delete:hover {
  background-color: #ff9999;
  border-color: red;
}
td:nth-child(1) > button.delete:active {
  background-color: #ff3333;
}

#mask{
  position: fixed;
  width:100%;
  height: 100%;
  background-color: rgba(0,0,0,.5);
  top: 0px;
  left: 0px;
  z-index: 2;
}
#dialog{
  z-index:3;
}

fieldset {
  border: 1px solid #DCDCDC;
}

fieldset legend {
  font-weight: bold;
  color: #000080;
}

.ajax-loader {
  background-image: url(../images/ajax-loader.gif);
  background-repeat: no-repeat;
  background-position: center;
  width: 32px;
  height: 32px;
  margin: 12px auto;
}

.loading-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.5);
}

.loading-mask > .ajax-loader {
  width: 100%;
  height: 100%;
}

.error-message {
  color: #cc0000;
  padding: 20px;
  text-align: center;
}
.error-message .error-title {

}
.error-message .error-text {
  font-weight: normal;
}

.no-select {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

table.tablesorter {
  table-layout: fixed;
}

table.tablesorter.fixed {
  position: absolute;
  border: 1px solid white;
  top: 0;
  left: 0;
  right: 0;
}

table.tablesorter:not(.fixed) thead {
  visibility: hidden;
}

table.tablesorter thead tr.resizing th {
  cursor: col-resize;
}

/*table {
  background-color: #ffffff;
  border-collapse: collapse;
  border: 1px solid #696969;
}

th, td {
  border: 1px solid #f0f0f0;
}

th {
  font-weight: bold;
}

td {
  font-weight: normal;
}*/


.popup {
  position: absolute;
  display: inline-block;
  bottom: 60%;
  right: 50%;
  -ms-transform: translate(50%, 60%);
  transform: translate(50%, 60%);
  background: #f8f8ff;
  border: 2px solid #f0f0f0;
  border-radius: 2px;
  padding: 12px 16px;
  z-index: 3;
}

#popup {
  min-width: 200px;
  max-width: 330px;
}

#popup > *:not(.text)
{
  display: none;
}
#popup.alert > .alert,
#popup.success > .success,
#popup.confirm > .confirm,
#popup.logged-out > .logged-out
{
  display: block !important;
}

.popup .title {
  text-align: center;
}

.popup .text {
  font-weight: normal;
  padding: 12px 0;
}

.popup .buttons {
  text-align: right;
}

.popup button {
  border-radius: 2px;
}


#report-container {
  position: absolute;
  top: 72px;
  left: 24px;
  right: 24px;
  bottom: 24px;
  background-color: #a0a0a0;
  outline: none;
  border-top: 1px solid #606060;
  border-left: 1px solid #606060;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
}

#report {
  width: 100%;
  height: 100%;
  outline: none;
  border: none;
}

#generic-query-buttons > * {
  margin-right: 6px;
}

.page-header .page-links .links-group.selected > a {
  background-color: #f3f8fc;
  color: navy !important; 
}

.links-group ul li.selected a {
  font-weight: bold;
  padding-left: 0px !important;
}

i {
  border: solid navy;
  border-width: 0 0 3px 0;
  display: inline-block;
  padding: 3px;
}

.right {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

.left {
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
}

.up {
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}

.down {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

/*.tabs-inner {
  position: relative;
  bottom: 0px;
  left: 0px;
  margin: auto;
  margin-top: 20px;
  width: 1180px;
}  
.tab-content {
  width: 1140px;
  margin: auto;
  margin-top: 0px;
  margin-bottom: 0px;
  overflow-x: hidden;
}*/


fieldset {
  background-color: #f4f5f6;
  border-color: #d9d9d9;
}

#version-info {
  font-size: 12px;
  color: #a7ceeb;
  position: absolute;
  bottom: 15px;
  right: 15px;
}

.table-wrapper-middle > .totals-row {
  font-size: 9pt;
}

.loader-mask {
  background-color: rgba(250, 250, 250, 0.4);
  z-index: 10;
  padding-left: 50%;
}

.loader-mask > #Loader {
  background-color: rgba(255, 255, 255, 0.8);
  position: absolute;
  top: 30%;
  width: 125px;
  margin-left: -65px;
  font-size: 18px;
  color: #111;
  padding: 10px;
  text-align: center;
  z-index: 9999;
}

/* loading spinner */
.lds-spinner {
  color: official;
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-spinner div {
  transform-origin: 40px 40px;
  animation: lds-spinner 1.2s linear infinite;
}
.lds-spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  top: 3px;
  left: 37px;
  width: 6px;
  height: 18px;
  border-radius: 20%;
  background: #646fbc;
}
.lds-spinner div:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -1.1s;
}
.lds-spinner div:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -1s;
}
.lds-spinner div:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.9s;
}
.lds-spinner div:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.8s;
}
.lds-spinner div:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.7s;
}
.lds-spinner div:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.6s;
}
.lds-spinner div:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.5s;
}
.lds-spinner div:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.4s;
}
.lds-spinner div:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.3s;
}
.lds-spinner div:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.2s;
}
.lds-spinner div:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.1s;
}
.lds-spinner div:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
}
@keyframes lds-spinner {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
