

#flash {
    position:absolute;
    margin:10px;
    top:0;
    right:0;
    z-index:9999;
}
body.login #flash {
    position:relative;
    margin:0;
}
body.login .submit {
    position:relative;
    top:0;
    padding:0;
}


/* Page Structure */
.main-content .container {
    position:relative;
    /*padding-bottom:20px;*/
    background: -moz-linear-gradient(top,  rgba(253,253,253,0) 0%, rgba(249,249,249,1) 100%); 
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(253,253,253,0)), color-stop(100%,rgba(249,249,249,1))); 
    background: -webkit-linear-gradient(top,  rgba(253,253,253,0) 0%,rgba(249,249,249,1) 100%); 
    background: -o-linear-gradient(top,  rgba(253,253,253,0) 0%,rgba(249,249,249,1) 100%); 
    background: -ms-linear-gradient(top,  rgba(253,253,253,0) 0%,rgba(249,249,249,1) 100%); 
    background: linear-gradient(to bottom,  rgba(253,253,253,0) 0%,rgba(249,249,249,1) 100%); 
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00fdfdfd', endColorstr='#f9f9f9',GradientType=0 ); 
}
.row {
    margin-left: -8px;
    margin-right: -8px;
}
.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
    min-height: 1px;
    padding-left: 8px;
    padding-right: 8px;
    position: relative;
}
.page-header {
    margin:15px 0 0;
    padding:0 320px 0 0;
    border:none;
    float:left;
}
.alert {
    padding:10px;
}


/* Navigation */
ul.main-navigation-menu > li:first-child a {
    border-top:0;
}
.nav .open > a, .nav .open > a:hover, .nav .open > a:focus {
    background-color: #FFFFFF !important;
    border-color: #DDDDDD #DDDDDD rgba(0, 0, 0, 0) !important;
    border-top: 2px solid #DDDDDD !important;
    color: #333333 !important;
    line-height: 19px !important;
    margin-top: -1px !important;
    z-index: 12 !important;
}

.nav-tabs > li > a, 
.nav-tabs > li > a:focus,
.nav-tabs > li.active > a, 
.nav-tabs > li.active > a:hover, 
.nav-tabs > li.active > a:focus {
    line-height:19px;
}
.nav-tabs > li > a > .badge {
    /*line-height:1;*/
}


div.buttons.add,
div.buttons.edit {
    position:absolute;
    right:10px;
    top:18px;
}
div.buttons.index {
    margin:0 0 10px;
}


div.pagination {
    float:right;
    margin:0;
}
div.pagination ul.pagination {
    margin:0;
}
.pagination-info {
     float:left;
     padding:4px 20px 4px 4px;
}






/* Form elements */

.radio, .checkbox {
    padding-left:11px;
}


.date select, .date input,
.datetime select, .datetime input {
    width:auto;
    display:inline;
}

.datepicker tfoot .today {
    cursor:pointer;
}

.checkbox .form-control {
    display:inline;
    width:auto;
    height:auto;
}


textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"] {
    color: inherit;
    /*color: #858585;*/
	
}
select.form-control {
    /*color: #858585;*/
    color: inherit;
}


/* Form Structure */
.input-group-xs > .form-control,
.input-group-xs > .input-group-addon,
.input-group-xs > .input-group-btn > .btn {
    height: 22px;
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
}

fieldset {
    margin:0 0 5px;
}
legend {
    border: 0 none;
    font-weight: normal;
    font-size:12px;
    color:#858585;
    margin-bottom: 2px;
    padding: 0 7px;
}
label {
    font-weight: normal;
    font-size:12px;
    color:#858585;
    margin-bottom: 2px;
}

.input-grid label {
    color:#000;
    font-size:14px;
}
.input-grid .help-block {
    position:relative;
    padding-left: 10px;
    padding-right: 10px;
    clear:both;
}
.input-grid.input-grid-inline label {
    margin-right:10px;
}
.input-grid.input-grid-inline .help-block {
    padding-left: 0;
    padding-right: 0;
}
textarea.form-control {
    padding:10px;
}
.multiple .input {
    clear:both;
}
.multiple .checkbox {
    float: left;
    font-size: 1em;
    margin: 0;
    padding-bottom: 5px;
    width: 49%;
    color:#000;
}
.input-group-addon {
    background-color:#FFF;
    border-radius:0;
}
form.form-inline {
    display:inline-block;
}
.form-control {
    border-radius:0
}
.form-control[readonly] {
    background-color: #FFF;
    cursor: default;
}
.form-group {
    margin-bottom: 5px;
}
.filter .input.select .form-control {
    /*display:inline-block;
    width:32%;*/
}
















