/* Copyright 2012 Google Inc. All Rights Reserved.*/
/* Reset */
html, body, header, h1, h2, h3, h4, h5, h6, footer, table, div, a, ul, li {
  background: none;
  border: none;
  line-height: 1; /* For height of text-elements === font-size*/
  margin: 0;
  padding: 0;
}
header, section, footer {
  display: block;
}
/* Fonts */
@font-face {
  font-family: "Open Sans";
  src: local("Open Sans"),
       local("Open Sans Regular"),
       url(/static/fonts/OpenSans-Regular.ttf);
  font-weight: normal;
}
@font-face {
  font-family: "Open Sans";
  src: local("Open Sans Bold"),
       url(/static/fonts/OpenSans-Bold.ttf);
  font-weight: bold;
}
@font-face {
  font-family: "Open Sans Semibold";
  src: local("Open Sans Semibold"),
       url(/static/fonts/OpenSans-Semibold.ttf);
  font-weight: normal;
}

/* Global */
html,
body {
  height: 100%;
  width: 100%;
}

body.rtl {
  direction: rtl;
}

body.rtl .rtl-image {
  -webkit-transform: scaleX(-1);
}

/* Box Model */
.box,
.box-h {
  -moz-box-orient: horizontal;
  -ms-box-orient: horizontal;
  -o-box-orient: horizontal;
  -webkit-box-orient: horizontal;
  box-orient: horizontal;
  display: -moz-box;
  display: -ms-box;
  display: -o-box;
  display: -webkit-box;
  display: box;
}
.box-v {
  -moz-box-orient: vertical;
  -ms-box-orient: vertical;
  -o-box-orient: vertical;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  display: -moz-box;
  display: -ms-box;
  display: -o-box;
  display: -webkit-box;
  display: box;
}
.box-c-c {
  -moz-box-align: center;
  -ms-box-align: center;
  -o-box-align: center;
  -webkit-box-align: center;
  box-align: center;
  -moz-box-pack: center;
  -ms-box-pack: center;
  -o-box-pack: center;
  -webkit-box-pack: center;
  box-pack: center;
  display: -moz-box;
  display: -ms-box;
  display: -o-box;
  display: -webkit-box;
  display: box;
}
.box-ac {
  -moz-box-align: center;
  -ms-box-align: center;
  -o-box-align: center;
  -webkit-box-align: center;
  box-align: center;
  display: -moz-box;
  display: -ms-box;
  display: -o-box;
  display: -webkit-box;
  display: box;
}
.box-pc {
  -moz-box-pack: center;
  -ms-box-pack: center;
  -o-box-pack: center;
  -webkit-box-pack: center;
  box-pack: center;
  display: -moz-box;
  display: -ms-box;
  display: -o-box;
  display: -webkit-box;
  display: box;
}
.box-pe {
  -moz-box-pack: end;
  -ms-box-pack: end;
  -o-box-pack: end;
  -webkit-box-pack: end;
  box-pack: end;
  display: -moz-box;
  display: -ms-box;
  display: -o-box;
  display: -webkit-box;
  display: box;
}
.box-flex {
  -moz-box-flex: 1;
  -ms-box-flex: 1;
  -o-box-flex: 1;
  -webkit-box-flex: 1;
  box-flex: 1;
}
.hidden {
  display: none !important;
}
.errored {
  border-color: #c90000 !important;
}

/* Inputs */
input:focus {
  outline: none;
  border-color: #4d90fe !important;
}

