/* Move down content because we have a fixed navbar that is 50px tall */

body {
    margin: auto;
    padding: 0.5% 0;
    /*padding-top: 0.5%;
    padding-bottom: 0.5%;*/;
    background-color: #e6e6e6 !important;
}

body, footer {
    width: 90%;
    margin: auto;
}


textarea.wt-resize {
    resize: none;
}

/* overriding setting in bootsidemenu.css */
.menu-wrapper {
    overflow-x: hidden !important;
}
/*#3da9c4*/
.navbar-inverse {
    background-color: #023360 !important;
    border-color: #023360 !important;
    background-image: -webkit-linear-gradient(top, #023360 0%, #023360 100%) !important;
    background-image: -o-linear-gradient(top, #023360 0%, #023360 100%) !important;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#023360), to(#023360)) !important;
    background-image: linear-gradient(to bottom, #023360 0%, #023360 100%) !important;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0) !important;
    filter: progid:DXImageTransform.Microsoft.gradient(enabled = false) !important;
    background-repeat: repeat-x !important;
    border-radius: 4px !important;
}

.navbar-header > a {
    color: white !important;
    background-color: transparent !important;
    text-shadow: none !important
}


    .navbar-header > a:hover,
    .navbar-header > a:focus {
        color: lightyellow !important;
        background-color: transparent !important;
    }

.navbar-nav > li > a {
    color: white !important;
    background-color: transparent !important;
    text-shadow: none !important
}

    .navbar-nav > li > a:hover,
    .navbar-nav > li > a:focus {
        color: lightyellow !important;
        background-color: transparent !important;
    }



/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="select"] {
    max-width: 280px;
}

/* For having collapsible list */
.collapsed {
    display: none; /* hide it for small displays */
}

@media (min-width: 992px) {
    .collapsed {
        display: block;
        margin-left: -35%; /* same width as sidebar */
    }
}

#content {
    -webkit-transition: width 0.3s ease;
    -moz-transition: width 0.3s ease;
    -o-transition: width 0.3s ease;
    transition: width 0.3s ease;
}

#sidebar {
    -webkit-transition: margin 0.3s ease;
    -moz-transition: margin 0.3s ease;
    -o-transition: margin 0.3s ease;
    transition: margin 0.3s ease;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .jumbotron {
        margin-top: 20px;
    }

    .body-content {
        padding: 0;
    }
}

/****** To handle Li for on hover - not included in bootstrap ******/
li.list-group-item:hover,
li.list-group-item:focus {
    text-decoration: none;
    background-color: #f5f5f5;
}

/****** gridstack example ******/
.grid-stack-item-content {
    color: black;
    text-align: center;
    background-color: white;
}

/****** CSS to handle METRO colours *******/
.font-blue, .font-blue-link a {
    color: #2d89ef;
}

.font-blueLight, .font-blueLight-link a {
    color: #eff4ff;
}

.font-blueDark, .font-blueDark-link a {
    color: #2b5797;
}

.font-green, .font-green-link a {
    color: #00a300;
}

.font-greenLight, .font-greenLight-link a {
    color: #99b433;
}

.font-greenDark, .font-greenDark-link a {
    color: #1e7145;
}

.font-red, .font-red-link a {
    color: #b91d47;
}

.font-yellow, .font-yellow-link a {
    color: #ffc40d;
}

.font-orange, .font-orange-link a {
    color: #e3a21a;
}

.font-orangeDark, .font-orangeDark-link a {
    color: #da532c;
}

.font-pink, .font-pink-link a {
    color: #9f00a7;
}

.font-pinkDark, .font-pinkDark-link a {
    color: #7e3878;
}

.font-purple, .font-purple-link a {
    color: #603cba;
}

.font-darken, .font-darken-link a {
    color: #1d1d1d;
}

.font-lighten, .font-lighten-link a {
    color: #d5e7ec;
}

.font-white, .font-white-link a {
    color: #ffffff;
}

.font-grayDark, .font-grayDark-link a {
    color: #525252;
}

.bg-blue {
    background-color: #2d89ef;
}

.bg-blueLight {
    background-color: #eff4ff;
}

.bg-blueDark {
    background-color: #2b5797;
}

.bg-green {
    background-color: #00a300;
}

.bg-greenLight {
    background-color: #99b433;
}

.bg-greenDark {
    background-color: #1e7145;
}

.bg-red {
    background-color: #b91d47;
}

.bg-yellow {
    background-color: #ffc40d;
}

.bg-orange {
    background-color: #e3a21a;
}

.bg-orangeDark {
    background-color: #da532c;
}

.bg-pink {
    background-color: #9f00a7;
}

.bg-pinkDark {
    background-color: #7e3878;
}

.bg-purple {
    background-color: #603cba;
}