h1, .h1 {
    font-size: 30px;
}
h5, .h5 {
    font-size: 16px;
}
h4, h5, h6 {
    margin-bottom: 10px;
    margin-top: 0;
}
.btn-sm, .btn-xs {
    font-size:13px;
}
.btn-sm {
    line-height: 18px;
}




.userBadge {
    border-radius: 8px;
    display: inline-block;
    font-size: 10px;
    margin-right: 3px;
    min-width: 25px;
    padding: 1px 3px;
    text-align: center;
}





.entitySummary {
    /*margin:3px 0 10px;*/
    min-height:35px;
}
.propertySummary {
    /*margin:3px 0 10px;*/
    min-height:35px;
}
.prospectSummary {
    /*margin:0 0 20px;*/
    min-height:35px;
}

.deleted {
    color:#CCC;
    text-decoration:line-through;
}



.lookupSummary {
    background-color: #F9F9F9;
    border: 1px solid #DDDDDD;
    margin: 0 0 10px;
    padding: 10px 10px 0;
}



/* Tables */
.table-responsive {
    /*margin-top:10px;*/
}
.table thead > tr > th, 
.table tbody > tr > th, 
.table tfoot > tr > th {
    vertical-align:top;
    padding:3px 5px 3px;    
}
.table thead > tr > td, 
.table tbody > tr > td, 
.table tfoot > tr > td {
    vertical-align:top;
    padding:7px 5px 5px;
}
.table-striped > tbody > tr:nth-child(2n+1) > td, 
.table-striped > tbody > tr:nth-child(2n+1) > th {
    background-color: #fdfdfd;
}
.table-hover > tbody > tr:hover > td, .table-hover > tbody > tr:hover > th {
    background-color: #f5f5f5;
}
th a {
    display:block;
    position:relative;
}
th a.asc:after {
    content: "\f0dd";
    font-family: FontAwesome;
    position:absolute;
    top:-3px;
    margin-left:5px;
    color:#858585;
}
th a.desc:after {
    content: "\f0de";
    font-family: FontAwesome;
    position:absolute;
    top:3px;
    margin-left:5px;
    color:#858585;
}
td.actions {
    text-align:right;
}
.table-clickable > tbody > tr {
    cursor:pointer;
}
.table-clickable .primary {
    display:none;
}
td.checkbox-column {
    cursor:default;
    width:20px;
}

tr.checked td {
    background-color: #EDEDED !important;
}

.table-striped > tbody > tr.checked:nth-child(2n+1) > td {
    background-color:#E9E9E9 !important;
}



/* file upload table cell styles */
#fileupload td.name {
    vertical-align:middle;
}
#fileupload td.name span {
    white-space:nowrap;
    max-width:350px;
    overflow:hidden;
    text-overflow: ellipsis;
    display:inline-block;
}
#fileupload td.action {
    text-align:right;
}

#fileupload .progress {
    margin:0 0 4px;
}
#fileupload .progress-extended {
    font-size:11px;
    margin:0 0 4px;
}



.help-block {
    position:relative;
}

.error .help-block, .error .control-label, .error .radio, .error .checkbox, .error .radio-inline, .error .checkbox-inline {
    color: #A94442;
}
.error .form-control {
    border-color: #A94442;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
}
.error .form-control:focus {
    border-color: #843534;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 6px #CE8483;
}
.error .input-group-addon {
    background-color: #F2DEDE;
    border-color: #A94442;
    color: #A94442;
}



.entityDetail {
    margin:0 0 16px;
}




/* Panels */

.panel {
    border-radius:0;
}
.panel-heading {
    border-radius: 0;
    height: auto !important;
    padding: 8px 12px;
    font-size:13px;
    height:40px;
}
.panel-heading a {
    display:block;
    text-decoration:none;
    color:#333333;
}
.panel-body {
    padding: 15px;
}
.panel-body > .form-group:last-child {
    margin-bottom:0;
}
.panel-body .table {
    margin-bottom:0px;
}
.panel-tools {
    position: absolute;
    right: 10px;
    top: 6px;
}


.dashboard-panel-fixed-height {
    min-height:170px;
}
.dashboard-panel-fixed-height ul {
    margin-bottom:0;
    max-height:135px;
    overflow:auto;
    padding-right:5px;
}
.dashboard-panel-fixed-height ul li {
    margin:0 0 3px;
}







.handle {
    
}

.pod .entitySummary {  
    background-color: #fdfdfd;
    border: 1px solid #DDDDDD;    
    padding: 12px 12px 5px;
    margin: 0 0 10px;
}


.addressSummary {
    margin-bottom:15px;
}
.addressSummary .input {
    float:left;
    margin-right:3px;
}



