/*----------------------------------------------------------*/
/* -- DEFAULTS -- */
#body {
  margin-left: 38px !important;
  line-height: 18px !important;
  font-size: 13px !important;
  font-family: 'Trebuchet MS', 'Verdana', 'Arial' !important;
  font-weight: bolder;
  color: #333;
}
#body a, #body a:visited, #body a:active {
  text-decoration: none;
  color: #333;
}
#body a:hover {
  text-decoration: none;
  color: #333;
}
#body input[type="submit"] {
  border: 0;
  font-family: 'Trebuchet MS', 'Verdana', 'Arial' !important;
  color: #333;
  font-size: 15px;
  font-weight: bolder;
  line-height: 20px;
  padding: 0px 0px 0px 0px;
}

/*----------------------------------------------------------*/
/* -- CONTAINER DIV FOR PREVIEW AREA -- */
#preview {
  width: 542px;
  background-color: #fff; 
  float: left; 
  padding: 0px 20px 15px 3px;
}
#preview hr {
  border: 0px;
  border-bottom: 1px solid #e5e5e5;
  width: 542px;
  margin: 6px 0 6px 0;
  clear: both;
}
h1.generator {
  font-size: 200%;
  color: #000;
  margin-bottom: 2px;
  margin-left: 2px;
}

/* -- PREVIEW AREA HEADER MENU -- */
#formactions {
  width: 100%;
  height: 26px;
  text-transform: uppercase;
  font-size: 10px;
  display: block;
}
#formactions a {
  float: left;
  padding: 6px 3px 0 0;
  height: 27px;
  background-image: url('images/gen/formactions-bg-sprite.png');
  background-repeat: no-repeat;
  margin-right: 9px;
  text-align: center;
}
#formactions img {
  vertical-align: middle;
  margin: 0px 3px 0 0px;
  width: 16px;
  z-index: 12;
}

#formactions a#refreshbutton.active,      
#formactions a#refreshbutton:hover        { background-position: -5px -32px; }
#formactions a#refreshbutton              { background-position: -5px 0px; width: 75px; }

#formactions a#showconfigbutton.active,   
#formactions a#showconfigbutton:hover     { background-position: -91px -32px; }
#formactions a#showconfigbutton           { background-position: -91px 0px; width: 123px; }

#formactions a#examplechooserbutton.active, 
#formactions a#examplechooserbutton:hover { background-position: -225px -32px; }
#formactions a#examplechooserbutton       { background-position: -225px 0px; width: 128px; z-index: 11; }

#formactions a#emptyformbutton.active, 
#formactions a#emptyformbutton:hover      { background-position: -364px -32px; }
#formactions a#emptyformbutton            { background-position: -364px 0px; width: 94px; }

#formactions a#downloadbutton.active, 
#formactions a#downloadbutton:hover      { background-position: -364px -32px; }
#formactions a#downloadbutton            { background-position: -364px 0px; width: 94px; }

#formactions a#notesbutton.active, 
#formactions a#notesbutton:hover          { background-position: -469px -32px; }
#formactions a#notesbutton                { background-position: -469px 0px; width: 59px; }

#buttonmenucontainer {
  position: relative;
  clear: both;
  float: left;
  margin: 15px 0 15px 0;
}

#buttonmenucontainer #examplechooser {
  display: none;
  position: absolute;
  top: 22px;
  margin: 0 !important;
  z-index: 10;
  width: 131px;
  padding-top: 10px;
  background-repeat: repeat-y !important;
  background-image: url('images/gen/examplechooser-bg.png');
  margin-bottom: -18px !important;
}
#buttonmenucontainer #examplechooser li {
  background-position: 15px 7px !important;
  background-repeat: no-repeat !important;
  background-image: url('images/listitem_bigdot_black.png') !important;
  border: 0;
  height: 28px !important;
  cursor: pointer;
  margin: 0 !important;
  padding: 0px 0 0 30px !important;
}
#buttonmenucontainer #examplechooser li.active {
  background-image: url('images/listitem_bigdot_gray.png') !important;
}
#buttonmenucontainer #examplechooser li.active a {
  color: #808080;
}

#buttonmenucontainer #examplechooser li.last {
  background-repeat: no-repeat !important;
  background-position: bottom center !important;
  background-image: url('images/gen/examplechooser-bg-last.png') !important;
  height: 12px !important;
  position: relative;
  top: -10px;
  margin-bottom: -18px !important;
}

