/* the login details form in the header */
form.login {
    text-align: right;
    white-space: nowrap;
    display:inline;
    float:right;
}

form.login a { text-decoration: none; }
form.login a:hover { text-decoration: underline; }

/* the div and p around breadcrumbs needs to be removed */
div#bread p {
    padding: 0;
    border: 0;
    margin: 0;

}

/* Used on collection and media item show pages */
img.icon {
    max-width: 400px;
    vertical-align: top;
    float: right;
    margin-bottom: 20px;
    padding-left: 10px;
}

/* Used on collection and media item edit pages */
img.icon_edit {
    max-width: 400px;
    vertical-align: top;
    margin-bottom: 20px;
}

/* Used on select stock image page */
img.icon_select {
    max-width: 200px;
    vertical-align: top;
    margin-bottom: 20px;
}

/* Used in lists of collections and media items (fixed width) */
img.icon_small {
    /*width: 96px;*/
    vertical-align:top;
}

/* Used in lists of media items to show type (top left corner) */
td div.icon_holder {
    position: relative;
    width: 96px;
    height: 100%;
    float: left;
    display: table-cell;
}


.itemList .icon_col { margin-right: 0; padding-right: 0;
    width: 96px;
}

.itemList a {
    text-decoration: none;
}
.itemList a:hover {
    text-decoration: underline;
}

.itemList a.main_link {
    font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
}

img.icon_type {
    border: 1px solid #888;
    position: absolute;
    top: -5px;
    left: -4px;
    width: 14px;
    height: 14px;
/*
    This doesn't CSS validate
    filter: alpha(opacity=75);
    opacity: 0.75;
    -moz-opacity:0.75;*/
}

a.duration {
    background-color: #030;
    color: #fff;
    font-family: arial,sans-serif;
    font-size: 11px;
    font-weight: bold;
    line-height: 14px;
    padding: 0px 3px 0px 3px;
    position: absolute;
    bottom: 1px;
    right: -1px;
    height: 14px;
    text-decoration: none;
    vertical-align: middle;
}
a.duration:hover {
    text-decoration: none;
}

/* Used to the right of the breadcrumbs on additional tabs of       */
/* collection and media item pages (fixed height to fit in header)  */
img.icon_tiny {
    height: 64px;
    vertical-align: top;
    margin-top: 2px;
}

/* To display any text below image on collection and media item show pages */
p.icon {
    max-width: 400px;
    vertical-align: top;
    float: right;
    font-size: 0.9em;
    text-align: right;
    margin-bottom: 20px;
}

/* Used as a span class to unbold the data type in a page's h1 heading */
.dataType {
    font-weight:normal;
}

/* used to style functions eg 'add collection' */
.function {
    text-align:right;
}

/* Fake radio-button which is actually a submit button */
input.radio {
    background: url(../images/radio_button_unchecked.png) no-repeat;
    border: none;
    cursor: pointer;
    margin: 0px 4px 0px 1ex;
    padding: 0px;
    width: 16px;
    height: 16px;
    vertical-align: 0px;
}
input.radio_checked {
    background: url(../images/radio_button_checked.png) no-repeat;
    border: none;
    cursor: pointer;
    margin: 0px 4px 0px 1ex;
    padding: 0px;
    width: 16px;
    height: 16px;
    vertical-align: 0px;
}

/* External links (to other sites) */
a.external_link {
    background: url(../images/external_link.png) center right no-repeat;
    padding-right: 13px;
}

/* *************************************************************** */
/* Autocomplete fields                                             */
/* *************************************************************** */

div.autocomplete {
    position: absolute;
    background-color: #E0F0FF;
    border: 1px solid #8080FF;
    margin: 0px;
    padding: 0px;
    overflow: hidden;
}

div.autocomplete ul {
    list-style-type: none;
    margin:0px;
    padding:0px;
}

div.autocomplete ul li {
    width: 1000px;
    list-style-type: none;
    display: block;
    margin: 0px;
    cursor: pointer;
}

div.autocomplete ul li.selected {
    color: #FFFFFF;
    background-color: #6060B0;
}


/* *************************************************************** */
/* Tabs                                                            */
/* *************************************************************** */

