html, body {
    margin: 0px;
    padding: 0px;
}

body {
    background-color: #f5f5f5;
}

h1 {
    font-size: 24px;
    font-weight: normal;
    line-height: 30px;
    margin-top: 30px;
}

h2 {
    font-size: 20px;
    font-weight: normal;
    line-height: 24px;
    margin-top: 24px;
}

h3 {
    font-size: 16px;
    font-weight: bold;
    line-height: 20px;
    margin-top: 20px;
}

h4 {
    font-size: 14px;
    font-weight: bold;
    line-height: 18px;
    margin-top: 18px;
}

h5 {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: #707070;
    line-height: 18px;
    margin-top: 18px;
}

h6 {
    font-size: 12px;
    font-weight: bold;
    color: #707070;
    line-height: 18px;
    margin-top: 18px;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
    margin-top: 0px;
}

code {
    color: #404040;
}

code, pre {
    font-size: 12px;
}

form:last-child, li:last-child, ol:last-child, p:last-child, ul:last-child {
    margin-bottom: 0px;
}

td {
    padding: 0px;
}

/**************************************************************************************************
 * Bootstrap fixes
 *  These are fixes for bugs in bootstrap
 *************************************************************************************************/

form.form div.form-actions input[type="submit"] {
    margin-right: 9px;
}

.btn:focus {
    outline: none;
}

.navbar-static-top .navbar-inner {
    padding-left: 0px;
    padding-right: 0px;
}

.navbar-static-top > .navbar-inner > .container-fluid > div.pull-right > ul.nav:last-child-child {
    margin-right: 0px;
}

.navbar-static-top > .navbar-inner > .container-fluid {
    padding-right: 5px;
}

.btn-group > .btn-group > .btn {
    border-radius: 0 0 0 0;
}

.btn-group > .btn + .btn-group,
.btn-group > .btn-group + .btn,
.btn-group > .btn-group + .btn-group
{
    margin: -1px;
}

.btn-group > .btn-group:first-child > .btn:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.btn-group > .btn-group:last-child > .dropdown-toggle,
.btn-group > .btn-group:last-child > .btn:last-child
{
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/**************************************************************************************************
 * End of bootstrap fixes
 *************************************************************************************************/

/**************************************************************************************************
 * Bootstrap changes
 *  Not fixes, but design differences
 *************************************************************************************************/

.navbar-static-top a.brand {
    font-weight: bold;
}

.dropdown-menu {
    border-radius: 0px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.dropdown-submenu > .dropdown-menu {
    border-radius: 0px;
    margin-top: -5px;
}

.dropdown-menu .divider {
    margin-top: 4px;
    margin-bottom: 4px;
}

.nav-pills.nav-stacked > li.divider {
    margin-top: 4px;
    margin-bottom: 4px;
    margin-left: 2px;
    margin-right: 2px;
    border-top: 1px solid #cccccc;
}

.navbar a.brand:hover {
    background-color: #3b73af;
}

.modal > .modal-header > h3 {
    font-size: 20px;
    font-weight: normal;
}

input[readonly], select[readonly], textarea[readonly] {
    background-color: white;
}

/**************************************************************************************************
 * End of Bootstrap changes
 *************************************************************************************************/

#marsh-page-header {
    border-bottom: 1px solid #cccccc;
}

#marsh-horizontal-nav {
    border-bottom: 1px solid #cccccc;
}

#marsh-horizontal-nav ul.nav-pills {
    margin: 0px;
}

#marsh-horizontal-nav ul.nav-pills > li > a {
    margin: 0px;
    border-radius: 0px;
    border: none;
    padding-top: 9px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 9px;
}

#marsh-horizontal-nav ul.nav-pills > li > a > .caret {
    border-top-color: #444;
}

#marsh-horizontal-nav ul.nav-pills > li.active > a {
    border: none;
    background-color: transparent;
    color: #444;
    font-weight: bold;
    position: relative;
}

#marsh-horizontal-nav ul.nav-pills > li.active > a:before,
#marsh-horizontal-nav ul.nav-pills > li.active > a:after {
    border-color: transparent transparent #cccccc;
    border-image: none;
    border-style: outset outset solid;
    border-width: 8px;
    bottom: 0;
    content: "kkkk";
    height: 0;
    left: 50%;
    margin-left: -8px;
    overflow: hidden;
    position: absolute;
    width: 0;
}

#marsh-horizontal-nav ul.nav-pills > li.active > a:after {
    border-bottom-color: white;
    background: none;
    bottom: -1px;
}

#marsh-horizontal-nav ul.nav-pills > li > a:hover {
    background-color: #e6e6e6;
    border: none;
}

#marsh-body.focused-task {
    padding-top: 50px;
}

#marsh-body-container {
    border-bottom: 1px solid #cccccc;
}

#marsh-body-container > table {
    width: 100%;
}

#marsh-body.focused-task > #marsh-body-container {
    width: 600px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #cccccc;
    border-radius: 5px;
}

