/* @override https://waterhousedodd.dekodesign.com/css/stylesheet.css */

#financialsOverlay {
	position: fixed;
	z-index: 9998;
	top: 26px;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #000;
	cursor: pointer;
	opacity: 0.7;
}

html {
	width: 100%;
}
body {
	background-color: white;
	width: 100%;
}
.cwCompleteChoices {
	max-height: 300px;
	overflow: scroll;
	line-height: 10px;
}
.cwCompleteChoices li {
	margin: 0px 10px !important;
	padding: 2px 10px !important;
}
/* @group Controls */

body.form div.controls a.find {
	opacity: 0;
}
body.form div.controls a.button.view-form {
	display: none;
}
body.find div.controls a.button.view-find {
	display: none;
}


input,textarea {
	background-repeat: no-repeat;
	overflow: hidden;
}
input {
	background-position: right center;
}
textarea {
	background-position: right 5px;
}
.saving {
	background-image: url(https://www.dekodesign.com/dbapi2/images/loading.gif);
}
.hash_mismatch {
	background-image: url(https://www.dekodesign.com/dbapi2/images/alert.png);
}

/* @end */

/* @group Login Page */

body.login {
	margin: 20px;
}
body.login img {
	margin: 0 0 5px 4px;
}
body.login input[type="submit"] {
	margin: 5px 0 0 67px;
}

/* @end */

/* @group Generic Formatting */

div.calendar-eightysix.default {
	background-color: white !important;
	border: 1px solid #ccc;
} 
div.content {
	width: 100%;
	padding: 26px 0 0 0;
}
div.container {
	width: 100%;
	min-width: 1200px;
	display: block;
	min-height: 100%;
	margin-bottom: -60px;
	position: relative;
}
div.controls {
	display: block;
	width: 100%;
	min-width: 1500px;
	border-width: 0 0 1px 0;
	border-style: solid;
	border-color: #ccc;
	background-color: white;
	background-image: none;
	font-size: 11px;
	color: black;
	text-shadow: none;
	position: fixed;
	z-index: 1000;
}
div.controls a {
	color: inherit;
}
div.controls div.control_group.buttons,
div.controls form.global_search,
div.controls div.control_group.status {
	float: left;
}
div.controls div.control_group.layouts,
div.controls div.directionals {
	float: right;
}



div.group {
	border-radius: 0;
	box-shadow: none;
}
label {
	text-transform: uppercase;
	text-align: right;
	margin: 0 5px 0 0;
	font-size: 9px;
	font-family: helvetica;
	color: #444444;
}
div.align-vertical label {
	vertical-align: top;
	margin-top: 6px;
}
div.group {
	margin: 0 0 0 0;
	padding: 0;
}
body.inventory div.group.details {
	float: left;
	width: 780px;
	margin-left: -100%;
}
div.group.details input:first-child,
div.group.details textarea:first-child {
	margin-left: 80px;
}
div.checkbox_set label {
	text-align: left;
	width: auto;
}
/* @group Primary Image */

div.group.image {
	width: 100%;
	float: left;
}
div.group.image div.inner {
	width: 420px;
}
div.group.image div.inner div.image_holder {
	width: 420px;
	height: 420px;
	background-color: #f7f7f7;
	padding-top: 1px;
}
div.group.image img.primary {
	max-width: 400px;
	max-height: 400px;
	margin: 10px auto 10px auto;
	display: block;
}
div.group.image div.inner {
	margin-left: 780px;
	padding: 0 20px 0 0;
}

/* @end */

div.controls.bottom {
	position: relative;
	z-index: 0;
}
.cwCompleteChoices {
	position: absolute;
	z-index: 100000;
}
div.nicEdit-main div.image_holder {
	background-color: #eee;
}
textarea.expandable.expanded {
	position: relative;
	z-index: 1000;
	height: 400px;
	margin-bottom: -350px;
}	
a.popoutArrow {
	cursor: pointer;
	z-index: 1001;
}
/* @end */

/* @group Inventory Fields */

/* @group Financials */

div#financials_panel {
	padding: 20px;
	width: 800px;
	height: 450px;
	z-index: 10000;
	position: absolute;
	display: none;
	background-color: white;
}

div#financials_panel input {
	width: 80px;
}
div#financials_panel input[name="inventory.invoice_details"] {
	width: 140px;
}

