﻿.dgrid {
    position: relative;
    overflow: hidden;
    border: none;
    height: 30em;
    display: block;
}

.dgrid-header {
    background-color: #3C4824; /*#839A72; #eee;*/
    position: absolute;
    right: 17px;
    left: 0;
}

.dgrid-header-scroll {
    position: absolute;
    top: 0;
    right: 0;
}

.dgrid-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.dgrid-header-hidden,html.has-quirks .dgrid-header-hidden .dgrid-cell {
    font-size: 0;
    height: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.dgrid-sortable {
    cursor: pointer;
}

.dgrid-header, .dgrid-header-row, .dgrid-footer {
    overflow: hidden;
    background-color: #3C4824; /* #839A72; #eee;*/
}

.dgrid-row-table {
    border-collapse: collapse;
    border: none;
    table-layout: fixed;
    empty-cells: show;
    width: 100%;
    height: 100%;
}

.dgrid-cell {
    text-align: center;
    padding: 0px;
    text-align: left;
    overflow: hidden;
    vertical-align: top;
    border: 1px solid #ddd;
    border-top-style: none;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.dgrid-cell-padding {
    padding: 3px;
}

.dgrid-content {
    position: relative;
    height: 99%;
}

.dgrid-scroller {    
    overflow-x: auto;
    overflow-y: scroll;
    position: absolute;
    top: 0px;
    margin-top: 25px;
    bottom: 0px;
    width: 100%;
}

.dgrid-scroller:focus {
  outline: none;
  border-color: red;
  outline-color: red;
}

/*
.dgrid-scroller:active {
  border-color: red;
}
*/

.dgrid-header, .dgrid-header-row, .ui-widget-header {
  outline-color: red;
}
.dgrid-loading {
    position: relative;
    height: 100%;
}

.dgrid-above {
    position: absolute;
    bottom: 0;
}

.ui-icon {
    width: 16px;
    height: 16px;
    background-image: url('images/ui-icons_222222_256x240.png');
}

.ui-icon-triangle-1-e {
    background-position: -32px -16px;
}

.ui-icon-triangle-1-se {
    background-position: -48px -16px;
}

.dgrid-expando-icon {
    width: 16px;
    height: 16px;
}

.dgrid-tree-container {
    -webkit-transition-duration: 0.3s;
    -moz-transition-duration: 0.3s;
    -ms-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
    overflow: hidden;
}

.dgrid-tree-container.dgrid-tree-resetting {
    -webkit-transition-duration: 0;
    -moz-transition-duration: 0;
    -ms-transition-duration: 0;
    -o-transition-duration: 0;
    transition-duration: 0;
}

.dgrid-sort-arrow {
    background-position: -64px -16px;
    display: block;
    float: right;
    margin: 0 4px 0 5px;
    height: 12px;
}

.dgrid-sort-up .dgrid-sort-arrow {
    background-position: 0px -16px;
}

.dgrid-selected {
    background: red;
}

.tundra .ui-state-active {
  background-color: #D7D700; /*#839A72;*/
}

.tundra .ui-state-default:hover {
  background-color: #eee; /*#839A72; #C0C0C0; #A8D8B7;*/
}
.tundra .ui-state-default:focus {
  outline-color: #3D6122;
  outline-style: auto;
  outline-width: 1px;
}

.tundra .ui-state-focus {
  outline-color: #3D6122;
  outline-style: auto;
  outline-width: 1px;
}

.dgrid-input {
    width: 99%;
}

html.has-mozilla .dgrid *:focus, html.has-opera .dgrid *:focus {
    outline: 1px dotted;
}

html.has-ie-6-7.has-no-quirks .dgrid-row-table {
    width: auto;
}

html.has-quirks .dgrid-row-table, html.has-ie-6 .dgrid-row-table {
    height: auto;
}

html.has-quirks .dgrid-header-scroll,html.has-ie-6 .dgrid-header-scroll {
    font-size: 0;
}

html.has-mozilla .dgrid-focus {
    outline-offset: -1px;
}

.dgrid-scrollbar-measure {
    width: 100px;
    height: 100px;
    overflow: scroll;
    position: absolute;
    top: -9999px;
}

#dgrid-css-dgrid-loaded {
    display: none;
}
/* BPS gda dgrid styling */
.dgrid-column-id {
  width: 25px;
  display: none;
}
.dgrid-column-bldg_sq_ft {
  width: 5%;
}
.dgrid-column-LEED_rating {
  width: 11%;
} 

.dgrid-column-City {
  width: 6%;
}
.dgrid-column-bldg_type {
  width: 9%;
}
.dgrid-column-LEED_version {
  width: 9%;
}

.dgrid-column-construction_type {
  width: 150px;
  display: none;
}
.dgrid-column-owner_name {
  width: 15%;
}

.dgrid-column-architect_name, .dgrid-column-contractor_name {
  width: 16%;
}

.dgrid-column-building_name {
  width: 15%;
}
.field-building_name {
  cursor: pointer;
}
.dgrid-row-odd {
  background: #849966; /* #B3D8C2; #dcddde; Row selection Color */
}
.dgrid-row-even {
  background:  #849966; /* White;*/
}

.tundra .ui-widget-header .dgrid-cell {
  border-color: #bba;
  text-align: center;
}