.tabs {
    margin-bottom: 1em;
    clear:both;
}

ul.tablist {
    display: inline;
    list-style: none;
    margin-left: 0;
    padding: 0;
}

.tab a:hover {
    text-decoration: none
}

.tab {
    background: #e4e4e4;
    color: #000000;
    background-image : url("../images/cam/tab-grey-left.gif");
    background-repeat : no-repeat;
    text-align:center;
    padding-left: 10px;
    padding-top: 0px;
    float:left;
    border-bottom:none;
}

.tab span {
    background: url("../images/cam/tab-grey-right.gif") right top no-repeat;
    padding-right: 10px;
}

.tabselected {
    background: #0099cc;
    background-image : url("../images/cam/tab-cblue-left.gif");
    background-repeat : no-repeat;
    text-align:center;
    padding-left: 10px;
    padding-top: 0px;
    float:left;
    border-bottom:none;
    font-weight: bold; color: #FFFFFF;
}

.tabselected span {
    background: url("../images/cam/tab-cblue-right.gif") right top no-repeat;
    padding-right: 10px;
}

.blank {
    width:3px;
    background-repeat : no-repeat;
    float:left;
    border-bottom:none;
    font-size:.8em;
    font-family : verdana,arial,sans-serif ;
}


/* *************************************************************** */
/* Edit/Update Forms                                               */
/* *************************************************************** */

.fieldopts {
    vertical-align:top;
    width:2em;
}
.required {
    font-weight:bold;
    color:Red;
    font-size:1.0em;
}
.retranscode {
    font-size:0.5em;
    color:Red;
}

/* retranscode warning div. Shown on change */
div#retranscode {
    display:none;
}

.prop td {
    padding-bottom:1.5em;
    padding-right:1em;
}

form .name {
    text-align:right;
    vertical-align:top;
    font-weight:bold;
}

form .value {
    vertical-align:top;
}

form #title { width:100%; }
form #disabledTitle { width:100%; }
form #keywords { width:100%; }
form #publisher { width:100%; }
form #disabledPublisher { width:100%; }
form #copyright { width:100%; }
form #disabledCopyright { width:100%; }
form #name { width:100%; }
form #websiteUrl { width:100%; }


form .form_help {
    vertical-align:middle;
    font-size:small;
    font-style:italic;
    color: #003399;
}

.page_help {
    display: table;
    background: url("../images/info.gif") 0.5em 0.5em no-repeat;
    padding: 0 0 1em 4.5em;
/*
    min-height: 280px;
    margin: 1em 2em 1em 2em;
    border: 1px solid #b3b3b3;
    color: #353535;
    font-size: 1.0em;
    */
}
.tabBody.helpBox {
    width: 600px;
    margin: 0 14px 14px 0;
}

.page_help h3 {
    margin-top: 0px;
    margin-bottom: 6px;
    font-style: normal;
}

.page_help .vspace {
    height: 5px;
}

.page_help form {
    display: inline;
}

textarea {
    width:100%;
    min-height:10em;
    overflow-y: scroll;
    font-family:inherit;
    font-size:inherit;
}

/*
textarea#description {
    width:100%;
    min-height:5em;
    overflow-y:scroll;
    font-family:inherit;
    font-size:inherit;
}
*/


.multivaluerow {
    padding-bottom:0.5em;
    vertical-align:top;
}

/* *************************************************************** */
/* Metadata page layout.                                           */
/* *************************************************************** */

/* for headings with icon to the right */
.icon_heading img.icon {
    float:right;
}
.icon_heading img.icon_small {
    float:right;
}
.icon_heading img.icon_tiny {
    float:right;
}



.metadata div {
    float:left;
    width:100%;
}

.metadata div.left {
    float:left;
    width: 50%;
    min-width: 200px;
}
.metadata div.right {
    float:right;
    width: 50%;
    min-width: 200px;
}

/* buttons appear after metadata. Such as Edit, Delete. */
div.buttons {
    clear:both;
}

/*
 * Clearly mark destructive buttons such as on Withdraw form.
 * Not nice to look at - intended for admins
 */
input.destroy {
    background-color:#FF5555;
    font-weight:bold;
}

