﻿/* The modal dialog in ui-bootstrap wasn't displaying the grey background. This fix is from 
    http://stackoverflow.com/questions/26926798/angular-ui-modal-directive-backdrop-missing
*/

/*html {
  height: 100%;
}

body {
  min-height: 100%;
}
    */
.container {
    padding-bottom: 20px !important;
}

.modal-backdrop {
    z-index: 500 !important;
}
.modal {
    z-index: 800 !important;     
  /*bottom: 0;*/
}

.navbar-static-top {
    z-index: 400 !important;
}

.dw-loading-align-top .dw-loading-body{
  vertical-align: top !important;
  top: 60px !important;
}

.fms-btn {
    height: auto;
    padding: 20px;
}

.btn-long {
    width: 100%;
}


.text-ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

}

.has-error .fms-textbox,
.has-error .fms-textarea,
.has-error .fms-checkbox,
.has-error .fms-radio,
.has-error .fms-select {
  border-color: #a94442;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
          box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}
.has-error .fms-textbox:focus,
.has-error .fms-textarea:focus,
.has-error .fms-checkbox:focus,
.has-error .fms-radio:focus,
.has-error .fms-select:focus
{
  border-color: #843534;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
          box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
}

.fms-checkbox,
.fms-radio {
    margin: 0 !important;
    vertical-align: middle;
    width: 22px;
    height: 22px;
    border: 0;
    border-style: solid;
    border-width: 1px;
    border-color: #d3d3d3;
    display: inline-block;
    background-position: 0 0;
    background-size: cover;
    cursor: pointer;
}

.fms-checkbox + span,
.fms-radio + span{
    padding-left: 30px;
    display: inline-block;
}

.fms-link {
    cursor: pointer;
}

.fms-textbox {
    margin: 0;
    padding: 7px 9px 8px;
    color: #232323;
    font-size: 1em;
    height: 34px;
    -webkit-appearance: none;
    width: 100%;
    border-radius: 5px;
   
    outline: 0;
    border: 0;
    border-style: solid;
    border-width: 1px;
    border-color: #d3d3d3;
    -webkit-user-select: text;
}
.fms-textarea{
    margin: 0;
    padding: 7px 9px 8px;
    color: #232323;
    font-size: 1em;
    -webkit-appearance: none;
    width: 100%;
    border-radius: 5px;
   
    outline: 0;
    border: 0;
    border-style: solid;
    border-width: 1px;
    border-color: #d3d3d3;
    -webkit-user-select: text;
}



.fms-textbox:focus {
    border-color: #000000;
}


.fms-select {
    margin: 0;
    padding: 7px 9px 8px;
    color: #232323;
    font-size: 1em;
    border-radius: 5px;
    outline: 0;
    border: 0;
    border-style: solid;
    border-width: 1px;
    border-color: #d3d3d3;
    -webkit-user-select: text;
    width: 100%;
}


.fms-accordion-header {
    font-weight: bold;
    font-size: larger;
}