.bg-darken {
    background-color: #1d1d1d;
}

.bg-lighten {
    background-color: #d5e7ec;
}

.bg-white {
    background-color: #ffffff;
}

.bg-grayDark {
    background-color: #525252;
}

.bg-grayLight {
    background-color: #e6e6e6;
}

.bg-grayLight-overflow {
    position: relative;
}

    .bg-grayLight-overflow:before,
    .bg-grayLight-overflow:after {
        display: block;
        content: " ";
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        bottom: 0;
        background: #e6e6e6;
    }

    .bg-grayLight-overflow:before {
        left: 100%;
    }

    .bg-grayLight-overflow:after {
        right: 100%;
    }



.btn-circle {
    width: 30px;
    height: 30px;
    text-align: center;
    padding: 6px 0;
    font-size: 12px;
    line-height: 1.428571429;
    border-radius: 50%;
}

/*
.img-center {
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}
*/
.img-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.row-table {
    display: table;
}

.vcenter {
    vertical-align: middle !important;
}

.footer {
    position: absolute;
    bottom: 0px;
    /*Change the color as per your need */
    background-color: #666;
    color: #eee;
    width: 100%;
    text-align: center;
}

.grid-stack-item-hover:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

/* get table headings vertical/off to 45deg */
.table-header-rotated th.row-header {
    width: auto;
}

.table-header-rotated td {
    width: 40px;
    border-top: 1px solid #dddddd;
    border-left: 1px solid #dddddd;
    border-right: 1px solid #dddddd;
    vertical-align: middle;
    text-align: center;
}

.table-header-rotated th.rotate-45 {
    height: 100px;
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    position: relative;
    vertical-align: bottom;
    padding: 0;
    font-size: 10px;
    line-height: 0.8;
}

    .table-header-rotated th.rotate-45 > div {
        position: relative;
        top: 0px;
        left: 50px; /* 80 * tan(45) / 2 = 40 where 80 is the height on the cell and 45 is the transform angle*/
        height: 100%;
        -ms-transform: skew(-45deg,0deg);
        -moz-transform: skew(-45deg,0deg);
        -webkit-transform: skew(-45deg,0deg);
        -o-transform: skew(-45deg,0deg);
        transform: skew(-45deg,0deg);
        overflow: hidden;
        border-left: 1px solid #dddddd;
        border-right: 1px solid #dddddd;
        border-top: 1px solid #dddddd;
    }

    .table-header-rotated th.rotate-45 span {
        -ms-transform: skew(45deg,0deg) rotate(315deg);
        -moz-transform: skew(45deg,0deg) rotate(315deg);
        -webkit-transform: skew(45deg,0deg) rotate(315deg);
        -o-transform: skew(45deg,0deg) rotate(315deg);
        transform: skew(45deg,0deg) rotate(315deg);
        position: absolute;
        bottom: 35px; /* 40 cos(45) = 28 with an additional 2px margin*/
        left: -25px; /*Because it looked good, but there is probably a mathematical link here as well*/
        display: inline-block;
        // width: 100%;
        width: 100px; /* 80 / cos(45) - 40 cos (45) = 85 where 80 is the height of the cell, 40 the width of the cell and 45 the transform angle*/
        text-align: left;
        // white-space: nowrap; /*whether to display in one line or not*/
    }

/*customer button css*/
.btn-success-insight {
    color: #3da9c4 !important;
    background-color: #fafafa !important;
    border: none !important;
    margin-right: 5px !important
}

    .btn-success-insight:focus,
    .btn-success-insight.focus {
        color: #3da9c4 !important;
        background-color: #fafafa !important;
        border: thin !important;
        border-color: #3da9c4 !important;
        margin-right: 5px !important
    }

    .btn-success-insight:hover {
        color: #3da9c4 !important;
        background-color: #fafafa !important;
        border: thin !important;
        border-color: #3da9c4 !important;
        margin-right: 5px !important
    }

    .btn-success-insight:active,
    .btn-success-insight.active,
    .open > .dropdown-toggle.btn-success-insight {
        color: white !important;
        background-color: #3da9c4 !important;
        border: none !important;
        margin-right: 5px !important;
        outline: none !important;
    }

        .btn-success-insight:active:hover,
        .btn-success-insight.active:hover,
        .open > .dropdown-toggle.btn-success-insight:hover,
        .btn-success-insight:active:focus,
        .btn-success-insight.active:focus,
        .open > .dropdown-toggle.btn-success-insight:focus,
        .btn-success-insight:active.focus,
        .btn-success-insight.active.focus,
        .open > .dropdown-toggle.btn-success-insight.focus {
            color: white !important;
            background-color: #3da9c4 !important;
            border: none !important;
            margin-right: 5px !important
        }

    .btn-success-insight:active,
    .btn-success-insight.active,
    .open > .dropdown-toggle.btn-success-insight {
        background-image: none !important;
    }

    .btn-success-insight.disabled:hover,
    .btn-success-insight[disabled]:hover,
    fieldset[disabled] .btn-success-insight:hover,
    .btn-success-insight.disabled:focus,
    .btn-success-insight[disabled]:focus,
    fieldset[disabled] .btn-success-insight:focus,
    .btn-success-insight.disabled.focus,
    .btn-success-insight[disabled].focus,
    fieldset[disabled] .btn-success-insight.focus {
        background-color: transparent !important;
        border-color: transparent !important;
    }

    .btn-success-insight .badge {
        color: #3da9c4 !important;
        background-color: transparent;
    }

