/* 
 * HTML5 ✰ Boilerplate
 *
 * What follows is the result of much research on cross-browser styling. 
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 *
 * Detailed information about this CSS: h5bp.com/css
 * 
 * ==|== normalize ==========================================================
 */


/* =============================================================================
   HTML5 display definitions
   ========================================================================== */
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }

/* =============================================================================
   Base
   ========================================================================== */

/*
 * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
 * 2. Force vertical scrollbar in non-IE
 * 3. Prevent iOS text size adjust on device orientation change, without disabling user zoom: h5bp.com/g
 */

html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }

body { margin: 0; font-size: 12px; line-height: 1.231; }

body, button, input, select, textarea { font-family: sans-serif; color: #222; }

/* 
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate
 * Also: hot pink! (or customize the background color to match your design)
 */

::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
::selection { background: #fe57a1; color: #fff; text-shadow: none; }


/* =============================================================================
   Links
   ========================================================================== */

a { color: #00e; }
a:visited { color: #551a8b; }
a:hover { color: #06e; }
a:focus { outline: thin dotted; }

/* Improve readability when focused and hovered in all browsers: h5bp.com/h */
a:hover, a:active { outline: 0; }


/* =============================================================================
   Typography
   ========================================================================== */

abbr[title] { border-bottom: 1px dotted; }

b, strong { font-weight: bold; }

blockquote { margin: 1em 40px; }

dfn { font-style: italic; }

hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }

ins { background: #ff9; color: #000; text-decoration: none; }

mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }

/* Redeclare monospace font family: h5bp.com/j */
pre, code, kbd, samp { font-family: monospace, monospace; _font-family: 'courier new', monospace; font-size: 1em; }

/* Improve readability of pre-formatted text in all browsers */
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }

q { quotes: none; }
q:before, q:after { content: ""; content: none; }

small { font-size: 85%; }

/* Position subscript and superscript content without affecting line-height: h5bp.com/k */
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }


/* =============================================================================
   Lists
   ========================================================================== */

ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }


/* =============================================================================
   Embedded content
   ========================================================================== */

/*
 * 1. Improve image quality when scaled in IE7: h5bp.com/d
 * 2. Remove the gap between images and borders on image containers: h5bp.com/e 
 */

img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }

/*
 * Correct overflow not hidden in IE9 
 */

svg:not(:root) { overflow: hidden; }


/* =============================================================================
   Figures
   ========================================================================== */

figure { margin: 0; }


/* =============================================================================
   Forms
   ========================================================================== */

form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }

/* Indicate that 'label' will shift focus to the associated form element */
label { cursor: pointer; }

/* 
 * 1. Correct color not inheriting in IE6/7/8/9 
 * 2. Correct alignment displayed oddly in IE6/7 
 */

legend { border: 0; *margin-left: -7px; padding: 0; }

/*
 * 1. Correct font-size not inheriting in all browsers
 * 2. Remove margins in FF3/4 S5 Chrome
 * 3. Define consistent vertical alignment display in all browsers
 */

button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }

/*
 * 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
 * 2. Correct inner spacing displayed oddly in IE6/7
 */

button, input { line-height: normal; *overflow: visible; }

/*
 * Reintroduce inner spacing in 'table' to avoid overlap and whitespace issues in IE6/7
 */

table button, table input { *overflow: auto; }

/*
 * 1. Display hand cursor for clickable form elements
 * 2. Allow styling of clickable form elements in iOS
 */

button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; }

/*
 * Consistent box sizing and appearance
 */

input[type="checkbox"], input[type="radio"] { box-sizing: border-box; }
input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }

/* 
 * Remove inner padding and border in FF3/4: h5bp.com/l 
 */

button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }

/* 
 * 1. Remove default vertical scrollbar in IE6/7/8/9 
 * 2. Allow only vertical resizing
 */

textarea { overflow: auto; vertical-align: top; resize: vertical; }

/* Colors for form validity */
input:valid, textarea:valid {  }
input:invalid, textarea:invalid { background-color: #f0dddd; }


/* =============================================================================
   Tables
   ========================================================================== */

table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: middle; }


