/*
 * CSS pro administraci
 */

h3.localized-text-title img {
  margin-right: 10px;
}

.item-package {
  color: blue;
}

table.admin-table, table.user-table {
  border-collapse: collapse;
  width: 100%;
}

table.admin-table td, table.user-table td {
  background-color: rgb(240,240,240);
  padding: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  border-top: silver solid 1px;
}

table.admin-table th, table.user-table th {
  background-color: rgb(240,240,240);
  padding: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.admin-control-bar, .user-control-bar {
  background-color: rgb(218,218,218);
  padding: 10px;
  text-align: right;
  margin-top: 10px;
  margin-bottom: 10px;
  position: relative;
  min-height: 24px;
}

.admin-control-bar a, .user-control-bar a {
  text-align: center;
  margin-left: 5px;
  margin-right: 5px;
  background-color: #CC0000;
  color: white;
  display: inline-block;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 5px;
  padding: 3px 15px;
}

.admin-control-bar a:hover, .user-control-bar a:hover{color:#ffaa00;}

.admin-control-bar .paginator a, user-control-bar .paginator a {
  min-width: 20px;
  margin-left: 2px;
  margin-right: 2px;
  padding-left: 5px;
  padding-right: 5px;
}

.admin-back-bar, .user-back-bar {
  text-align: left;
  margin-top: 20px;
  margin-bottom: 50px;
}

.admin-back-bar-top {
  margin: 6px 0px 8px 0px;
  }

.admin-back-bar a, .user-back-bar a {
  text-align: center;
  margin-left: 5px;
  margin-right: 5px;
  background-color: #6A6A6A;
  color: white;
  display: inline-block;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 5px;
  padding: 3px 15px;
}
.admin-back-bar a:hover, .user-back-bar a:hover {color:#ffaa00;}

.localized-texts {
  background-color: rgb(218,218,218);
  border: silver solid 1px;
  border-top: none;
  padding: 10px;
}

.localized-texts h3 {
  margin: 0;
  cursor: pointer;
}

.localized-texts-card {
  margin-top: 10px;
  display: none;
}

.admin-book-selector h3, .admin-user-selector h3, .admin-library-selector h3 {
  margin-bottom: 4px;
}

.admin-package-books, .admin-selected-users, .admin-selected-libraries {
  display: inline-block;
  float: left;
  margin-right: 10px;
  position: relative;
}

.admin-package-book-list, .admin-selected-user-list, .admin-selected-library-list {
  height: 180px;
  width: 320px;
  border: 1px silver solid;
  background-color: white;
  overflow-y: auto;
  overflow-x: auto;
}

.admin-available-books, .admin-other-users, .admin-other-libraries {
  display: inline-block;
  position: relative;
}

.admin-available-book-list, .admin-other-user-list, .admin-other-library-list {
  height: 180px;
  width: 320px;
  border: 1px silver solid;
  background-color: white;
  overflow-y: auto;
  overflow-x: auto;
}

.admin-media-index-list {
  height: 180px;
  width: 100%;
  border: 1px silver solid;
  background-color: white;
  overflow-y: auto;
  overflow-x: auto;
  margin-top: 1em;
}

.admin-package-books h3, .admin-available-books h3, .admin-selected-users, .admin-other-users {
  position: relative;
}

.admin-package-book-filter, .admin-available-book-filter,
.admin-selected-user-filter, .admin-other-user-filter,
.admin-selected-library-filter, .admin-other-library-filter {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 160px;
}

.admin-pkg-book, .admin-user, .admin-library, .admin-media-index {
  padding: 4px;
  cursor: pointer;
}

.admin-pkg-book:hover, .admin-user:hover, .admin-library:hover {
  background-color: rgb(218,218,218);
}

.admin-media-index-new .input-time {
  width: 80px;
}

.admin-media-index-new .input-descr-label {
  padding-left: 1em;
}

.admin-media-index-new .input-descr {
  width: 420px;
}






#admin-link {
  margin-top: 10px;
  background-color: rgb(240,240,240);
  padding: 15px;
  text-align: center;
}

#admin-link a {
  display: inline-block;
  color: white;
  background-color: blue;
  text-transform: uppercase;
  width: 250px;
  height: 24px;
  line-height: 24px;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
  margin-left: 5px;
  margin-right: 5px;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
}

#admin-menu {

}

#admin-menu a {
  display: block;
  margin-top: 10px;
  background-color: rgb(240,240,240);
  padding: 10px;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
}

#admin-menu a:hover {
  text-decoration: underline;
  background-color: rgb(218,218,218);
}

#localized-texts-0 {
  border-top: silver solid 1px;
}

#localized-texts-card-0 {
  display: block;
}

#admin-category-tree {
  background-color: rgb(240,240,240);
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
}

#admin-category-tree li {
  font-size: 14px;
  margin-top: 10px;
  margin-bottom: 10px;
}

#event-table td.success {
  color: green;
}

#event-table td.error {
  color: red;
}

#event-table td.exception-logged {
  text-decoration: underline;
  text-decoration-style: dotted;
  -moz-text-decoration-style: dotted;
  -webkit-text-decoration-style: dotted;
}

#event-table td.user {
  min-width: 140px;
}

#order-filter {
  display: inline-block;
  padding-left: 200px;
}

