@charset "UTF-8";

/*** globals ***/
html, body, table, form, img, div, textarea {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: Arial;
  font-size: 13px;
  line-height: 1.4;
  color: #212121;
}

html {
  height: 100%;
}

table {
  table-layout: fixed;
  border-collapse: collapse;
}

table td {
  padding: 0;
}


/*** page layout ***/
#agent_logo {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #fff;
  background-image: url(../img/agent.gif);
  background-repeat: no-repeat;
  height: 75px;
  width: 113px;
}

#logo {
  background-image: url(../img/logo.gif);
  background-repeat: no-repeat;
  width: 231px;
  height: 56px;
  position: absolute;
  top: 20px;
  right: 15px;
}

#footer {
  font-size: x-small;
  font-weight: bolder; 
  text-align: right;
  position: absolute;
  bottom: 5px;
  right: 15px;
  z-index: -1;
}

#chat_ctr {
  top: 102px;
  bottom: 20px; 
  left: 15px; 
  right: 15px; 
  border: 1px solid #07315C; 
  position: absolute;
  overflow: hidden;
}


/*** chat styles ***/
#nmchat a {
  color: #ff9900;
  text-decoration: none;
  font-weight: bold;
  outline: 0;
}

#nmchat a:hover {
  text-decoration: underline;
}

#nmchat a.button {
  display: block;
  background-color: #ff9900;
  margin: 1px;
  border: 1px solid #212121;
  color: #fff;
  font-weight: bold;
  padding: 1px 10px 1px 10px;
  white-space: nowrap;
  text-align: center;
}

#nmchat a.button:hover {
  text-decoration: none;
  margin: 0px;
  border-width: 2px;
}

#nmchat div.message {
  border: 2px solid #07315C;
  background-color: #fff;
  padding: 15px;
}

#nmchat div.message:first-line{
  font-weight: bold;
}

#nmchat .status_ctr {
  margin: 3px;
  table-layout: fixed;
  border-spacing: 0px;
  width: 100%;
}

#nmchat .status_ctr td {
  vertical-align: middle;
  text-align: center;
}

#nmchat .status_ctr td.fc {
  width: 10px;
}

#nmchat_request_led, #nmchat_response_led {
  color: #ffddaa;
  width: 5px;
  height: 5px;
  line-height: 1px;
  overflow: hidden;
}
#nmchat_response_led {
  margin-top: 2px
}


/*** state: available ***/
#nmchat div.available {
  padding: 15px;
  background-color: #fff;
}

#nmchat div.available .text{
  max-width: 350px;
}

#nmchat div.available .text:first-line {
  font-weight: bold;
}

#nmchat div.available table.name_input {
  margin-top: 20px;
  margin-bottom: 50px;
  width: 100%;
}

#nmchat div.available .name_input input {
  border: 1px solid #212121;
  width: 95%;
  padding: 2px;
}

#nmchat div.available .name_input a.button {
  text-decoration: none;
  margin: 1px;
}

#nmchat div.available .name_input a.button:hover {
  margin: 0;
}


/*** state: error ***/

#nmchat div.error {
  padding: 15px;
  background-color: #fff;
}

#nmchat div.error div.center {
  text-align: center;
  padding: 50px;
}

#nmchat div.error a.button {
  display: inline;
  text-decoration: none;
  padding: 2px 10px 3px 10px;
}


/*** state: unavailable ***/

#nmchat div.unavailable {
  padding: 15px;
  background-color: #fff;
}

#nmchat div.unavailable div.center {
  text-align: center;
  padding: 50px;
}

#nmchat div.unavailable a.button {
  display: inline;
  text-decoration: none;
  padding: 2px 10px 3px 10px;
}


/*** state: wait ***/
#nmchat .wait {
  padding: 15px;
  text-align: center;
  background-color: #fff;
}

#nmchat .wait .text {
  text-align: left;
}

#nmchat .wait .text:first-line {
  font-weight: bold;
}

#nmchat .wait img {
  margin: 50px;
}



