div.main {
    min-height: 500px;
    overflow: auto;
}
div.noscriptmsg {
    text-align: center;
    color: darkred;
    font-size: 120%;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 3000;
    height: 100%;
    width: 100%;
    background-color: #FFFFFF;
}
div#fixed {
    position: fixed;
    width: 21%;
    /*    filter: alpha(opacity=80);
        -moz-opacity:	0.8;
        -khtml-opacity:	0.8;
        opacity: 0.8;*/
}
img#spinner {
    vertical-align: bottom;
    float: right;
}
a.otherLink {
    color: darkblue;
    font-weight: normal;
    text-decoration: underline;
}
a.otherLink:hover { 
    color: green;
}
a.strong {
    font-weight: bold;
}
span.blue {
    color: blue;
    /*    text-decoration: underline;*/
}
span.red {
    color: red;
}
span.green {
    color: green;
}
span.grey {
    color: lightgrey;
}
span.disabled {
    color: lightgrey;
}
fieldset input {
    width: auto;
    font-size: 100%;
    vertical-align: top;
}
fieldset label { 
    line-height: 2em;
    display: inline-block; /* having this set to block interferes with Alpaca-rendered forms */
}
fieldset p {
    line-height: 2em;
}
fieldset p input {
    width: auto;
    vertical-align: top;
}
fieldset p select {
    margin: 0;
    padding: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: top;
    width:auto;
}
/*.dabadee .button span,*/
.dabadee {
    background-color:#c8e6ee;
/*    background-color:#c9e4ff;*/
}

.dabadee .button {
    margin: 10px 0px 10px 10px;
    display: inline-block;
}

.affirm span {
    background-color:#c0e4c2;
}

.negate span {
    background-color:#f5c6c6;
}

.neutral span {
    background-color:#c8e6ee;
}


tr.flagged {
    color:#1e28ba;
    font-weight: bold;
}

tr.flagged a {
    color:#1e28ba;
    font-weight: bold;
}

/* notification */
#notification {
    position: absolute;
    margin-top: 20px;
    right: 5%;
    width: 250px;
    z-index: 9999;
}
#status_bar {
    margin: 10px 0;
    /*    position: absolute;
        top: 0;
        right: 0;
        z-index: 9999;*/
}
/* notification end */

/* popup */
div.popup {
    width: 600px;
}
div.popup .box {
    /*    background-color: white;*/
    margin-bottom: 0px;
}
/* popup end */

/* login */
div#login-forms {
    width: 260px;
}
div#error {
    height: 25px;
}
div#error h5 {
    display: inline-block;
    font-size: 1.2em;
    font-weight: bold;
    vertical-align: bottom;
    margin: 0;
    padding: 0;
}
/* login end */

/* change password */
/* change password end */

/* sortable list */
ul.sortable {
    cursor: move;
    list-style-type: none;
    padding: 0;
    /*    width: 60%;*/
    /*    margin-left: 150px;*/
}
ul.sortable li {
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px 4px 4px 4px; /* used by IE9 */

    background-color:#FFFFFF;
    border:1px solid #DADADA;
    color:#666666;
    margin: 3px 3px 0 0;
    padding:3px 5px;
    line-height: 2em;
    height: 2em;
}
/* sortable list end */

.main-view {
    line-height: 2em;
}
.main-view a {
    text-decoration: underline;
}
.main-view h5 {
    margin-bottom: 1em;
}
.main-view fieldset.buttons {
    padding: 5px;
    background: white;
}
.main-view input.txtbox-short {
    width: 10%;
}
.main-view input.txtbox-middle {
    width: 40%;
}
.main-view input.txtbox-long {
    width: 98%;
}
.main-view input.auto {
    width: auto;
}
.main-view input, textarea, select, button {
    font-size: 100%;
}
.main-view textarea {
    width: 98%;
}
.main-view textarea.txtarea-large {
    height: 200px;
}
.main-view .button {
    margin-right: 4px;
}
.main-view .ui-button {
    font-size: 90%;
    line-height: 1em;
}
/*.main-view input.ui-button {
    padding-top: 3.6px;
    padding-bottom: 3.7px;
}*/
.main-view .ui-buttonset {
    width: auto;
    float: left;
}
.main-view .box {
    overflow: hidden;
    height: auto;
}
.main-view .block {
    overflow: hidden;
    width: 100%;
}
.main-view label.error {
    display: inline-block;
    color: red;
}
.main-view input.error {
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px 4px 4px 4px; /* used by IE9 */
    border: 2px solid red;
    margin: 1px;
}
.main-view input.calendar {
    background-image: url('../images/icon-calendar.png');
    background-repeat: no-repeat;
    background-position: center right;
    padding-right: 25px;
    width: 100px;
}
.main-view th,
.main-view td {
    text-align: left;
    vertical-align: top;
}
/*.main-view thead th {
    background-color: #cccccc;
}*/
.main-view tbody th {
    background-color: white;
    width: 25%;
}
.main-view tbody td {
    /*    background-color: white;*/
}
.main-view span.inline-actions {
    float: right;
}
.main-view th.actions,
.main-view td.actions {
    text-align: right;
    /* width: 100px; */
    width: 40ex;
}
.main-view th.right,
.main-view td.right {
    text-align: right;
}

