.prio, .curprio {
    margin: 0;
    padding: 0;
    padding-left: 1em;
    padding-right: 1em;
    border-style: solid;
    border-width: 1px;
    cursor: pointer;
}

.curprio {
    font-weight: bold;
    border-width: 2px;
}

.status, .curstatus {
    margin: 0;
    padding: 0;
    padding-left: 1em;
    padding-right: 1em;
    border-style: solid;
    border-width: 1px;
    cursor: pointer;
}

.curstatus {
    font-weight: bold;
    border-width: 2px;
    border-style: solid;
}

/* only user side */

div#user_chat {
    background: #f3f7fa;

    border-style: solid;
    border-width: 2px;
    border-color: #e0eaf5;

    padding: 0;
    margin: 0;
    margin-right: 2em;
}

div#chat_status {
    min-height: 28ex;
}

div#chat_offline {
    height: 28ex;
    display: none;
    text-align: center;
    padding: 5ex;
}
div#chat_offline span {
    color: #3a6b9e;
}
div#chat_offline span:hover {
    color: #990000;
    text-decoration: underline;
    cursor: pointer;
}

div#chat_thank {
    height: 28ex;
    display: none;
    text-align: center;
    padding: 5ex;
}

div#chat_top_close {
    display: none;
}
    
div#user_chat ul#departments li {
    margin-top: 0.5ex;
    margin-left: 3em;
}

div#user_chat ul#departments li.available {
    color: green;
    cursor: pointer;
}

div#user_chat ul#departments li.notavailable {
    color: gray;
    cursor: pointer;
}

/* only staff side */

div#staffchat_status {
    width: 157px;
    /* background-color: #f9f9f9; */
    margin: 0;
    padding: 0;
}


div#staffchat_status div#chat_status_header {
/* unused ? */
    border-collapse: collapse; 
    background-image: url(./left_title_bg.gif);
    height: 30px;
    font-weight: bold;
    font-size: 12px;
    color: #1D498D;
    padding-left: 30px;
    background-color: #f9f9f9;
    border: solid 1px #A5ACB2;
    margin: 0;
    padding: 0;
}

div#staffchat_status span#chat_status_text {
/* unused ? */
    margin-left: 30px;
}

div#staff_chat_list {
    /*
    border: solid 1px #A5ACB2;
    border-top: none;
    */
    padding: 0 0 0.5ex;
}

div#staffchat_status ul {
    margin: 0;
    padding: 0 0 0 1em;
    color: #3a6b9e; font-family: Arial, Helvetica, sans-serif; font-size: 11px; 
}

div#staffchat_status li {
    margin-left: 1em;
}

div#staffchat_status li.nousers {
    list-style-type: disc;
    list-style-image: url(./chat_offline.gif);
}

div#staffchat_status li.req {
    list-style-type: disc;
    list-style-image: url(./chat_available.gif);
    color: #1D498D;
    font-weight: bold;
}

div#staffchat_status li li {
    list-style: none;
    margin: 0;
}

div#staffchat_status li.username {
    color: red;
    cursor: pointer;
}

.chat_username {
    cursor: pointer;
    float: left;
    text-align: left;
    margin-left: 2em;
    color: #3a6b9e;
    font-weight: bold;
}

/* both sides */
div.chat_header {
    margin: 0;
    padding: 0;
    padding: 1ex 1ex;
    height: 3ex;
    color: #3a6b9e;
    background-color: #e0eaf5;
}

div.chat_header_text {
    float: left;
    text-align: left;
    margin-left: 2em;
    color: #3a6b9e;
    font-weight: bold;
}


div.chat_button {
    float: right;
    margin-right: 2em;
    cursor: pointer;
}

div#user_chat div#window_stack {
    width: 100%;
    bottom: 0;
    right: 0;
    padding: 0;
}

div.staff {
    position: fixed;
    bottom: 0;
    right: 0;
    margin-right: 2em;
    width: 500px;
}

div#chat_window {
    display: none;
}

div.chatwindow {
    border-style: solid;
    border-width: 2px;
    border-color: black;

    background: white;
}

div.chat_history {
    text-align: left;

    overflow: auto;
    overflow-x: hidden;
    overflow-y: auto;

    margin:  0;
    padding: 0;

    height: 25ex;
    width: auto;
    padding-bottom: 1ex;
    padding-top: 1ex;
    padding-left: 1em;
    border: solid #e0eaf5 1px;

    background: white;
}

div.chat_history span.message {
    margin-left: 1em;
}
div.chat_history span.from {
    font-weight: bold;
}

div#session_view div.message {
    margin-left: 1em;
}
div#session_view span.from {
    font-weight: bold;
}

div.chat_input {
    overflow: hidden;
    width: 100%;
    text-align: center;
    background: white;
    height: 17ex;
}