/* hack for forms with multiple submit buttons - put a button with this
   class first in the form and it will be the default button when
   enter is pressed in a text field */
input.hidden {
    width: 0px;
    height: 0px;
    border-width: 0px;
    background: none;
}

/* prop contains a name+value pair */
.metadata div.prop {
}

.metadata .name {
    font-weight:normal;

}
.metadata .value {
    font-weight:bold;
}

.metadata dl {
}

.metadata dt {
    font-weight:bold;
    font-size: 1em;
    max-width:7em; /* make same as: dd margin-left */
    line-height:1.1em;
}

.metadata dd {
    font-size: 1em;
    vertical-align:top;
    position: relative; top: -1.1em;
    margin-left:7em; /* make same as: dt max-width */
}

.metadata .longtext {
    border: solid thin;
    border-color:#CCCCCC;
    overflow-y:scroll;
    min-height:5em;
    margin-bottom:1em;

    position: relative; top: 0.0em;
    margin-left:0em;
}

.image_edit_inherited {
    border: 1px solid #C0C0C0;
}
.image_edit_inherited {
    text-align:center;
}


.select_images td  {
    border: 1px solid #C0C0C0;
    text-align:center;
    padding: 10px;
}
.select_image_icon_small {
    max-width:  96px;
    max-height: 96px;
    vertical-align:top;
}


div.uploadHomeLinks {
    float: right;
    width: 170px;
    margin: 0 0 10px 0;
    text-align: right;
}

.uploadHomeLinks a {
    font-size: 1.8em;
    line-height: 1.4em;
}


/*
multilineTextList div.uploadHomeLinks a {
    border: none;
    background-color: #F00;
    color: #F00;
    color: red;
}
*/

div.uploadHomeDescription {
    width: 75%;
}

div.uploadHomeDescription p {
    text-align: justify;
}


/* *************************************************************** */
/* Media pages                                                     */
/* *************************************************************** */

/* Upload tab */
ul.uploadFormats {
    margin: 2em;
    overflow: visible;
}

/* *************************************************************** */
/* Grails (from main.css)                                          */
/* *************************************************************** */

/* NAVIGATION MENU */

.nav {
    background: #fff url(../images/skin/shadow.jpg) bottom repeat-x;
    border: 1px solid #ccc;
    border-style: solid none solid none;
    margin-top: 5px;
    padding: 7px 12px;
}

.menuButton {
    font-size: 10px;
    padding: 0 5px;
}
.menuButton a {
    color: #333;
    padding: 4px 6px;
}
.menuButton a.home {
    background: url(../images/skin/house.png) center left no-repeat;
    color: #333;
    padding-left: 25px;
}
.menuButton a.list {
    background: url(../images/skin/database_table.png) center left no-repeat;
    color: #333;
    padding-left: 25px;
}
.menuButton a.create {
    background: url(../images/skin/database_add.png) center left no-repeat;
    color: #333;
    padding-left: 25px;
}

/* MESSAGES AND ERRORS */


.message {
    background: #f3f8fc url(../images/skin/information.png) 8px 50% no-repeat;
    border: 1px solid #b2d1ff;
    color: #006dba;
    margin: 10px 0 5px 0;
    padding: 5px 5px 5px 30px
}
.successMessage {
    background: #f0fff0 url(../images/skin/information-green.png) 8px 50% no-repeat;
    border: 1px solid #006d00;
    color: #006d00;
    margin: 10px 0 5px 0;
    padding: 5px 5px 5px 30px
}
.errorMessage {
    background: #fff3f3 url(../images/skin/exclamation.png) 8px 50% no-repeat;
    border: 1px solid red;
    color: #cc0000;
    margin: 10px 0 5px 0;
    padding: 5px 5px 5px 30px
}


div.errors {
    background: #fff3f3;
    border: 1px solid red;
    color: #cc0000;
    margin: 10px 0 5px 0;
    padding: 5px 0 5px 0;
}
div.errors ul {
    list-style: none;
    padding: 0;
}
div.errors li {
    background: url(../images/skin/exclamation.png) 8px 0% no-repeat;
    line-height: 16px;
    padding-left: 30px;
}

