/* Copyright (C) 2018 OUI Technology Ltd.  All rights reserved. */

/* Wiking Biblio specific styles */

@media screen {

/* OUI branding */

#site-title a {
    display: inline-block;
    background: url(oui-logo.svg) left top no-repeat;
    background-size: contain;
    height: 28px;
    line-height: 28px;
    font-size: 20px;
    left: -10px;
    padding-left: 38px;
}

#menu ul.level-1 > li > .item:hover {
    border-bottom-color: #ffeb00;
}
#menu ul.level-1 > li.in-path > .item {
    border-bottom-color: #f5a500;
}
#submenu .current .label {
    background-color: #fef7be;
}
.message.info {
    background-color: #fef7be;
}

#bottom {
    border-top-color: #f5a500;
}

#menu ul.level-1 > li > .item,
#site-title a,
body .notebook-widget li.notebook-tab > a {
    color: #504328;
}

/* End of OUI branding */

body.frame-layout {
    background: none;
    padding: 0;
    margin: 0;
}
body.frame-layout form.login-form, body.frame-layout div.group {
    background: none;
    border: none
}

div.table-of-contents form {
    margin: 0; /* Hack for the Catalog categories and authors list hack. */
}

.pytis-form.show-form .field.id-annotation .multiline {
    white-space: normal;
}
.pytis-form.show-form.catalog > fieldset:first-child > table > tbody > tr > td:first-child {
    width: 75%;
}
.pytis-form.show-form .field ul {
    padding-left: 1.6em;
    margin: 0;
}

.biblio-tag-control .add-tag {
    margin-top: 4px;
    position: relative;
    display: inline-block;
}
.biblio-tag-control .echo {
    display: inline-block;
    width: 1px;
    overflow: hidden;
    text-indent: -999px;
}
.biblio-tag-control .remove-tag {
    display: inline-block;
    width: 13px;
    height: 13px;
    text-indent: -999px;
    overflow: hidden;
    border: solid 1px #aaa;
    border-radius: 7px;
    margin-left: 3px;
    position: relative;
    top: 3px;
    background: url(lcg-icons.png) -23px -39px no-repeat;
}
.biblio-tag-control .no-tags {
    margin: 4px 2px;
}
.biblio-tag-control ul.tags {
    padding: 0;
    margin: 2px 0;
}
.biblio-tag-control ul.tags li {
    white-space: nowrap;
    margin: 0 0 0 20px;
    line-height: 18px;
    padding: 0
}
.biblio-tag-control button {
    margin-left: 0;
}

body .pytis-form.browse-form table.data-table tr.data-row td,
body .pytis-form.browse-form table.data-table tr.row-expansion td,
body .pytis-form.browse-form table.data-table tr.column-headings th,
body .pytis-form.browse-form table.data-table tr.group-heading th {
    border-color: #fac80080;
}

.pytis-form.browse-form .field.id-summary ul {
    padding-left: 1.6em;
    margin: 0;
    max-height: 6em;
    overflow-y: scroll;
}

.pytis-form.browse-form.catalog .row-expansion-content {
    padding: 3px 8px 16px 8px;
}
.pytis-form.show-form.catalog h2 {
    border: none;
    font-size: 1.2em;
    margin-bottom: 0.6em;
}

.section-container.catalog-item-data {
    margin-bottom: 8px;
}
.section-container.catalog-item-data .section-heading {
    border: solid 1px #fce580;
    border-width: 1px 0;
    background-color: #fff9de;
    padding: 2px;
}
.section-container.catalog-item-data .group {
    margin: 0;
    border-top: 0;
}
.section-container.catalog-item-data h3 {
    margin: 0;
    font-size: 1em;
}

/******** Media Player ********/

.media-player {
    margin: .8em 0;
}

.jp-audio button::-moz-focus-inner {
    border: 0;
}

.jp-audio {
    color: #000;
    border: 1px solid #fce580;
    border-width: 1px 0;
    background-color: #fff9de;
    width: 320px;
    padding: 0 16px;
}
.jp-interface {
    position: relative;
}
.jp-audio .hidden-label {
    display: none;
}

/******** Track Selection ********/

.jp-audio .track-selection {
    margin: 8px 0 4px 0;
    position: relative;
    cursor: pointer;
    border-radius: 6px;
    font-family: arial,verdana,sans-serif,helvetica;
    line-height: 1.2em;
    background-color: #e8e8e8;
    border: solid #bbb 1px;
}
.jp-audio .track-selection .jp-title {
    display: inline-block;
    padding: 4px 8px;
}
.jp-audio .track-selection .invoke-selection {
    position: absolute;
    display: inline-block;
    top: 0;
    right: 0px;
    width: 27px;
    height: 27px;
    border-left: solid #aaa 1px;
    border-radius: 0 6px 6px 0;
    background: url(jplayer.png) no-repeat scroll -3px -98px #e8e8e8;
}
.jp-audio .track-selection:focus {
    border-color: #fac800;
}
.jp-audio .track-selection select {
    border: solid 1px #ccc;
    cursor: pointer;
    width: 100%;
    padding: 2px;
    overflow: hidden;
}

/******** Playback Controls ********/

.jp-controls {
    position: relative;
    margin: 4px -2px;
    height: 43px;
    float: left;
}
.jp-audio button,
.jp-audio button:hover {
    display: block;
    float: left;
    overflow: hidden;
    text-indent: -9999px;
    border: 1px solid #bbb;
    border-radius: 10px;
    cursor: pointer;
    background-image: url(jplayer.png);
    background-repeat: no-repeat;
    background-color: #e8e8e8;
    padding: 0;
}
.jp-audio button:focus {
    border-color: #fac800;
}

