/* Wiking generic page content styles (to be used with media="all") */

#messages .error, #messages .info, #messages .warning {
    border-style: solid;
    border-width: 1px 0;
    padding: 0.3em;
    margin: 1em 0;
}
#messages .info { 
    color: inherit;
    background-color: #cfc;
    border-color: #aea;
}
#messages .error, #messages .warning { 
    color: inherit;
    background-color: #fdb;
    border-color: #fba;
}

img { position: relative; } /* MSIE float workaround */
.hidden { display: none; }

.wiking-info-bar {
    margin: 1em 0 0.5em 0;
    padding: .3em;
    padding-left: 32px;
    border: dotted 2px #aea;
    /* background-color: #ccc; */
    background-image: url(info.png);
    background-position: 2px center;
    background-repeat: no-repeat;
}

/* styles for exported LCG elements */

hr {
    height: 1px;
    background-color: #aaa;
    border: 0px;
}
hr.new-page {
    height: 4px;
    background-color: transparent;
    border: 1px dotted #aaa;
    border-width: 1px 0;
}
ul {
    margin-top: 0.1em;
    margin-bottom: 0.1em; 
}
li {
    margin-top: 0; 
    margin-bottom: 0; 
}
a.backref, a:link.backref { 
    color: #000 !important; /* important needed for MSIE */
    text-decoration: none;
}

.lcg-citation, .lcg-quotation { 
    font-style: italic;
}
.underline { 
    text-decoration: underline;
}
dt .lcg-citation { 
    font-style: normal;
}
dt em { 
    font-weight: normal;
}
dl dt {
    font-weight: bold;
}

