/**
    general
*/
*, html, body {
    font-family: verdana, arial, sans-serif;
    font-size: 12px;
}

body {
    background-color: #E9E9E9;
    margin: 0;
}

img {
    border-width: 0;
}

a {
    color: black;
}

.code {
    font-family: "andale mono", "monotype.com", "courier new", monospace;
    font-weight: bold;
}

.error {
    color: red;
    font-weight: bold;
}

#main {
    background-color: white;
    margin: 15px;
    border-width: 1px;
    border-style: solid;
    border-color: lightgray;
    padding: 10px;
}

/**
    header
*/
#title {
    float: left;
}

#title h1 {
    margin-top: 0px;
    margin-bottom: 10px;
    font-size: 20px;
}

#topright {
    display: inline;
    float: right;
    position: relative;
    top: -3px;
}

#topright form {
    display: inline;
}

#topright a {
    font-size: 8pt;
    color: #444444;
}

#header {
    clear: both;
    border-width: 1px;
    border-style: solid;
    border-color: gray;
    background-color: #A1D4F0;
    padding: 0;
}

#header #info {
    float: left;
    height: 100%;
    line-height: 23px;
    padding-left: 5px;
}

#header #info .email {
    font-style: italic;
}

#header #menu {
    padding: 0;
    margin: 0;
}

#header #menu ul {
    height: 28px;
}

#header #menu li {
    list-style: none;
    display: inline-block;
    border-right: 1px solid gray;
    padding-right: 5px;
    padding-left: 5px;
    height: 28px;
}

#header #menu li a {
    font-weight: bold;
    text-decoration: none;
    vertical-align: middle;
    line-height: 2.2;
}

#header #menu li:hover {
    background-color: #C2DEED;
}

#searchbox {
    background-color: white;
    float: right;
    border: 1px solid gray;
    padding: 3px;
    margin-top: -25px;
    margin-right: 3px;
}

#searchbox form {
    height: 14px;
}

#searchbox input {
    font-size: 8pt;
    border: none;
    vertical-align: top;
    margin: 0;
    padding: 0;
    height: 13px;
}

#searchbox input:focus {
    outline-width: 0;
}

/**
    login
*/
.loginContainer {
    position:absolute;
    top: 250px;
    left: 50%;
    width: 400px;
    margin-top: -50px;
    margin-left: -200px;
    width: 400px;
    border: gray 1px solid;
}

.loginContainer table {
    width: 100%;
    border-width: 0px;
    border-spacing: 0px;
}

.loginContainer thead tr {
    text-align: left;
    background-color: #A2C9DE;
}

.loginContainer th, .loginContainer td {
    padding: 3px;
}

.loginContainer tbody tr {
    text-align: left;
    background-color: #EDEAD6;
}

.loginContainer .loginLabel {
    text-align: right;
}

.loginContainer tfoot tr {
    text-align: center;
    background-color: #EDEAD6;
}

.menuBox {
    border-width: 1px;
    border-style: solid;
    border-color: gray;
    border-spacing: 0;
    margin-bottom: 10px;
    padding: 5px;
}

.menuBox img {
    vertical-align: middle;
}

.menuBox form {
    display: inline;
}

.menuBox .filterTools .linkStrip {
    float: right;
    text-align: right;
}

.rightButton {
    text-align: right;
    font-weight: bold;
    margin-bottom: 5px;
}

.objectList {
    width: 100%;
    border-width: 1px;
    border-style: solid;
    border-color: gray;
    border-spacing: 0;
}

.objectList a {
    text-decoration: none;
}

.objectList th {
    background-color: #A2C9DE;
    text-align: left;
    padding: 2px;
}

.objectList td {
    padding: 2px;
}

.objectList tr.odd td {
    background-color: #F7F4DF;
}

.objectList tr.even td {
    background-color: #EDEAD6;
}

.sort_asc.sort_current a {
    padding-right: 18px;
    background: right url(/img/down.png) no-repeat;
}

.sort_desc.sort_current a {
    padding-right: 18px;
    background: right url(/img/up.png) no-repeat;
}

.topLink {
    display: inline-block;
}

.topLink img, .topLink a {
    margin-right: 2px;
    vertical-align: middle;
}