td.errors select {
    border: 1px solid red;
}
td.errors input {
    border: 1px solid red;
}

td.errors textarea {
    border: 1px solid red;
}

/* TABLES */

.list table {
    border: 1px solid #ccc;
    width: 100%
}
.list tr {
    border: 0;
}
.list td, .list th {
    font: 11px verdana, arial, helvetica, sans-serif;
    line-height: 12px;
    padding: 5px 6px;
    text-align: left;
    vertical-align: top;
}
.list th {
    background: #fff url(../images/skin/shadow.jpg);
    color: #666;
    font-size: 11px;
    font-weight: bold;
    line-height: 17px;
    padding: 2px 6px;
}
.list th a:link, .list th a:visited, .list th a:hover {
    color: #333;
    display: block;
    font-size: 10px;
    text-decoration: none;
    width: 100%;
}
.list th.asc a, .list th.desc a {
    background-position: right;
    background-repeat: no-repeat;
}
.list th.asc a {
    background-image: url(../images/skin/sorted_asc.gif);
}
.list th.desc a {
    background-image: url(../images/skin/sorted_desc.gif);
}

.list .odd {
    background: #f7f7f7;
}
.list .even {
    background: #fff;
}


/* make text links in tables link on clicking anywhere in their td (not grails default) */
.list td a:link, .list td a:visited, .list td a:hover {
    color: #333; /* Fixes link colour even if visited */
    display: block;
    font-size: 10px;
    text-decoration: none;
    width: 100%;
}


/* LIST */

.list table {
    border-collapse: collapse;
}
.list th, .list td {
    border-left: 1px solid #ddd;
}
.list th:hover, .list tr:hover {
    background: #b2d1ff;
}

/* PAGINATION */

.paginateButtons {
    background: #fff url(../images/skin/shadow.jpg) bottom repeat-x;
    border: 1px solid #ccc;
    border-top: 0;
    color: #666;
    font-size: 10px;
    overflow: hidden;
    padding: 10px 3px;
}
.paginateButtons a {
    background: #fff;
    border: 1px solid #ccc;
    border-color: #ccc #aaa #aaa #ccc;
    color: #666;
    margin: 0 3px;
    padding: 2px 6px;
}
.paginateButtons span {
    padding: 2px 3px;
}

/* overide dg-layout font size. */
.paginate { font-size: 1em; }

/* *************************************************************** */
/* Search forms                                                    */
/* *************************************************************** */

input, select, textarea {
   font-family: Arial, Helvetica, sans-serif;
}

.main-search-container {
    margin: 1em 0px 1em 1em;
    width: 10%;
}

.main-search-container .main-search-form {
    border-left: 2px solid #E0E0F0;
    border-right: 2px solid #E0E0F0;
}

.main-search-container .main-search-form form {
    padding: 8px 12px 8px 12px;
}

.main-search-container .form-holder {
    padding: 0px 1em;
}

.main-search-container .common-links {
    padding-top: 0.5em;
    font-size: 1.1em;
    white-space: nowrap;
}

.main-search-container .main-search-form table {
    margin: 0px;
}

.main-search-label {
    color: #800000;
    font-size: 2em;
    font-weight: bold;
    padding-right: 20px;
}

.search-type {
    font-size: 90%;
}

.search-summary {
    border-top: 1px solid #0088BB;
    margin: 10px 0px 2px 0px;
}

.search-summary p {
    margin-top: 0px;
    float: right;
}


/*
 * These forms need to appear inline so further forms and their buttons appear as part of the main form.
 */

/* Edit Media forms */
form#edit_media     { display: inline; }
form#delete_media   { display: inline; }
form#withdraw_form  { display:inline; }



/* *************************************************************** */
/* Listing tables                                                  */
/* *************************************************************** */

.paginate a[href]:active {
    color: #039;
}

.paginate a:visited {
    color: #039;
}

.listing {
    margin-bottom: 1em;
    width: 95%;
}

.listing td, .listing th {
    padding: 3px 10px;
    vertical-align: top;
}

.evenline {
    background: #FFFFFF;
    color: #000000;
    padding-left: 2px;
    padding-right: 2px;
    vertical-align: top;
}