/* ==|== primary styles =====================================================
   Author: La&La
   ========================================================================== */

/* basics */

body { 
    margin: 0; 
    padding: 0;
}

body, button, input, select, textarea { font-family: "Lucida Grande", "Lucida Sans Unicode", sans-serif;  color: #222; }

.alignnone { display: block;}
.aligncenter { display:block; margin:0 auto }
.alignleft { float:left }
.alignright { float:right }
.overflowauto { overflow: auto }

a:link, a:visited {
    color: #0067B6;
    text-decoration: none;
}

a:hover {
    color: grey;
}

a.img {
    border: none;   
}

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

button, input, select, textarea {
	margin: 1px;
  max-width: 95%;
}

input[type="checkbox"] {
  margin-right: 3px;
  margin-bottom: 5px;
  margin-left: 5px;
}
 
.table {
	width: 100%;
	font-family: "Lucida Grande", sans-serif, "Trebuchet MS";
	font-size: 11px;
	font-weight: normal;
	color: #000000;
	border-collapse: collapse;
	border: 1px solid #e4e4e4;
}
.table td {
	height: 24px;
	padding-left: 4px;
	border-right: 1px solid #e4e4e4;
  max-width: 120px;
}
#content.missing_works .table td {
	border-bottom: 1px solid #222222;
}
.table td:first-child {
	font-weight: bold;
}
.table td a {
	text-decoration: none;
	font-weight: bold;
	color: #0067b6
}
.table td.small {
	width: 20px;
}
.table tr {
	line-height: 20px;
}
.table th {
	height: 24px;
	text-align: left;
	padding-left: 4px;
	border: 1px solid #e4e4e4;
}
.table th a {
	text-decoration: none;
	font-weight: bold;
	color: #0067b6
}
.table_row_odd {
	background-color: #f3f7fa
}
.table_row_even {
	background-color: white
}
.table textarea {
	width: 97%;
}

.table_form {
	border-spacing: 3px;
	border-collapse: separate;
	margin-top: 15px;
}

.color_table {
	width: 300px;
	font-weight: normal;
}

.color_table td {
	padding-left: 8px;
	padding-bottom: 5px;
}

.color_table div {
	margin-right: 8px;
	margin-left: 8px;
}

.table-paging {
  margin: 0 0.5em;
  display: flex;
  justify-content: space-between;
  
}

.input_small input {
	width: 30px;
}

.input_medium input {
	width: 65px;
}

.small_margin_left {
	margin-left: 10px;
}

h1 {
	font-size: 1.5em;
	font-weight: bold;
    margin-bottom: 4px;
	margin-top: 8px;
}

h2 {
	font-size: 1.3em;
	font-weight: bold;
	margin-bottom: 4px;
	margin-top: 8px;
}

h3 {
	font-size: 1.1em;
	font-weight: bold;
	margin-bottom: 4px;
	margin-top: 8px;
}

h4 {
	font-size: 1em;
	font-weight: bold;
	margin-bottom: 4px;
	margin-top: 8px;
}

/* General layout */

.form_header {
	width: 100%;
	background: #bbb;
}

.form_header h3 {
	color: #fff;
	padding: 2px 0 2px 7px;
	margin: 0px;
}

#head {
	padding: 13px 16px 25px 16px;
	overflow: auto;	
	font-size: 14px;
	color: #CCC;
}

#head_left {
	width: 60%;
}

#head_right {
	width: 40%;
	text-align: right;
}

#head_menu {
	margin-bottom: 10px;
	font-weight: bold;
}

#head_search {
	display: block;
}

#head_search_field {
	font-size: 14px;
	border: double medium;
	height: 20px;
	width: 300px;
	border-color: #CCC;
}

#head_search_button {
	font-size: 11px;
	font-weight: bold;
	color: black;
	width: auto;
	height: 23px;
	padding-left: 12px;
	padding-right: 13px;
	margin-left: 4px;
	border-style: solid;
	border-width: 1px;
	border-color: #CCC;
	background-image: url(../img/btn_grey_bgr.gif);
}

#head_user, #head_menu_side {
	font-size: 11px;
}

