/*


Layout
*/
body {
  background: #DCE5E5;
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
}

#head {
  background: #5D7A7A url(/images/admin/head.png) repeat-x left bottom;
  color: white;
  height: 7.9em;
  min-width: 929px;
  position: relative;
}

  #head h1 {
    margin: 0;
    padding: .75em 0 0 20px;
  }
  
    #head h1 a {
      color: white;
      text-decoration: none;
    }
    
    #head h1 a:hover {
      text-decoration: underline;
    }
    
  #head h4 {
    font-weight: normal;
    margin: 0;
    padding: .25em 0 0 20px;
  }
    #head h4 a {
      color: #e5e5e5;
      text-decoration: none;
    }
    
    #head h4 a:hover {
      color: #fff;
      text-decoration: underline;
    }

#shell {
  background: #fff;
  width: 100%;
}
  
  #primary {
    background: #fff;
    padding: 1em 0 0 0;
    position: relative;
    width: 100%;
  }
  
    .primary_margin {
      margin: 0 25px;
      min-height: 30em;
      padding: 20px 0 0 0;
    }
    
      #primary_editable {
        float: left;
        width: 72.5%;
      }
        
#secondary {
  display: inline;
  float: right;
  margin: 0;
  padding: 0;
  position: relative;
  width: 24.5%;
}
  
#foot {
  background: #DCE5E5 url(/images/admin/foot.png) repeat-x left top;
  clear: both;
  height: 100px;
  padding: 2em 20px 0 20px;
  position: relative;
}

  #foot * {
    margin: 0;
  }
  
  #foot a#coco_design {
    background: url(/images/admin/coco_design.png) no-repeat;
    cursor: pointer;
    display: block;
    height: 31px;
    position: absolute;
    right: 1em;
    width: 80px;
    top: 2em;
  }
  
    #foot a#coco_design span {
      display: none;
    }


#section, #section_summary, div.thumbnail_shell {
  background: #DCE5D6 url(/images/admin/_section.png) repeat-x left bottom; /* 32 bit png doesn't work right in ie6 */
  clear: both;
  position: relative;
  width:100%;
}

  #section .section_margin, #section_summary .section_margin {
    margin: 0 2em;
  }


/*


For the CodeMirror editor on the Templates and Snippets
*/
div.template iframe, div.snippet iframe {
  background: url(/images/admin/input.png) no-repeat left top;
  border: 1px solid #ccc !important;
  width: 100% !important;
}

/*


accordion Side Section
*/
ul#accordion {
  border-top: 2px solid #DCE5D6;
  margin: 40px 0 0 0;
  padding: 0;
}

  ul#accordion li.accordion_section {
    border-bottom: 2px solid #DCE5D6;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  ul#accordion li.accordion_section:hover, ul#accordion li.accordion_section.hover, ul#accordion li.accordion_section.expanded {
    background: url(/images/admin/accordion_section.png) repeat-x;
    border-color: #869696;
  }

    ul#accordion li.accordion_section a.accordion_title {
      display: block;
      font-size: 1.2em;
      font-weight: bold;
      padding: .2em 1em .5em 1em;
      position: relative;
      text-decoration: none;
    }

      ul#accordion a.accordion_title img {
        height: 24px;
        margin: 0 .5em 0 0;
        position: relative;
        top: .2em;
        width: 24px;
      }

    ul#accordion li.accordion_section div.accordion_toggle {
      margin: 0 10px;
    }
    
      div.accordion_toggle > *:last-child {
        padding-bottom: 10px;
      }

ul#browse_images_list {
  max-height: 200px;
  margin: 0;
  padding: 0;
  width: 100%;
}

  ul#browse_images_list li {
    cursor: pointer;
    float: left;
    line-height: 0px;
    list-style: none;
    margin: 0px;
    padding: 3px;
  }
  
  ul#browse_images_list li.hover, ul#browse_images_list li.active {
    background: white;
  }
  
  ul#browse_images_list li img {
    height: 37px;
  }


  #upload_images {
    background: #fff;
    position: relative;
    width: 100%;
  }
  
    #upload_images form {
      margin: 0 auto;
      padding: 0;
      width: 90%;
    }
    
    #upload_images label {
      color: #c30;
      display: block;
      height: 3em;
      line-height: 3em;
      margin: 0;
      padding: 0;
      text-align: center;
      width: 100%;
    }
    
    #upload_images input {
      cursor: pointer;
      margin: 0;
      padding: 0;
    }

  #current_image {
    margin-top: .5em;
  }
  
    #current_img_shell {
      text-align: center;
    }
    
      #current_img_shell img {
        width: 100%;
      }
  
  #snippet_selected, #snippet_name {
    cursor: pointer;
    width: 100%;
  }
  
  #snippet_selected, .select_me {
    background: none;
    border: 0px;
    font-family: monospace;
    font-size: 1.1em;
  }

