/**
 * @file
 * syncevolution.org Forms CSS Style Sheet
 *
 * FORM ELEMENTS
 * FORM BUTTONS
 * MULTISELECT FORMS
 * FIELDSETS
 * CONFIRMATION MESSAGES
 * AUTOCOMPLETE STYLES
 * USER LOGIN BLOCK ON HOME PAGE
 * SEARCH FORM
 */

/** 
 *  FORM ELEMENTS
 */
form {
  margin: 0;
  padding: 0;
}

#main h2 + form {
  margin: 1.5em 0 0 0;
}

label {
  font-weight: bold;
}

label em {
  font-weight: normal;
  color: #999999;
  font-style: normal;
  font-size: .9em;
}

input,
select,
textarea {
  background-color: #eee;
  border: 1px solid #999;
  padding: 4px;
}

input.form-text {
  font-size: 1.1em;
}

select.form-select {
  font-size: 1em;
}

.editor-container input {
  background-color: #fff;
}

textarea {
  font-size: 1em;
}

input,
select {
  vertical-align: middle;
}

.form-item input.error,
.form-item textarea.error {
  border: 2px solid #D93B2C;
}

input: focus,
select: focus,
textarea:focus {
  background-color: #fff;
  border: 1px solid #0D79C9;
}

.disabled {
  background-color: #eee;
}

input.check {
  border: none;
  width: auto;
  height: auto;
  margin: 0 15px 0 0;
}

input.radio {
  border: none;
  width: auto;
  height: auto;
}

.form-radio {
  margin: 0 .5em 3px 0;
}

input.file {
  height: auto;
  width: 250px;
}

input.readonly {
  background-color: transparent;
  border: none;
}

.button {
  font-size: 1em;
}

/** 
 * * FORM BUTTONS 
 */
input.form-submit {
  padding: 3px 2px;
}

/* default styling for all form buttons, look to theme specific for image and outline */
input.form-submit,
input.teaser-button {
  border: 1px solid #fff;
  color: #fff;
  cursor: pointer;
  font-size: 0.916em;
  font-weight: bold;
  margin: 1em 0;
  padding: 4px 4px;
  text-transform: uppercase;
  -moz-border-radius: 4px;
  -moz-outline-radius: 4px;
  -webkit-border-radius: 4px;
}

input.form-submit: hover,
input.teaser-button: hover {
  background-position: right center;
  cursor: pointer;
}

input.teaser-button {
  margin: 0;
}

#edit-delete,
#edit-reset,
#edit-cancel,
#edit-remove {
  background: none;
  border: none;
  color: #99918C;
  outline: none;
}

.form-submit + .item-list {
  margin-top: 10px;
}

input.image {
  border: none;
  width: auto;
  height: auto;
}

form div.submit {
  margin: 1em 0;
}

form div.submit input {
  height: 2em;
  width: 15em;
}

form table td {
  border-bottom: 1px solid #eee;
}

form table td.last {
  border-bottom: none;
}

.form-item {
  margin: 0;
}

.block .form-item select {
  width: 180px;
  margin-bottom: .5em;
}

tr.odd .form-item,
tr.even .form-item {
  margin-top: 0;
  margin-bottom: 0;
  white-space: nowrap;
}

.form-item label {
  display: block;
  margin: 10px 0 0 0;
  padding-bottom: 0px;
}

div.form-item div.form-item,
fieldset .form-item {
  margin-bottom: 5px;
  margin-top: 2px;
}

.form-item label.option {
  margin: 0 0 1.5em 0;
  padding: 0;
  display: inline;
  font-weight: bold;
  border-top: none;
}

/** 
 *  MULTISELECT FORMS 
 */
dl.multiselect dd.b,
dl.multiselect dd.b .form-item,
dl.multiselect dd.b select {
  font-family: inherit;
  font-size: inherit;
  width: 14em;
}

dl.multiselect dd.a .form-item,
dl.multiselect dd.b .form-item {
  padding: 5px 0;
}