.main-view span.cke_skin_kama,
.main-view table.cke_editor,
.main-view table.cke_editor tbody tr td {
    border: 0px;
}
.main-view table {
    float: left;
}
.main-view .dataTables_processing {
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px 4px 4px 4px; /* used by IE9 */

    border:2px solid #666666;
    color:#999999;
    /*    background: transparent url('../images/ajax-loader.gif') no-repeat scroll top right;*/
    background: transparent url('../images/ajax-loader.gif') no-repeat scroll center left;
    background-color: #FFFFFF;
    font-size:11px;
    left:50%;
    margin-left:-125px;
    padding:2px 0;
    position:absolute;
    text-align:center;
    top:0;
    width:250px;
}
.main-view div.dataTables_wrapper table {
    margin-top: 2px;
}
.main-view div.dataTables_wrapper ul {
    padding: 0 ;
    margin-bottom: 5px;
}
.main-view div.dataTables_wrapper li {
/*    list-style-image: url('../images/icon-tick.png');*/
    list-style-image: url('../images/label_16.png');
    margin: 0 ;
}
.main-view div.dataTables_wrapper ul.listing li {
    list-style-image: none;
}
.main-view select.multiselect {
    width: 500px;
    height: 300px;
}
.main-view select.long {
    width: 63%;
}
.main-view .ui-multiselect {
    margin-bottom: 6px;
}
.main-view td.privileges {
    background-color: #EEEEEE ;
}    
.main-view td.group {
    background-color: #BBBBBB;
    border-bottom: 2px solid #888888;
}

/* for the tabs */
.main-view .ui-widget {
    font: inherit
}
.main-view .ui-tabs-panel {
    padding: 1em 0
}
.main-view .ui-widget-content {
    border: 0;
}

.main-view div.form_nav {
    margin-bottom: 20px;
}
.main-view div.form_nav fieldset {
    border: none;
}
.main-view div.form_nav .next {
    background-image: url('../images/right_16.png');
    background-repeat: no-repeat;
    background-position: center right;
    padding-right: 25px;
}
.main-view div.form_nav .back {
    background-image: url('../images/left_16.png');
    background-repeat: no-repeat;
    background-position: center left;
    padding-left: 25px;
}
.main-view div.form_nav .submit {
    font-weight: bold;
    background-image: url('../images/tick_16.png');
    background-repeat: no-repeat;
    background-position: center left;
    padding-left: 25px;
/*    width: 150px;*/
}
div.tree_list {
    border:1px solid #BBBBBB;
    background-color: white;
    margin-top: 1px;
    margin-bottom: 10px;
    padding: 5px;
}
div.feedreader {
    border:1px solid #BBBBBB;
    background-color: white;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 5px;
    line-height: 20px;
}
div.feedreader i {
    font-size: 10px;
    color: #999999;
}
div.feedreader a {
    font-size: 16px;
/*    color: darkgreen;*/
}
div.feedreader span {
    display: none;
}
div.checkboxes {
    display: block;
}
div.checkboxes input {
    vertical-align: middle;
    float: left;
}
div.checkboxes label {
    vertical-align: middle;
    float: left;
}
.main-view fieldset.actionbar {
    padding: 5px;
    background-color: white;
    vertical-align: middle;
}
.main-view fieldset.actionbar input {
    vertical-align: middle;
}

/* expenditures */
.line_items_total {
    text-align: right;
}

.line_item_subtotal {
    text-align: right;
}

#expenditure label {
    text-align: left;
    font-weight: bold;
}

.question20 {
    display: inline-block;
    width: 20ex;
}
.question40 {
    display: inline-block;
    width: 40ex;
}
.question60 {
    display: inline-block;
    width: 60ex;
}
.question80 {
    display: inline-block;
    width: 80ex;
}

.table_button_array {
    width: 15em;
}

.wanted::after {
    content: "(*)";
    color: red;
}
.baddata {
    color: red;
    outline: #FF0000 solid thin;
}

/* keys */
.bad_key_data {
    color: red;
    outline: #FF0000 solid thin;
}

.keytable .dataTables_filter {
    float: left;
}

.keytable .dt-buttons {
    float: right;
}

.keytable .dataTables_length {
    float: left;
    padding-left: 2em;
}

.tree ul {
    padding: 0;
    list-style-position: inside;
    margin: 0;
    display: block;
}

.tree ul ul {
    padding-top: 5px;
}

/* Expanding list structures */
.tree li.expanded {
    list-style-image: url('../images/menu-expanded.png');
    padding: 0;
    margin-left: 3ch;
    margin-bottom: 5px;
    list-style-position: inside;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.tree li.collapsed {
    list-style-image: url('../images/menu-collapsed.png');
    padding: 0;
    margin-left: 3ch;
    margin-bottom: 5px;
    list-style-position: inside;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.tree li.endpoint {
/*    list-style-image: url('../images/menu-leaf.png'); */
    list-style: none;
    padding: 0;
    margin-left: 3ch;
    list-style-position: inside;
    -moz-user-select: text;
    -ms-user-select: text;
    -webkit-user-select: text;
    user-select: text;
}

.tree .selectsub {
    color: #476daa;
    padding-left: 10px;
}

.juidlg {
    overflow: auto;
}

.juidlg textarea {
    width: 90%;
    height: 50%;
}

.readonly {
    background: #fcfcfc;
    color: #666666;
}

.ui-button-text-only .ui-button-text { padding: 1em;};

.custom-combobox {
    position: relative;
    display: inline-block;
}
.custom-combobox-toggle {
    position: absolute;
    top: 0;
    bottom: 0;
    margin-left: -1px;
    padding: 0;
}
.custom-combobox-input {
    margin: 0;
    padding: 5px 10px;
}
.ui-button.positive {
    background: #ccffcc;
}
.ui-button.warning {
    background: #ffe6cc;
}