/* -- PREVIEW AREA ELEMENT TABLE -- */
.emptyPlaceMarker { /* styling for the box that shows where the element will be dropped on drag and drop */
  border: 1px solid #000;
}
#pwa-empty {
  width: 562px;
}
#pwa-empty p {
  font-weight: normal;
  font-size: 13px;
}
.pwa-fieldset {
  position: relative;
  width: 562px;
  left: -5px;
  padding: 5px 0px 5px 5px;
  border-left:   2px solid #FFCE00;
  border-top:    2px solid #FFCE00;
  border-bottom: 2px solid #FFCE00;
  border-right: 0;
  margin: 0px 0 -1px -1px;
}
.pwa-elemtable {
  width: 562px;
  margin-top: 5px;
  background-color: #fff;
  margin-bottom: 20px;
}
.pwa-elemtable-hover {
  background-image: url('images/gen/previewarea-selected-bg-middle.png'); 
  background-repeat: repeat-y;
}
.pwa-elemtable-selected {
  background-image: url('images/gen/previewarea-selected-bg-middle.png') !important;
  background-repeat: repeat-y;
}
.pwa-elemtable .pwa-movers {
  display: none;
  position: relative;
  top: 20px;
  left: 8px;
  width: 12px;
  height: 27px;
  margin-top: -17px;
  margin-right: -12px;
  float: left;
}
.pwa-movers-selected {
  display: block !important;
}
.pwa-movers img {
  clear: left;
  margin: 2px 0 0 2px;
}
.pwa-movers .pwa-uparrow {
  margin-bottom: 3px;
}
.pwa-elemtable .pwa-close {
  display: none;
  position: relative;
  left: 7px;
  margin-top: -14px;
  margin-right: -14px;
}
.pwa-bg-top {
  width: 28px; 
  height: 8px;
  background-color: transparent;
}
.pwa-bg-top-hover {
  background-image: url('images/gen/previewarea-selected-bg-top.png'); 
  background-repeat: no-repeat;
}
.pwa-bg-top-selected {
  background-image: url('images/gen/previewarea-selected-bg-top.png') !important; 
  background-repeat: no-repeat;
}
.pwa-bg-bottom {
  width: 28px; 
  height: 8px;
}
.pwa-bg-bottom-hover {
  background-image: url('images/gen/previewarea-selected-bg-bottom.png'); 
  background-repeat: no-repeat;
}
.pwa-bg-bottom-selected {
  background-image: url('images/gen/previewarea-selected-bg-bottom.png') !important;
  background-repeat: no-repeat;
}
.pwa-container {
  margin-top: -23px;
  position: relative;
  left: 28px;
  top: 8px;
  width: 535px;
  background-color: #fff;
  border-bottom: 1px solid #fff;
}
.pwa-container-hover {
  background-color: #fff;
  border-bottom: 1px solid #ccc;
}
.pwa-container-selected {
  background-color: #f3f3f3; 
  border-bottom: 1px solid #ccc !important;
}
.pwa-container hr { /* move the <hr> into the container so it moves when sorting and position it so it appeares under the element */
  position: relative;
  left: -30px;
  top: 20px;
}
.pwa-content {
  margin: 7px 15px 10px 8px;
  font-size: 12px;
  font-weight: normal;
  padding-top: 7px;
}
.pwa-content .displayname {
  font-weight: bolder;
  font-size: 13px;
  margin-bottom: 2px;
}
.pwa-content input, .pwa-content textarea, .pwa-content select {
  font-size: 12px;
  font-weight: normal;
  margin-top: 3px;
}
.pwa-content input[type="text"], .pwa-content input[type="password"], .pwa-content input[type="file"], .pwa-content textarea, .pwa-content select {
  border: 1px solid #999999;
  border-top: 1px solid #737373;
  border-right: 1px solid #737373;
}
.pwa-content input[type="radio"], .pwa-content input[type="checkbox"] {
  margin-left: -1px;
}
.pwa-content textarea {
  min-width: 330px;
  max-width: 500px !important;
  width: auto;
  height: auto;
  padding: 4px 2px 3px 6px;
  line-height: 1.34;
  overflow: auto;
}

/* -- PREVIEW AREA BOTTOM BUTTONS -- */
#pwa-buttons {
  position: relative;
  top: 10px;
}
#pwa-addelement {
  float: right;
  width: 142px;
  height: 32px;
  background-image: url('images/gen/previewarea-button-addelement.png');
  background-repeat: no-repeat;
}
#pwa-buttons a, #pwa-buttons a:visited, #pwa-buttons a:active {
  color: #fff;
  position: relative;
  top: 6px;
}
#pwa-buttons a:hover {
  color: #fff;
}
#pwa-addelement a {
  left: 30px;
}
#pwa-done a {
  left: 12px;
}

/*----------------------------------------------------------*/
/* -- WORK STAGE AREA -- */
#workstage {
  width: 282px; 
  background-color: #f3f3f3; 
  float: left; 
  padding: 15px 9px 30px 9px;
}
#workstage .topbg {
  height: 8px; 
  margin: -15px -9px 0px -9px; 
  background-image: url('images/gen/workstage-bg-top.png');
  background-repeat: no-repeat;
}
#workstage .bottombg {
  height: 8px;
  margin: -15px -9px -15px -9px;
  background-image: url('images/gen/workstage-bg-bottom.png');
  background-repeat: no-repeat;
  position: relative; 
  top: 15px;
}
.workstagetitle {
  font-size: 135% !important;
  padding-top: 10px;
  clear: both;
}
.workstagehint {
  font-weight: normal;
  font-size: 12px;
  color: #666;
  padding-left: 1px;
  padding-right: 1px;
}
#workstage #loadingscreen {
  display: none;
}
#loadingscreen center {
  position: relative;
  top: 150px;
}

