
/*------------------------------------------------------------------
Global
*/

body {
    font-size: 14px;
    height: 100%;
}

.handCursor {
    cursor: pointer;
}

.contentWrapper {
    display: inline-block;
    min-width: 100%;
    min-height: -moz-calc(100vh - (40px + 10px));
    min-height: -webkit-calc(100vh - (40px + 10px));
    min-height: calc(100vh - (40px + 10px));
}

.site-content {
    margin: 0;
    min-height: -moz-calc(100vh - (45px + 80px));
    min-height: -webkit-calc(100vh - (45px + 80px));
    min-height: calc(100vh - (45px + 80px));
}

h4.dbHeading {
    float: left;
}

.alert.alert-danger.topSpace {
    margin-top: 80px;
}

#footer, footer {
    width: 100%;
    margin-top: 5px;
}

/*------------------------------------------------------------------*/

div#indexHeader {
    width: 100%;
    margin-top: 5px;
    min-width: calc(100vw - 30px);
}

#dbTitle, #viewOptions {
    display: inline-block;
}

#viewOptions {
    position: absolute;
    right: 15px;
    top: 10px;
}

    #dbTitle .helpIconWrapper, #viewOptions .helpIconWrapper {
        display: inline;
        float: right;
        padding: 7px 0 0 5px;
    }

    #dbTitle .ui-select-container {
        min-width: 400px;
        display: inline-block;
    }

    #dbTitle.form-group {
        margin-bottom: 1px;
    }

.selectize-dropdown .active {
    color: #2e2e2e;
    background-color: #d8dbf1;
}

.ui-select-bootstrap .ui-select-choices-row.active > a {
    color: #2e2e2e;
    text-decoration: none;
    outline: 0;
    background-color: #d8dbf1;
}

.ui-select-bootstrap .ui-select-choices-row > a:hover {
    background-color: #e2eeef;
}

#dbTitle .btn-default:hover {
    color: #017d80;
    background-color: #ffffff;
    border-color: #017d80;
}

table#index {
    position: relative;
    min-width: 100%;
    margin-top: 0px;
    height: calc(100%);
    table-layout: fixed;
    word-wrap: break-word;
}

#datapreview-outer {
    padding-top: 10px;
    height: 100%;
}

#datapreview {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-left: 15px;
    margin-right: 15px;
}

#datapreview-body {
    flex: 1;
    overflow: auto;
}
#datapreview-footer {
    padding-top: 10px;
    padding-bottom: 10px;
}

#datapreview h4 {
    margin-top: 3px;
}

    #datapreview h4 span.smallSpan {
        font-size: 12px;
        font-family: yellix, "century gothic", roboto, arial, sans-serif;
        font-weight: bold;
        color: #2e2e2e;
    }

#datapreview .spacer-bottom-md {
    margin-bottom: 10px;
}

#datapreview .paginationwrap {
    height: 30px;
}

#datapreview .toolbar .input-group-addon {
    line-height: 14px;
}

#datapreview .toolbar-footer {
    font-size: 12px;
    font-family: yellix, "century gothic", roboto, arial, sans-serif;
}

.left-element {
    position: absolute;
    left: 10px;
    right: unset;
}

.right-element {
    position: absolute;
    left: unset;
    right: 10px;
}

.centre-element {
    margin-left: auto;
    margin-right: auto;
}

@media screen {
    .scrolldb {
        position: absolute;
        left: 15px;
        right: 15px;
        bottom: 15px;
        top: 50px;
        overflow: auto;
    }
}

select.withoutDropArrow {
    background: #fff url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMjIiIHZpZXdCb3g9�uMjUtNS41NjV6IiBmaWxsPSIjNzE3MTcxIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=") right center no-repeat !important;
}

/*Desktop dashboard */

.scrolldbClient {
    position: absolute;
    left: 5px;
    right: 5px;
    bottom: 5px;
    top: 35px;
    overflow: auto;
}

#indexHeader.NoHeaderFooter {
    margin-top: 5px;
    width: 100%;
}