.oddline {
    background: #e3e3e3;
    color: #000000;
    padding-left: 2px;
    padding-right: 2px;
    vertical-align: top;
}

.list_sep {
    margin-top: 10px;
    border-top: 1px solid #C0C0C0;
    height: 1px;
    line-height: 1px;
}

.supplemental_data {
    margin-top: 0.75em;
    font-size: 0.9em;
}

.rsupplemental_data {
    /*font-size: 0.9em;*/
    color: #666;
    float: right;
    text-align: right;
}

/* *************************************************************** */
/* Table for entity's attributes                                   */
/* *************************************************************** */

table.details {
    margin-left: 0em;
}

table.details th {
    white-space: nowrap;
    text-align: right;
}

table.details td img {
    vertical-align: -2px;
}

table.credits td {
    padding-left: 0;
    vertical-align: top;
}

/* fix width of data label colums in these tables */
table.media.details th { width: 8em;
    white-space: pre;  }

table.media.details td { text-align: justify; }

.media-sep-line {
    border-top: 1px solid #0088BB;
    margin: 0px 0px 0px 0px;
    font-size: 1px;
    clear: both;
}

.rss {
    margin-top: 1.85em;
    float: right;
}

.rss img {
    margin-bottom: -3px;
    margin-left: 7px;
    float: right;
}

.no_player {
    border: 1px solid black;
    padding: 20px;
}

/* *************************************************************** */
/* Transcript (probably *very* long, when present)                 */
/* *************************************************************** */

div.transcript {
    margin: 8px;
    padding: 0px 5px 0px 5px;
    clear: right;
}

div.transcript_text {
    border: 2px solid #ccc;
    padding: 3px;
    height: 25em;
    overflow: scroll;
}

/* Footer login details */

.footer_right {
    text-align: right;
    float: right;
}

/* **************************************************************** */
/* Table of controls for editing the image of a media or collection */
/* **************************************************************** */

table.image_selection {
    margin-top: 1em;
}
table.image_selection td {
    padding: 0 0.5em 0.5em 0;
}

/* **************************************************************** */
/* Tables for showing general statistics                            */
/* **************************************************************** */

/* Table of stats filters */
table.stats_filters {
    border-collapse: collapse;
}

table.stats_filters td {
    padding: 2px 1em 2px 0px;
}

table.stats_filters td img {
    vertical-align: -3px;
}