/*** state: chat ***/

#nmchat .chat {
 padding: 15px;
 background-color: #C0CCD8;
 height: 500px;
}

#nmchat #nmchat_history { /* auch für reloaded */
  border: 1px solid #07315C;
  background-color: #fff;
  padding: 10px 10px 0 10px;
  height: 245px;
  overflow: auto;
  overflow-y: scroll;
  text-align: left;
}

#nmchat #nmchat_history .userline {
  color: #646464;
  border-bottom: 1px dotted #999;
  padding-bottom: 5px;
  margin-bottom: 5px;
}

#nmchat #nmchat_history .userline .userprefix {
  font-weight: bold;
}

#nmchat #nmchat_history .userline .userprefix img {
  padding-left: 3px;
  padding-right: 3px;
  margin-bottom: -4px;
}
  
#nmchat #nmchat_history .userline_pre {
  color: #aaa;
}

#nmchat #nmchat_history .agentline {
  color: #646464;
  border-bottom: 1px dotted #999;
  padding-bottom: 5px;
  margin-bottom: 5px;
}
  
#nmchat #nmchat_history .agentline .agentprefix {
  color: #ff9900;
  font-weight: bold;
}

#nmchat #nmchat_history .agentline .agentprefix img {
  padding-left: 3px;
  padding-right: 3px;
  margin-bottom: -4px;
}
#nmchat #nmchat_history .iq_userline {
  color: #BFBFBF;
  border-bottom: 1px dotted #999;
  padding-bottom: 5px;
  margin-bottom: 5px;
}

#nmchat #nmchat_history .iq_userline .iq_userprefix {
  font-weight: bold;
}

#nmchat #nmchat_history .iq_agentline {
  color: #BFBFBF;
  border-bottom: 1px dotted #999;
  padding-bottom: 5px;
  margin-bottom: 5px;
}
  
#nmchat #nmchat_history .iq_agentline .iq_agentprefix {
  color: #FFD493;
  font-weight: bold;
}

#nmchat .input_ctr:first-line {
  font-weight: bold;
}
  
#nmchat .input_ctr textarea#nmchat_input {
  border: 1px solid #07315C;
  width: 99.65%;
  height: 65px;
  overflow-y: scroll;
  white-space: pre;
  resize: none;
}

#nmchat table.button_ctr {
  width: 100%;
  margin-top: 15px;
}


/*** state: afterchat ***/

#nmchat .afterchat {
  padding: 15px;
  background-color: #fff;
}

#nmchat .afterchat {
  text-align: center;
}

#nmchat .afterchat .message {
  text-align: left;
  margin-bottom: 30px;
}

#nmchat .afterchat a.button {
  display: inline;
  padding: 2px 10px 3px 10px;
  margin: 1px;
  text-align: center;
}

#nmchat .afterchat a.button:hover {
  margin: 0px;
  text-decoration: none;
}


/*** state: reloaded ***/
#nmchat .reloaded {
  padding: 15px;
  text-align: center;
  background-color: #fff;
}

#nmchat .reloaded #nmchat_history {
  height: 350px;
  margin-bottom: 20px;
}

#nmchat .reloaded .button_ctr {
  margin-top: 0;
}

#nmchat .reloaded .button_ctr td {
  padding-top: 5px;
  padding-bottom: 5px;
}

#nmchat .reloaded a.button {
  display: inline;
  padding: 2px 10px 3px 10px;
}


@media print {
  * {
    color: #000;
  }
  
  #chat_ctr {
    border-width: 0;
    top: 0;
    position: static !important;
    height: auto !important;
    overflow: visible !important;
  }
  
  #nmchat .reloaded {
    border-width: 0;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0;
    margin: 0;
    background-color: transparent;
  }
  
  #nmchat .reloaded #nmchat_history {
    border-width: 0;
    height: auto !important;
    width: 100% !important;
    overflow: visible !important;
    background-color: transparent;
  }
 
  #agent_logo { display: none; }
  #logo { display: none; }
  .button_ctr { display: none; }

}