@import "client/common.scss";
@charset "UTF-8";

.sidebar {

    background-color: $ColorElementPrimary;

    &.not-logged-in {
      opacity:0.6;
    }

    .panel-header {
        margin:0px;
        padding:0px;
        cursor:pointer;
        h2:hover {
          text-decoration: underline;
        }
    }

    .panelcontents {
        overflow-y:auto;
        overflow-x:hidden;
    }

    h2 {
        //background-color: shade($ColorElementPrimary, 20);
        background-color: #09525b;
        margin:0px 0px 6px 0px;
        padding: 3px 0px 3px 10px;
        font-size: 180%;
        font-weight: 100;
        color: $ColorSidebarText;
        cursor:pointer;
    }

    h2 .badge {
        position:absolute;
        height:15px;
        top:8px;
        right:5px;
        width:19px;
        background-color:lighten($ColorElementPrimary, 5);
        color: #084750;
        //color:shade($ColorElementPrimary, 30);
        font-size:11px;
        font-family:Arial, Helvetica, sans-serif;
        font-weight:400;
        text-align:center;
        padding-top:4px;
        -webkit-border-radius:50%;
        -moz-border-radius:50%;
        border-radius:50%;

        &.highlighted {
          background-color:white;
        }
    }

    .expander {
        background-color:$ColorUIBackground;
        font-size:80%;
        color: #b3b3b3;
        //color:shade($ColorText, 30);
        cursor:pointer;
    }
    .expander p {
        text-align:right;
        padding: 0px 0px 6px 0px;
    }
    .expander img {
        vertical-align: middle;
        margin-left: 12px;
    }
    .expander.hidden p {
        text-align:left;
    }
    .expander.hidden img {
        margin-left: 0px;
    }

    .search form {
        margin: 0px;
        padding: 0px;
    }

    input[type="text"] {
        background-color:#227985;
        border: solid 1px #01545f;
        font-weight:400;
        font-size:15px;
        color:#abd2d7;
        width: 92%;
        margin: 4px 4px 8px 8px;
        padding: 3px;
    }

    li {
        position: relative;
        //border-bottom:solid 1px shade($ColorElementPrimary, 20);
        //border-bottom:solid 1px #09525b;
        clear:both;
    }

    li strong {
        font-weight:bold;
    }

    li.offline {
        //background-color: shade($ColorElementPrimary, 20);
        background-color: #09525b;
        //color: shade($text, 10);
        color: #dbd9d6;
        opacity:0.5;
        ms-filter: "alpha(opacity=50)";
    }

    .email-invitation-holder, .gmail-invitation-holder, .facebook-invitation-holder {
      cursor:pointer;
    }

   .avatar-small {
        float:left;
        padding:1px;
        width:36px;
        height:36px;
        background-color:#ed3618;
        margin:10px;
        -webkit-border-radius:18px;
        -moz-border-radius:18px;
        border-radius:18px;
    }

   .avatar-small img {
        width: 36px;
        height: 36px;
        -webkit-border-radius:18px;
        -moz-border-radius:18px;
        border-radius:18px;
    }

    li .friend-name {
        float:left;
        font-size:18px;
        margin-top:12px;

        .friend-name-label {
        }
    }

    li #friend-help-howto {
      position: absolute;
      margin-top: 14px;
      right: 45px;
      top: 1px;
      color:#fc0;
      font-size:12px;
      text-decoration: underline;
    }

    li .friend-status {
        font-size:11px;
        color:#D5E2E4;
    }

    .friend-icon {
        float:right;
        margin-top:18px;
        margin-right:20px;
    }

    li a {
        color:#B3DD15;
    }

    li a:hover {
        color:#FFF;
    }

    .name {
        display:block;
        position:absolute;
        line-height: 18px;
        height: 18px;
        left: 48px;
        top: 10px;
        font-weight: bold;
        font-size:110%;
    }

    .status {
        display:block;
        position:absolute;
        line-height:12px;
        height: 12px;
        left: 48px;
        top: 26px;
        font-style: italic;
        font-size: 100%;
    }

    .chatcontents {
      position: relative;
    }


    em {
        color:#9DB8AF
    }

    .note-text {
        font-size: 11px;
        padding-right: 20px;
        position:relative;
        margin-top:5px;
        margin-bottom:5px;
        line-height:130%;
    }

    .note-delete {
        position:absolute;
        width:13px;
        height:13px;
        top:0px;
        right:3px;
        margin-right:5px;
    }

    .sidebar-search-result {
        display:block;
        position:relative;
        border-bottom:solid 1px #01545f;
    }

    .result-name {
        float:left;
        font-size:12px;
        margin-top:12px;
        font-weight:bold;
    }

    .result-location {
        font-size:11px;
        color:#D5E2E4;
        font-weight:200;
    }

    .results-wrapper {
        width: 300px;
        overflow-y:auto;
        overflow-x:hidden;
    }

    .sidebar-search-connected {
        text-align:center;
        vertical-align:middle;
        background-color:#4c4c4c;
        padding-bottom:10px;
        font-size:11px;
    }

    ul#sidebar-friend-list {
      .invite-friend-row {
        margin-left:58px;
      }
      .avatar-small {
        background-color:inherit;
      }

      .invitation-button-holder {
        //display:none;
        margin-top:6px;
        margin-left:-3px;
      }
    }

   #sidebar-notification-list {

    li {
       margin:0px 5px 0px 5px;
     }

     .text-message {
        word-wrap:break-word;
     }

     .more-text-available {
     }
   }
   .wrapword{
      white-space: -moz-pre-wrap !important;  /* Mozilla, since 1999 */
      white-space: -pre-wrap;      /* Opera 4-6 */
      white-space: -o-pre-wrap;    /* Opera 7 */
      white-space: pre-wrap;       /* css-3 */
      word-wrap: break-word;       /* Internet Explorer 5.5+ */
      word-break: break-all;
      white-space: normal;
    }
}

