/* Extend emastic */
.dp48, .dp4 {
  float: left;
  display: inline;
}
.dp4 {
  width: 4%;
}
.dp48 {
  width: 48%;
}

/* Main styles */
body {
  background: #fff;
  font: 80%/1.5em "trebuchet MS", verdana, sans-serif;
  color: #333;
}

/* Headers */
h1, h2 {
  color: #333;
  font-family: "trebuchet MS", verdana, sans-serif;
  letter-spacing: 1px;
  margin-bottom: .4em;
}
h3,h4,h5,h6 {
  font-family: "trebuchet MS", verdana, sans-serif;
  margin-bottom: .3em;
}
h1 {
  line-height: 1.1em;
}
h2 {
  line-height: .95em;
}
h3 {
  line-height: .85em;
}
h4 {
  line-height: .7em;
}
h5, h6 {
  line-height: .65em;
}

/* Tables */
tr, th, td {
  padding: 0 .5em;
}

/* Copyrights */
p.note {
  font-size: 85%;
}
p.small {
  font-size: 90%;
}

/* Links */
a {
  border-bottom: 1px solid #069;
  color: #069;
  text-decoration: none;
}
a:hover {
  border: 0;
  text-decoration: none;
}
  .small_dashed {
    font-size: 85%;
  }
  span.small_dashed {
    color: #999;
  }
  a.small_dashed {
    border-bottom: 1px dashed #069;
    text-decoration: none;
  }
#logo, #video_player {
  border: 0;
}

/* Current page */
span.active {
  color: #999;
}

/* Markup */
#header, #content, #footer {
  margin: 0 auto;
  max-width: 1400px;
  width: 90%;
}
#header {
  height: 50px;
  margin: 2em auto 1em auto;
}
  #header .active, #user_menu a, #top_menu li {
    margin-top: 1em;
  }

#footer {
  margin: 1em auto;
}

/* User menus */
#user_menu {
  position: relative;
}
  #not_logged_in span.active {
    display: block;
    float: left;
    margin-right: 1em;
    position: relative;
  }
  #not_logged_in a {
    border-bottom: 1px dashed #fa7d17;
    color: #fa7d17;
    display: block;
    float: left;
    margin-right: 1em;
    position: relative;
  }
    #not_logged_in a.checked {
      border: 0;
      color: #000;
      cursor: text;
    }
  #modal_registration, #modal_login {
    position: absolute;
    width: 16em;
    z-index: 3;
  }
    #modal_registration_menu {
      list-style: none;
      margin: 0;
      padding: 0;
      padding-top: 2em;
    }
      #modal_registration_menu li {
        line-height: 3em;
      }
    #modal_login_form {
    padding-top: 2em;
    }
    #modal_login_form input {
      display: block;
      margin: 1em auto;
      margin-left: 0;
      width: 12em;
    }
      #modal_login_form input.placeholded {
        color: #999;
      }
      #modal_login_form_action {
        width: auto !important;
      }

/* Top menu */
#top_menu {
  position: relative;
}
  #top_menu ul {
    display: block;
    list-style: none;
    margin: 0;
    position: absolute;
    right: 0;
    z-index: 2;
  }
    #top_menu ul li {
      float: right;
      padding-left: 1em;
    }

/* Bottom menu */
#bottom_menu {
  position: relative;
}
  #bottom_menu ul {
    float: left;
    font-size: 85%;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
  }
    #bottom_menu ul li {
      float: left;
      margin: 0;
      padding: 0;
      width: 50%;
    }
  #bottom_menu_counter {
    height: 31px;
    left: 50%;
    margin-top: -15px;
    margin-left: -44px;
    position: absolute;
    top: 50%;
    width: 88px;
  }
    #bottom_menu_counter a {
      border: 0;
    }

/* Modal */
.modal_dialog {
  display: none;
}
  .modal_top, .modal_bottom {
    height: 24px;
    margin: 0;
    overflow: hidden;
    padding: 0;
    position: relative;
  }
  .modal_top {
    border-right: 1px solid #e5e5e5;
  }
  .modal_bottom {
    border-left: 1px solid #e5e5e5;
  }
  .modal_center {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-top: 0;
    border-bottom: 0;
    padding: 0 1em;
  }
    .modal_top img, .modal_bottom img, .modal_close {
      position: absolute;
    }
    .modal_top img {
      left: 0;
      top: 0;
    }
    .modal_bottom img {
      bottom: 0;
      right: 0;
    }
    /* Close button */
    .modal_close {
      cursor: pointer;
      cursor: hand;
      left: auto !important;
      right: 8px !important;
      top: 8px !important;
    }

/* User panel */
#modal_user {
  display: block;
  height: 48px;
  margin: 0 auto;
  position: relative;
  width: 90%;
}
  #modal_user_panel, #user_logout {
    position: absolute;
  }
    #modal_user_panel {
      padding-left: 1em;
      top: 15px;
    }
    #user_logout {
      border: 0;
      color: #c00;
      font-size: 80%;
      margin: 0 !important;
      position: absolute;
      top: 16px;
      right: 1em;
      text-decoration: underline;
    }

/* Styles using in admin */
.right {
  text-align: right;
}
.center {
  text-align: center;
}

table.details, table.details_orange, table.details_blue {
  border: 1px solid #d9d9d9;
  border-bottom: 0;
  border-right: 0;
  width: 100%;
}
  table.details th, table.details_orange th, table.details_blue th,
  table.details thead td, table.details_orange thead td, table.details_blue thead td {
    background: #f2f2f2;
    text-align: center;
    white-space: nowrap;
  }
  table.details th, table.details td, table.details_orange th, table.details_orange td, table.details_blue th, table.details_blue td {
    border: 1px solid #d9d9d9;
    border-left: 0;
    border-top: 0;
    line-height: 2em;
  }
  table.details th, table.details thead td {
    color: #333333;
  }
  table.details_orange th, table.details_orange thead td {
    color: #e27a20;
  }
  table.details_blue th, table.details_blue thead td {
    color: #069;
  }