input[type="checkbox"],
input[type="radio"] {
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-color: white;
  border: 1px solid #dcdcdc;
  height: 13px;
  margin: 0;
  padding: 0;
  overflow: initial;
  width: 13px;
}
input[type="radio"] {
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  height: 15px;
  width: 15px;
}
input[type="checkbox"]:hover,
input[type="radio"]:hover {
  border-color: #c6c6c6;
  -moz-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, .1);
  -ms-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, .1);
  -o-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, .1);
  -webkit-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, .1);
  box-shadow: inset 0px 1px 1px rgba(0, 0, 0, .1);
}
input[type="checkbox"]:active,
input[type="radio"]:active {
  background-color: #ebebeb;
  border-color: #c6c6c6;
}
input[type="radio"]:checked::after {
  background: #666;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  content: '';
  display: block;
  height: 7px;
  margin: 3px auto;
  width: 7px;
}
input[type="checkbox"]:checked::after {
  content: url(/static/images/check.png);
  display: block;
  left: -5px;
  position: relative;
  top: -6px;
}
input[type="checkbox"]:focus,
input[type="radio"]:focus {
  outline: none;
  border-color: #4d90fe;
}

button,
.button,
.clickable {
  cursor: pointer;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Page */
body {
  background-color: #eaeaea;
  background-image: url(/static/images/background.png);
  color: #333;
  font-family: "Open Sans", sans-serif;
  height: 100%;
  overflow: hidden;
  width: 100%;
}

#main-container,
#bar,
header,
#page,
footer {
  width: 100%;
}
#main-container {
  font-family: "Open Sans", sans-serif;
  height: 100%;
  min-width: 1080px;
}
#main-container > header {
  background-color: #f9f9f9;

  -moz-box-shadow: 0 2px 2px rgba(0, 0, 0, .2);
  -o-box-shadow: 0 2px 2px rgba(0, 0, 0, .2);
  -webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, .2);
  box-shadow: 0 2px 2px rgba(0, 0, 0, .2);

  height: 60px;
  position: relative;
  z-index: 3;
}
#main-container > header > div {
  height: 60px;
}
#main-container > header #logo {
  padding: 0 20px;
  width: 245px;
}

#main-container > #page {
  overflow-x: hidden;
  overflow-y: scroll;
}

#main-container > footer {
  background-color: #f9f9f9;
  border-top: 1px solid rgba(0, 0, 0, .2);
  color: #777;
  font-size: 11px;
  height: 31px;
  text-shadow: 0 1px 0 #fff;
}
#main-container > footer > div {
  padding: 0 15px;
}

::-webkit-scrollbar {
  height: 16px;
  width: 16px;
}
::-webkit-scrollbar-button {
  height: 0px;
  width: 0px;
}
::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment {
  display: block;
}

::-webkit-scrollbar-button:vertical:start:increment,
::-webkit-scrollbar-button:vertical:end:decrement {
  display: none;
}
::-webkit-scrollbar-track:vertical {
  border: 0 solid transparent;
  border-right: 5px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-track:horizontal {
  border: 0 solid transparent;
  border-top: 5px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb {
  background-clip: padding-box;
  background-color: rgba(0, 0, 0, .2);
  -webkit-box-shadow: inset 1px 1px 0px rgba(0,0,0,0.1),
                      inset 0px -1px 0px  rgba(0,0,0,0.07);
  min-height: 28px;
  padding-top: 100px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, .4);
  -webkit-box-shadow: inset 1px 1px 1px rgba(0, 0, 0, .25);
}
::-webkit-scrollbar-thumb:active {
  -webkit-box-shadow: inset 1px 1px 3px rgba(0, 0, 0, .35);
  background-color: rgba(0, 0, 0, .5);
}
::-webkit-scrollbar-thumb:vertical {
  border: 0 solid transparent;
  border-right: 5px solid transparent;
}
::-webkit-scrollbar-thumb:horizontal {
  border: 0 solid transparent;
  border-bottom: 5px solid transparent;
}
::-webkit-scrollbar-track:hover {
  background-color: rgba(0, 0, 0, .05);
   -webkit-box-shadow: inset 1px 0px 0px rgba(0, 0, 0, .1);
}
::-webkit-scrollbar-track:active {
  background-color: rgba(0, 0, 0, .05);
  -webkit-box-shadow: inset 1px 0px 0px rgba(0, 0, 0, .14),
                      inset -1px -1px 0px  rgba(0, 0, 0, .07);
}