.input-group .fms-textbox {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .fms-textbox:focus + .input-group-btn button {
    border-color: #000000;
}

.fms-menu-icon-image {
    height: 20px;
}

/*.fms-menu-icon-link {
    padding-top: 25px !important;
    padding-bottom: 25px !important;
}*/

/*.checkbox span {
    padding-left: 30px;
}*/

.fse_search_form_group,
.fso_search_form_group
 {
    margin-bottom: 0px !important;
}

.fse_search_cell,
.fso_search_cell {
    margin-bottom: 5px !important;
}

.fse_map_checkbox_wrapper,
.fso_map_checkbox_wrapper {
    position: fixed !important;
    top: 100px !important;
    right: 15px !important;
    overflow: auto  !important;
    /*min-height:400px;*/
    min-width:300px;
}

.fse_map_checkbox_wrapper_expanded,
.fso_map_checkbox_wrapper_expanded {
    background-color: white !important;
    bottom: 15px !important;
}

.ui_bootstrap_combobox_dropdown {
    max-height: 200px;
    overflow-y: auto;
}

.home-grid-cell {
    padding-top: 10px;
    padding-bottom: 10px;
}

.min_height_100 {
    min-height: 100px;
}

.angular-google-map-container {
    height: 400px;
}

/*.angular-google-map,
.angular-google-map-container {
  width: 100%;
  height: 100%;
}*/

/*.leads_map_container {
    position: relative;   
  width: 100%;
  height: 100%;
}
.angular-google-map-container {
position: absolute;
            top: 0;
            bottom: 0;
            right: 0;
            left: 0;
}*/

.modal_close_button {
    float: right;
    margin-right: 15px;
    margin-top: 15px;
    z-index: 1050;
    cursor: pointer;
}

.modal_close_button_text {
    font-weight: bold;
    text-decoration: none;
    color: #666666;
    font-size: large;
}

.modal_close_button_text:hover{
    font-weight: bold;
    text-decoration: none;
    color: #666666;
    font-size: large;
}


/* RFO MyFses List */
.my_fses_list_entry_wrapper,
.my_fsos_list_entry_wrapper{
    background: #efefef;
    border: 1px solid grey;
    margin-top: 10px;
}

.fms-search-result-wrapper{
    border: 1px solid grey;
    margin-top: 10px;
}

.rfo_my_fses_fse_code,
.rfo_my_fsos_fse_code {
    font-weight: bold;
}

.rfo_my_fses_list_header,
.rfo_my_fsos_list_header {
    font-weight: bold;
    font-size: larger;
}
.rfo_my_fses_list_label,
.rfo_my_fsos_list_label {
    font-weight: bold;
}

.rfo_my_fses_cell,
.rfo_my_fsos_cell {
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
}

.rfo_my_fses_cell_top,
.rfo_my_fsos_cell_top {
    padding-top: 10px;
}

.rfo_my_fses_icon,
.rfo_my_fsos_icon {
    margin-right: 10px;
}

.modal-container {
    width: 100%;
    padding: 10px;
}
.proactive-calls-modal-container {
  width: 100%;
}

.proactive-call-list-header {
    font-weight: bold;
}

.proactive-call-list-text {
    margin-bottom: 5px;
}

/*.proactive-calls-recent-list-cell {
    height: 100%;
    overflow: scroll;
}*/

/* So we can turn the Bootstrap caret upside down by adding the class "caret-reversed" */
.caret.caret-reversed {
    border-top-width: 0;
    border-bottom: 4px solid #000000;
}
/* For form validation, so we can set the has-error at the top, and then just use that to set the visibility of the individual elements*/
.form-group .help-block {display: none;}
.form-group div.has-error .help-block {display: block;}
/* NOTE If I applied the 'has-error' class direct to the form-group, then I'd need to use the following to display the error feedback fields*/
/* .form-group.has-error .help-block {display: block;}*/

.help-block span{display:block;} /* To put each ng-message on a separate line*/


/* So we can set the bar back to zero immediately without the animation delaying it. */

.progressBarNoAnimations{
    -webkit-transition: none;
    -moz-transition: none;
    -ms-transition: none;
    -o-transition: none;
    transition: none;
    width: 0px;
}

.progressBarAnimated{
    -webkit-transition: linear 0.1s !important;
    -moz-transition: linear 0.1s !important;
    -ms-transition: linear 0.1s !important;
    -o-transition: linear 0.1s !important;
    transition: linear 0.1s !important;
    width: 0px;
}

/*
    The ui-bootstrap typeahead directive dropdown should be the same width as the parent input
    helpful: http://stackoverflow.com/questions/15901030/reset-remove-css-styles-for-element-only

    NOTE: We only want these to affect the typeahead directive, not the dropdowns in general

    NOTE: Typeahead has been updated. typeahead-wrapper is not relevant anymore. The min-width is 100%, the max-width goes over, just as it should.

    Kept for possible future customisations.

*/

.typeahead-scroll .dropdown-menu{
    max-height: 400px;
    overflow-y: auto;
}

/*.typeahead-wrapper ul.dropdown-menu{*/
    /* Remove (ie reset) the border around the parent ul: the parent's width is the full width, we want the border around the width below the padding, so we'll put the border on the padded width */
/*    border : 0;
    border-radius : 0;
    box-shadow : none;
    -webkit-box-shadow: none;
    left : 0px !important; */
    /* Set the width of the parent ul*/
    /*width:100%;
    padding-top:0px;
    padding-right:15px;
    padding-left:15px;
}*/

/*.typeahead-wrapper ul.dropdown-menu li:first-child{
  border-top: 1px solid #ccc;
  border-top: 1px solid rgba(0,0,0,.15);*/
/*  -moz-border-radius: 0px;
  -webkit-border-radius: 4px 4px 0px 0px; */
  /*border-radius: 4px 4px 0px 0px; 
}*/

/*.typeahead-wrapper ul.dropdown-menu li{
  border-right: 1px solid #ccc;
  border-right: 1px solid rgba(0,0,0,.15);
  border-left: 1px solid #ccc;
  border-left: 1px solid rgba(0,0,0,.15);
  border-bottom: 1px solid #ccc;
  border-bottom: 1px solid rgba(0,0,0,.15);*/
  /*border-radius: 4px;
  -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
  box-shadow: 0 6px 12px rgba(0,0,0,.175);*/

/*}*/

/*.typeahead-wrapper ul.dropdown-menu li:last-child{
  border-bottom: 1px solid #ccc;
  border-bottom: 1px solid rgba(0,0,0,.15);*/
  /*-moz-border-radius: 0px;
  -webkit-border-radius: 0px 0px 4px 4px;*/
  /*border-radius: 0px 0px 4px 4px; 
}*/

.typeahead-list-a{
    position: relative;
    padding-left:70px !important;
    padding-top:15px !important;
    padding-bottom:15px !important;
    padding-right:15px !important;
    min-height:70px;
}

.typeahead-list-img{
  position: absolute;
  top: 15px;
  left: 15px;
  max-width: 40px;
  max-height: 40px;
  width: 100%;
  border-radius: 4px;
}

.typeahead-list-h2{
    margin: 0 0 4px;
    font-size: 16px;
}

.typeahead-list-p{
    color: #666;
    font-size: 14px;
    margin-bottom:0px;
}

ul.dropdown-menu li.active a p{
    color:#ddd;
}

/*
    To set to any text overflow to "..."
*/

.ellipsis {
  text-overflow: ellipsis;

  /* Required for text-overflow to do anything */
  white-space: nowrap;
  overflow: hidden;
}

/*
    To display a loading animation in an input box
*/
.input-loading
{
   background-image: url('/images/ajax-loader.gif') !important;
   background-repeat:  no-repeat !important;
   background-position: right 10px center !important;
}

/* To show up the error on screen */
    .has-error,
    .has-error .form-inline-input {
        border-color: #a94442;
        /*-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);*/
        /*box-shadow: inset 0 1px 1px rgba(0,0,0,.075);*/
    }


fieldset {
         margin-bottom: 20px !important;
}

fieldset legend {
    width: auto !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

fieldset .form-group {
    margin-left: 15px !important;
}