table.lcg-table {
    border-collapse: collapse;
}
table.lcg-table, table.lcg-fieldset {
    margin: 0.5em 0;
}
table.lcg-table td, table.lcg-table th {
    padding: 2pt;
    vertical-align: top;
    white-space: nowrap;
    border: solid #aaa 1px;
}
table.lcg-table td { background-color: #fff; }
table.lcg-table th { background-color: #ddd; }
table.lcg-table caption, table.lcg-fieldset caption {
    font-weight: bold;
    font-size: 1.1em;
    text-align: left;
}
table.lcg-fieldset {
    padding: 0;
    border-collapse: collapse;
}
table.lcg-fieldset tr { 
    vertical-align: top;
    padding: 0;
}
table.lcg-fieldset th { 
    white-space: nowrap;
    text-align: left; 
    vertical-align: top;
    padding: 0 0.5em 0 0;
}

pre.lcg-preformatted-text {
    background-color: #eee;
    border: solid #ccc 1px;
    color: #000;
    padding: 0.3em;
    white-space: pre;
}

img.lcg-image { 
    margin: .5em .8em;
}
img.lcg-image.left-aligned { 
    margin: .25em 1em .25em 0;
}
img.lcg-image.right-aligned { 
    margin: .25em 0 .25em 1em;
}

figure {
  border: thin silver solid;
  margin: 0.5em;
  padding: 0.5em;
  width: auto;
  display: table-cell;
}

figure a, figure img {
    display: table-cell;
    margin: auto;
}

figure.left-aligned {
    float: left;
}

figure.right-aligned {
    float: right;
}

figcaption{
    display: table-caption;
    caption-side: bottom;
    text-align: center;
    font-style: italic;
    font-size: smaller;
    text-indent: 0;
    min-width: 16em;
}

div.table-of-contents { 
    border: solid #ccc;
    border-width: 1px 0;
    background-color: #eee;
    margin: 1em 0;
    padding: 3pt;
}
div.table-of-contents ul { 
    margin-top: 3pt;
    margin-bottom: 0;
}

#login, #password { 
    border: 1px solid #aaa;
}

/* Wiking CMS specific styles */
.cms-page-actions { 
    margin: 1em 0 0 0;
    position: relative;
    top: 0.2em;
    padding-top: 0.2em;
    border-top: 1px solid #aaa;
}
.cms-page-actions button.disabled span { 
    color: #000;
    opacity: 0.4;
}
.cms-page-actions button.action-update span { 
    background-image: url(edit.png);
    padding-left: 19px;
}
.cms-page-actions button.action-options span { 
    background-image: url(properties.png);
    padding-left: 19px;
}
.cms-page-actions button.action-commit span { 
    background-image: url(publish.png);
    padding-left: 19px;
}
.cms-page-actions button.action-revert span { 
    background-image: url(undo.png);
    padding-left: 19px;
}
.cms-page-actions button.action-attachments span { 
    background-image: url(attachment.png);
    padding-left: 19px;
}
.list-form-controls button.prev-page-button span {
    background-image: url(previous.png);
    padding-left: 18px;
}
.list-form-controls button.next-page-button span {
    background-image: url(next.png);
    padding-right: 20px;
    background-position: right center;
}
.list-form-controls button.search-button span {
    background-image: url(search.png);
    padding-left: 18px;
}

div.wiking-image-gallery img {
    margin-right: 1.6em;
    margin-top: .8em;
    margin-bottom: .8em;
}

form.activation-form {
    float: left;
    margin-right: 0.5em;
}

div.item span.panel-field-date { 
    font-weight: bold;
}

/* Links to unpublished pages */
.unpublished { text-decoration: line-through; }

.page-navigation {
    background-color: #eee;
    border: 1px solid #ccc;
    border-width: 1px 0;
    text-align: right;
    padding: 0.1em;
}
.page-navigation.top {
    position: relative;
    top: -0.4em;
    margin-bottom: .5em;
}
.page-navigation.bottom {
    margin-top: 1.2em;
}
.page-navigation .navigation-ctrl {
    background-repeat: no-repeat;
}
.page-navigation .navigation-ctrl.prev {
    background-image: url(previous.png);
    background-position: left center;
    padding-left: 18px;
}
.page-navigation .navigation-ctrl.next {
    background-image: url(next.png);
    background-position: right center;
    padding-right: 18px;
}
.page-navigation .navigation-ctrl.dead {
    opacity: 0.6;
}

table.diff { border: 1px solid #aaa; margin-top: 0.4em; margin-bottom: 0.2em; }
table.diff td, table.diff th { padding: 0.2em; }
td.diff_header { text-align: right; }
th.diff_header, th.diff_next { background-color: #ddd; }
td.diff_header, td.diff_next { background-color: #eee; }
span.diff_add, span.field.id-diff_add { background-color: #aaffaa; }
span.diff_chg, span.field.id-diff_chg { background-color: #ffff77; }
span.diff_sub, span.field.id-diff_sub { background-color: #ffaaaa; }

.pytis-form.publication-export-form div.group,
.pytis-form.publication-export-form div.submit,
.pytis-form.excerpt-export-form div.group,
.pytis-form.excerpt-export-form div.submit {
    margin: 2px;
    padding: 0;
    border: none;
    background: transparent !important;
    text-align: left;
}
.pytis-form.publication-export-form .submit button,
.pytis-form.excerpt-export-form .submit button {
    margin: 0;
}
.pytis-form.publication-export-form th.label {
    width: 1%; /* Prevent label spanning too wide in Safari */
}

.export-progress-log {
    min-height: 2em;
    max-height: 10em;
    max-width: 66em;
    overflow: scroll;
    border: solid #aaa 1px;
    color: #000;
    padding: 0.1em;
    white-space: pre;
    
}
.export-progress-log .error-msg .label {
    color: #c00;
    font-weight: bold;
}
.export-progress-log .warning-msg .label {
    font-weight: bold;
}
.export-progress-summary {
    margin-top: 0.3em;
    margin-left: 0.1em;
    white-space: nowrap;
}
.export-progress-summary .label {
    font-weight: bold;
}