.addressSummary {
    margin-bottom:15px;
}
.addressSummary .input {
    float:left;
    margin-right:3px;
}



.searches.index {
}
.searchSummary { 
    background-color: #FFF;
    border: 1px solid #DDDDDD;
    margin: 0 0 10px;
    padding: 15px 15px 5px;
}
.searchSummary .checkbox-column {
    float:left;
    margin:0 5px 0 0;
}





.notes {
    max-height:260px;
    overflow:auto;
}
.note {
    background-color:#FEFFE5 !important;
    margin: 0 0 5px 0;
    border:1px solid #F7F6B4 !important;
    cursor:pointer;
}
.note .header {
    font-size:11px;
    padding:4px;
    background-color:#F7F6B4;
}
.note .body {
    padding:5px;
}
.note p {
    margin:0 0 5px;
    font-size:13px;
}
.note p:last-child {
    margin-bottom:0;
}






ul.media {
    margin:0;
    padding:0;
    list-style:none;
}
ul.media li {
    width:200px;
    height:270px;
    margin:0 10px 10px 0;
    float:left;
}
ul.media li .image {
    display:block;
    width:200px;
    height:200px;
    background-size:cover;
    background-repeat:no-repeat;
    background-position: center;
}
ul.media.floorplans li .image {
    background-size:contain;
}






.modal {
    text-align: left;
}



.actions .dropdown-menu {
    left: auto;
    right: 0;
    float: right;
}
.buttons .dropdown-menu {
    left: auto;
    right: auto;
    float: left;
}
.actions .dropdown-menu li,
.buttons .dropdown-menu li{
    margin: 3px 0;
    text-align: left;
}
    



@media (max-width:780px) {
    
    
    .page-header {
        margin:15px 0 0;
        padding:0;
        border:none;
        float:none;
    }
    div.buttons.add,
    div.buttons.edit {
        position:relative;
        top:0;
        padding:0 0 15px 10px;
    }
    
    
    .btn-sm, .btn-xs {
        font-size:11px;
    }
    .btn-sm {
        line-height: 16px;
        padding:4px 7px;
    }
    
    .pagination-sm > li > a, .pagination-sm > li > span {
        padding:4px 7px;    
        font-size:11px;    
    }
    
    h1, .h1 {
        font-size: 24px;
    }
    h2, .h2 {
        font-size: 24px;
    }
    
    ul.media li {
        width:130px;
        height:220px;
        margin:0 5px 10px;
        float:left;
    }
    ul.media li .image {
        width:130px;
        height:130px;
    }
    
    .notes {
        max-height:none;
    }
    
    .dashboard-panel-fixed-height {
        min-height:0;
    }
    .dashboard-panel-fixed-height ul {
        max-height:none;
    }
    .dashboard-panel-fixed-height ul li {
        margin:0 0 3px;
    }
    
    
    
}


/* hack to improve modals on iphone - tries to make inner panel scrollable. not working to well
@media (max-width: 480px)
{
    .modal {
        position: fixed;
        top: 3%;
        right: 3%;
        left: 3%;
        bottom: 3%;
        width: auto;
        margin: 0;
    }
    .modal-body {
        max-height: 350px;
        padding: 15px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
     }
}
*/



body.login .box-login, body.login .box-forgot, body.login .box-register {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    
}

.navbar-header,
.navbar-inverse {
    background-color: #1E2830 !important;
}
.navbar > .container .navbar-brand, .logo {
    padding: 15px 0;
    font-size: 26px;
}
@media (max-width:780px) {
    .navbar > .container .navbar-brand, .logo {
        font-size: 18px;
        padding: 13px;
    }
}

body, .main-container, .footer, .main-navigation, ul.main-navigation-menu > li > ul.sub-menu, .navigation-small ul.main-navigation-menu > li > ul.sub-menu {
    background-color: #37424A !important;
}


ul.main-navigation-menu > li.active > a {
    border-top: 1px solid #C8C7CC !important;
}
ul.main-navigation-menu > li:first-child.active > a {
    border-top: 0 !important;
}
ul.main-navigation-menu > li.active > a, ul.main-navigation-menu > li.open > a {
    background-color: #1E2830 !important;
}
ul.main-navigation-menu > li > a:hover, ul.main-navigation-menu > li:hover > a {
    background-color: #4F5C65 !important;
    color: #FFF !important;
}
ul.main-navigation-menu li > ul.sub-menu > li.open > a, ul.main-navigation-menu li > ul.sub-menu > li > a:hover {
    background-color: #4F5C65 !important;
    color: #FFF !important;
}
ul.main-navigation-menu > li a,
ul.main-navigation-menu > li a i {
    color: #FFF;
}