/* #################################################################
Copyright © 2008 BBB Systems, LLC, All rights reserved
################################################################## */
/* admin module styles */

.md_message_error{
    position: relative;
    margin-bottom: 4px;
}
.md_message_error .error{
    height: 50px;
    overflow: hidden;
    overflow: auto;
    padding: 8px;
}

.md_container{
    width: inherit;
}

.md_container, .md_content{
    margin: 0px; padding: 0px;
}

.md_content{
    border: 1px solid #e6e6e6;
}

.md_title{
    background: #0f3810 url(/images/menubar.gif) repeat-x center center;
    text-decoration:none;
    font-weight: bold;
    text-align: center;
    font-size: 12px;
    color: #fff;
    margin: 0px;
    padding: 4px 8px 4px 8px;
}
/* plus and minus used for collapsable md_content */
.md_plus, .md_minus{
    background-repeat: no-repeat;
    background-position: 6px center;
    cursor: pointer;
}
.md_plus{ background-image: url(/app_lib/app_images/plus.gif); }
.md_minus{ background-image: url(/app_lib/app_images/minus.gif); }


.md_search{
    background-color: #f5f5f5;
    padding: 4px;

}
.md_search_help, .md_search_tools, .md_search_string{ font-size: 9px; }
.md_search_tools, .md_search_string{ padding-top: 8px; }
.md_search_tools input[type=text]{ width: 64px; }

.md_search select{
    max-width: 150px;
}

.md_table_container{
    position: relative;
    margin-bottom: 4px;
}

.md_show_container{
    position: relative;
    height: 250px;
    overflow: auto;
}

.md_show_table{
    border-collapse: collapse;
    margin-top: 1px;
    width: 100%;
}

/* import/export controls */

.md_imp_exp_container{
    position: relative;
    background-color: #1d411c;
    border-bottom: 1px solid #e6e6e6;
}

.md_imp_exp_container h4{
    padding: 10px 0px;
}

.md_imp_exp_container table{
    border-collapse: collapse;
}

a.md_imp_exp_a, a.md_imp_exp_a_hover, a.md_imp_exp_a_down{
    display: block;
    padding: 3px 12px;
    border-right: 1px solid #aab1cd;
    font-weight: bold;
}
a.md_imp_exp_a{
    background-color: #0b4f1b;
    color: #ffffff;
}
a.md_imp_exp_a_hover, a.md_imp_exp_a_down{
    background-color: #4b8738;
    color: #ffffff;
}

.md_imp_exp_controls{
    display: none;
    position: absolute;
    top: 16px;
    left: -1px;
    z-index: 20000;
    width: 100%;
    height: 250px;

    background-color: #f5f5f5;
    border: 1px solid #0b4f1b;

    overflow: auto;
}

.md_imp_exp_controls_inner{
    padding: 24px 8px 8px 8px;
}

.md_imp_exp_close{
    position: absolute;
    top: 2px;
    left: 2px;
    font-weight: bold;
    font-size: 9px;
    color: #ff0000;
}

.md_imp_exp_table{
    width: 760px;
    max-width: 760px;
}

/* End import/export controls */

/* lock stuff */

.md_show_table thead{
    position: relative;
}
.md_show_table thead th{
    white-space: nowrap;
    display: table-cell !important;
}
.md_show_table tbody td{
    white-space: normal;
    display: table-cell !important;
}

.md_show_table tbody{
    /* overflow set in javascript for compatibility reasons */
}

/*
.md_show_table thead th.md_sticky, .md_show_table thead td.md_sticky{
    display: block !important;
    position: fixed;
}
*/

/* end lock stuff */

/* td and th dimmensions must match exactly (including padding and borders), otherwise safari and opera will be off */
.md_show_table td, .md_show_table th{
    vertical-align: middle;
    text-align: left;
    font-size: 12px;
    padding: 4px 8px 4px 8px;/* don't change this (except the top/bottom padding on the th) */
}
.md_show_table thead th{
    padding:  0px 8px 0px 8px;
}
.md_show_table thead th a{
    display: block;
    position: relative;
    top: 0px;
    left: -8px;
    width: 100%;
    height: 100%;
    padding: 4px 8px 4px 8px;
    text-decoration: none;
}
.md_show_table thead th a:hover{
    background-color: #0b4f1b;
}
.md_show_table thead th a img{
    border-width: 0px;
}

.md_show_table td a{
    font-size: 10px;
}