.jp-controls .play-pause {
    width: 40px;
    height: 40px;
    position: relative;
    left: 44px;
    background-position: 0 0;
    margin: 0 2px;
}
.jp-state-playing .jp-controls button.play-pause {
    background-position: -32px 0;
}

.jp-controls .fast-forward,
.jp-controls .rewind {
    width: 40px;
    height: 32px;
    margin: 4px 2px;
}
.jp-controls .fast-forward {
    background-position: -33px -39px;
}
.jp-controls .rewind {
    background-position: 0 -39px;
    position: relative;
    left: -44px;
}

/******** Volume Controls ********/

.jp-state-no-volume .jp-volume-controls {
    display: none;
}

.jp-volume-controls {
    position: relative;
    float: right;
    margin: 4px -2px;
}

.jp-volume-controls .volume-down, .jp-volume-controls .volume-up {
    height: 32px;
    width: 40px;
    margin: 4px 2px;
}
.jp-volume-controls .volume-down {
    background-position: 2px -68px;
}
.jp-volume-controls .volume-up {
    background-position: -35px -68px;
    position: relative;
    left: 64px;
}

.jp-volume-bar {
    position: relative;
    left: -42px;
    overflow: hidden;
    background: #ccc;
    width: 60px;
    height: 8px;
    margin: 17px 2px;
    cursor: pointer;
}
.jp-volume-bar-value {
    background-color: #fac800;
    width: 0;
    height: 8px;
    text-indent:-9999px;
}


/******** Progress Bar ********/

.jp-progress {
    overflow: hidden;
    background-color: #ccc;
    height: 15px;
    width: 100%;
}
.jp-seek-bar {
    width: 0;
    height: 100%;
    cursor: pointer;
}
.jp-play-bar {
    width: 0;
    height: 100%;
    background-color: #fac800;
}

.jp-seeking-bg {
    background: url(jplayer-seeking.gif);
}

/******** Playback Time Display ********/

.jp-time-holder {
    margin-bottom: 0.1em;
}

.jp-current-time,
.jp-duration {
    width: 60px;
    speak-numbers: continuous;
}
.jp-current-time {
    display: inline;
    cursor: default;
}
.jp-duration {
    float: right;
    display: inline;
    text-align: right;
    cursor: pointer;
}

/*******************************/

.jp-jplayer audio,
.jp-jplayer {
    width: 0px;
    height: 0px;
}

.jp-jplayer {
    background-color: #000000;
}

.jp-no-solution {
    padding: 5px;
    background-color: #ddd;
    border: 2px solid #009be3;
    color: #000;
    display: none;
}

.jp-no-solution a {
    color: #000;
}

.jp-no-solution span {
    display: block;
    text-align: center;
    font-weight: bold;
    margin: 8px 0 2px 0;
    background-color: #faa;
    border-color: #f88;
}

/* This applies generally, but it is for consistency of the media player track selection */
div.dropdown-selection-widget {
    border-color: #999 !important;
    max-height: 392px;
}
div.dropdown-selection-widget li.active a {
    line-height: 1.1em;
    font-weight: 300;
}
div.dropdown-selection-widget li.active a:focus {
    background-color: #feedae !important;
}

/******************************/

.pytis-form.filter-form div.group {
    float: left;
    border: none;
    background: node;
}
.pytis-form.filter-form .submit {
    text-align: left;
}

.order-form {
    margin-top: .8em;
    white-space: nowrap;
}
.order-form .amount {
    line-height: 13px;
}
.order-form .amount, .order-form button {
    vertical-align: middle;
}
.order-form .last-order-info {
    margin-left: 4px;
    border: dotted 1px #fc6;
    background-color: #ffe;
    padding: 1px 4px;
}

.search-form {
    white-space: nowrap;
}
.search-form input {
    width: 162px;
    border-radius: 3px 0 0 3px;
    border-right: none;
}
.search-form button {
    padding: 2px 4px;
    border-radius: 0 3px 3px 0;
}
.search-form button .label {
    text-indent: -9999px;
}
.search-form button .icon {
    margin: 0;
}
.catalog-update {
    position: relative;
}
.catalog-update .progress-bar {
    position: relative;
    height: 8px;
    width: 100%;
    background-color: #ddd;
    margin: 8px 0;
    border-radius: 4px;
    overflow: hidden;
}
.catalog-update .progress-bar .progress {
    position: absolute;
    width: 0;
    height: 100%;
    background-color: #f5a500;
}
.catalog-update .update-message {
}
.catalog-update .update-status {
    position: absolute;
    display: inline-block;
    top: 0;
    right: 0;
}
.catalog-update .output {
    background-color: #ddd;
    max-height: 100px;
    overflow: scroll;
    white-space: pre;
    margin-top: 10px;
}
.catalog-update button {
    margin: 2px 0;
}


} /* end of @media screen */

@media print {
    a:link, a:visited {
	color: #000;
	text-decoration: none;
    }
    .pytis-form.show-form.orders .actions.module-actions-Orders {
	display:none;
    }
    .pytis-form.browse-form.order-items table.data-table {
	border: solid 1px #aaa;
    }
    .browse-form.order-items .data-table td .field {
	white-space: nowrap;
    }
    .browse-form.order-items .data-table td .field.id-author,
    .browse-form.order-items .data-table td .field.id-description {
	width: 30mm;
	display: block;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
    }
    .browse-form.order-items .data-table td .field.id-description {
	width: 25mm;
    }
} /* end of @media print */