div#financials_panel input[name="inventory.source"] {
	width: 244px;
}
div#financials_panel input[name="inventory.payment_details"] {
	width: 640px;
}
div#financials_panel input[name="inventory.wd_ownership_percentage"] {
	width: 30px;
}
div#financials_panel input[name="inventory.no_of_ptnrs"] {
	width: 30px;
}
div#financials input[name="inventory.owner"],
div#financials input[name="calcs.invest_purch_price"] {
	width: 135px;
}
div#financials_panel input[name="inventory.consignment_terms"] {
	width: 464px;
}
div#financials_panel input[name="inventory.alloc_invest"] {
	width: 95px;
}
div#financials_panel input[name="inventory.__net_net_profit"] {
	width: 85px;
}

div#financials_panel input[name="inventory.third_party_agent"] {
	width: 260px;
}
div#financials_panel input[name="inventory.local_sales_price_currency"] {
	width: 40px;
}
div#financials_panel input[name="inventory.how_sold"] {
	width: 640px;
}
div#financials_panel div.subtable[title="expenses"] {
	height: 220px;
}
div#financials_panel div.subtable[title="expenses"] input[name="expenses.amount"],
div#financials_panel div.subtable[title="expenses"] input[name="expenses.amount_sterling"] {
	text-align: right;
}
div#financials_panel div.subtable input,
div#financials_panel div.subtable select {
	width: 100%;
}
div#financials_panel input[name="inventory.expense_notes"] {
	width: 640px;
}
/* @end */

input[name="calcs.artist_full_name"] {
	width: 235px;
}
a[name="inventory.artist_id"] {
	position: absolute;
	margin-left: -20px;
	font-size: 8px;
	margin-top: 6px;
	cursor: pointer;
	z-index: 10;
}
input[name="calcs.birth_date"] {
	width: 40px;
}
input[name="calcs.death_date"] {
	width: 40px;
}
input[name="inventory.id"] {
	width: 40px;
}

a#stock_number_button {
	
}
select#stock_number_select {
	display: none;
}
input[name="inventory.stock_no"] {
	width: 80px;
}
input[name="inventory.title"] { width: 664px; }

input[name="inventory.english_title"] { width: 339px; }

input[name="inventory.dates"] { width: 75px; }

input[name="inventory.medium"] { width: 314px; }
input[name="calcs.artist_nationality"] { width: 100px; }

input[name="inventory.imperial_height"],
input[name="inventory.imperial_width"],
input[name="inventory.imperial_depth"],
input[name="inventory.metric_height"],
input[name="inventory.metric_width"],
input[name="inventory.metric_depth"] {
	width: 40px;

}
input[name="inventory.dimensions_in"],
input[name="inventory.dimensions_cm"] {
	width: 200px;
}

input[name="inventory.location"] { width: 290px; }

input[name="inventory.signature"],
input[name="inventory.authenticity"]
 { width: 664px; }

textarea[name="inventory.artwork_details"] { width: 664px; height: 50px; margin-top: 3px; }



textarea[name="inventory.exhib_and_prov"] { width: 664px; height: 50px; margin-top: 3px; }

textarea[name="inventory.notes"] { width: 664px; height: 50px; margin-top: 3px;}

textarea[name="inventory.tear_sheet_notes"] { width: 664px; height: 50px; margin-top: 3px;}

input[name="inventory.fair"] {
	width: 664px;
}

input[name="inventory.inv"] { width: 60px; }

input[name="inventory.sold_date"] { width: 80px; }

input[name="inventory.invoice_details"] { width: 306px; }

input[name="inventory.list_price"],
input[name="calcs.dollar_price"],
input[name="calcs.euro_price"],
input[name="inventory.sold_price_uk"],
input[name="inventory.sold_export"],
input[name="inventory.local_sales_price"] { width: 95px; }

input[name="inventory.local_sales_price_currency"] {
	width: 40px;
}

input[name="inventory.dollar_rate"],
input[name="inventory.euro_rate"] {
	width: 30px;
}

input[name="inventory.arr_estimate"],
input[name="inventory.final_arr_value"],
input[name="inventory.ta_value"] {
	width: 60px;
}
input[name="inventory.ta_entry_date"] {
	width: 95px;
}
input[name="inventory.bond"] {
	width: 500px !important;
}


div.open_financials {
	clear: both;
}
div.open_financials a {
	margin-left: 80px;
	font-size: 10px;
	color: #444444;	
}



/* @group Document Upload Button */

span.upload_button {
	display: none;
}
span.upload_button.value-allow_upload {
	display: inline;
}

/* @end */



/* @end */