.btn-warning-insight {
    color: #E3047F !important;
    background-color: #fafafa !important;
    border: none !important;
    margin-right: 5px !important
}

    .btn-warning-insight:focus,
    .btn-warning-insight.focus {
        color: #E3047F !important;
        background-color: #fafafa !important;
        border: thin !important;
        border-color: #E3047F !important;
        margin-right: 5px !important
    }

    .btn-warning-insight:hover {
        color: #E3047F !important;
        background-color: #fafafa !important;
        border: thin !important;
        border-color: #E3047F !important;
        margin-right: 5px !important
    }

    .btn-warning-insight:active,
    .btn-warning-insight.active,
    .open > .dropdown-toggle.btn-warning-insight {
        color: white !important;
        background-color: #E3047F !important;
        border: none !important;
        margin-right: 5px !important;
        outline: none !important;
    }

        .btn-warning-insight:active:hover,
        .btn-warning-insight.active:hover,
        .open > .dropdown-toggle.btn-warning-insight:hover,
        .btn-warning-insight:active:focus,
        .btn-warning-insight.active:focus,
        .open > .dropdown-toggle.btn-warning-insight:focus,
        .btn-warning-insight:active.focus,
        .btn-warning-insight.active.focus,
        .open > .dropdown-toggle.btn-warning-insight.focus {
            color: white !important;
            background-color: #E3047F !important;
            border: none !important;
            margin-right: 5px !important
        }

    .btn-warning-insight:active,
    .btn-warning-insight.active,
    .open > .dropdown-toggle.btn-warning-insight {
        background-image: none !important;
    }

    .btn-warning-insight.disabled:hover,
    .btn-warning-insight[disabled]:hover,
    fieldset[disabled] .btn-warning-insight:hover,
    .btn-warning-insight.disabled:focus,
    .btn-warning-insight[disabled]:focus,
    fieldset[disabled] .btn-warning-insight:focus,
    .btn-warning-insight.disabled.focus,
    .btn-warning-insight[disabled].focus,
    fieldset[disabled] .btn-warning-insight.focus {
        background-color: transparent !important;
        border-color: transparent !important;
    }

    .btn-warning-insight .badge {
        color: white !important;
        background-color: #E3047F;
    }

/* Change the colour of the active item in a bootstrap list */
li.active {
    background-color: #023360 !important;
    border-color: #023360 !important;
}

/* change the button colours to ab agri colours */
.btn-danger-link {
    color: #fff;
    background-color: #E22A8B;
    border-color: #E22A8B;
}

    .btn-danger-link:focus,
    .btn-danger-link.focus {
        color: #fff;
        background-color: #E3047F;
        border-color: #E3047F;
    }

    .btn-danger-link:hover {
        color: #fff;
        background-color: #E3047F;
        border-color: #E3047F;
    }

.btn-success-link {
    color: #fff;
    background-color: #61C5A7;
    border-color: #61C5A7;
}

    .btn-success-link:focus,
    .btn-success-link.focus {
        color: #fff;
        background-color: #3da9c4;
        border-color: #3da9c4;
    }

    .btn-success-link:hover {
        color: #fff;
        background-color: #3da9c4;
        border-color: #3da9c4;
    }

.btn-info-link {
    color: #fff;
    background-color: #FEDA48;
    border-color: #FEDA48;
}

    .btn-info-link:focus,
    .btn-info-link.focus {
        color: #fff;
        background-color: #F6BC14;
        border-color: #F6BC14;
    }

    .btn-info-link:hover {
        color: #fff;
        background-color: #F6BC14;
        border-color: #F6BC14;
    }

/* changing bootstrap icon sizes */
.gi-2x {
    font-size: 2em;
}

.gi-3x {
    font-size: 3em;
}

.gi-4x {
    font-size: 4em;
}

.gi-5x {
    font-size: 5em;
}

/* handling scrolling issues */
.scrollable {
    overflow-y: scroll;
    max-height: 300px;
    height: 50%; /* Doesnt Work */
    /* height: 300px; /* Works */
    width: 95%;
    background: red;
}