#index.NoHeaderFooter {
    position: relative;
    /*width: 100%;*/
    margin-top: 0;
    margin-bottom: 0;
    height: calc(100%);
}

    #index.NoHeaderFooter h4,
    #index.NoHeaderFooter .h4 {
        margin-top: 10px;
        margin-bottom: 5px;
        margin-left: 5px;
    }

#index > tbody > td,
#index > tbody > tr {
    vertical-align: top;
}

table#index > td {
    padding: 0;
}

table#index table.widgets-container {
    border-collapse: separate;
    border-spacing: 2px;
    height: 100%;
    width: 100%;
}

    table#index table.widgets-container td.widget-holder {
        vertical-align: top;
        padding: 0;
        margin: 0;
    }

td.WidgetDummyColumn {
    border-top-style: none;
    border-right-style: none;
    border-left-style: none;
    border-bottom-style: none;
    padding: 0;
    margin: 0;
    display: none;
}
/*------------------------------------------------------------------
Widget
*/
table.widget {
    width: 100%;
    height: 99.9%;
    border-collapse: collapse;
    position: relative;
}

.fit-in-view table.widgets-container {
    table-layout: fixed;
}

.fit-in-view table.widget {
    table-layout: fixed;
}

table.widget .widget-header {
    background-color: #f8f8f8;
    border: 1px solid #e1e1e1;
    height: 25px;
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
    cursor: pointer;
    padding: 2px 10px;
}