#order-filter a {
  background-color: transparent;
  color: #C00000;
  height: 24px;
  line-height: 24px;
  font-size: 12px;
  margin: 0px;
  text-decoration: underline;
  text-transform: none;
  min-width: 0px;
}

#order-filter a.current {
  background-color: white;
}

#order-items table{width: 100%;}
#order-items table th, #order-history table th, #order-payments table th{background-color:#dedede;}
#order-items table td, #order-history table td, #order-payments table td{border-bottom:1px solid #dedede; padding: 1px 8px 1px 4px;}
#order-history table td{padding: 1px 12px 1px 6px;}

#book-gift-code-filter {
  height: 24px;
  line-height: 24px;
}

#book-gift-code-filter span {
  cursor: pointer;
}

#book-gift-code-filter span:hover {
  background-color: #F1F1F1;
}

#book-gift-code-ids input {
  width: 40px;
}

#book-gift-code-date input {
  width: 70px;
}

#gift-code-id-apply, #gift-code-id-cancel, #gift-code-date-apply, #gift-code-date-cancel {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  top: 3px;
}

#gift-code-id-apply, #gift-code-date-apply {
  background-image: url('../images/apply_16.png');
}

#gift-code-id-cancel, #gift-code-date-cancel {
  background-image: url('../images/delete_16.png');
}

.stats-filter {
  margin-top: 10px;
  padding: 10px;
  background-color: #EFEFEF;
  position: relative;
}

#sales-date-from, #sales-date-to {
  width: 90px;
}

#sales-author, #sales-book {
  width: 500px;
}

.stats-table table {
  border-collapse: collapse;
  border: 3px solid black;
  margin-top: 15px;
  margin-bottom: 15px;
}

.stats-table thead {
  border: 3px solid black;
  background-color: silver;
}

.stats-table tbody {

}

.stats-table tfoot {
  border: 3px solid black;
  background-color: #FFCC99;
}

.stats-table th, .stats-table td {
  border: 1px solid black;
  padding: 3px;
}

.stats-table tfoot td {
  font-weight: bold;
}

.export-link {
  background-color: #CC0000;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 3px 15px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  position: absolute;
  bottom: 10px;
  width: 100px;
}

.export-link:hover {
  color: #FFAA00;
}

#csv-export-link {
  right: 10px;
}

#excel-export-link {
  right: 150px;
}



#frm-computerForm div.pair label {
  width: auto;
  min-width: 120px;
}


.search-advanced-form .category-panel label {
  width: 300px;
}



.stats-calendar.ui-widget-content {
  background-color: #e0e0e0;
  background-image: none;
  box-shadow: 3px 2px 10px 0px gray;
}

.stats-calendar td {
  padding: 5px;
  border: 1px solid transparent;
}

.stats-calendar a {
  color: #f22;
}

.stats-calendar .ui-datepicker-title {
  color: gray;
  font-weight: bold;
}

.stats-calendar th {
  color: gray;
}

.stats-calendar .ui-datepicker-header {
  position: relative;
  height: 1.2em;
  padding-top: 2em;
}

.stats-calendar .ui-datepicker-prev {
  display: inline-block;
  position: absolute;
  left: 5px;
  top: 5px;
  cursor: pointer;
}

.stats-calendar .ui-datepicker-next {
  display: inline-block;
  position: absolute;
  right: 5px;
  top: 5px;
  cursor: pointer;
}

.stats-calendar .ui-datepicker-unselectable {
  color: #888;
}



#book-edit-cards, #package-edit-cards, #library-edit-cards, #library-edit-cards {
  margin-top: 10px;
}

#book-edit-switch span, #package-edit-switch span, #library-edit-switch span {
  display: inline-block;
  cursor: pointer;
  border: 1px solid #c0c0c0;
  border-bottom: none;
  padding: 5px;
}

#book-edit-switch span.current, #package-edit-switch span.current, #library-edit-switch span.current {
  background-color: #dadada;
}

.book-edit-card, .package-edit-card, .library-edit-card {
  display: none;
  border: 1px solid #c0c0c0;
  background-color: #dadada;
  padding: 10px;
}

.book-edit-card.current, .package-edit-card.current, .library-edit-card.current {
  display: block;
}


#price-currency-cards {
  margin-top: 10px;
}

#price-currency-switch span {
  display: inline-block;
  cursor: pointer;
  border: 1px solid #c0c0c0;
  border-bottom: none;
  padding: 5px;
}

#price-currency-switch span.current {
  background-color: #F1F1F1;
}

.price-currency-card {
  display: none;
  border: 1px solid #c0c0c0;
  background-color: #F1F1F1;
  padding: 10px;
}

.price-currency-card.current {
  display: block;
}

div.admin-book-price label, div.admin-package-price label {
  width: 160px;
}



.book-price-calculate, .package-price-calculate {
  cursor: pointer;
  color: #cc0000;
  text-decoration: underline;
}

.book-price-calculate:hover, .package-price-calculate:hover {
  color:#FFAA00;
}


#book-edit-data-image {
  float: right;
}

#book-edit-data-image img {
  max-width: 80px;
  border: 1px solid #c0c0c0;
}

#book-edit-data-pdffile {
  clear: right;
  font-weight: bold;
}

#book-edit-data-pdffile-upload {
  margin-bottom: 20px;
}

#book-edit-switch-media-indexes {
  display: none;
}