#head_user {
	margin-bottom: 28px;
}

#head_menu_side {
}

#content {
	width: 990px;
	overflow: auto;
	border-right: 4px solid #fff;
	border-bottom: 4px solid #fff;
	border-left: 4px solid #fff;
	padding-bottom: 20px;
}

#content.missing_works {
	width: 1190px;
}

#home {
	padding: 4px;
}

#home_left {
	width: 40%;
}

#home_center {
	width: 30%;
}

#home_right {
	width: 30%;
}

#home img {
	padding: 4px;
	background:#fff;
	border: 1px solid #ccc;
	margin-right: 4px;
	width: 128px;
}

.home_work_details {
	width: 170px;
	overflow: hidden;
}

.home_work_status {
	text-transform: uppercase;
	font-weight: bold;
}

.home_work {
	overflow: auto;
	padding: 4px;
}

.home_work_details h3 {
	margin: 0px;
}

.home_work_status_available {
	color: #66a600;
}

.home_work_status_away {
	color: #66a600;
}

.home_work_status_reserved {
	color: #D6CF00;
}

.home_work_status_rented {
	color: #f89e01;
}

.home_work_status_sold {
	color: #f90d1b;
}

.home_work_status_created {
	color: #2a2a2a;
}

.home_work_status_missing {
	color: #3573C4;
}

.home_work_status_void {
	color: #868686
}

.home_work_total_count {
	/*text-align: right;*/
}

.home_status_row {
	height: 24px;
}

.home_missing_count a {
	color: rgb(41,153,29);	
}

.home_missing_count_alert a {
	color: rgb(189,34,32);
}

.home_work_count_alert a {
	color: rgb(41,153,29);
}

.home_heading {
	margin-bottom: 20px;
}

td.home_status_type {
	width: 100px;
}

#artist {
	background: #ececec;
	padding: 4px;
	width: 320px;
}

#artist img {
	padding: 4px;
	background:#fff;
	border: 1px solid #ccc;
	margin-right: 4px;
	width: 128px;
}

#artist_works img {
    width: 162px;
}

#artist_works h2 {
    background: #424242;
    height: 26px;
    color: #e4e4e4;
    padding-left: 8px;
    line-height: 1.5em;
}

#artist_work_head_title {
	width: 380px;
}

.artist_work_long_input {
	width: 300px;
}

.artist_work_details {
	width: 136px;
	overflow: hidden;
}

.artist_work_status {
	width: 138px;
	height: 20px;
	text-align: center;
	text-transform: uppercase;
	color: #fff;
	font-weight: bold;
	padding-top: 3px;
}

.artist_work_details  .artist_work_status {
	width: auto;
    margin: 1px 0 5px 0;
    line-height: 1.4;
}

.artist_work {
	overflow: auto;
	padding: 5px 4px;
    border-top: 1px solid #c0c0c0;
}

.artist_work_details h3 {
	margin: 0px;
}

.artist_work_selected {
	background: #c6c6c6;
}

.artist_work_status_available {
	background: #66a600;
}

.artist_work_status_away {
	background: #66a600;
}

.artist_work_status_reserved {
	background: #D6CF00;
}

.artist_work_status_rented {
	background: #f89e01;
}

.artist_work_status_sold {
	background: #f90d1b;
}

.artist_work_status_created {
	background: #2a2a2a;
}

.artist_work_status_missing {
	background: #3573C4;
}

.artist_work_status_void {
	background: #868686
}

.artist_work_image {
	overflow: auto;
}

#artist_details ul {
	width: 170px;
    word-wrap: break-word;
}

#artist_edit_work {
	width: 650px;
	padding: 4px;
}

#artist_edit_work > div {
	margin-bottom: 3px;
}

#artist_edit_work li {
	margin: 6px 0px 10px 0px;
  clear: both;
}

#artist_edit_work_head {
	width: 650px;
	overflow: auto;
}

#artist_edit_work_head > div:first-child {
	margin: 0 8px 0 0;
}

#artist_edit_work_head > div {
	margin: 0 0 0 8px;
}