/* -- BASIC ELEMENT LIST -- */
#basicelements, #elementeditor {
  z-index: 10;
}
#basicelements, #loadingscreen {
  margin-bottom: 7px;
}
.basics {
  height: 32px;
  float: left;
  display: inline;
  clear: none;
  margin-top: 8px;
  cursor: move;
}
.basics img {
  position: relative;
  top: 3px;
  left: 7px;
}
.basics a {
  position: relative;
  top: -4px;
  margin-left: 16px;
  cursor: move;
}
#basicelements .short {
  width: 137px;
  background-image: url('images/gen/workstage-button-short-sprite.png');
  background-repeat: no-repeat;
}
#basicelements .long {
  width: 282px;
  background-image: url('images/gen/workstage-button-long-sprite.png');
  background-repeat: no-repeat;
}
#basicelements .odd {
  clear: left;
  margin-right: 8px; 
}
#basicelements .even {
  /* IE7 cant live with margin-left in here, moved to .odd (dont even want to know) */
}

/* -- ELEMENT EDITOR -- */
#elementeditor .currentelement {
  text-align: left;
  width: 252px;
  height: 43px;
  font-size: 18px;
  background-image: url('images/gen/workstage-currentelement-bg.png');
  background-repeat: no-repeat;
  padding-top: 7px;
  padding-left: 30px;
  margin-bottom: 11px;
}
#elementeditor .currentelement img {
  position: relative;
  left: -10px;
  top: 6px;
}
.editorinputname {
  width: 109px;
  float: left;
  clear: left;
  padding-right: 6px;
  font-weight: normal;
  text-align: right;
  margin-top: 4px;
}
.editorinput {
  float: left;
  width: 165px;
  height: auto;
  margin-top: 4px;
  font-weight: normal;
}

#ed_fs0 div, #ed_fs1 div, #ed_fs2 div {
  display: none;
}

.editorinput input[type="text"], .editorinput input[type="password"], .editorinput select {
  width: 157px;
  height: 18px;
  font-size: 12px;
  padding-left: 3px;
  border: 1px solid #333333;
  background-color: #fff;
}
.values_optionvalues {
  margin-left: 2px;
  margin-right: 3px;
}
.values_optionvalues, .values_optiontexts {
  width: 123px;
  height: 18px;
  font-size: 12px;
  padding-left: 3px;
  border: 1px solid #333333;
  background-color: #fff;
  margin-top: 2px;
}
.values_optiontexts {
  margin-right: 5px;
}
.values_optiondelete {
  width: 14px;
  height: 14px;
  margin-top: 2px;
}
.editorinput select {
  height: 20px;
}
.editorinput textarea {
  width: 157px;
  height: 50px;
  line-height: 1.2;
  padding-left: 3px;
  border: 1px solid #333333;
  background-color: #fff;
}
.editorinput input[type="radio"], .editorinput input[type="checkbox"] {
  margin-right: 7px;
  padding-left: 3px;
}
#elementeditor .long {
  width: 282px;
  height: 32px;
  clear: left;
  margin-bottom: 7px;
}
#elementeditor .long input {
  width: 282px;
  height: 32px;
  background-image: url('images/gen/workstage-button-long-sprite.png');
  background-repeat: no-repeat;
  padding-bottom: 5px;
  
}

#elementeditor label {
  font-weight: normal;
  font-size: 12px;
}

#elementeditor #values {
  width: 270px;
  height: 60px;
  font-size: 12px;
}

#elementeditor #ed_values {
  margin-top: 13px;
  clear: both;
  float: left;
}
#elementeditor #ed_level label {
  float: right;
  font-weight: bold;
  cursor: pointer;
  color: #ff7010;
}
.hilightedcode code {
  background-color: #fff;
  width: 883px;
  overflow: hidden;
}
.code {
  width: 98%;
}

#validatorpanel        { width: 550px; font-family: Arial; padding: 15px; }
#validatorpanel .clear { clear: both; }
#validatorpanel h1     { font-size: 16px; margin-bottom: 15px; border-bottom: 1px solid #f0f0f0; }
#validatorpanel h2     { font-size: 14px; }
#validatorpanel td     { font-size: 12px; }
#validatorpanel #settingslist { margin-bottom: 10px; }
#validatorpanel #settingslist li {
  margin-bottom: 10px;
  padding-left: 15px;
  background-repeat: no-repeat;
  background-position: 0px 5px;
  background-image:  url(images/listitem_bigdot_gray.png);
}
#validatorpanel .settings span { clear: left; display: block; width: 100px; float: left; }
#validatorpanel .settings code { max-width: 350px; display: block; clear: right; float: left; border: 1px solid #e0e0e0; padding: 0 4px 0 4px; }
#validatorpanel #validatorlist { border: 1px solid #e0e0e0; border-collapse: collapse; margin-bottom: 20px; }
#validatorpanel #validatorlist td { padding: 3px; }
#validatorpanel #validatorlist tr.dark  { background-color: #f0f0f0; }
#validatorpanel #validatorlist tr.light { background-color: #e0e0e0; }