#label_cloud {
  margin: 0;
  padding: 1em 0;
  text-align: center;
  width: 100%;
}

  #label_cloud li {
    cursor: pointer;
    display: inline;
    list-style: none;
    margin: 0;
    padding: .1em;
  }
  
    #label_cloud li.hover {
      text-decoration: underline;
    }
    
    #label_cloud li.active {
      background: #fff;
      color: #c30;
    }

.settings_column_assigned, .settings_column_unassigned {
  display: inline;
  float: left;
  margin: 0 3% 0 0;
  width: 45%;
}

.settings_column_unassigned {
  float: right;
  margin: 0 0 0 3%;
}

.settings_column_assigned div, .settings_column_unassigned div {
  overflow: auto;
  height: 350px
}

.settings_column_assigned div #assigned_rights, .settings_column_unassigned div #unassigned_rights {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.settings_column_assigned div #assigned_rights li, .settings_column_unassigned div #unassigned_rights li {
  padding: .5em;
}




/*


Type
*/
body {
  font: normal normal normal 76%/1.5em Verdana, Geneva, Arial, Helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: .5em 0;
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.8em;
}

h3 {
  font-size: 1.52em;
}

h4 {
  font-size: 1.35em;
}

h5 {
  font-size: 1.2em;
}

h6 {
  font-size: 1em;
}

a {
  color: #c30;
}

a:hover {
  color: #5B8C55;
}

p {
  margin: 0;
  padding: .5em 0 0 0;
}


/*

Login Layout Styles
*/
html {
  background: #fff;
}

body#login_page {
  background: #285B5B;
  color: #fff;
  padding: 80px 0 0 0;
  position: relative;
}

#login_background {
  background: #5D7A7A url(/images/admin/login_background.png) repeat-x left bottom;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

  #login {
    background: url(/images/admin/login-flat.png) no-repeat;
    color: #000;
    position: relative;
    height: 300px;
    margin: auto;
    width: 540px;
    z-index: 2;
  }
  
    #login .login_margin {
      height: 220px;
      margin: 0 40px;
      overflow: hidden;
      padding: 40px 0;
      position: relative;
      width: 460px;
    }
      
      #login #login_sliding_panel {
        position: absolute;
        width: 940px;
      }

      #login #login_form, #login #lost_password_form {
        height: 220px;
        position: absolute;
        width: 460px;
      }
      
      #login #login_form form, #login #lost_password_form form {
        margin: 0;
      }
      
      #errors {
        color: #fff;
        font-size: 17px;
        font-weight: bold;
        height: 80px;
        left: 50%;
        line-height: 80px;
        margin: 0 0 0 -200px;
        position: absolute;
        text-align: center;
        top: 20px;
        width: 400px;
        z-index: 333;
      }
      
      #login h1, #login h2, #login h3, #login h4 {
        border-bottom: 2px solid #93ADAD;
        color: #f30;
      }
      
      #login form {
        width: 100%;
      }
      
        #username_shell {
          float: left;
          width: 215px;
        }
        
        #password_shell, #email_shell {
          display: inline;
          float: right;
          margin-right: 2px;
          width: 215px;
        }
        
        #login_submit_shell, #retrieve_password_submit_shell {
          clear: both;
          text-align: right;
          width: auto;
        }
        
          #login #login_submit_shell input, #login #retrieve_password_submit_shell input {
            font-size: 14px;
            width: auto;
          }
      
      #login form p {
        font-size: 1.5em;
      }
      
      #login form label {
        display: block;
        font-weight: normal;
        line-height: 1.5em;
      }
      
      #login form input {
        font-size: 1.2em;
        padding: 5px 10px;
        width: 195px;
      }
      
      #login form br {
        line-height: 0;
      }

  #login_brand {
    color: #B7D3BB;
    margin: auto;
    padding: 0;
    position: relative;
    text-align: right;
    top: -10px;
    width: 460px;
    z-index: 3;
  }
  
    #login_brand a {
      color: #B7D3BB;
      text-decoration: none;
    }
    
    #login_brand a:hover {
      text-decoration: underline;
    }