#marsh-vertical-nav-container {
    width: 220px;
    background-color: white;
    vertical-align: top;
    height: 100%;
    border-right: 1px solid #cccccc;
}

#marsh-vertical-nav {
    padding: 10px;
    margin-right: 0px;
}

#marsh-vertical-nav > ul.nav {
    margin-bottom: 0px;
}

#marsh-vertical-nav > ul.nav > li {
    border-radius: 0px;
}

#marsh-vertical-nav > ul.nav > li.active > a {
    background: none;
    font-weight: bold;
    color: #444;
}

#marsh-vertical-nav > ul.nav > li > a:hover {
    border-radius: 0px;
    background-color: #e6e6e6;
}

#marsh-content-container {
    padding: 20px;
    background-color: white;
    vertical-align: top;
    height: 100%;
}

#marsh-content > *:last-child {
    margin-bottom: 0px;
}

#marsh-content > form:last-child > .form-actions:last-child {
    margin-bottom: 0px;
}

#marsh-content .nav-tabs,
.modal .nav-tabs
{
    padding-left: 20px;
    padding-right: 20px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 18px;
}

#marsh-content .nav-tabs > li > a,
.modal .nav-tabs > li > a
{
    padding-top:  3px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 3px;
    margin: 0px;
    border: 1px solid #ccc;
    margin-right: -1px;
    margin-bottom: -1px;
    background-color: #eeeeee;
    color: #333;
}

#marsh-content .nav-tabs > li.active > a,
.modal .nav-tabs > li.active > a
{
    border-bottom: 1px solid white;
    background-color: white;
}

#marsh-body.focused-task #marsh-content-container {
    border-radius: 5px;
}

#marsh-body-container > table {
    table-layout: fixed;
}

#marsh-page-footer {
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 11px;
    color: #707070;
    text-align: center;
}

#marsh-page-footer a {
    color: #707070;
}

#marsh-page-footer > span + span {
    margin-left: 15px;
}

#marsh-page-header h1 {
    margin: 0px;
}

#marsh-ajax-veil-fullscreen {
    position: fixed;
    width: auto;
    height: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 8000;
}

#marsh-ajax-veil-fullscreen > div {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -18px;
    margin-left: -18px;
    width: 24px;
    height: 24px;
    padding: 6px;
    border-radius: 6px;
    background-color: #303030;
}

/**************************************************************************************************
 * Data table
 *************************************************************************************************/

.marsh-data-table-container {
    border: 1px solid #dddddd;
    position: relative;
}

.marsh-data-table-container .marsh-data-table-scroller {
    overflow-x: auto;
    overflow-y: hidden;
}

.marsh-data-table-container .marsh-data-table-scroller .table {
    margin: 0px;
}

.marsh-data-table-container .marsh-data-table-scroller .table td,
.marsh-data-table-container .marsh-data-table-scroller .table th {
    white-space: nowrap;
}

.marsh-data-table-container .marsh-data-table-scroller .table thead th {
    background-color: #f0f0f0;
}

.marsh-data-table-container .marsh-data-table-scroller .table thead th a {
    color: #444;
}

.marsh-data-table-container .marsh-data-table-bottom-toolbar {
    padding: 4px;
    background-color: #eaeaea;
    border-top: 1px solid #dddddd;
    background-image: linear-gradient(to bottom, #fcfcfc, #e6e6e6);
}

.marsh-data-table-bottom-toolbar table td {
    padding-right: 10px;
}

.marsh-data-table-container .ajax-veil {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
    z-index: 99999;
    width:100%;
    height:100%;
    background-color: white;
}

.marsh-data-table-button-toolbar {
    border-bottom: 1px solid #ccc;
    background-color: #f0f0f0;
    padding: 3px;
    background-image: linear-gradient(to bottom, #fcfcfc, #e6e6e6);
}

.marsh-data-table-scroller > table > tbody > tr > td > div.btn-group {
    position: static;
}

.marsh-data-table-scroller > table > tbody > tr > td > div.btn-group > ul.dropdown-menu {
    top: auto;
    left: auto;
}

.marsh-data-table-scroller > table > tbody > tr > td > div.btn-group > ul.dropdown-menu.pull-right {
    top: auto;
    left: auto;
    margin-right: 4px;
}

.marsh-data-table-button-toolbar .btn-toolbar {
    margin: 0px;
}

.marsh-data-table-query-builder {
    padding: 10px;
    border-bottom: 1px solid #dddddd;
    background-color: #f9f9f9;
}

.marsh-data-table-query-builder form {
    margin: 0px;
    padding: 0px;
}
.marsh-data-table-query-builder .marsh-data-table-query-builder-row
{
    margin-bottom: 6px;
}

.marsh-data-table-query-builder .marsh-data-table-query-builder-row select,
.marsh-data-table-query-builder .marsh-data-table-query-builder-row input
{
    margin: 0px;
    margin-left: 6px;
}

body.marsh-ajax-busy {
    overflow: hidden;
}