#artist_edit_work_head h2 {
	margin: 0;
}

#artist_edit_work_head form {
	font-size: 1.1em;
}

#artist_edit_work_head_id {
	font-weight: normal;
	color: #aaa;
}

#artist_edit_work_status {
	width: 100%;
	overflow: auto;
}

#artist_edit_work_left {
	width: 50%;
	overflow: auto;
	float: left;
	width: 339px;
}

#artist_edit_work_right {
	width: 50%;
	overflow: auto;
	width: 310px;
	padding-left: 1px;
}

.artist_work_image_box {
	padding: 4px;
	background:#fff;
	border: 1px solid #ccc;
	margin-bottom: 4px;
}

.artist_work_image_inner_box {
	width: 300px;
	height: 210px;
	display: table-cell;
	vertical-align: middle;
	text-align: center;
	background:#c6c6c6;
}

#artist_edit_work_color_table div {
	width: 12px;
	height: 12px;
	overflow: auto;
}

#artist_work_colors div, #artist_work_genre_div div {
	margin: 3px;
}

#artist_edit_work_foot {
	width: 100%;
	overflow: auto;
}

#foot {
	height: 50px;	
}

/* Mass edit for works with missing values */

.artist_edit_work_missing {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border-bottom: solid 20px #bbb;
  padding-bottom: 20px;
  margin-bottom: 4px;
}

.works-work #artist_edit_work_head {
  width: 100%;
  margin-top: 4px;
}

.artist_edit_work_missing_left {
  width: 536px;
}

.artist_edit_work_missing_right {
  width: 650px;
}

.artist_edit_work_missing > div > div {
  margin-top: 4px;
}

.artist_edit_work_missing .artist_edit_work_missing_image {
  height: 130px;
  margin-left: 18px;
}

.artist_edit_work_missing .artist_edit_work_missing_image img {
  height: 100%;
}

.artist_edit_work_missing #form_artist_work_basicinformation {
  margin-left: 18px;
}

.works-navigation {
  margin: 8px;
}

/*
.artist_edit_work_missing > div {
  margin-top: 4px;  
}

.artist_edit_work_missing .artist_edit_work_missing_image {
  width: 200px;
  margin-right: 4px;
}
.artist_edit_work_missing .artist_edit_work_missing_image img {
  width: 100%;
}
.artist_edit_work_missing .artist_edit_work_missing_status {
  flex-grow: 2;
}
.artist_edit_work_missing .artist_edit_work_missing_basic {
  width: calc(50% - 2px);
}
.artist_edit_work_missing .artist_edit_work_missing_other {
  width: calc(50% - 2px);
  margin-left: 4px;
}
.artist_edit_work_missing .artist_edit_work_missing_other > div {
  margin-bottom: 4px;
}
*/

/* Special */

/* ajax loading */

#loadingDiv {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 47px;
	height: 47px;
	margin-left: -23px;
	margin-top: -23px;
	background: #fff;
	border: 1px solid #eee
}

#loadingDiv img {
	margin-top: 7px;
	margin-left: 8px;
}

/* shadows and other effects */