/* @group Artist Fields */

input[name="artists.first_name"] { width: 120px; }

input[name="artists.last_name"] { width: 230px; }

input[name="artists.titles"] { width: 365px; }

input[name="artists.dates"] { width: 215px; }

input[name="artists.birth_date"],
input[name="artists.death_date"]  { width: 60px; }

input[name="artists.nationality"] { width: 365px; }

textarea[name="artists.notes"]  { width: 365px; height: 100px; }

textarea[name="artists.bio"]  { margin-top: 3px;width: 365px; height: 100px; }

div.subtable[title="inventory"] {
	margin-top: 1px;
	width: 400px;
}
div.subtable[title="inventory"] th:first-child {
	width: 30px;
}
div.subtable[title="inventory"] td a span {
	cursor: pointer;
}

/* @end */

/* @group Contact Fields */
select[name="contacts.type"] {
	margin-left: -4px;
}
input[name="contacts.rw_jd"] {
	width: 76px;
}
input[name="contacts.category"],
input[name="contacts.contemporary_cat"],
input[name="contacts.fab_cat"] {
	width: 76px;
}
input[name="contacts.title"] { width: 60px;  }

input[name="contacts.name"] { width: 120px; }
input[name="contacts.surname"] { width: 200px; }

input[name="contacts.salutation"] { width: 410px; }

input[name="contacts.company_name"] { width: 230px; }

input[name="contacts.type_of_business"] { width: 125px; }

input[name="contacts.address_1"] { width: 410px; }

input[name="contacts.address_2"] { width: 410px; }

input[name="contacts.address_3"] { width: 410px; }

input[name="contacts.area"] { width: 410px; }

input[name="contacts.phone"],
input[name="contacts.fax"] {
	width: 177px;
}
input[name="contacts.e-mail"] {
	width: 177px;
}
textarea[name="contacts.method_result"] {
	width: 410px;
	height: 60px;
	margin-left: -4px;
}
textarea[name="contacts.notes"] {
	width: 410px;
	height: 60px;
}
body.contacts div.group.type {
	margin-top: 22px;
}

div.type div.type-contemporary,
div.type div.type-mailing_list,
div.type div.type-trade_supplier {
	display:  none;
}
div.type.value-contemporary div.type-contemporary,
div.type.value-mailing_list div.type-mailing_list,
div.type.value-trade_supplier div.type-trade_supplier {
	display: block;
}

textarea[name="contacts.work_description"],
textarea[name="contacts.exhibition"],
textarea[name="contacts.sales"] {
	width: 410px;
	height: 60px;
	margin-top: 2px;
}
input[name="contacts.contact"] { width: 30px; }
input[name="contacts.first_contact"],
input[name="contacts.last_contact"] {
	width: 70px;
}
input[name="contacts.price_range"] {
	width: 81px;
}
input[name="contacts.entry_date"],
input[name="contacts.contact_date"] {
	width: 100px;
}
input[name="contacts.schools"],
input[name="contacts.nationality"],
input[name="contacts.subjects"] {
	width: 172px;
}
input[name="contacts.artists"],
input[name="contacts.interests"],
input[name="contacts.types"] {
	width: 410px;
}
textarea[name="contacts.sundry"],
textarea[name="contacts.sundry_2"] {
	width: 410px;
	height: 60px;
	margin-top: 2px;
}
input[name="contacts.catalogue"],
input[name="contacts.offer"],
input[name="contacts.offer_date"],
input[name="contacts.send_faf"] {
	width: 63px;
}
input[name="contacts.tickets"],
input[name="contacts.purchases"] {
	width: 410px;
}
input[name="contacts.omit"],
input[name="contacts.euro"],
input[name="contacts.country"],
input[name="contacts.card"] {
	width: 43px;
}

/* @end */



/* @group Generic Subtable Formatting */