/* pagination */
div.pagination {
    height: 22px;
    margin: 10px auto 0;
}

div.pagination * {
    display: block;
    float: left;
    margin: 0 1px;
}

div.pagination a {
    color:black;
    padding: 2px;
    min-width: 15px;
    border: solid 1px #ccc;
    text-align: center;
    background-color: #FFFFDD;
    text-decoration: none;
}

div.pagination a.current {
    color:black;
    background-color: #A2C9DE;
}

/**
    formulaires
*/
.formTable {
    width: 100%;
    padding: 0px;
    border-spacing: 2px;
    border-width: 0;
}

.formTable table {
    width: 100%;
    border-spacing: 2px;
    border-width: 0;
}

.formTable table th {
    padding: 1px;
    font-size: 12px;
    text-align: left;
    background-color: #A2C9DE;
}

.formTable table td {
    padding: 1px;
    background-color: #EDEAD6;
}

.formTable table td div.formRow {
    display: inline-block;
    vertical-align: middle;
}

.formTable table tbody input[type=text], .formTable table tbody textarea {
    width: 250px;
}

.formTable table tbody td:first-child {
    width: 300px;
    line-height: 20px;
    padding-left: 3px;
}

.formTable table tfoot td {
    text-align: right;
}

.formTable img {
    vertical-align: text-bottom;
}

.formTable #add_metadata_row a {
    cursor: pointer;
}

#compte #password {
    margin-top: 10px;
}

#indicator {
    margin: 10px;
}

#slider {
    margin: 10px;
    width: 50%;
}

/* tabs */

#tabsHeader {
    margin-top: 10px;
    height: 25px;
    margin-bottom: 1px;
    z-index: 10;
}

#tabsHeader #tabsMenu {
    float: left;
    height: 100%;
    line-height: 23px;
    padding-left: 5px;
}

#tabsHeader #tabsMenu .tabsMenuItem {
    float: left;
    margin: 0;
    padding: 0;
    padding-right: 5px;
    padding-left: 5px;
    margin-right: 4px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

#tabsHeader #tabsMenu .tabsMenuItem.active {
    height: 25px;
    border-width: 1px 1px 0px 1px;
    border-style: solid;
    border-color: gray;
    background-color: white;
}

#tabsHeader #tabsMenu .tabsMenuItem.inactive {
    height: 24px;
    border-width: 1px 1px 0px 1px;
    border-style: solid;
    border-color: lightgrey;
}

#tabsHeader #tabsMenu .tabsMenuItem.inactive:hover {
    height: 25px;
    border-width: 1px 1px 0px 1px;
    border-style: solid;
    border-color: gray;
    background-color: white;
}

#tabsHeader #tabsMenu .tabsMenuItem a {
    text-decoration: none;
    font-weight: bold;
}

#tabsHeader #tabsMenu .tabsMenuItem.inactive a {
    text-decoration: none;
    font-weight: normal;
}

#tabsContents {
    z-index: 0;
    margin-top: -1px;
    border-width: 1px;
    border-style: solid;
    border-color: gray;
    padding: 10px;
}

#tabsContents h2 {
    margin-top: 0;
}

/**
    images
*/
.imageEntry {
    display: inline-table;
    border-width: 1px;
    border-style: solid;
    border-color: gray;
    padding: 5px;
    margin-bottom: 5px;
    width: 240px;
    position: relative;
}

.imageEntry.excluded {
    background: #e5e5e5;
}

.imageInfos, .imageActions, .imageInfos a {
    padding-top: 3px;
    font-size: 9px;
    color: #555555;
}

.imageInfos .title {
    font-size: 9px;
    font-weight: bold;
}

.imageActions {
    text-align: right;
}

.refuseButton, .acceptButton {
    cursor: pointer;
    display: inline-block;
    min-width: 70px;
    border-width: 1px;
    border-style: solid;
    border-color: gray;
    padding: 5px;
    text-align: center;
}

.acceptButton {
    background-color: lightgreen;
}

.refuseButton {
    background-color: pink;
}

.frame {
    border-width: 1px;
    border-style: solid;
    border-color: gray;
    padding: 10px;
}

#thumbList .imageEntry {
    width: auto;
}

