/**
* AJAX to-do frontend CSS
*/

#userpanel {
     position: fixed;
     top: 0;
     left: 0;
     padding: 0;
     margin: 0;
     background-color: #4B96E2;
     z-index: 200;
     width: 160px;
}

#userpanel.expanded {
    width: 360px;
}

.userpanel-content {
    background: #F9F9F9 !important;
    color: black;
    line-height: 16pt;
    font-family: sans-serif;
    padding: 1em;
    margin: 0 3px 0 3px;
    max-height: 250px;
    overflow-y: auto;
    font-size:12px;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

#userpanel .userpanel-content ul#ajaxtodo_todo_list li{
    border-bottom: 1px solid #ccc;
    margin-bottom: 2px;
}

#userpanel .userpanel-content ul#ajaxtodo_todo_list li.important {
    font-weight: bold;
}

#userpanel .userpanel-content ul#ajaxtodo_todo_list li.done .ajaxtodo_todo_text {
    text-decoration: line-through;
}

#userpanel .ajaxtodo_todo_image_delete {
    vertical-align: middle;
    cursor: pointer;
    margin: 2px;
}

.userpanel-toggle {
    display: block;
    font-style: normal;
    font-weight: bold;
    text-transform: none;
    vertical-align: middle;
    text-align: center;
    font-size: 15px !important;
    cursor: pointer !important;
    color: white;
    line-height: 16px;
    font-weight: bold;
    vertical-align: middle;
    padding: 6px;
}

#userpanel, .userpanel-toggle {
    border-bottom-right-radius: 7px;
}

#ajaxtodo_todo_image_updating {
    position: relative;
    top: 3px;
}

#ajaxtodo_new_todo {
    width: 80%;
}

#ajaxtodo_new_todo.default {
    color: gray;
}

#ajaxtodo_button_add {
    padding: 1px 6px;
}

/**
* Gmail-style scrollbar
*/
#userpanel .userpanel-content::-webkit-scrollbar {
    width: 15px;
}
#userpanel .userpanel-content::-webkit-scrollbar-thumb {
    -webkit-box-shadow: inset 0 0 99px rgba(0,0,0,.2);
    border: solid transparent; border-width: 6px 4px;
}
#userpanel .userpanel-content::-webkit-scrollbar-thumb:vertical {
    min-height: 40px;
}
#userpanel .userpanel-content::-webkit-scrollbar-thumb:horizontal {
    min-width: 40px;
}
#userpanel .userpanel-content::-webkit-scrollbar-thumb:hover {
    -webkit-box-shadow: inset 0 0 99px rgba(0,0,0,.4);
}