/* Individual stats filters */
span.stats_filter { background-color: #cce; padding: 1px 0px 1px 3px; }
span.stats_filter a { background-color: #99d; color: #400; padding: 1px 4px; }
span.stats_filter a:hover { text-decoration: none; background-color: #d88; }

/* Table grouping stats tables */
table.stats_group {
    border-width: 0px;
    margin: 0px;
}

table.stats_group td.stats {
    border-width: 0px;
    margin: 0px;
    padding: 0px 1em 0px 0px;
}

/* An individual stats table */
table.stats {
    display: table;
    border: none;
    border-collapse: collapse;
    margin-bottom: 1em;
    margin-left: 1em;
    margin-top: 1em;
    padding: 1em;
}

table.stats th {
    border: 1px solid #ccc;
    font-weight: normal;
    text-align: left;
}

table.stats th.top {
    background-color: #eee;
    font-weight: bold;
    padding-top: 1px;
    text-align: center;
    white-space: nowrap;
}

table.stats th.top span.selected {
    background-color: #e90;
    padding: 0px 4px;
}

table.stats th {
    font-weight: bold;
}

table.stats th.label {
    text-align: right;
}

table.stats td {
    border: 1px solid #ccc;
    font-weight: bold;
    text-align: right;
    vertical-align: top;
}

table.stats tr.deleted th, table.stats tr.deleted td {
    color: #999;
}

table.stats td.text {
    text-align: left;
}

table.stats td.chart {
    padding: 1em 1em 0.5em 1em;
    text-align: center;
}

table.stats td.download {
    border: none;
    font-size: 1em;
    font-weight: normal;
    padding-right: 0px;
    text-align: right;
}

table.stats th, table.stats td, table.stats_group th, table.stats_group td {
    padding: 0.0em 1em;
}

table.stats th img {
    vertical-align: -2px;
}

/* **************************************************************** */
/* Customisable stats report.                                       */
/* **************************************************************** */

form.report {
    margin-top: -1em;
}

div.report_options {
    margin-left: 2em;
    font-size: 1.2em;
}

div.report_options img {
    border: none;
    display: inline;
    float: none;
    margin: 0 0 -2px 0;
}

div.report_options table {
    margin: 0em 2em 1em 2em;
    width: 10%;
}

div.report_options td.add_remove {
    padding: 0em 2em;
    text-align: center;
    vertical-align: middle;
}

div.report_options td.up_down {
    padding-left: 2em;
    text-align: center;
    vertical-align: middle;
}

table.report_results {
    border: 1px solid black;
    border-collapse: collapse;
}

table.report_results th {
    border: 1px solid black;
}

table.report_results td {
    border: 1px solid black;
    font-weight: normal;
    text-align: left;
}

table.report_results th.top {
    text-align: left;
}

table.report_results th.right {
    text-align: right;
}

table.report_results td.right {
    text-align: right;
}

table.date_range {
    border-collapse: collapse;
}

table.date_range td {
    padding: 2px 1em 2px 0px;
    white-space: nowrap;
}

table.date_range td img {
    vertical-align: -3px;
}

/* **************************************************************** */
/* Tables for editing the list of media items in a collection       */
/* **************************************************************** */

table.edit_media_items {
    margin: 0px;
    padding: 0px;
    width: 100%;
}

table.edit_media_items td {
    padding: 0px 5px 4px 0px;
    text-align: left;
    vertical-align: top;
}

table.edit_media_items td select option {
    background-color: white;
    color: #944;
    font-style: italic;
}

table.edit_media_items td select option.imported {
    color: black;
    font-style: normal;
}

table.edit_media_items td.buttons {
    padding-top: 1em;
    text-align: center;
}

table.edit_media_items td.top {
    padding-top: 0px;
}

table.edit_media_items td.buttons input {
    margin: 1em 0px 0px 0px;
    padding: 0px;
    width: 7em;
}

table.edit_media_items td.top {
    padding-top: 0px;
}

table.edit_media_items td.top input {
    margin-top: 0px;
}

/* **************************************************************** */
/* Tables for listing things in the Job Scheduler UI.               */
/* **************************************************************** */

table.sched_listing {
    border: 1px solid #ccc;
    border-collapse: collapse;
    margin: 1em 0em;
}

table.sched_listing th {
    background-color: #eee;
}

table.sched_listing td, table.sched_listing th {
    padding: 2px 10px;
    border:1px solid #ccc;
    vertical-align: top;
}

table.sched_listing tr.failed td {
    background-color: #f88;
}

table.sched_listing tr.waiting td {
    background-color: #efe;
    color: #888;
}

td pre.code {
    background-color: #f0f0e5;
    border: 1px dashed #ccc;
    font-family: monospace;
    font-size: 10pt;
    margin: 2px 0px 0px 2px;
    padding: 0px 0.5em;
    white-space: pre-wrap;
}

/* **************************************************************** */
/* Progress bar.                                                    */
/* **************************************************************** */

.progress_container {
    position: relative;
    width: 10em;
    height: 1.5em;
    top: 0.3em;
    padding-bottom: 0.8em;
}

.progress_bg {
    position: absolute;
    width: 10em;
    height: 1.5em;
    border: 1px solid black;
    background-color: #fff;
    color: #004;
}

.progress_ubg {
    position: absolute;
    width: 10em;
    height: 1.5em;
    border: 1px solid black;
    background: url('../images/pbar-ani.gif');
    color: #004;
}

.progress_fg {
    position: absolute;
    width: 10em;
    height: 1.5em;
    border: 1px solid black;
    background-color: #004;
    color: #fff;
    overflow: hidden;
}

.progress_text {
    position: absolute;
    top: 0em;
    left: 4em;
    height: 1.5em;
    line-height: 1.5em;
}

/* **************************************************************** */
/* Media details                                                    */
/* **************************************************************** */

div.media_details {
	font-size: 0.95em;
	margin-bottom: 5px; 
}