/*************************************************************************************************/
/* CONTENT */

/* WHITESPACE RESET */
* { margin:0; padding:0; }
h3, h4, h5, h6, p, pre, blockquote, label, ul, ol, dl, fieldset, address { margin:1em 0; }
li, dd { margin-left:2em; }
fieldset { border:none; padding:.5em; }

/* BODY */
html { font-size:100.1%; height:100%; }
body { background:#D6CAB1 url("../_img/body.gif") repeat-x; color:#333; font:62.5%/1.4 tahoma, arial, sans-serif; height:100%; }

/* HEADINGS */
h1 a { background:url("../_img/h1-a.gif"); display:block; font-size:0; height:38px; left:-10px; overflow:auto; position:absolute; text-indent:-99em; top:4px; width:388px; z-index:1; }
h2 { background:url("../_img/h2.gif") right 0 no-repeat; border-left:1px solid #005693; font-size:1.75em; font-weight:normal; height:39px; letter-spacing:-1px; margin:0 -7px 0 -1px; padding:10px 0 0 27px; }
h2 > a { text-decoration:none; }
h2 .arrow { background:url("../_img/expand.gif") 3px 6px no-repeat; font-size:0; padding:15px 4px; }
h2 small { font-size:.55em; letter-spacing:0; }
h3 { clear:left; color:#7D5B33; font-size:1.45em; font-weight:normal; margin:1em 0 .3em 0; }
#content > h3 { margin:2em 0 .3em 28px; }
#content > #jobs-buttons + h3 { margin-top:1em; }
.column h3, .column h4 { color:#568; }
h4 { clear:left; color:#7D5B33; font-weight:normal; font-size:1em; }

/* TABLES */
table { border-collapse:collapse; }
td, th { padding:.5em; vertical-align:top; }
th { text-align:left; white-space:nowrap; }
td table { width:100%; }

/* LINKS */
a, a:active { color:#00669B; outline:none; }
a:hover { color:#38B; cursor:pointer; text-decoration:none; }

/* FORMS */
input, select, textarea, optgroup { font:1em/1.4 tahoma, arial, sans-serif; }
textarea { background:url("../_img/textarea.png") no-repeat; border:none; border-bottom:1px solid #D7D6D6; border-right:1px solid #E8E8E7; padding:3px 5px; max-height:250px; }
textarea:focus { background-position:0 -250px; }
option { padding-right:10px; }
optgroup option { padding:0 5px .1em .5em; position:relative; top:.2em; }
optgroup { border-top:1px solid #BBB; font-weight:bold; padding:.3em .3em .5em .3em; }
input[type="text"] { background:url("../_img/input-text-smaller.png") no-repeat; border:none; height:18px; padding:4px 1px 2px 8px; width:155px; }
input[type="text"]:focus { background-position:0 -24px; }
input[type="text"].big { background:url("../_img/input-text.png") no-repeat; height:22px; padding:6px 1px 0 8px; width:155px; }
input[type="text"].big:focus { background-position:0 -28px; }

/* DEFINITION LISTS */
dl { border-bottom:1px solid #CDE; }
dt { border-top:1px solid #CDE; font-weight:bold; padding:.5em 0 .5em .5em; width:7.5em; }
dd { border-top:1px solid #CDE; margin:-2.46em 0 0 8em; min-height:1em; padding:.5em 0 .5em .5em; }
#content dt.long { border-top:1px solid #CDE; clear:both; margin:0; padding:.6em 0 0 5px; width:auto; }
#content dd.long { border:none; margin:0; padding:0 0 .6em 5px; }

/* HIGHLIGHTS */
.hilite, tr.hilite td, tr.hilite th, p.alert { background-color:#FFC !important; } /* TEMP */
div.alert { background:#FFB; border:1px solid #EEA; float:left; font-size:1.2em; margin:1em 0 2em 10px; padding:1em; width:95%; }
p.alert { border:1px solid #F8F8B5; padding:.2em .5em .4em .5em; position:absolute; margin:-2em 0 0 10em;  }
#tabcontent div.alert { margin:.5em 0 1em 2px; }
.error * { color:red; }
.column .editing { background:#DFECF3; }
#tabcontent .editing { background:#F2EEE7; }

/*************************************************************************************************/
/* LAYOUT */

#container { font-size:1.2em; height:100%; margin:auto; max-width:1100px; min-width:920px; padding:0 0 0 5px; }
#logo { background:url("../_img/logo.gif"); height:69px; position:absolute; text-indent:-99em; top:6px; right:260px; width:233px; }
#header { background:url("../_img/body.gif") repeat-x; height:81px; position:relative; z-index:1; }
#column { float:right; margin-top:-1em; width:25%; }
.clearfix { clear:both; }
.no-menu { background:url("../_img/no-menu.gif") no-repeat; height:14px; left:-1px; position:absolute; top:px; width:10px; }

/* CONTENT AREA */
#content { background:url("../_img/content.png") right 0 repeat-y; border-left:1px solid #CEBFA0; float:left; margin:-4px auto 0 auto; padding-right:7px; position:relative; }
#content .bottom { background:url("../_img/content-bottom.gif") no-repeat; clear:both; margin:0 -7px 0 -1px; }
#content .bottom div { background:url("../_img/content-bottom-div.gif") right 0 no-repeat; height:21px; }
.box { clear:both; float:left; min-height:200px; padding:0 .5%; width:99%; }
#tabcontent { background:#F9F7F3 url("../_img/tabcontent.png") 0 bottom no-repeat; border-right:1px solid #DFD0C2; margin:41px 30% 0 0; padding:10px; position:relative; }
#tabcontent > .buttons:first-child { margin:0 0 40px 0; }
#tabcontent > h3, .column h3 { margin-left:5px; }
.serp { padding:0 3%; width:94%; }

/* REPORTS */
.box > form { padding:1em; }
#report { clear:both; margin:10px; }
#report .buttons { margin-bottom:10px; }
#report .buttons > span { background:none; }
.reports .box input[type="text"] { border-right:1px solid #E8E8E7; width:4em; }
.calendar { background:url("../_img/calendar.gif") no-repeat; margin:0 10px 0 5px; padding-left:14px; }

/*************************************************************************************************/
/* HEADER */

/* UTILITIES */
#utils { list-style:none; margin:0; position:absolute; right:2em; top:10px; }
#utils li { float:left; }
#utils a { border-bottom:1px solid #8CE; color:#DEF; text-decoration:none; }
#utils a:hover { border:none; color:#FFF; }

/* SEARCH */
.search { padding-right:6em; position:absolute; right:10px; top:39px; }
.search .buttons { position:absolute; right:0; top:0; }

/*************************************************************************************************/
/* TABS */

/* GENERAL TABS */
.tabs { float:left; list-style:none; height:35px; margin:0; width:100%; }
.tabs li { float:left; margin:0 6px 0 0; }
.tabs a { background:url("../_img/tabs.gif") 0 -31px; color:#005389; display:block; float:left; text-decoration:none; }
.tabs span { background:url("../_img/tabs.gif") right -93px; display:block; height:31px; line-height:30px; padding:0 15px 0 14px; }
.tabs .active a, .tabs .disabled a { background-position:0 0; }
.tabs .active span, .tabs .disabled span  { background-position:right -62px; }
/* HOVER */
.tabs a:hover, .tabs a:hover span { background-image:url("../_img/tabs-hover.gif"); color:#38B; }
.tabs a:hover { position:relative; text-decoration:none; top:-2px;  }
.tabs a:hover span { border-bottom:2px solid #EEE9DF; }
.tabs .active a:hover span { border-color:#F9F7F2; }

/* CONTENT TABS */
.job #content .tabs { margin-top:0; width:65%; }

/* COLUMN TABS */
.job #content .column .tabs { margin:-41px -10px 0 -1px; min-width:280px; width:100%; }
.column .tabs li { font-size:.9em; margin:0; text-align:center; margin-right:8px; }
.column .tabs a { background:url("../_img/column-tabs.gif") 0 -41px; }
.column .tabs span { background:url("../_img/column-tabs.gif") right -123px; padding:7px 6px 3px 7px; line-height:1.2; }
.column .tabs .active a { background-position:0 0; }
.column .tabs .active span { background-position:right -82px; }
/* WIDTH */
.column .tabs .job span { max-width:4em; }
.column .tabs .bib span { max-width:7em; }
.column .tabs .notes span { max-width:6em; }
.column .tabs .rights span { max-width:6em; }
/* HOVER */
.column .tabs a:hover, .column .tabs a:hover span { background-image:url("../_img/column-tabs-hover.gif"); }
.column .tabs a:hover span { border-bottom:2px solid #D5E6EF; }
.column .tabs .active a:hover span { border-color:#EDF4F8; }

/* JOBS/TEAM TABS */
#nav { font-size:1.2em; font-weight:bold; margin:46px 0 0 -3px; }
#nav li { margin-right:10px; }
#nav li * { background:url("../_img/nav-a.gif") -70px 0; }
#nav a { background-position:0 -35px; color:#005C92; }
#nav span { background-position:right -105px; height:35px; line-height:39px; padding:0 20px 0 17px; }
#nav .active a { background-position:0 0; }
#nav .active span { background-position:right -70px; }
/* HOVER */
#nav a:hover, #nav a:hover span { background-image:url("../_img/nav-a-hover.gif"); }
#nav a:hover { top:0; }
#nav a:hover span { border:none; line-height:35px; }

/*************************************************************************************************/
/* BUTTONS */

/* GENERAL BUTTONS */
.buttons { clear:left; white-space:nowrap; }
.buttons a, input[type="submit"], input[type="button"] { background:url("../_img/buttons.png") no-repeat; border:none; color:#00678C; display:block; float:left; margin-right:10px; text-decoration:none; }
input[type="submit"], input[type="button"] { cursor:pointer; height:28px; margin-right:0; padding:0 3px 3px 8px; }
.buttons a > span, .buttons > span { background:url("../_img/buttons.png") right -84px no-repeat; display:block; height:23px; padding:5px 8px 0 3px; position:relative; right:-5px; }
.buttons > span { float:left; height:28px; margin-right:10px; padding:0 5px 0 0; } /* WRAPS INPUTS */
/* COLOURS */
.buttons .save, .buttons .preferred, .preferred input { background-position:0 -56px; color:#297A00; }
.buttons .save span, .buttons .preferred span, span.preferred { background-position:right -140px; }
.buttons .delete { background-position:0 -28px; color:#AD4A26; }
.buttons .delete span { background-position:right -112px; }
/* HOVER */
.buttons a:hover, .buttons a:hover > span, .buttons > span:hover, input[type="submit"]:hover, input[type="button"]:hover { background-image:url("../_img/buttons-hover.png"); }
.buttons a:hover { color:#09B; position:relative; left:-1px; }
.buttons > span:hover { margin-right:11px; }
input[type="submit"]:hover, input[type="button"]:hover { color:#09B; padding:0 3px 5px 8px; }
.buttons a:hover > span { padding:4px 8px 1px 3px; }
.buttons .save:hover, .buttons .preferred:hover, .buttons .preferred input:hover { color:#5A0; }
.buttons .delete:hover { color:#D75; }

/* BUTTONS INSIDE A TABLE */
td .buttons { margin:.4em 0; text-align:right; }
td .buttons span { height:18px; padding:3px 6px 3px 1px; }
td .buttons a, td input[type="submit"], td input[type="button"] { background-image:url("../_img/buttons-smaller.png"); }
td .buttons a > span, td .buttons > span { background:url("../_img/buttons-smaller.png") right -72px no-repeat; }
/* COLOURS */
td .buttons .save, td .buttons .preferred, td .preferred input { background-position:0 -48px; }
td .buttons .save span, td .buttons .preferred span, td span.preferred { background-position:right -120px; }
td .buttons .delete { background-position:0 -24px; }
td .buttons .delete span { background-position:right -96px; }
/* HOVER */
td .buttons a:hover, td .buttons a:hover > span { background-image:url("../_img/buttons-smaller-hover.png"); }
td .buttons a:hover > span { padding:2px 6px 4px 1px; }

/* EDIT BUTTON RESET */
.buttons .edit, .buttons .edit span, .buttons .edit:hover, .buttons .edit:hover span { background:none; padding-left:0; padding-right:0; text-decoration:underline; left:0; }
.buttons .edit:hover, .buttons .edit:hover span { color:#38B; text-decoration:none; top:0; }
.buttons .edit:hover span { padding-bottom:3px; padding-top:3px; }

/* BUTTON POSITIONING */
.expanded .buttons { text-align:left; }
.buttons + .tabs { padding-top:10px; }
#popup .buttons { float:right; }
#jobs-buttons { left:11em; margin:0; position:absolute; top:12px; }
#preview-button { position:absolute; left:225px; top:100px; } /* CLUMSY */
.column + .buttons { margin-right:2px; position:absolute; right:30%; top:43px; } /* DELETE/FINISH JOB */
.buttons a.clearfix { margin-top:5px; }
.alert + .buttons + h3 { clear:left; margin-top:3em; } /* ALERT IN #tabcontent ABOVE .buttons */

/*************************************************************************************************/
/* JOBS TABLE */

table.jobs { width:100%; }
.jobs td { border:1px solid #F0EBE2; border-width:1px 0; padding-bottom:.6em; white-space:nowrap; }
.jobs th { padding-bottom:.4em; }
.jobs th.notification { width:26px; }
.jobs th.more { padding:0; width:25px; }
.jobs th.status { width:110px; }
.jobs th.priority { width:85px; }
.jobs th.date { width:14em; }
.jobs td:first-child, .jobs th:first-child { padding:.5em 0; }
.jobs td a { margin-left:-4px; white-space:normal; }
.jobs .odd td { background:#F9F7F3; padding-bottom:.5em; padding-top:.4em; }

/* WIDTHS */
.jobs .parts { width:auto; }
.parts th.name { width:300px; }
.parts th.status { width:110px; }
.parts th.type { width:85px; }
.parts th.date { width:9em; }

/* EXPANDABLES */
#content tr.expanded td { background:#F2EEE7; border:none; }
#content tr.expanded table td, tr.expanded table { background:#F2EEE7; }
#container #content table tr.master td { border-top:1px solid #DBD2CA; }
/* ARROW */
#content td .collapsible { background:url("../_img/expand.gif") 6px .2em no-repeat; display:block; height:17px; left:12px; margin:0 -.5em; outline:none; overflow:hidden; position:relative; text-indent:-99em; top:2px; width:13px; }
#content td .collapsible:hover { background-color:#CEF; }
#content tr.expanded .collapsible { background-position:-12px .2em; }
/* POSITIONING */
.jobs .expanded .buttons { float:left; margin-bottom:10px; }
.team .expanded .buttons { margin:-2.7em 0 0 13em; }
.team .expanded .buttons a { margin-right:13px; }
p.owner { float:left; margin-top:0; }

/* PARTS TABLE INSIDE JOBS */
.parts th.more { width:0; }
#content .parts td .collapsible { margin:0 -10px 0 -15px; }
.parts dl, .parts dl * { border:none; }
.parts dt { width:15em; }
.parts dd { margin-left:15.5em; }

/* NOTIFICATION ICONS */
span.urgent, span.failed { background:url("../_img/notification.gif") no-repeat; display:block; height:15px; left:10px; overflow:hidden; position:relative; text-indent:-99em; width:15px; }
span.urgent { background-position:-15px 0; }

/* STATUS */
td.failed { color:#F00; font-weight:bold; letter-spacing:1px; }
td.urgent { color:#D90; }

/* MORE BUTTONS */
p.more { float:right; padding-right:50px; }
#popup p.left { float:left; }

/*************************************************************************************************/
/* JOB DETAIL */

/* PARTS TABLE */
.job .parts { width:100%; }
.job .parts td { border:1px solid #E3DBCB; border-width:1px 0; vertical-align:middle; }
.job .parts .status { width:80px; }
.job .parts .type { width:75px; }
.job .parts .date { width:13em; }
.job .parts .name, .job .parts .label { width:15%; }
.job .parts td:last-child { padding-right:0; width:16em; }
.job .parts input[type="text"] { border-right:1px solid #E8E8E7; width:100%; }
th.action { width:8.5em; }
/* BUTTONS */
.job .parts .buttons { float:right; margin:0; }
.job .parts .editing .buttons { width:9.5em; }
.job .parts .notes .buttons { float:left; margin:.5em 0 1em 0; } /* CLUMSY */

/* PROGRESS BAR */
.progress { background:#090 url("../_img/progress.gif") no-repeat; border:1px solid #999; display:block; float:right; height:10px; margin-top:4px; width:80px; }
.p10 { background-position:8px 0; }
.p20 { background-position:16px 0; }
.p30 { background-position:24px 0; }
.p40 { background-position:32px 0; }
.p50 { background-position:40px 0; }
.p100 { background-position:80px 0; }

/* POPUP */

#popup { background:url("../_img/popup.png"); height:100%; font-size:1.2em; left:0; position:absolute; top:0; width:100%; z-index:10; }
#popup .content { background:url("../_img/popup-content.png") no-repeat; left:50%; margin:-272px 0 0 -250px; padding:20px 28px 0 25px; position:absolute; top:50%; width:495px; }
#popup .larger { background-image:url("../_img/popup-content-larger.png"); margin:0 0 0 -350px; top:20px; width:695px; }
#popup dl { background:#EDF4F8 url("../_img/tabcontent.png") left bottom no-repeat; border:none; border-right:1px solid #DFD0C2; margin-right:10px; }
#popup h2 { background:none; border:none; margin-top:0; padding:0; }
#popup h3 { background:none; }
#popup dt, #popup dd { border-top:1px solid #E3DBCB; }
#popup textarea { height:50px; margin-left:20px; width:390px; }
#popup .buttons { clear:both; text-align:right; }
#popup .content > .clearfix { background:url("../_img/popup-clearfix.png") no-repeat; height:27px; margin:0 0 -27px -25px; width:538px; }
#popup .larger > .clearfix { background-image:url("../_img/popup-clearfix-larger.png"); width:738px; }
/* STYLING FILE BROWSER */
.file-browser { height:28px; overflow:hidden; padding-left:3em; position:relative; width:215px; }
.file-browser input[type="file"] { border:1px solid transparent; cursor:pointer; font-size:24px; opacity:0; position:absolute; right:0; top:-1px; z-index:1; -moz-opacity:0; }
.file-browser input[type="text"] { border:2px solid #FFF; left:0; position:absolute; top:0; width:155px; z-index:2; }

/* SPECIFIC POSITIONING */
.add-job dd .buttons { margin-top:-7px; }
.image-media label { display:block; } /* DISK IMAGE CHECKBOX */
.holding { background:#FFF; }
dd.holding { height:1em; padding-right:2px; margin-right:-2px; }
.add-job table .buttons { margin:-.3em 0 0 0; }
#popup dd .buttons { margin-top:-2em; }

/* SELECT MEDIA TYPE */

.media .buttons { clear:both; }
.media ul { list-style:none; float:left; }
.media li { background:#EDF4F8 url("../_img/media-li.gif") 20px 10px no-repeat; float:left; margin:5px; }
.media li a, .media .prev, .media .next, .media > a { background:url("../_img/media-a.gif") no-repeat; display:block; float:left; height:40px; padding-top:70px; text-align:center; width:95px; text-decoration:none; }
.media li a:hover { background-position:-95px 0; }
.media li:hover, .media .prev:hover, .media .next:hover { background-color:#DFF0F8; left:-1px; position:relative; top:-1px; }
.media .prev, .media .next { background-color:#EDF4F8; font:bold 16px verdana; height:65px; padding-top:45px; margin:17px 5px 0 5px; text-decoration:none; width:20px; }
.media .next { background-position:-75px 0; }
.media .prev:hover { background-position:-95px 0; }
.media .next:hover { background-position:right 0; }
.media > a { background-color:#EDF4F8; height:70px; margin:17px 5px 0 5px; padding-top:40px; }

/* TEMP, DO WITH <img> IN FINAL */
.media .img2 { background-position:20px -60px; }
.media .img3 { background-position:20px -140px; }
.media .img4 { background-position:20px -220px; }
.media .img5 { background-position:20px -300px; }
.media .img6 { background-position:20px -380px; }
.media .img7 { background-position:20px -460px; }

.media .mediapedia { background:url("../_img/mediapedia.png") 0 5px no-repeat; height:40px; padding-top:70px;}

/*************************************************************************************************/
/* COLUMN */

.column { background:#EDF4F8 url("../_img/column.png") right bottom no-repeat; border-left:1px solid #E7EEF2; float:right; margin-top:51px; padding-bottom:10px; width:28%; }
.column h4 { clear:left; margin-left:5px; }
.column dd .buttons { margin:0; }
.column > .buttons { margin:10px 0 45px 10px; }
#content .column dd, #content .column dd.long { padding-right:3em; position:relative; }
#content .column dd .buttons { position:absolute; right:-3px; bottom:0; }
#content dd a.edit:hover span { padding:0; }

/* ADDING METADATA */
.meta { border:1px solid #CDE; border-width:1px 0; float:left; margin:10px 0; padding:6px 4% 6px 2%; width:94%; }
.meta .buttons { margin:3px -10px 0 0; float:right; }
.meta textarea { height:50px; width:98%; }
.meta select { margin-bottom:5px; }
/* PARTS */
#tabcontent .parts div.editing { border:none; background-color:#E9E4D4; clear:both; max-width:300px; padding:5px 10px 0 5px; }

/* SCROLLABLE TAB */
.scrollable dl { border-bottom-color:#CDE; }
.scrollable dt { width:6em; }
.scrollable dd { margin-left:6.5em; }

/*************************************************************************************************/
/* STRUCTURE */

.structure { background:#FDFAF4; border:1px solid #999; clear:left; list-style:none; margin-bottom:0; overflow:scroll; padding-top:1em; position:relative; width:66%; }
.structure ul { margin:5px 0; }
.structure li { clear:both; min-height:1em; white-space:nowrap; width:100%; }
.structure li li { background:url("../_img/structure-li.gif") no-repeat; list-style:none; margin:0; padding:5px 0 5px 25px; }
.structure li li:last-child { background-image:url("../_img/structure-li-last.gif"); }

/* ROW STYLING */
.structure input { float:left; margin-right:7px; }
.structure li > a, .structure .deleted .file { display:block; float:left; min-width:10em; position:relative; top:-2px; }
.structure .details { color:#666; font-size:.9em; margin-left:2em; }
.structure .type { margin-left:1em; }
.structure .type:after { content:", "; }
.structure li.on { background-color:#F2EEE7; }
.structure a { outline:none; }

/* DELETED ROW */
.structure .deleted { background-color:#F1F1F1; -moz-opacity:.5; opacity:0.5; }
.structure .deleted .file { margin-left:20px; }
.structure .deleted .details { margin-left:5.2em; }

/* STRUCTURES APPEARING INSIDE OTHER LISTS */
.alert .structure { color:#997; background:#FFD; font-size:.9em; margin-bottom:0; width:650px;}
#popup .structure { color:#AAA; background:#FFF; max-height:200px; width:auto; }

/* FILE DETAILS */
#results { background:#F2EEE7; padding-left:1%; overflow-y:auto; padding:16px 0 0 10px; position:absolute; right:1%; top:86px; width:32%; }
#results h3 { background:none; margin-top:0; }
#results dl { border-bottom-color:#E3DBCB; }
#results dt { border-color:#E3DBCB; padding-left:0; }
#results dd { border-color:#E3DBCB; margin-left:7.5em; }
#results dt.long { border-top:1px solid #E3DBCB; clear:both; margin:0; padding:.6em 0 0 0; width:auto; }
#results dd.long { border:none; margin:0; padding:0 0 .6em 0; }
#results .buttons { float:left; }

/*************************************************************************************************/
/* MISC */

/* HELPER TEXT */
.helper { color:#000; font-size:.9em; font-style:italic; font-weight:normal; -moz-opacity:0.4; opacity:0.4; }
.buttons span.helper { background:none; display:inline; height:auto; margin:.5em 0 0 0; padding:0; }
.helper:hover { background:none; }

/* DISABLED */
body #container .disabled, body #container .buttons .disabled, body #popup .buttons .disabled, body #container .tabs .disabled { color:#000; -moz-opacity:0.3; }
.tabs .disabled a { color:#000; border-bottom:none; }

/*************************************************************************************************/
/* JS ONLY */

.js .job #container { overflow:hidden; }
.js .column .scrollable { overflow-y:auto; margin-right:1px; padding-bottom:1px; }
.js #content .editing .collapsible { display:none; } /* TEMP */

/* TEMP */ 
/*a[href="#"] { color:#900 !important; }*/