body.inventory div.details div.subtable {
	width: 668px;
	height: 63px;
	border-color: #ccc;
	border-width: 0 1px 1px 1px;
	border-style: solid;
	margin: 2px 0 4px 85px;
	overflow: auto;
}
body.inventory div.details div.subtable label {
	position: absolute;
	margin-left: -86px;
	margin-top: 3px;
	overflow: visible;
}
div.details div.subtable table {
	width: 100%;
	margin: 0;
	padding: 0;
	border-collapse: collapse;
}
div.details div.subtable table select {
	height: 16px;
	border-color: #ccc;
	border-width: 0 1px 1px 0;
	border-style: solid;
	background-color: white;
	-webkit-appearance: none;
	-webkit-border-radius: 0px;
	text-align: right;
	float: right;
	padding-left: 7px;
	font-size: 9px;
	width: 100%;
}
div.details div.subtable table select.position {
	width: 24px;
}
div.details div.subtable table td {
	padding-right: 1px;
	font-size: 10px;
}
div.details div.subtable table input:first-child {
	margin: 0 0 0 0;
	padding: 1px 0 1px 0px;
	width: 100%;
	background-color: white;
	border-color: #ccc;
	border-width: 0 1px 1px 0;
	border-style: solid;
}
div.details div.subtable th {
	font-weight: normal;
	font-size: 9px;
	text-transform: uppercase;
	background-color: #ccc;
	margin: 0;
	padding: 2px 2px;
}
div.details div.subtable td {
	margin: 0;
}

/* @end */

/* @group Image Thumbnails */

div.subtable[title="images"] {
	margin: 30px 0 0 -5px;
	padding: 10px 0 0 0;
	height: 47px !important;
	clear: both;
}
div.subtable div.thumbnail div.thumbnail_controls {
	position: absolute;
	opacity: 0;
	margin-top: 46px;
	background-color: white;
	width: 60px;
	height: 14px;
	-webkit-transition: opacity .15s ease-in-out;
	-moz-transition: opacity .15s ease-in-out;
	-ms-transition: opacity .15s ease-in-out;
	-o-transition: opacity .15s ease-in-out;
	transition: opacity .15s ease-in-out;
}
div.subtable div.thumbnail:hover div.thumbnail_controls {
	opacity: 1;
}
div.subtable div.thumbnail {
	background-color: #f7f7f7;
	width: 60px;
	height: 60px;
}
div.subtable div.thumbnail img {
	display: block;
	margin: 5px auto 0 auto;
}
div.thumbnail_controls select {
	font-size: 9px;
	width: 20px;
	height: 14px;
	float: left;
	border-color: #ccc;
	border-width: 0 1px 0 0;
	-webkit-appearance: none;
	-webkit-border-radius: 0px;
	
}
div.thumbnail_controls a {
	display: block;
	float: left;
	width: 10px;
	height: 10px;
	margin-left: 3px;
	font-size: 9px;
	background-color: white;
}

/* @end */

/* @group Other subtables */

div.subtable[title="consignments_in"] {
	height: 50px !important;
}
div.subtable[title="transaction_history"] {
	width: 330px !important;
	margin-top: 20px !important;
	float: left;
}
div.subtable[title="bridge_albums_inventory"] {
	margin-top: 42px !important;
	width: 420px !important;
	height: 202px !important;
	margin-left: 0 !important;
}
div.subtable[title="bridge_albums_inventory"] label {
	text-align: left;
	position: relative;
	width:  200px;
	margin-left: 0 !important;
	margin-top: -12px !important;
}
input[name="bridge_albums_inventory.album_title"] {
	margin: 0 0 0 0;
	padding: 1px 0 1px 0px;
	width: 100%;
	background-color: white;
	border-color: #ccc;
	border-width: 0 1px 1px 0;
	border-style: solid;
}
div.subtable[title="documents"] table {
	border-top: 1px solid #ccc;
}
div.subtable[title="documents"] table td {
	padding: 3px;
}



/* @end */

/* @group List Views */

table.list {
	font-size: 10px;
	width: 100%;
}
table.list thead {
	background-color: #ccc;
	width: 100%;
	white-space: nowrap;
	text-transform: uppercase;
	font-weight: normal;
	font-size: 9px;
}
table.list th {
	font-weight: inherit;
}
table.list th:first-child {
	white-space: nowrap;
	text-transform: uppercase;
	font-weight: normal;
	font-size: 9px;
	padding: 3px 22px;
}
table.list tbody {
	width: 100%;
}
table.list tr {

}
table.list tr td:first-child {
	padding-left: 21px;
}
table.list tbody tr:hover {
	background-color: #ddd !important;
}
table.list tbody tr:nth-child(odd) {background: #eee}
table.list tbody tr:nth-child(even) {background: #FFF}

/* @end */

/* Print Controls */
.print-controls {
	position: fixed;
	width: 100%;
	height: 30px;
	padding: 5px 15px;
	background-color: #ccc;
	color: black;
	z-index: 1;
	top: 0;
	box-sizing: border-box;
}
@media print {
	.print-controls {
		display: none;
	}
}