ul#nav_login_foot {
  bottom: 20px;
  clear: both;
  margin: 0;
  padding: 1em 0;
  position: absolute;
  text-align: center;
  width: 100%;
}

  ul#nav_login_foot li {
    color: #8FBFBF;
    display: inline;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  ul#nav_login_foot li a {
    color: #f30;
    padding: 0 .7em;
    text-decoration: none;
  }
  
  ul#nav_login_foot li a:hover {
    text-decoration: underline;
  }


/*

Forms
*/
input, label, select, textarea, option, button {
  cursor: pointer;
}

option {
  padding: 0 0 0 .5em;
}

label {
  font-weight: bold;
}

  form.admin_form label, form.admin_form input, form.admin_form textarea {
    display: inline;
    float: left;
    margin: 1em 0 0 1em;
  }
  
  form.admin_form label {
    font-weight: bold;
    margin-left: 0;
    text-align: right;
    width: 17%;
  }
  
    /*
    
    Reset labels to be inline elements, for radio's and checkboxes
    */
    form.admin_form label.inline {
      display: inline;
      float: none;
      padding: 0 .5em;
      margin-right: .5em;
      width: auto;
    }

  form.admin_form input.text {
    background: url(/images/admin/input.png) no-repeat left top;
    border: 1px solid #ccc;
    margin-left: 1em;
    padding: .1em .5em;
    width: 20em;
  }

  input.text {
    background: url(/images/admin/input.png) no-repeat left top;
    border: 1px solid #ccc;
  }

  input#current_image_labels {
    padding: .25em 0;
    width: 100%;
  }

    form.admin_form .large_fields label {
      font-size: 1.3em;
      height: 1.5em;
      line-height: 1.5em;
      margin-top: 0;
      padding: .4em 0 .1em 0;
      width: 28%;
    }
    
    form.admin_form .large_fields input.text {
      float: right;
      font-size: 1.3em;
      height: 1.5em;
      margin-left: .5em;
      margin-top: 0;
      padding-top: .4em;
      width: 66%;
    }
    /*
      TODO rename or remove RightColumn
    */
    form.admin_form .large_fields .RightColumn {
      float: right;
      width: 68%;
    }
    
    .large_fields_index #content_entry_name, .large_fields_index #gallery_category_name, .large_fields_index #list_name {
      float: left;
      width: 50% !important;
    }
    
    form.admin_form .large_fields input.submit {
      float: right;
      margin-top: 0 !important;
      width: 15%;
    }
    
    form.admin_form .large_fields select {
      margin-left: 0.5em;
      margin-top: 0.25em;
    }
    
    form.admin_form input.text.focus, input.text.focus, form.admin_form textarea.focus,
    form.admin_form input.text:focus, input.text:focus, form.admin_form textarea:focus {
      background: url(/images/admin/input.focus.png) no-repeat left top;
      border: 1px solid #7c99eb;
    }
    
    form label.hover, form label:hover {
      color: #7c99eb;
      color: #369;
    }
    
    form.admin_form input.text.hover, input.text.hover, form.admin_form textarea.hover,
    form.admin_form input.text:hover, input.text:hover, form.admin_form textarea:hover {
      border: 1px solid blue;
      color: blue;
    }
    
    form.admin_form input.inline {
      border: 0px;
      float: none;
      width: auto;
    }

  form.admin_form select {
    display: inline;
    float: left;
    margin: 1em 0 0 1em;
  }
  
/*
  form.admin_form div.reset * {
    line-height: normal !important;
    margin: auto !important;
  }
*/
  form.admin_form textarea {
    background: url(/images/admin/input.png) no-repeat left top;
    border: 1px solid #ccc;
    font: normal normal normal 1.12em/1.25em 'Lucida Console', monospace;
    height: 100px;
    margin: 1em 0 0 1em;
    padding: .5em;
    width: 65%;
  }

  form.admin_form br {
    clear: both;
  }

input.submit, a.cancel {
  color: #c30;
  cursor: pointer;
  height: 30px;
  font-size: 18px;
  line-height: 30px;
  margin: .5em 0 0 0;
  padding: 0 .75em;
  text-decoration: none;
}

input.hover, a.cancel:hover {
  color: #557070;
}

.content_save {
  line-height: 30px;
  margin-top: .5em;
}

.content_save * {
  margin-top: 0 !important;
}

a.cancel {
  float: right;
}

form.admin_form small {
  color: #8e8e8e;
}

#upload_new_image:hover {
  text-decoration: underline;
}