.md_show_table thead th, .md_footer{
    font-size: 12px;
    font-weight: bold;
    background-color: #1d411c;
    color: #ffffff;
    border: 1px solid #376d2f;
}
.md_show_table thead th a, .md_footer a{
    color: #ccddff;
}
.md_show_table thead th a:hover, .md_footer a:hover{
    color: #ddeeff;
}


/* md_cells */
.md_even{
    padding: 4px 8px 4px 8px;/* don't change this */
    font-size: 12px;
    text-align: left;
    background-color: #ffffff;
}
.md_odd{
    padding: 4px 8px 4px 8px;/* don't change this */
    font-size: 12px;
    text-align: left;
    background-color: #e6e6e6;
}
.md_error{
    padding: 4px 8px 4px 8px;/* don't change this */
    font-size: 12px;
    background-color: #cc9999;
}

.md_show_table tbody td.md_even{
    padding: 4px 8px 4px 8px;/* don't change this */
    border-left: 1px solid #f0f0f0 !important;
    border-right: 1px solid #f0f0f0 !important;
}
.md_show_table tbody td.md_odd{
    padding: 4px 8px 4px 8px;/* don't change this */
    border-left: 1px solid #f0f0f0 !important;
    border-right: 1px solid #f0f0f0 !important;
}

.md_show_table tbody td.md_even:last-child, .md_show_table tbody td.md_odd:last-child{
    padding-right: 12px;
}

/* misc */

.md_header{
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background-color: #0b4f1b;
}

.md_footer{
    border-right: 0px solid #ffffff;
    border-bottom: 0px solid #ffffff;
    border-left: 0px solid #ffffff;
}
.md_footer table{
    width: 100%;
}
.md_footer .md_cnt_cur{
    font-size: 14px;
    text-decoration: none;
}

.md_update_table{
    width: auto;
}

.md_update_table td{
    padding: 4px;
    border-bottom: 1px solid #dddddd;
}

.md_update_table td.md_cell:first-child{
    width: 250px;
    white-space: nowrap;
}

/* fancy rows */

tr.md_row{
    background-color: transparent;
}
tr.md_row_hover td.md_even, tr.md_row_hover td.md_odd{
    background-color: #F5F6BE;
    color: #000000;
}
tr.md_row_clicked td.md_even, tr.md_row_clicked td.md_odd{
    background-color: #FBFB83;
    color: #000000;
}

/* end fancy rows */

/* resize stuff */

.md_resizer{
    position: absolute;
    top: 100%;
    left: 0px;
    cursor: s-resize;
    z-index: 1500;
    display: block;
    background-color: #376d2f;
    width: 100%;
    height: 4px;
    padding: 0;
}

/* end scrollable and resize stuff */
/* end admin module styles */

.overLayer{
    width: 200px;
    padding: 15px;
    color: #FFFFFF;
    background-color: #28558F;
    border: 1px dotted #FF00FF;
}
.overLayer a{
    color: #FFFFFF;
}

/* admin search suggestion styles */
#search_suggestions{ position: absolute; z-index: 5000; }
.search_suggestions{ background-color: #fff; width: 150px; overflow-x: hidden; }
.search_suggestions .suggestion, .search_suggestions .suggestion_over{
    color: #000;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #fff;
    padding: 2px;
    height: auto;
    min-height: 20px;
    font-weight: normal;
}
.search_suggestions .suggestion_over{ background-color: #9bb8cf; cursor: pointer; }

.search_suggestions  strong{
    background-color: #ccc;
    color: #000;
    font-weight: bold
}

.search_suggestions .suggestion_desc{
    padding-left: 4px;
    text-transform: uppercase;
    font-size: 10px;
    color: #6f6f6f;
}

/* admin help styles */
.admin_help_icon{ position: relative; cursor: pointer; margin-left: 8px; top: 4px; }
.admin_help_info{
    display: none;
    position: absolute;
    z-index: 6000;

    width: 250px;

    margin-left: 8px;
    padding: 15px 8px 3px 8px;

    color: #000;
    background-color: #dfdfdf;
    border: 1px solid #a0a0a0;
}

.close_help{ position: absolute; top: 1px; right: 8px; }

/* admin default page */

#admin_default td{ text-align: center; padding: 8px 0px; }

#admin_default h3{
    margin-bottom: 4px;
    padding: 4px 2px;
    border-bottom: 1px solid #0b4f1b;
    text-align: left;
}

#admin_default a img{ border: 0px solid #fff; }

.admin_page_cat{ padding-top: 15px; }