textarea.message {
    overflow: hidden;
    width: 94%;
    border-style: solid;
    border-width: 2px;
    margin: 1ex 2%;
    border-color: #3a6b9e;
    height: 8ex;
}

.press_enter {
    text-align: center;
    width: 100%;
    margin-bottom: 1ex;
}

/* for do=chat_history */

div#workarea {
    font-size: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
}

table#session_list {
    font-size: 11px;
    border: solid #e0eaf5 2px;
    border-collapse: collapse; 
    width: 100%;
    margin: 0 auto;
    margin-top: 1em;
    padding: 0;
    table-layout: fixed;
}

table#session_list thead {
    background-color: #4b6983;
    color: #e9f3ff;
    margin: 0;
    padding: 0;
    text-align: center;
}

table#session_list th {
    background-color: #4b6983;
    color: #e9f3ff;
    border: solid #e0eaf5 1px;
    margin: 0;
    padding: 8px;
    text-align: center;
}

table#session_list tr {
    margin: 0;
    padding: 0;
    text-align: center;
}
table#session_list td {
    margin: 0;
    padding: 0;
    text-align: center;
}


div#session_list_wrapper {
    overflow: auto;
    margin: 0;
    padding: 0;
    height: 200px;
}

table#session_list_body {
    font-size: 11px;
    table-layout: fixed;
    border-collapse: collapse; 
    margin: 0;
    padding: 0;
}

table#session_list_body tr {
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.col1 { width: 100px; }
.col2 { width: 100px; }
.col3 { width: 90px; }
.col4 { width: 95px; }
.col5 { width: 80px; }
.col6 { width: 60px; }

table#session_list_body td {
    border: solid #e0eaf5 1px;
    margin: 0;
    padding: 8px;
    text-align: center;
}

table#session_list_body tr:hover {
    color: #3a6b9e;
    background-color: #e0eaf5;
    cursor: pointer;
}

table#session_list_body tr.hover {
    color: #3a6b9e;
    background-color: #e0eaf5;
    cursor: pointer;
}
table#session_list_body tr.shown {
    font-weight: bold;
}

div#session_view {
    border: solid  #3a6b9e 2px;
    display: none;
    margin: 0;
    margin-top: 2ex;
    padding: 0.5ex;
    height: 200px;
    overflow: auto;
}

/* for tickets list */

div#tickets_area {
    width: 100%;
    border: none;
    margin: 0;
    padding: 0;
}

div#tabs {
    text-align: left;
    float: left;
    margin-left: 20px;
    padding: 3 0 0 0;
}

#tabs ul {
    display: inline;
    margin: 0;
    padding: 0;
}

#tabs li {
    font-size: 11px;
    font-weight: bold;
    border-style: solid;
    border-width: 1px 1px 0 1px;
    display: inline;
    list-style: none;
    cursor: pointer;
    margin-left: 8px;
    padding: 2px 8px 0;
}

#tabs ul li.current {
    border: none;
    background-color: #4b6983;
    color: #e9f3ff;
    padding: 3px 9px 0;
}

table#tickets {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse; 
    margin: 0;
    padding: 0;
}

div#ticket_list_wrapper {
    margin: 0;
    padding: 0;
    text-align: center;
}

table#ticket_list_body {
    text-align: left;
    table-layout: fixed;
    border-collapse: collapse; 
    margin-top: 2px;
    padding: 0;
}

#tickets thead {
    background-color: #4b6983;
    color: #e9f3ff;
}

#tickets th {
    font-size: 11px;
    border-left: solid 1px;
    text-align: center;
    padding-top: 6px;
    padding-bottom: 6px;
}

#ticket_list_body tr {
    height: 5ex;
}
#ticket_list_body tr:hover {
    color: #3a6b9e;
    background-color: #e0eaf5;
}
#ticket_list_body tr.hover {
    color: #3a6b9e;
    background-color: #e0eaf5;
}


#ticket_list_body td {
    border-bottom: solid gray 1px;
    font-size: 11px;
    font-weight: bold;
}

#tickets th.cell0 { width: 71px; text-align: center; }
#tickets td.cell0 { width: 25px; text-align: center; }
#tickets td.cell1 { width: 23px; text-align: center; }
#tickets td.cell2 { width: 23px; text-align: center; }
#tickets .cell3 { width: 120px; padding-left: 10px; }
#tickets .cell4 { width: 120px; padding-left: 10px; }
#tickets .cell5 { width: 100px; padding-left: 10px; }
#tickets .cell6 { width: 120px; padding-left: 10px;}
#tickets .cell7 { width: 34px; text-align: center; }

#tickets .priority {
    margin: 0;
    padding: 0;
    padding-left: 0.3em;
    padding-right: 0.3em;
    border-style: solid;
    border-width: 1px;
    font-weight: bold;
}

#tickets input {
    border: none;
}
