
/*
 * Container.css
 */
div.header {
    height: 70px;
    background-color: #202060;
    background-color: background-image: -webkit-linear-gradient(top, #404080, #202050);
    background-image:  -khtml-linear-gradient(top, #404080, #202050);
    background-image:    -moz-linear-gradient(top, #404080, #202050);
    background-image:     -ie-linear-gradient(top, #404080, #202050);
    background-image:      -o-linear-gradient(top, #404080, #202050);
    background-image:         linear-gradient(top, #404080, #202050);;
    position: relative;
}

div.content {
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    max-width: 1000px;
    padding: 0.5em 2em 1em 2em;
}

div.maintenance {
    background-color: #ffffe0;
    font-weight: bold;
    border: 1px solid #dfdfc0;
    padding: 0.5em 1em;
    margin: 1em 0;
}

div.footer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #202020;
    color: #b0b0b0;
    text-align: center;
    height: 3em;
}

div.footer p {
    margin-top: 0.8em;
}

/*
 * PageLinks.css
 */
.page-links a,
.page-links span {
    display: inline-block; zoom: 1; *display: inline;
    padding: 0.5em 0em;
    min-width: 5ex;
}

.page-links a,
.page-links a:hover,
.page-links a:visited,
.page-links a:active {
    color: blue;
    text-decoration: none;
}

.page-links a:hover {
    background: #dddddd;
}

.page-links span.selected {
    text-decoration: underline;
}

/*
 * basic.css
 */
* {
    padding: 0;
    margin: 0;
}

html {
    height: 100%;
}

body {
    min-height: 100%;
    position: relative;
}

table {
    border-spacing: 0;
}

img {
    border: 0;
}

a, a:hover, a:visited, a:active {
    text-decoration: none;
    color: blue;
}

body, input, select, textarea {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 12px;
}

label {
    vertical-align: middle;
}

/*
 * compose.css
 */
table.compose {
    width: 100%;
}

table.compose td.message-templates,
table.compose td.left,
table.compose td.right {
    vertical-align: top;
    width: 33%;
}

table.compose div#message-template-list {
    padding: 4px 8px;
}

table.compose td.message-templates > h2 {
    margin-left: 8px;
}

table.template-list {
    margin-top: 4px;
    width: 100%;
    border-collapse: collapse;
    border: 1px solid silver;
}

table.template-list td {
    border-bottom: 1px solid silver;
    border-top: 1px solid silver;
    vertical-align: top;
}

table.template-list tr td {
    padding: 2px;
}

.message-template-btn {
    color: black;
    cursor: pointer;
    display: inline-block;
    border: 1px solid silver;
    border-radius: 4px;
    background: #EEE;
    padding: 1px 6px 2px 6px;
}
.message-template-btn.warn {
    color: #800;
    border-color: #F88;
}
.message-template-btn:hover {
    background-color: white;
}

.message-template-content {
    height: 24px;
    overflow: hidden;
    cursor: pointer;
}

.message-template-content.open {
    height: auto;
    min-height: 24px;
}

.template-list .paging {
    text-align: center;
}

.template-list .paging .paging-numbers {
    display: inline-block;
    min-width: 64px;
    min-height: 24px;
    line-height: 24px;
}

.template-list p {
    padding: 2px;
    font-size: 10px;
    white-space: pre-wrap;
}

table.compose td.right {
    padding-left: 20px;
    border-left: 3px solid black;
}

table.compose tr.first-row td.right {
    background-image: url('img/arrow.png');
    background-repeat: no-repeat;
    background-position: 0 50%;
}

table.compose select,
table.compose textarea,
table.compose ul {
    width: 100%;
}

table.compose textarea {
    padding: 0; margin: 0;
}

table.compose td.left {
    vertical-align: top;
    padding-right: 1em;
}

table.compose td.submit-buttons {
    padding-top: 1.5em;
    text-align: center;
}

table.compose td.submit-buttons input {
    width: 100%;
    padding: 0.5em 0;
}

ul.contact-list {
    list-style: none inside none;
    border: 1px solid #ccc;
    height: 14.6em;
    overflow-y: scroll;

    -webkit-user-select: none;
     -khtml-user-select: none;
       -moz-user-select: none;
            user-select: none;
}

ul.contact-list li {
    position: relative;
    cursor: pointer;
    line-height: 16px;
    padding-left: 2px;
    padding-right: 14px;
    white-space: nowrap;
}

ul.contact-list li:hover {
    background-color: #ddd;
}

ul.contact-list li .cmd {
    display: inline-block; zoom: 1; *display: inline;;
    -webkit-border-radius: 2px;
     -khtml-border-radius: 2px;
       -moz-border-radius: 2px;
        -ie-border-radius: 2px;
         -o-border-radius: 2px;
            border-radius: 2px;

    background-color: #eee;
    border: 1px solid #ddd;
    width: 12px;
    height: 12px;
    font-size: 10px;
    line-height: 10px;
    font-weight: normal;
    text-align: center;
    margin-top: 1px;
    vertical-align: middle;
    position: absolute;
    right: 4px;
    color: white;
}

ul.contact-list li:hover .cmd.add {
    background-color: #c0c0ff;
    color: #4040ff;
    border-color: #000040;
}

ul.contact-list li:hover .cmd.remove {
    background-color: #ff6060;
    color: black;
    border-color: #400000;
}

textarea#message {
    x-height: 16em;
}

.compose h2 {
    margin-top: 0.25em;
    margin-bottom: 0.1em;
    padding: 0;
}

/*
 * contact.css
 */
div.accordion-list {
    margin: 0.5em 0;
    width: 70ex;
}

div.accordion-list h3 {
    padding-left: 2em;
}

div.accordion-list h3 span.contact-count {
    position: absolute;
    right: 1em;
}

div.accordion-list a {
    color: blue;
}

div.ui-accordion,
div.ui-accordion-content {
    padding: 0 !important;
}

div.ui-accordion-content p {
    margin: 0.2em 0.5em;
}

div.ui-accordion-content table {
    width: 100%;
    border: 0;
    margin-top: 0.5em;
    margin-bottom: 0;
}

/*
 * form/form.css
 */
div.form-row {
    margin: 0.4em 0 0.4em 0;
}

div.form-row > label {
    display: block;
    margin: 0.5em 0 0.2em 0;
}

div.form-row.required > label:after {
    content: ' *';
}

div.form-row div.note {
    display: inline-block; zoom: 1; *display: inline;
}

div.form-row div.error {
    display: inline-block; zoom: 1; *display: inline;
    background: #ffffe0;
    border: 1px solid #808080;
    padding: 0.1em 0.5em;
    -webkit-border-radius: 0.25em;
     -khtml-border-radius: 0.25em;
       -moz-border-radius: 0.25em;
        -ie-border-radius: 0.25em;
         -o-border-radius: 0.25em;
            border-radius: 0.25em;
}

/*
 * form/input.css
 */
input[type=radio],
input[type=checkbox] {
    vertical-align: middle;
}

button,
input[type=button],
input[type=submit] {
    padding: 0.2em 0.4em;
    overflow: visible; /* IE: make padding work */
    border: 1px solid #808080;
    background: #f0f0f0;
    background-image: -webkit-linear-gradient(top, #f8f8f8, #e8e8e8);
    background-image:  -khtml-linear-gradient(top, #f8f8f8, #e8e8e8);
    background-image:    -moz-linear-gradient(top, #f8f8f8, #e8e8e8);
    background-image:     -ie-linear-gradient(top, #f8f8f8, #e8e8e8);
    background-image:      -o-linear-gradient(top, #f8f8f8, #e8e8e8);
    background-image:         linear-gradient(top, #f8f8f8, #e8e8e8);
    -webkit-border-radius: 0.25em;
     -khtml-border-radius: 0.25em;
       -moz-border-radius: 0.25em;
        -ie-border-radius: 0.25em;
         -o-border-radius: 0.25em;
            border-radius: 0.25em;
    font-size: 90%;
    font-weight: bold;
}

button:hover,
input[type=button]:hover,
input[type=submit]:hover {
    background-image: -webkit-linear-gradient(top, #ffffff, #efefef);
    background-image:  -khtml-linear-gradient(top, #ffffff, #efefef);
    background-image:    -moz-linear-gradient(top, #ffffff, #efefef);
    background-image:     -ie-linear-gradient(top, #ffffff, #efefef);
    background-image:      -o-linear-gradient(top, #ffffff, #efefef);
    background-image:         linear-gradient(top, #ffffff, #efefef);
}

input[type=text],
input[type=password],
textarea {
    padding: 0.2em 0.4em;
    border: 1px solid #b0b0b0;
    -webkit-box-shadow: inset 0 0 3px #d0d0d0;
     -khtml-box-shadow: inset 0 0 3px #d0d0d0;
       -moz-box-shadow: inset 0 0 3px #d0d0d0;
        -ie-box-shadow: inset 0 0 3px #d0d0d0;
         -o-box-shadow: inset 0 0 3px #d0d0d0;
            box-shadow: inset 0 0 3px #d0d0d0;
    -webkit-border-radius: 0.25em;
     -khtml-border-radius: 0.25em;
       -moz-border-radius: 0.25em;
        -ie-border-radius: 0.25em;
         -o-border-radius: 0.25em;
            border-radius: 0.25em;
}

input[type=text]:focus,
input[type=password]:focus,
textarea:focus {
    border-color: #a0a0d0;
    -webkit-box-shadow: inset 0 0 3px #a0a0ff;
     -khtml-box-shadow: inset 0 0 3px #a0a0ff;
       -moz-box-shadow: inset 0 0 3px #a0a0ff;
        -ie-box-shadow: inset 0 0 3px #a0a0ff;
         -o-box-shadow: inset 0 0 3px #a0a0ff;
            box-shadow: inset 0 0 3px #a0a0ff;
}

label.check {
    display: inline;
    margin-right: 1em;
    font-weight: normal;
    vertical-align: middle;
}

option {
    padding: 0 0.2em;
}

/*
 * main-menu.css
 */
div.main-menu {
    width: 80%;
    max-width: 1000px;
    position: absolute;
    left: 10%;
    bottom: 0;
}

div.main-menu a {
    display: inline-block;
    padding: 0.5em 1em;
    background: #e0e0e0;
    -webkit-border-radius: 0.5em 0.5em 0 0;
     -khtml-border-radius: 0.5em 0.5em 0 0;
       -moz-border-radius: 0.5em 0.5em 0 0;
        -ie-border-radius: 0.5em 0.5em 0 0;
         -o-border-radius: 0.5em 0.5em 0 0;
            border-radius: 0.5em 0.5em 0 0;
    border-bottom: 1px solid #888;
    color: black;
    margin-right: 0.35em;
}

div.main-menu a.selected {
    background: white;
    border-bottom: 1px solid white;
}

/*
 * send.css
 */
#send-page {
    width: 35em;
}

#send-page table.receivers {
    width: 100%;
}

#send-page th.type {
    width: 8em;
}

#send-page th.count {
    width: 6em;
}

#send-page td.count {
    text-align: right;
}

#send-page .message {
    min-height: 10em;
    padding: 0.2em 0.4em;
    border: 1px solid #e0e0e0;
}

/*
 * style.css
 */
h1, h2, h3, h4 {
    margin-top: 1em;
    margin-bottom: 0.5em;
}

h1 {
    margin-top: 0.5em;
}

/*
 * table.css
 */
table.list {
    border: 1px solid #d0d0ff;
    margin: 0.5em 0;
}

table.list th {
    background: #f0f0ff;
    border-bottom: 1px solid #d0d0ff;
}

table.list th,
table.list td {
    padding: 0.2em 0.5em;
}

table.detail {
    border: 1px solid #d0d0ff;
    margin: 0.5em 0;
}

table.detail th {
    background: #f0f0ff;
    border-bottom: 1px solid #d0d0ff;
    border-right: 1px solid #d0d0ff;
}

table.detail tr:last-child th {
    border-bottom: 0;
}

table.detail th,
table.detail td {
    padding: 0.2em 0.5em;
}

tr.row-0 td {
    background-color: white;
}

tr.row-1 td {
    background-color: #f4f4f4;
}

table.list td {
    white-space: nowrap;
}

table.list td.text {
    white-space: normal;
}

table.list tr.deleted,
table.list tr.deleted a {
    color: gray;
}

td.page-links {
    text-align: center;
}

.number {
    text-align: right;
}

caption {
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    margin: 0.6em 0 0.3em 0;
}

/*
 * user-menu.css
 */
.user-menu {
    position: absolute;
    right: 0.5em;
    top: 0.5em;
    background: white;
    border: 1px solid #d0d0d0;
    z-index: 10;
}

.user-menu div {
    text-align: right;
    padding: 0.2em 1em;
}

.user-menu ul {
    display: none;
    list-style: none;
}

.user-menu li {
    padding: 0.2em 1em;
}

.user-menu:hover ul {
    display: block;
}

.user-menu li a {
    display: inline-block;
    width: 100%;
    color: #202060;
}

.user-menu li a:hover {
    color: #4040ff;
}