.overlay {
    width: 260px;
    height: 285px;
    background-image: url(/img/loader.gif);
    background-position: center center;
    background-repeat: no-repeat;
    background-color: white;
    position: absolute;
    display: none;
}

/* reference */
.ref_container {
    width: 360px;
    height: 400px;
    display: inline-block;
    border-width: 1px;
    border-style: solid;
    border-color: gray;
    padding: 5px;
    overflow: auto;
}

.ref_container h3 {
    padding: 5px;
    margin-bottom: 5px;
    margin-top: 0;
    background-color: #CCCCCC;
}

.ref_container table {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
}

.ref_container td, .ref_container th {
    text-align: center;
    border-width: 1px;
    border-style: solid;
    border-color: gray;
    padding: 3px;
}

.current_period {
    font-weight: bold;
}

.niche_cat_container {
    display: inline-block;
    font-size: 9px;
}

.delete_btn {
    width: 12px;
    height: 12px;
    display: inline-block;
    cursor: pointer;
    background-image: url(/img/delete_inactive.png);
    vertical-align: middle;
}
.delete_btn:hover {
    background-image: url(/img/delete_active.png);
}

.add_btn {
    width: 16px;
    height: 16px;
    display: inline-block;
    cursor: pointer;
    background-image: url(/img/add-green.png);
    vertical-align: middle;
}

.new_niche_input, .new_cat_input {
    height: 10px;
    width: 60px;
    vertical-align: middle;
    font-size: 9px;
}

#title_table {
    width: 100%;
    text-align: left;
}

#title_table textarea {
    width: 95%;
    height: 650px;
}

#title_submit {
    text-align: right;
}

#untitled_images_table td {
    vertical-align: top;
    padding: 3px;
}

#untitled_images_table .titles_display.empty {
    background-color: #FFDDDD;
}

#untitled_images_table .titles_display {
    background-color: #DDFFDD;
    width: 600px;
}

#untitled_images_table .niche_name {
    display: inline-block;
    min-width: 100px;
    font-weight: bold;
}

#untitled_images_table .image_title {
    margin-top: 10px;
}

#untitled_images_table .cat_name {
    display: inline-block;
    min-width: 100px;
}

#untitled_images_table .image_title input {
    width: 340px;
}

/* debug */
#dbg_set_cookies textarea {
    width: 100%;
    height: 200px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* stats */
.stats_container {
    width: 48%;
    display: inline-table;
    border-width: 1px;
    border-style: solid;
    border-color: gray;
    padding: 5px;
    overflow: auto;
}

.stats_container h3 {
    padding: 5px;
    margin-bottom: 5px;
    margin-top: 0;
    background-color: #A2C9DE;
}

.stats_container table {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
}

.stats_container td, .ref_container th {
    text-align: center;
    border-width: 1px;
    border-style: solid;
    border-color: gray;
    padding: 3px;
}

#niche_stats_container {
    position: relative;
    margin:0 auto;
}

#niche_stats_container #left_wrapper {
    position: absolute;
    right: 220px;
    top: 0;
    left: 0;
    bottom: 0;
    margin-right: 10px;
}

#niche_stats_container #right_wrapper {
    position: absolute;
    width: 220px;
    top: 0;
    bottom: 0;
    right: 0;
}

#niche_stats_container #left_wrapper #left_contents {
    position: absolute;
    top: 20px;
    bottom: 0;
    left: 0;
    right: 0;
}

#niche_stats_container #left_wrapper #left_contents #niche_table_container {
    height: 50%;
    top: 0;
    left: 0;
    right: 0;
    overflow-y: auto;
}

#niche_stats_container #left_wrapper #left_contents #graph_container {
    margin-top: 5px;
    height: 50%;
    bottom: 0;
    left: 0;
    right: 0;
}

#niche_stats_container #right_wrapper #right_contents {
    position: absolute;
    top: 20px;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-y: auto;
}

.loading_placeholder {
    background: url("/img/loader.gif") left no-repeat;
    padding-left: 40px;
    min-height: 32px;
    margin-left: auto;
    line-height: 3;
}

#niches_stats_table tbody tr:hover td {
    background-color: #d5d2be;
}

#niches_stats_table tbody tr.selected td {
    background-color: #65a0bf;
    color: white;
}
