body {
  margin: 0;
  padding: 0;
  color: #555;
  font: normal 10pt Arial, Helvetica, sans-serif;
  background: #EFEFEF;
}

#page {
  margin-top: 5px;
  margin-bottom: 5px;
  background: white;
  border: 1px solid #9FA1A2;
}

#header {
  margin: 0;
  padding: 0;
  border-top: 3px solid #686D73;
  background-image: url("../images/header.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 150px;
  position: relative;
}

#header .logo {
  position: absolute;
  width: 193px;
  height: 86px;
  object-fit: contain;
  /* object-position: left center; */
  border: 0 none;
  left: 15px;
  top: 20px;
}

#content {
  padding: 20px;
}

#sidebar {
  padding: 20px 20px 20px 0;
}

#footer {
  padding: 10px;
  margin: 10px 20px;
  font-size: 0.8em;
  text-align: center;
  border-top: 1px solid #9FA1A2;
}

#project {
  font-size: 100%;
  position: absolute;
  bottom: .5em;
  background-color: rgba(255, 255, 255, .8);
  right: 22px;
  border-radius: 1em;
  padding: .3em .8em;
}

#mainmenu {
  background: white url(bar-bg.png) repeat-x left top;
}

#mainmenu ul {
  padding: 6px 20px 5px 20px;
  margin: 0px;
}

#mainmenu ul li {
  display: inline;
}

#mainmenu ul li a {
  color: #EEE;
  background-color: transparent;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  padding: 5px 8px;
}

#mainmenu ul li a:hover, #mainmenu ul li.active a {
  color: #FFF;
  background-color: #9FA1A2;
  text-decoration: none;
}

div.flash-error, div.flash-notice, div.flash-success, div.flash-info {
  padding: .8em;
  margin: 1rem;
  /* border: 2px solid #ddd; */
  line-height: 1.5em;
  border-radius: 6px;
}

div.flash-info {
  background: #BDE5F8;
  color: #00529B;
  border-color: #BDE5F8;
}

div.flash-error {
  background: #FBE3E4;
  color: #8a1f11;
  border-color: #FBC2C4;
}

div.flash-notice {
  background: #FEEFB3;
  color: #514721;
  border-color: #FFD324;
}

div.flash-success {
  background: #DFF2BF;
  color: #4F8A10;
  border-color: #C9C9C9;
}

div.flash-info a {
  color: #00529B;
  font-weight: bold;
}

div.flash-error a {
  color: #8a1f11;
  font-weight: bold;
}

div.flash-notice a {
  color: chocolate;
  font-weight: bold;
}

div.flash-success a {
  color: cadetblue;
  font-weight: bold;
}

div.form .rememberMe label {
  display: inline;
}

div.view {
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #CCC;
}

div.breadcrumbs {
  font-size: 0.9em;
  padding: 5px 20px;
}

div.breadcrumbs span {
  font-weight: bold;
}

.lang-box-container {
  text-align: right;
  /* display: inline-block; */
  float: right;
  margin-top: 5px;
  margin-right: 10px;
}

div.search-form {
  padding: 10px;
  margin: 10px 0;
  background: #eee;
}

.portlet {}

.portlet-decoration {
  padding: 3px 8px;
  background: #888;
  border-left: 5px solid #686D73;
}

.portlet-title {
  font-size: 12px;
  font-weight: bold;
  padding: 0;
  margin: 0;
  color: #EEE;
}

.portlet-content {
  font-size: 0.9em;
  margin: 0 0 15px 0;
  padding: 5px 8px;
  background: #EEEEEE;
}

