/* MISC */
.centered {
    margin-left: auto;
    margin-right: auto;
    display: table;
}

/* SIDEBAR */
#sidebar ul#corpus_menu,
#sidebar ul#file_menu {
    list-style-type: none;
    padding-left: 0px;
}

/* MESSAGES */
.messages {
    font-size: 120%;
    margin-bottom: 1em;
}

.messages .info {
    color: #0a0;
}

.messages .warning {
    color: #a00;
    font-style: italic;
}

.messages .error {
    color: #a00;
    font-weight: bold;
}

/* PAGINATION */
div.pagination {
    margin-top: 0.7em;
    margin-bottom: 1em;
}

/* PROGRESSBARS */
.progressbar_container {
  position: relative;
  height: 16px;
  background-color: #fff;
  border: 1px #000 solid;
}

.progressbar_bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 0px;
    height: 14px;
    background-color: #cf8;
    margin: 1px;
}

.progressbar_percent {
    position: absolute;
    right: 2px;
    line-height: 14px;
    font-size: 11px;
}

/* TABLES WITH PROGRESS BARS */
div.progress_wrapper,
div.progress_wrapper table {
    width: 600px;
}

table.progressbars {
    border-collapse: collapse;
}

table.progressbars td {
    padding: 0 0 0.5em 0;
}

table.progressbars td.progressbar {
    width: 470px;
}

table.progressbars td.progressbar .progressbar_container {
    float: right;
}

table.progressbars table.progressbars td.action {
    text-align: right;
}

/* PROGRESS LOG */
textarea#log {
    font-family: monospace;
    font-size: 12px;
    margin-top: 1em;
    width: 592px;
    padding: 3px;
    border: 1px #000 dotted;
    height: 30em;
    background-color: #fff;
}

/* POPUP WINDOWS */
div.popup {
    position: absolute;
    margin-top: 1.5em;
    border: 1px solid black;
    width: 20em;
    text-align: left;
    background-color: #fff;
    white-space: normal;
    visibility: hidden;
}

div.popup div.menubar {
    width: auto;
    background-color: #9ce;
    padding: 1px;
    margin: 0 !important;
}

div.popup div.menubar label {
    display: block;
    float: left;
    padding-left: 3px;
}

div.popup img {
    width: 11px;
    height: 11px;
    vertical-align: top;
}

div.popup div.content {
    font-weight: normal;
    padding: 3px;
    margin: 0 !important;
}

div.popup div.infohref {
    margin-top: .2em;
}

/*************************************************************************
 * FORMS
 *************************************************************************/
form {
    margin-top: 1em;
    margin-bottom: 1em;
}

table.form {
    margin-top: 1em;
    border-collapse: collapse;
}

table.form td {
    padding-bottom: 1em;
}

.forminfo {
    width: 40em;
    text-align: justify;
}

/* LABELS (LEFT SIDE) */
table.form td.label {
    padding-right: .5em;
    text-align: right;
    vertical-align: top;
}

table.form tr.required td.label {
    font-weight: bold;
}

table.form td.label label {
    display: block;
    text-align: right;
    width: 12em;
}

/* INPUT (RIGHT SIDE) */
/* e.g. for lists of radio-buttons */
table.form td.input label {
    display: block;
    margin-bottom: .3em;
    width: 255px;
    /* this is needed for indenting multi-line labels correctly */ 
    text-indent: -25px;
    padding-left: 25px;
}

table.form td.input div {
    margin-bottom: .5em;
}

/* e.g. for CheckboxSelectMultiple */
table.form td.input ul {
    list-style-type: none;
    margin: 0 0 .5em 0;
    padding: 0;
}

table.form td.input ul label {
    margin-bottom: 0;
} 

/*  GROUPS */
fieldset.group {
    border-color: #777;
    margin-bottom: .5em;
    width: 282px;
}

fieldset.group legend {
    color: #777;
}

fieldset.group input {
    width: auto !important;
}

fieldset.group .add_option {
    text-align: right;
    margin-top: .5em;
    margin-bottom: 0;
}

fieldset.group_of_fields {
    width: auto !important;
}

fieldset.group_of_fields table.form {
    margin-left: -10px;
}

/* INPUT ELEMENTS */
table.form input[type=text],
table.form input[type=password],
table.form input[type=file],
table.form textarea,
table.form select,
table.form .ro_input {
    width: 300px;
}

table.form input[type=text],
table.form input[type=password],
table.form input[type=file],
table.form textarea,
table.form select {
    font-size: 100%;
    padding-left: 2px;
}

table.form input[type="radio"] {
    display: inline;
}

table.form textarea {
    height: 5em;
}

table.form .ro_input {
    margin: 0;
}

table.form .errorcell input[type=text],
table.form .errorcell input[type=password],
table.form .errorcell select {
    border-color: #a00;
}

/* HELP TEXTS, ERRORS */
table.form .help_text,
table.form tr.errorrow ul.errorlist {
    font-size: 95%;
    width: 300px; 
}

table.form tr.errorrow td {
    padding-bottom: 2px;
}

table.form .help_text {
    margin-top: 2px;
    margin-bottom: 0;
}

/* form-wide errors */
fieldset ul.errorlist { 
    margin: 0;
    padding: 0;
    width: 450px;
    list-style-type: none;
}

/* BUTTONS */
div.buttons {
    padding-top: 1em;
    text-align: right;
}

fieldset input[type="submit"] {
    min-width: 6em;
    margin-left: .5em;
    font-size: 100%;
}

/* ASM (Ajax Select Multiple) */
.asm_checkboxes label {
    padding: 0 !important;
    margin: 0 !important;
    text-indent: 0 !important;
}

/* RECAPTCHA */
#recaptcha_widget_div div {
    margin-bottom: 0;
}

.recaptcha_input_area_text {
    text-indent: 0 !important;
}

/*************************************************************************
 * TABLES
 *************************************************************************/
div.table_wrapper,
div.table_wrapper table.data {
    width: 40em;
}

div.wide_table_wrapper,
div.wide_table_wrapper table {
    width: 56em;
}

table.data td,
table.data th {
    border-right: 1px dotted #888;
}