.fit-in-view table.widget .widget-header {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

table.widget .widget-header h3 {
    font-family: yellix, "century gothic", roboto, arial, sans-serif;
    font-size: 12px;
    color: #002743;
    text-align: left;
    cursor: pointer;
    font-weight: 400;
    display: inline;
    margin-top: 3px;
    margin-bottom: 3px;
}

table.widget .widget-header:hover {
    background-color: #e2eeef;
}

table.widget .toggleTr:hover .widget-header h3 {
    color: #017d80;
}

.fit-in-view.scrolldb {
    overflow: hidden;
}

.fit-in-view.scrolldbClient {
    overflow: hidden;
}

.fit-in-view table.widget .toggleTr:hover h3 {
    color: #002743;
    margin-left: -4px;
    margin-top: 1px;
    padding: 4px;
    white-space: normal;
}

table.widget .widget-header [class^="icon-"],
table.widget .widget-header .widget-header [class*=" icon-"] {
    display: inline-block;
    margin-left: 13px;
    margin-right: -2px;
    font-size: 12px;
    color: #555;
    vertical-align: middle;
}

table.widget .widget-content {
    border-radius: 3px;
    background: #FFF;
    border-left: 1px solid #e1e1e1;
    border-right: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
    border-top: 1px solid #e1e1e1;
    vertical-align: top;
    padding: 5px;
}

    table.widget .widget-content text,
    table.widget .widget-content text:hover {
        font-size: 11px;
        font-family: yellix, "century gothic", roboto, arial, sans-serif;
        color: #2e2e2e;
        font-weight: normal !important;
    }

    table.widget .widget-content .nv-legend-text {
        color: #717171;
    }

table.widget .widget-header + .widget-content {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

table.widget .widget-nopad .widget-content {
    padding: 0;
}

table.widget .toggleIcon {
    width: 11px;
    height: 11px;
    margin-right: 5px;
    font-family: 'Glyphicons Halflings';
    font-size: 16px;
    color: #017d80;
    cursor: pointer;
    font-weight: 400;
    display: inline-block;
    margin-top: -3px;
}

table.widget .toggleTr:hover .toggleIcon {
    color: #025153;
}

table.widget .toggleIcon.toggleIconMinus:before {
    content: '\25be';
}

table.widget .toggleIcon.toggleIconPlus:before {
    content: '\25b8';
}
/*------------------------------------------------------------------
 SVG
 */

div.central-container svg {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Trying to get SVG to act like a greedy block in all browsers */
    display: block;
    width: 100%;
    height: 0;
}

    div.central-container svg.nvd3-svg {
        height: auto;
    }

    div.central-container svg text {
        font: normal 12px Arial;
    }

        div.central-container svg text tspan {
            fill: #717171;
        }

    div.central-container svg .title {
        font: bold 14px Arial;
    }

div.central-container .nvtooltip {
    background: rgb(255, 255, 255);
}

/*------------------------------------------------------------------
Miscellaneous
*/
.chart-holder {
    width: 100%;
    height: 250px;
}

/*------------------------------------------------------------------*/

@media (max-width: 979px) {
    .navbar-fixed-top {
        position: static;
        margin-bottom: 0;
    }
}

.nodata {
    font-size: 11px;
}

.error {
    font-size: 11px;
    color: #dc0000;
    text-align: center;
}

.ng-hide {
    display: none !important;
}

/*This allows the dashboard list item to display in small size*/
.ui-select-bootstrap .ui-select-choices-row > a {
    font-size: 12px;
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: 400;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
}

.drill-down-menu {
    font-size: 13px !important;
}

    .drill-down-menu.dropdown-menu > li > a {
        color: #717171 !important;
    }

.detailInnerDiv {
    width: calc(44vw) !important;
    width: -moz-calc(44vw) !important;
    width: -webkit-calc(44vw) !important;
    padding-right: 5px !important;
}

.innerDivCommitment {
    width: calc(44.3vw) !important;
    width: -moz-calc(44.3vw) !important;
    width: -webkit-calc(44.3vw) !important;
    padding-right: 5px !important;
}

.data-preview-drilldown-popover {
    display: block;
    position: fixed;
}

.drilldown-entity {
    cursor: pointer;
    padding: 5px 15px;
    color: #2e2e2e;
}

    .drilldown-entity:hover {
        background-color: #f5f5f5;
    }

.map-legend {
    position: absolute;
    height: auto;
    width: auto;
    background: #FFFFFF;
    padding: 12px 35px 0 18px;
    border: 1px solid #9b9b9b;
    overflow-x: hidden;
    overflow-y: auto;
    max-width: 25%;
    min-width: 10%;
    max-height: calc(100% - 70px);
    top: 40px;
    right: 14px;
    list-style: none;
}

.map-legend-element-container {
    line-height: 1em;
    cursor: pointer;
}

.map-legend-element-color,
.map-legend-element-label {
    position: relative;
}

.map-legend-element-color {
    width: 10px;
    height: 10px;
    border-radius: 5px;
}

.map-legend-element-label,
.map-gradient-max-label,
.map-gradient-min-label {
    left: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: calc(100% + 15px); /* do this to force ellipses on long text */
    overflow: hidden;
    font-size: 11px;
}

.map-legend-element-label {
    top: -12px;
}

.map-gradient-max-label {
    top: 0;
}

.map-gradient-min-label {
    bottom: 0;
}

.map-legend-gradient-colours {
    border: 1px solid #e1e1e1;
    height: calc(100% - 32px);
    width: 20px;
}

.map-legend-gradient {
    height: 220px;
    max-height: 90%;
    padding: 12px 20px;
    width: auto;
    min-width: 0;
}

a:focus, a:hover {
    color: #025153;
    text-decoration: underline;
}

.btn-default-focus {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
.widget .ol-zoom {
    top: 7px;
}
.widget .ol-zoom .ol-zoom-in,
.widget .ol-zoom .ol-zoom-out {
    height: 25px;
    width: 25px;
}

#datapreview-body table.table-datatable {
    border-spacing: 0;
}
#datapreview-body table.table-datatable td {
    border-bottom: 0;
}
#datapreview-body table.table-datatable a {
    text-decoration: none;
}
#datapreview-body table.table-datatable a:hover {
    color: #23527c;
    text-decoration: underline;
}
#datapreview-header .input-group-prepend {
    white-space: nowrap;
    vertical-align: middle;
    display: flex;
    align-items: center;
}
#datapreview-header .input-group input {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}
#slnPageSize + span {
    margin-left: 3px;
    white-space: nowrap;
}