.portlet-content ul {
  list-style-image: none;
  list-style-position: outside;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.portlet-content li {
  padding: 2px 0 4px 0px;
}

.operations {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.operations li {
  padding-bottom: 2px;
}

.operations li a, .operations li span {
  font: 12px Arial;
  color: #686D73;
  display: block;
  padding: 2px 0 2px 8px;
  line-height: 15px;
  text-decoration: none;
}

.operations li ul li a {
  font: 12px Arial;
  color: #686D73;
  display: block;
  padding: 2px 0 0px 20px;
  line-height: 15px;
  text-decoration: none;
}

.operations li ul li a img {
  vertical-align: text-bottom;
  width: 16px;
  height: 16px;
}

.operations img {
  vertical-align: text-bottom;
  height: 16px;
}

.operations li a:visited {
  color: #686D73;
}

.operations li a:hover {
  background: #DDD;
  color: #000;
}

a, input.link, button.link {
  text-decoration: none;
  color: #686D73;
  border: none;
}

a:hover, input.link:hover, button.link:hover {
  text-decoration: none;
  color: #909090;
}

div.loading {
  background-color: #eee !important;
  background-image: url('../images/ajax-loader.gif') !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  opacity: 1;
}

div.loading * {
  opacity: .8;
}

span.valid {
  background-image: url('../images/icon-valid.gif') !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  padding-left: 20px;
}

span.invalid {
  background-image: url('../images/icon-invalid.gif') !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  padding-left: 20px;
}

div.statusOnline {
  width: 20px;
  height: 20px;
  background: url('../images/status.png') -1px 0px !important;
  border: 0px none;
  display: inline-block;
}

div.statusOffline {
  width: 20px;
  height: 20px;
  background: url('../images/status.png') -20px 0px !important;
  border: 0px none;
  display: inline-block;
}

div.statusReady, div.adStatusActive {
  width: 20px;
  height: 20px;
  background: url('../images/status.png') -1px 0px !important;
  border: 0px none;
  display: inline-block;
}

div.statusOutOfDate, div.adStatusExpired {
  width: 20px;
  height: 20px;
  background: url('../images/status.png') -20px 0px !important;
  border: 0px none;
  display: inline-block;
}

div.statusLoading {
  width: 20px;
  height: 20px;
  background: url('../images/status.png') -39px 0px !important;
  border: 0px none;
  display: inline-block;
}

div.statusNoContent {
  width: 20px;
  height: 20px;
  background: url('../images/status.png') -58px 0px !important;
  border: 0px none;
  display: inline-block;
}

div.adStatusScheduled {
  width: 20px;
  height: 20px;
  background: url('../images/status.png') -95px 0px !important;
  border: 0px none;
  display: inline-block;
}

input.link, button.link {
  background: none !important;
  border: none;
  padding: 0 !important;
}

input.link:hover, button.link:hover {
  background: none !important;
  border: none;
  cursor: pointer;
  padding: 0 !important;
}

.terminal-tree>div.hitarea {
  background: url('../images/icon-tv.png');
  background-size: 16px 16px;
}

.playlist-tree>div.hitarea {
  background: url('../images/icon-playlist.png');
  background-size: 16px 16px;
}

.composite-ad-tree>div.hitarea {
  background: url('../images/multiple-option-add.png');
  background-size: 16px 16px;
}

.undefined-ad-tree>div.hitarea {
  background: url('../images/question.png');
  background-size: 16px 16px;
}

.item-size-tree {
  font-size: 85%;
  color: #CCC;
  font-style: italic;
}

li div.composite-ad-tree, .media-icon>.composite-ad-tree {
  background: url('../images/multiple-option-add.png');
}

li div.undefined-ad-tree, .media-icon>.undefined-ad-tree {
  background: url('../images/question.png');
}

.playlist-icon {
  background: url('../images/icon-playlist.png');
  background-size: 16px 16px;
  width: 16px;
  vertical-align: baseline;
  height: 16px;
  display: inline-block;
}

li.pending-ad>a {
  opacity: .6;
}

a.outdated-ad, li.outdated-ad a {
  text-decoration: line-through;
}

a.scheduled-ad, li.scheduled-ad a {
  font-style: italic;
}

.myHitarea {
  width: 16px;
  height: 16px;
  margin-left: -16px;
  float: left;
  vertical-align: baseline;
  background-size: 16px 16px !important;
}

.myHitarea2 {
  width: 16px;
  height: 16px;
  margin-left: 0px;
  float: left;
  vertical-align: baseline;
  background-size: 16px 16px !important;
}

.treeview .playlist-tree .hitarea {
  background-image: none !important;
}

p.hint {
  font-style: italic;
  font-size: .9em;
  opacity: .7;
}

.sortable-item {
  padding: 2px 5px;
  background: #EEE;
  list-style-position: inside;
  margin: 2px 0;
  position: relative;
  counter-increment: sortable-counter;
  list-style-type: none;
}

.sortable-item:before {
  width: 1.5em;
  float: left;
  content: counter(sortable-counter) ".";
  margin-top: 4px;
}

.sortable-item table {
  padding: 0;
  width: 375px;
  display: inline-table;
  margin: auto;
}

.remove-sortable-button {
  display: inline-block;
  cursor: pointer;
  background-image: url("delete.png");
  width: 16px;
  height: 16px;
}