/*


Side Form
  Used on the right side column when editing a page.
*/
form.side_form label {
  margin-top: .5em;
  width: 100%;
}

form.side_form input {
  padding: .2em;
}

form.side_form select {
  padding: 0;
  width: 100%;
}

  form.side_form select option {
    line-height: 1.5em;
    padding: .1em .2em;
  }
  
form.side_form button {
  padding: .2em;
  width: 100%;
}

form.side_form #selected_page_link, form.side_form #selected_article_link {
  background: #fff;
}

  #selected_page_link a, #selected_article_link a {
    display: block;
    padding: .2em;
  }
  
select#select_articles, select#select_pages {
  width: 150px;
}



/*


Gallery Upload
*/
#gallery_upload {
  background: #DCE5D6;
  float: right;
  position: relative;
  width: 40%;
}

/*

List System (Lists)
*/
/*
  TODO refactor, consolidate selectors
*/
#item_shell fieldset {
  border: 1px solid #ccc;
  margin-top: 1em;
}

  #item_shell legend {
    font-weight: bold;
    font-size: 18px;
  }

.item_form_shell {
  width: 96%;
}
  
  #item_form {
    width: 100%;
  }
  
/*  #item_form_shell form {
    width: 96%;
  }
*/  
.item_form_shell .admin_form label {
  text-align: left;
  width: 100%;
}

.item_form_shell .admin_form input, .item_form_shell .admin_form input.text, .item_form_shell .admin_form textarea, .item_form_shell .admin_form select {
  margin-left: 0;
  margin-top: 0;
  width: 100%;
}

.item_form_shell form.admin_form textarea {
  height: 170px;
}

.item_form_shell input.submit {
  width: auto;
}

#item_shell .document_select, #item_shell .image_select {
  width: 60% !important;
}

#custom_fields {
  background: #dce5d6;
  position: relative;
}
  
  #custom_fields label {
    width: 20%;
  }
  
  select.image_select {
    width: auto !important;
  }

  div.selected_image_shell {
    background: #fff;
    border: 1px solid #ccc;
    float: left;
    margin-right: 10px;
    height: 110px;
    width: 110px;
  }

    img.selected_image {
      margin: 5px;
      max-height: 100px;
      max-width: 100px;
    }

#item_shell .content_save {
  width: 105%;
}

/*


Errors and Alerts
*/
.fieldWithErrors {
  display: inline;
}

.errorExplanation, .fieldWithErrors input {
  color: #c00;
  border-color: red !important;
}


/*


Misc
*/
.clear {
  clear: both;
  height: 1px;
}

img {
  border: 0;
}

#form_indicator {
  position: absolute;
  right: 2em;
  top: 1em;
}

.rounded {
  position: relative;
}

  .roundedTL, .roundedTR, .roundedBR, .roundedBL {
    background: url(/images/admin/rounded/tl.png) no-repeat;
    height: 10px;
    left: 0;
    position: absolute;
    top: 0;
    width: 10px;
    z-index: 1;
  }
  
  .roundedTR {
    background: url(/images/admin/rounded/tr.png) no-repeat;
    left: auto;
    right: 0;
  }
  
  .roundedBR {
    background: url(/images/admin/rounded/br.png) no-repeat;
    bottom: 0;
    left: auto;
    right: 0;
    top: auto;
  }
  
  .roundedBL {
    background: url(/images/admin/rounded/bl.png) no-repeat;
    bottom: 0;
    top: auto;
  }

* html #upload_images .roundedTL, * html #upload_images .roundedTR, * html #upload_images .roundedBR, * html #upload_images .roundedBL {
  display: none;
}

#flash_notice {
  background: url(/images/admin/flash_notice.png) no-repeat;
  cursor: pointer;
  height: 110px;
  right: 0px;
  position: absolute;
  top: -5px;
  width: 240px;
  z-index: 5;
}

#flash_notice:hover {
  background: url(/images/admin/flash_notice-hover.png) no-repeat;
}

  #flash_notice img {
    height: 32px;
    left: 35px;
    position: absolute;
    top: 40px;
    width: 32px;
  }
  
  #flash_notice p {
    height: 40px;
    left: 75px;
    line-height: 1.15em;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 35px;
    width: 130px;
  }
  
    #flash_notice p strong {
      color: #C30;
    }



/* alternating row colors*/
.odd {
  background:#DCE5E5;
}

.even {
  background:#fff;
}

.deleteme img, .thumbnail_normal img, .toggle_meta img, .delete img, .link img {
  height: 16px;
  width: 16px;
}