.gradient_bottom {
	background-color: #ffffff;
	background: -webkit-gradient(linear, 0% 100%, 0% 83%, from(#ccc), to(#fff));
	background: -webkit-linear-gradient(bottom, #ccc, #fff 15px);
	background: -moz-linear-gradient(bottom, #ccc, #fff 15px);
	background: -ms-linear-gradient(bottom, #ccc, #fff 15px);
	background: -o-linear-gradient(bottom, #ccc, #fff 15px);
	border-bottom: 1px solid #ccc;
}

.gradient_bottom_blue {
	background-color: #F3F7FA;
	background: -webkit-gradient(linear, 0% 100%, 0% 83%, from(#ccc), to(#F3F7FA));
	background: -webkit-linear-gradient(bottom, #ccc, #F3F7FA 15px);
	background: -moz-linear-gradient(bottom, #ccc, #F3F7FA 15px);
	background: -ms-linear-gradient(bottom, #ccc, #F3F7FA 15px);
	background: -o-linear-gradient(bottom, #ccc, #F3F7FA 15px);
	border-bottom: 1px solid #ccc;
	border: 4px solid white;
}

.gradient_table_row {
	background-color: #ffffff;
	background: -webkit-gradient(linear, 0% 100%, 0% 83%, from(#ccc), to(#fff));
	background: -webkit-linear-gradient(white, #ddd, white);
	background: -moz-linear-gradient(white, #ddd, white);
	background: -ms-linear-gradient(white, #ddd, white);
	background: -o-linear-gradient(white, #ddd, white);
	border-bottom: 1px solid #ccc;
}

.shadow_below {
	-moz-box-shadow:       0px 3px 5px 3px #aaa;
	-webkit-box-shadow:    0px 3px 5px 3px #aaa;
	box-shadow:            0px 3px 5px 3px #aaa;
}

.round_corners_below {	
	-webkit-border-radius: 0px 0px 15px 15px;
	-moz-border-radius:    0px 0px 15px 15px;
	border-radius:         0px 0px 15px 15px;
}

.round_corners {	
	-webkit-border-radius: 5px 5px 5px 5px;
	-moz-border-radius:    5px 5px 5px 5px;
	border-radius:         5px 5px 5px 5px;
}

/* UI specials */


#div_additional_features_menu {
	/*position: relative;*/
	display: inline;
}

#div_additional_features {
	position: absolute;
	background-color: white;
	min-width: 70px;
	min-height: 50px;
	border: 1px solid #cccccc;
	padding: 5px;
	margin: 0 0 0 0;
}
#div_additional_features p {
	margin: 0;
}

/* pop-ups */


.div_popup {
	padding: 15px;
}

div#div_edit_title,div#div_add_copy,div#div_new_media,div#div_add_attachment,div#div_edit_copy,div#div_new_text, #div_newperson,
#div_neworganization, #div_create_keyword, #div_new_rights, #div_add_image, #div_edit_role, #div_advanced_search, #div_joincompilation, #div_newcompilation, #div_login {
  position:absolute;
  top: 0;
  left: 0;
  display: none;
/*  z-index: 2; */
}

div#div_edit_title {
  background-color: #fff0f0;
}



div#div_add_attachment {
  padding:50px;
}


#div_create_keyword table td {
 padding: 0 0 0 4px; 
 border-collapse: collapse;
}

#createkeyword_parent, #createkeyword_parent_box {
	display: none;
}

/* works editor */

.works-work {
  
}

.works-work  #artist_edit_work_left {
  width: 100%;
}

.works-work  #artist_edit_work_left > ul {
  display: flex;
}

.works-work  #artist_edit_work_left > ul > li {
  width: 25%;
}

.works-work  #artist_edit_work_left > ul > li:first-of-type {
  width: 50%;
}






/* ==|== non-semantic helper classes ========================================
   Please define your styles before this section.
   ========================================================================== */

/* For image replacement */
.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; }
.ir br { display: none; }

/* Hide from both screenreaders and browsers: h5bp.com/u */
.hidden { display: none !important; visibility: hidden; }

/* Hide only visually, but have it available for screenreaders: h5bp.com/v */
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }

/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }

/* Hide visually and from screenreaders, but maintain layout */
.invisible { visibility: hidden; }

/* Clear floats: edited by Leena to support also explorer 7 */ 
.clearfix {      
	 clear: both;
     display: block;
     height: 0;
     overflow: hidden;
     visibility: hidden;
     width: 0; 
	 }


/* ==|== media queries ======================================================
   PLACEHOLDER Media Queries for Responsive Design.
   These override the primary ('mobile first') styles
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 480px) {
  /* Style adjustments for viewports 480px and over go here */

}

@media only screen and (min-width: 768px) {
  /* Style adjustments for viewports 768px and over go here */

}



/* ==|== print styles =======================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */
 
@media print {
  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
  a, a:visited { text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
  pre, blockquote { page-break-inside: avoid; }
  thead { display: table-header-group; } /* h5bp.com/t */
  tr, img { page-break-inside: avoid; }
  img { max-width: 100% !important; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3 { page-break-after: avoid; }
}
