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

/* Block scrolling */
html, body {
    overflow-x: hidden;
}

/* Padding for top static navbar */
body {
    padding-top: 60px;
    padding-bottom: 40px;
}

@media (max-width: 979px) {
  body {
      padding-top: 0px;
  }
  .navbar-blue .navbar-collapse .nav > li > a, 
  .navbar-blue .navbar-collapse .dropdown-menu a {
      color: #FFFFFF;
  }
}

/* Navbar styles */
/*.navbar-blue .navbar-inner {*/
.navbar-blue {
    background-color: #438EB9;
    background-image: -moz-linear-gradient(top, #438EB9, #62A8D1);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#438EB9), to(#62A8D1));
    background-image: -webkit-linear-gradient(top, #438EB9, #62A8D1);
    background-image: -o-linear-gradient(top, #438EB9, #62A8D1);
    background-image: linear-gradient(to bottom, #438EB9, #62A8D1);
    background-repeat: repeat-x;
    filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ff438EB9', endColorstr='#ff62A8D1', GradientType=0);
    border-color: #0B6CBC;
}

.navbar-blue .navbar-nav > li > .btn {
    margin-top: 8px;
    margin-bottom: 8px;
}

.navbar-blue .navbar-brand {
    color: #FFFFFF;
    text-shadow: 0 1px 0 #777777;
    
    -webkit-transition: all 0.35s ease-in;
    -moz-transition: all 0.35s ease-in;
    -ms-transition: all 0.35s ease-in;
    -o-transition: all 0.35s ease-in;
    transition: all 0.35s ease-in;
}

.navbar-blue .navbar-brand:hover {
    text-shadow: 0 1px 10px #FFFFFF, 0px 1px 15px rgb(255, 255, 255);
}

.navbar-blue .nav > li > a {
    color: #F5F5F5;
    text-shadow: 0 1px 0 #777777;
}

.navbar-blue .nav li.dropdown > .dropdown-toggle .caret {
    border-top-color: #F5F5F5;
    border-bottom-color: #F5F5F5;
}

.navbar-blue .nav > li > a:focus,
.navbar-blue .nav > li > a:hover {
    color: #FFFFFF;
    background-color: #62A8D1;
}

.navbar-blue .nav li.dropdown > .dropdown-toggle:focus .caret, 
.navbar-blue .nav li.dropdown > .dropdown-toggle:hover .caret {
    border-top-color: #FFFFFF;
    border-bottom-color: #FFFFFF;
}

.navbar-blue .nav li.dropdown.open > .dropdown-toggle,
.navbar-blue .nav li.dropdown.active > .dropdown-toggle,
.navbar-blue .nav li.dropdown.open.active > .dropdown-toggle {
    color: #FFFFFF;
    background-color: #62A8D1;
}

.navbar-blue .nav li.dropdown.open > .dropdown-toggle .caret,
.navbar-blue .nav li.dropdown.active > .dropdown-toggle .caret,
.navbar-blue .nav li.dropdown.open.active > .dropdown-toggle .caret {
    border-top-color: #FFFFFF;
    border-bottom-color: #FFFFFF;
}

.navbar-blue .nav > .active > a, 
.navbar-blue .nav > .active > a:hover, 
.navbar-blue .nav > .active > a:focus {
    color: #FFFFFF;
    background-color: #438EB9;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25) inset;
    text-shadow: 0 1px 0 #777777, 0 1px 5px rgba(255, 255, 255, 0.9);
}

.navbar-blue .dropdown-menu li.active > a,
.navbar-blue .dropdown-menu li > a:hover,
.navbar-blue .dropdown-menu li > a:focus,
.navbar-blue .dropdown-submenu:hover > a {
    background-color: #438EB9;
    background-image: -moz-linear-gradient(top, #438EB9, #62A8D1);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#438EB9), to(#62A8D1));
    background-image: -webkit-linear-gradient(top, #438EB9, #62A8D1);
    background-image: -o-linear-gradient(top, #438EB9, #62A8D1);
    background-image: linear-gradient(to bottom, #438EB9, #62A8D1);
    background-repeat: repeat-x;
    filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ff438EB9', endColorstr='#ff62A8D1', GradientType=0);  
    color: white;
}

.navbar-blue .dropdown-menu li.active > a {
    font-weight: bold;
}

div[class^='object-actions-'],div[class*=' object-actions-'] {margin-bottom: 10px}

/* Profile styles
-------------------------------------------------- */

/* Invert profile colors */
.profile {
    padding-left: 15px; 
    padding-right: 15px; 
    background-color: #f5f5f5;
}

/* Fixes for small screens */
@media (max-width: 979px) {
  .profile li {
      display: inline-block;
  }
  .navbar-collapse.in .profile li.btn-group {
      margin-top: 0px;
  }
  .navbar-collapse .nav > li > a, .navbar-collapse .dropdown-menu a {
      color: #FFFFFF;
  }
}

.profile .navbar-text {
    color: #0B6CBC;
    text-shadow: 0 1px 0 #FFFFFF;
    margin-right: 10px;
}

.navbar .profile .btn-group .btn-xs {
    margin-top: 2px;
}

.btn-profile {
    color: #ffffff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    background-color: #62A8D1;
    background-image: -moz-linear-gradient(top, #438EB9, #62A8D1);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#438EB9), to(#62A8D1));
    background-image: -webkit-linear-gradient(top, #438EB9, #62A8D1);
    background-image: -o-linear-gradient(top, #438EB9, #62A8D1);
    background-image: linear-gradient(to bottom, #438EB9, #62A8D1);
    background-repeat: repeat-x;
    border-color: #0B6CBC #0B6CBC #1f6377;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ff438EB9', endColorstr='#ff62A8D1', GradientType=0);
    filter: progid:dximagetransform.microsoft.gradient(enabled=false);
}

.btn.btn-profile:hover,
.btn.btn-profile:focus,
.btn.btn-profile:active,
.btn.btn-profile.active,
.btn.btn-profile.disabled,
.btn.btn-profile[disabled] {
    color: #ffffff;
    background-color: #62A8D1;
}

.btn-profile:active,
.btn-profile.active {
    background-color: #3983C2 \9;
}
/* Prepend expander icon to expandable nodes
 * ------------------------------------------------------------------------- */

/* NonExpandable nodes have no icon */
.treeTable tbody tr .glyphicon-expander {
    font-family: FontAwesome;
    font-weight: normal;
    font-style: normal;
    text-decoration: inherit;
    -webkit-font-smoothing: antialiased;
    *margin-right: .3em;
}

/* Collapsed branch: glyphicon-caret-right */
.treeTable tbody tr.parent.collapsed .glyphicon-expander:before {
    content: "\f054";
}

/* Expanded branch: glyphicon-caret-down */
.treeTable tbody tr.parent.expanded .glyphicon-expander:before {
    content: "\f078";
}

/* Non-transparent  helper row backgrounds
 * ------------------------------------------------------------------------- */
.nested-helper tr {
    background-color: #FFFFFF;
}

/* Fade out dragged helper rows
 * ============================
 * Requires: CSS3 support
 * Else: no fade out applied, all rows will be visible
 * ------------------------------------------------------------------------- */

/* Style 1'st displayed row */
.nested-helper tr:nth-child(1)
{ opacity: 0.80 !important; }
.nested-helper tr:nth-child(1) th,
.nested-helper tr:nth-child(1) td
{ border-top: 1px solid rgba(221, 221, 221, 0.80) !important; }

/* Style 2'nd displayed row */
.nested-helper tr:not(.ui-helper-hidden)~tr
{ opacity: 0.65 !important; }
.nested-helper tr:not(.ui-helper-hidden)~tr th,
.nested-helper tr:not(.ui-helper-hidden)~tr td
{ border-top: 1px solid rgba(221, 221, 221, 0.65) !important; }

/* Style 3'rd displayed row */
.nested-helper tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr
{ opacity: 0.50 !important; }
.nested-helper tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr th,
.nested-helper tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr td
{ border-top: 1px solid rgba(221, 221, 221, 0.50) !important; }

/* Style 4'th displayed row */
.nested-helper tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr
{ opacity: 0.35 !important; }
.nested-helper tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr th,
.nested-helper tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr td
{ border-top: 1px solid rgba(221, 221, 221, 0.35) !important; }

/* Style 5'th displayed row */
.nested-helper tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr
{ opacity: 0.20 !important; }
.nested-helper tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr th,
.nested-helper tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr td
{ border-top: 1px solid rgba(221, 221, 221, 0.20) !important; }

/* Style 6'th displayed row */
.nested-helper tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr
{ opacity: 0.05 !important; }
.nested-helper tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr th,
.nested-helper tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr td
{ border-top: 1px solid rgba(221, 221, 221, 0.05) !important; }

/* Style all displayed rows below 6'th */
.nested-helper tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr
{ opacity: 0 !important; }
.nested-helper tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr th,
.nested-helper tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr:not(.ui-helper-hidden)~tr td
{ border-top: 1px solid rgba(221, 221, 221, 0) !important; }

/* Droppable action highlight, Selected row highlight
 * ==================================================
 * Requires: CSS2 support
 * Else: expander and droppable action icons won't be visible
 * ------------------------------------------------------------------------- */

.treeTable tbody tr.droppable-before,
.treeTable tbody tr.droppable-after{
    box-shadow: 0 0 10px 5px rgba(73, 175, 205, 0.25);
}

.treeTable tbody tr.droppable-before > td:first-child:before,
.treeTable tbody tr.droppable-after > td:first-child:before {
    position: relative;
    display: inline-block;
    width: 14px;
    height: 14px;
    content: '';
    margin-top: 1px;
    margin-right: -14px;
    left: 5px;
    line-height: 14px;
    vertical-align: text-top;
    background-image: url("/components/bootstrap/img/glyphicons-halflings.png");
    background-position: 14px 14px;
    background-repeat: no-repeat;
    cursor: pointer;
}

/* Insert before: glyphicon-share-alt */
.treeTable tbody tr.droppable-before > td:first-child:before {
    background-position: -336px -96px;
    top: -14px;
}

/* Insert after: flipped glyphicon-share-alt */
.treeTable tbody tr.droppable-after > td:first-child:before {
    background-position: -336px -96px;
    bottom: -14px;
    
    -webkit-transform:scaleY(-1);
    -moz-transform:scaleY(-1);
    -ms-transform:scaleY(-1);
    -o-transform:scaleY(-1);
    transform:scaleY(-1);
}

/* Highlight selected row */
.treeTable tbody tr.selected,
.treeTable tbody tr.droppable-in {
    background-color: #0088CC;
    color: #fff;
}

/* Use white icon set in selected rows */
.treeTable tbody tr.selected [class^="glyphicon-"],
.treeTable tbody tr.droppable-in [class^="glyphicon-"],
.treeTable tbody tr.selected [class*=" glyphicon-"],
.treeTable tbody tr.droppable-in [class*=" glyphicon-"],
.treeTable tbody tr.parent.selected td:first-child:before,
.treeTable tbody tr.parent.droppable-in td:first-child:before {
    background-image: url("/components/bootstrap/img/glyphicons-halflings-white.png") !important;
}

/* Remove cell backgrounds to make row background visible */
.treeTable tbody tr.selected td, .treeTable tbody tr.droppable-in td, 
.treeTable tbody tr.selected th, .treeTable tbody tr.droppable-in th {
    background-color: transparent !important;
}

#nestedset_loading .modal-body {
	text-align: center;
}	

/* jQuery UI layout helpers
 * ========================
 * This way I don't have to require the full jQuery UI CSS to be loaded.
 * ------------------------------------------------------------------------- */
.ui-helper-hidden { display: none; }
/* List sorting styles */
.list_thead_column .sort-addon {
    min-height: 0px;
}

.list_thead_column .sort-addon > i.active,
.list_thead_column .sort-addon:hover > i.hover,
.list_thead_column .sort-addon:hover > i.hover.placeholder {
    display: inline-block;
    visibility: visible;
}

.list_thead_column .sort-addon > i.hover, 
.list_thead_column .sort-addon:hover > i.active {
    display: none;
}

.list_thead_column .sort-addon > i.hover.placeholder {
    display: inline-block;
    visibility: hidden;
}

/* List pagination styles */
.pagination {
   margin: 0px;
   font-size: 14px;
}

.pagination .perpage {
    min-width: 50px;
}

/* List actions bar styles */

.form-group.list-actions {
    padding: 9px 20px;
	margin-top: 20px;
	margin-bottom: 20px;
	border-top: 1px solid #e5e5e5;
	display: inline-block;
	width: 100%;
}

.list-actions > .btn-toolbar + .btn-toolbar {
    margin-left: 10px;
}

.list-actions > .btn-toolbar.pull-right + .btn-toolbar {
    margin-right: 10px;
}

/* Fieldset styles */
.row > .form_field {
    -moz-box-sizing: border-box;
    display: block;
    float: left;
    margin-right: 2.5641%;
    min-height: 30px;
}

.row > .form_field:last-child {
    margin-right: 0;
}
/*
.row > .form_field:only-child {
    width: 100%;
}
*/
fieldset {
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    padding: 10px 20px;
    margin: 0;
}

fieldset legend {
    border: 0 none; 
    margin: 0 0 0 -8px;
    width: auto;
}

fieldset legend span {
    background-color: #FFF; 
    padding: 0 8px;
}

legend + .form-group {
    margin-top: 0px;
}

/* Table additional styles */
.table.table-shrinked {
    display: inline-block;
}

/* Form error styles */
ul.form-errors {
    margin-left: 15px;
}

/* Remove firefox grey dotted focus outline */
a:focus, .btn:focus {
    outline: none;
}

input[type="checkbox"] {
    outline: none !important;
}

button::-moz-focus-inner, select::-moz-focus-inner {
    border: 0;
}

/* Additional text styles */
.justify {
    text-align: justify;
}

/* Toogle selection button */
.btn.btn-toggle {
    padding: 3px 6px;
    cursor: pointer;
}

/* Actions toolbar */
.form-group.form-group-condensed {
    padding: 10px;
    margin: 0px;
    border: 0 none;
}

/* Select with btn caret */
.select-caret {
    display: inline-block;
    overflow: hidden;
    min-width: 60px;
}

.select-caret > select {
    border: 0 none;
    width: 135%;
    outline-offset: 0 !important;
    outline: 0 none transparent !important;
}

.select-caret:after {
    content: "";
    position: absolute;
    display: inline-block;
    height: 0;
    width: 0;
    top: 12px;
    right: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #000000;
}

.select-caret.btn {
    padding: 0px;
    height: 28px;
}

/* Reset button styles on input element */
.btn.btn-reset, 
.btn.btn-reset:hover,
input.btn.btn-reset, 
input.btn.btn-reset:hover {
    display: inline-block;
    padding: 4px 6px;
    line-height: 20px;
    background: #FFFFFF; 
    box-shadow: none;
    text-align: left;
    color: #555555;
    cursor: text;
}

.list_scope_group .btn [class^="fa-"] {
    font-size: 12px;
}

/* Icon sizes on list view */
#profile-nav .btn-sm,
.object_actions > .btn-group > .btn-xs {
    font-size: 14px;
}

/* Fix active link */
li.active > a {
    color: #fff;
}

/* Fix cursor */
a:hover > [class^="fa-"]:before,
a:hover > [class*=" fa-"]:before,
button:hover > [class^="fa-"]:before,
button:hover > [class*=" fa-"]:before {
    cursor: pointer;
}

/* Fix icons */
[class^="fa-"],
[class*=" fa-"],
[class^="fa-"]:focus,
[class*=" fa-"]:focus,
*:focus > [class^="fa-"],
*:focus > [class*=" fa-"] {
    background-image: none !important;
}


/*******************************/
/***** Bootstrap 3.1.1 *********/
/*******************************/

.btn-toolbar {
	margin-top: 10px;
	margin-bottom: 10px;
}

/* .form-actions replacements */
#show-actions > .btn-toolbar {
	padding: 19px 20px 20px;
	margin-top: 20px;
	margin-bottom: 20px;
	background-color: #f5f5f5;
	border-top: 1px solid #e5e5e5;
}