dl.multiselect dd.a .form-item {
}

dl.multiselect dt,
dl.multiselect dd {
  float: left;
  line-height: 1.75em;
  padding: 0;
  margin: 0 1em 0 0;
}

dl.multiselect .form-item {
  height: 1.75em;
  margin: 0;
}

/** 
 * FIELDSETS 
 */
fieldset {
  border: 2px solid #eee;
  padding: 20px;
  margin: 1.5em 0;
  font: inherit;
  border-top-width: 8px;
}

fieldset legend {
  color: #666;
  font-weight: bold;
  margin: 0 0 0 0;
  padding: 5px 15px 5px 10px;
  border: 1px solid #ccc;
  background-color: #eee;
}

* html fieldset legend {
  margin: 0 0 10px -10px;
}

fieldset fieldset {
  border-left: none;
  border-right: none;
  border-bottom: none;
  padding-bottom: 10px;
  padding-top: 10px;
}

fieldset fieldset legend {
  font-size: 1em;
}

fieldset ul {
  list-style: none;
  margin: 0 0 1.5em 0;
  padding: 0;
}

fieldset ul li {
  list-style: none;
  margin: 0 0 0.5em 0;
  padding: 0;
}

html.js fieldset.collapsible legend a {
  padding-left: 18px;
  background: url(../icons/bullet_arrow_down.gif) 0px 57% no-repeat;
  text-decoration: none;
  text-transform: capitalize;
}

html.js fieldset.collapsed legend a {
  background-image: url(../icons/bullet_arrow_right.gif);
}

#comment-form fieldset {
  background-color: #fff;
  border-color: #ccc;
}

#comment-form fieldset.collapsed {
  background-color: #eee;
  border-color: #ccc;
}

/* Note: IE-only fix due to '* html' (breaks Konqueror otherwise). */
* html.js fieldset.collapsible legend a {
  display: block;
}

fieldset {
  background: transparent url(../images/fieldset_bg.png) no-repeat scroll right bottom;
}

fieldset.collapsed {
  background: none;
}

/** 
 *  CONFIRMATION MESSAGES 
 */
form.confirmation {
  margin: 10px;
  padding: 20px;
  border: 2px solid #0D79C9;
  background-color: #eee;
  line-height: 1.3em;
}

form.confirmation li {
  list-style-type: none;
  margin: 5px;
  padding: 5px;
  color: #D93B2C;
  font-weight: bold;
}

form.confirmation .container-inline {
  margin-top: 10px;
}

/** 
 *  AUTOCOMPLETE STYLES 
 */
#autocomplete {
  position: absolute;
  border: 1px solid #0D79C9;
  overflow: hidden;
  text-align: left;
  padding: 0;
  margin: 0;
}

#autocomplete ul {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #eee;
}

#autocomplete li {
  background: #eee;
  color: #000;
  white-space: pre;
  cursor: default;
  margin: 0;
  padding: 2px 0 2px 5px;
}

#autocomplete li.selected {
  background: #bebebe;
  color: #333;
}

/* Animated throbber */
html.js input.form-autocomplete {
  background-position: 100% 6px; /* LTR */
}

html.js input.throbbing {
  background-position: 100% -14px; /* LTR */
}


/** 
 *  USER LOGIN BLOCK ON HOME PAGE 
 */
#user-login-form input.form-text {
  width: 200px;
}

#user-login-form #edit-openid-identifier-wrapper input.form-text {
  width: 180px;
}


/** 
 *  SEARCH FORM 
 */
.compact-form-wrapper {
  position: relative;
}

.compact-form-label {
  font-size: 1em;
  left: 5px;
  position: absolute;
  top: 5px;
  z-index: 1;
}

#user-login-form #edit-openid-identifier-wrapper .compact-form-label {
  left: 20px
}

.compact-form-wrapper label {
  margin: 0;
}

#search label {
  font-size: .9em;
}

#search .compact-form-wrapper {
  position: absolute;
  right: 82px;
}

#search input.form-text {
  margin: 0;
}
