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

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

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


.notebook-container ul.notebook-switcher {
    margin-top: 1.6em;
    margin-bottom: 1em;
    padding: 0.2em 0;
    border-bottom: solid #b0b1b3 1px;
}
.notebook-container li.notebook-tab {
    display: inline;
    white-space: nowrap;
    margin-left: 0.3em;
    font-size: 1.1em;
    font-weight: bold;
}
.notebook-container li.notebook-tab a {
    border-radius: 4px 4px 0 0;
    border: solid #b0b1b3 1px;
    padding: 0.2em 1em;
    background-color: #f0f6fc;
    text-decoration: none;
}
.notebook-container li.notebook-tab a.current {
    background-color: #fafcfe;
    border-bottom: solid #fafcfe 1px;
}


/* Generic pytis forms styles */

.pytis-form .group, .pytis-form div.submit, .list-form-controls .paging-controls { 
    background-color: #f0f6fc;
    border: 1px solid #aaa;
    border-width: 1px 0;
    margin: 0.4em 0;
    padding: 0.4em 0.6em;
}
.pytis-form .group div.group {
    border-width: 0;
    margin: 0;
    padding: 0;
}
.pytis-form .group fieldset.group {
    border-width: 1px;
}

.pytis-form fieldset.outer {
    border: none;
    margin: 0;
    padding: 0;
    position: relative;
}
.pytis-form legend.empty { display: none; }

.pytis-form table.horizontal-group.expanded { width: 100%; }
.pytis-form .horizontal-group fieldset.group {
    margin: 0 0 0.4em 0;
    /* margin-bottom: 100%; ** this breaks fieldset border. */
}
.pytis-form .horizontal-group td.spaced,
.pytis-form .horizontal-group th.spaced {
    padding-left: 0.6em;
}
.pytis-form .error {
    color: #a21;
}


/* Fix MSIE fieldset background */
* html .pytis-form table.horizontal-group { position: relative; }
* html .pytis-form fieldset.group { position: relative; margin: 1em 0; padding-top: 0.7em; }
* html .pytis-form .horizontal-group fieldset.group { margin: 0 0 1em 0; }
* html .pytis-form fieldset.group legend { color: #424242; position: absolute; top: -0.6em; left: 0.2em; }

.pytis-form div.submit {
    margin-top: 0.5em;
    padding: 0.5em;
    text-align: center;
}
.pytis-form div.submit input { 
    padding: 0.1em 0.5em;
    margin: 0 1em;
}

.pytis-form.browse-form table {
    border-collapse: collapse;
    border: 1px solid #b0b1b3;
    margin-top: .3em;
}
.pytis-form.browse-form table td, .pytis-form.browse-form table th {
    padding: 2pt;
    vertical-align: top;
    border: 1px solid #b0b1b3;
}
.pytis-form.browse-form table td .tree-node {
    white-space: nowrap;
}

.pytis-form.browse-form table tr { background-color: #fff; }
.pytis-form.browse-form table tr.even { background-color: #f0f6fc; }
.pytis-form.browse-form table tr.group-heading th { text-align: left; }
.pytis-form.browse-form table th { background-color: #d0e6fc; }
.pytis-form.browse-form table td pre {
    background-color: transparent;
    border: none;
}
.pytis-form.browse-form table span.tree-indent {
    padding-left: 0.6em;
}
.pytis-form.browse-form table tfoot td {
    background-color: #f0f6fc;
    border: 1px solid #aaa;
    padding: 0;
    text-align: right;
}

.list-form-controls {
    margin: 0.8em 0;
    padding: .2em;
}
.list-form-controls .results {
    font-weight: bold;
}
.list-form-controls .filter,
.list-form-controls .paging-controls.one-page {
    text-align: right;
}
.list-form-controls span.offset,
.list-form-controls span.buttons,
.list-form-controls span.limit {
    white-space: nowrap;
}
.list-form-controls div.index-search-controls {
    padding-bottom: 0.4em;
}
.list-form-controls div.index-search-controls div {
    padding-bottom: 0.2em;
}
.list-form-controls span.limit,
.list-form-controls span.buttons input.prev,
.list-form-controls span.buttons input.search {
    margin-left: 1em;
}

.pytis-form.browse-form #found-record {
    background-color: #8ac7ff !important;
}

.pytis-form.list-view div.list-item {
    margin-bottom: 1.1em;
}
.pytis-form.list-view div.tree-indent {
    padding-left: 0.7em;
    border-left: 2px solid #aaa
}
.pytis-form.list-view #found-record h3 {
    background-color: #8ac7ff;
}

.pytis-form.list-view div.list-item h3 {
    margin-bottom: 0.2em;
    font-size: 1.2em;
}
.pytis-form.list-view div.list-item div.meta {
    font-style: italic;
    margin: 0.2em 0;
    color: #424242;
    padding: 0.1em 0;
    background-color: #fafcfe;
}
.pytis-form.list-view table.grid {
    border-collapse: separate;
    border-spacing: 0.6em;
}
.pytis-form.list-view table.grid td {
}
.pytis-form.list-view table.grid h3 {
    margin-top: 0;
}
.pytis-form fieldset.body div.field { 
    margin: 0.2em 0;
}
.pytis-form .field-label { 
    white-space: nowrap;
    font-weight: bold;
}
.pytis-form .field-label .not-null { color: #f00; }
.pytis-form .field-label.disabled { color: #424242; }
.pytis-form .field-label.disabled .not-null { display: none; }

.pytis-form div.radio-group label { 
    font-weight: normal;
}
.pytis-form div.radio-group { 
    margin-bottom: 0.3em;
}

.pytis-form .group table { 
    border-collapse: collapse;
}
.pytis-form.show-form td.ctrl, .pytis-form.list-view td.ctrl { 
    line-height: 1.4em;
}
.pytis-form th.label { 
    padding-right: 0.3em;
    line-height: 1.4em;
    white-space: nowrap;
}
.pytis-form.edit-form th.label {
    /* To display labels vertically centered with form controls. */
    line-height: 2em;
}
.pytis-form.show-form th.label { 
    /* Force normal line height in a show form embedded in an edit form. */
    line-height: 1.4em; 
} 

.pytis-form.show-form a.print-field-link { 
    float: right;
    display: block;
}

.pytis-form .group span.color-display { 
    padding: 0 0.5em;
    border: 1px solid #b0b1b3;
}
.pytis-form .group span.color-value { 
    float: left;
    width: 6em;
}
.pytis-form.show-form .group textarea, .pytis-form.list-view .group textarea {
    background-color: #f0f6fc;
    border: 0px;
    font-size: 1em;
}
.pytis-form.show-form, .pytis-form.edit-form { 
    margin: 0;
    padding: 0;
}
.pytis-form.edit-form div.help { 
    color: #424242;
    margin-bottom: 0.4em;
}
.pytis-form.edit-form .group input.text,
.pytis-form.edit-form .group input.password,
.pytis-form.edit-form .group input.file,
.pytis-form.edit-form .group input.text,
.pytis-form.edit-form textarea,
.pytis-form.edit-form select, #login, #password { 
    border: 1px solid #b0b1b3;
}
.pytis-form textarea.fullsize {
    width: 100%;
}
.pytis-form input.button.selection-invocation { 
    margin-left: 2px;
    padding: 0;
}

.pytis-form.list-view div.summary {
    margin-top: 1.2em;
    border-top: 1px solid #aaa;
}
/*.pytis-form .invalid {
    background-color: #fdb;
}*/


.actions { 
    margin: 1em 0;
    line-height: 1.5em;
}
.actions form { 
    display: inline;
    margin: 0;
    padding: 0;
}
.actions a {
    vertical-align: top;
    padding-left: 0.5em;
}

.actions button, .list-form-controls button {
    width: auto; /* fix MSIE size */
    overflow: visible; /* fix MSIE size */
    line-height: 1.3em;
    padding: 1px 0;
}
.actions button span, .list-form-controls button span {
    background-position: center left;
    background-repeat: no-repeat;
    padding: 3px;
}
.actions button[disabled] span, .list-form-controls button[disabled] span {
    opacity: 0.5;
    color: #424242;
}
.pytis-form.browse-form td .actions { 
    margin: 0;
}
.pytis-form.browse-form td .actions button {
    line-height: 1em;
}

.list-form-controls button.prev-page-button span {
    background-image: url(/_resources/previous.png);
    padding-left: 18px;
}
.list-form-controls button.next-page-button span {
    background-image: url(/_resources/next.png);
    padding-right: 20px;
    background-position: right center;
}
.list-form-controls button.search-button span {
    background-image: url(/_resources/search.png);
    padding-left: 18px;
}

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

/* LCG Formatter styles */

ul {
    margin-top: 0.1em;
    margin-bottom: 0.1em; 
}
li {
    margin-top: 0; 
    margin-bottom: 0; 
}
a.backref, a:link.backref { 
    color: #424242 !important; /* important needed for MSIE */
    text-decoration: none;
}

.citation, .quotation { 
    font-style: italic;
}
.underline { 
    text-decoration: underline;
}
dt .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 #b0b1b3 1px;
}
table.lcg-table td { background-color: #fff; }
table.lcg-table th { background-color: #d0e6fc; }
table.lcg-table caption, table.lcg-fieldset caption {
    font-weight: bold;
    font-size: 1.1em;
    text-align: left;
}
table.lcg-fieldset th { white-space: nowrap; text-align: left; padding-right: 0.5em; }

pre.lcg-preformatted-text {
    background-color: #f0f6fc;
    border: solid #aaa 1px;
    color: #424242;
    padding: 0.3em;
    white-space: pre;
}

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


/* 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 #b0b1b3;
}
.cms-page-actions button span { 
    padding: 3px;
    padding-left: 19px;
}
.cms-page-actions button.disabled span { 
    color: #424242;
    opacity: 0.4;
}
.cms-page-actions button.action-update span { 
    background-image: url(/_resources/edit.png);
}
.cms-page-actions button.action-options span { 
    background-image: url(/_resources/properties.png);
}
.cms-page-actions button.action-commit span { 
    background-image: url(/_resources/publish.png);
}
.cms-page-actions button.action-revert span { 
    background-image: url(/_resources/undo.png);
}
.cms-page-actions button.action-attachments span { 
    background-image: url(/_resources/attachment.png);
}


div.discussions .pytis-form.list-view.discussions .summary { display: none; }
div.discussions .pytis-form.list-view.discussions h3 { 
    margin-top: 0;
    font-weight: normal;
    font-size: 1em;
    background-color: #eee;
    border-width: 1px 0;
}
div.discussions .pytis-form.list-view.discussions div.list-item { 
    padding-top: 1em;
    padding-bottom: 0.3em;
    margin-bottom: 0;
}
div.discussions .pytis-form.list-view.discussions div.list-item.group-start { 
    padding-top: 0;
}
div.discussions .pytis-form.list-view.discussions div.list-item .actions { 
    text-align: right;
    margin: 0;
}
div.discussions .pytis-form.list-view.discussions div.list-item .actions button,
div.discussions .pytis-form.list-view.discussions div.list-item .actions button span {
    line-height: 1em;
    padding: 0;
}
div.discussions .pytis-form.edit-form { 
    margin: 1.2em 0;
    background-color: #f0f6fc;
    border: 1px solid #aaa;
    border-width: 1px 0;
    padding: 0.3em;
}
div.discussions .pytis-form.edit-form div.group,
div.discussions .pytis-form.edit-form div.submit { 
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}
div.discussions .pytis-form.edit-form div.submit { 
    padding: 0;
    text-align: right;
}
div.discussions .pytis-form.edit-form div.submit input { 
    margin: 0;
}
div.discussions .pytis-form.edit-form.discussions div.footer { display: none; }

div.discussions div.login-info p {
    margin: 1em 0;
    padding: 0.5em;
    padding-left: 28px;
    border: dotted 2px #aea;
    /* background-color: #fafcfe; */
    background-image: url(/_resources/info.png);
    background-position: left center;
    background-repeat: no-repeat;
}

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; }

/* Border-less table:
.pytis-form.browse-form.mapping table {
    border-collapse: separate;
    border-spacing: 0;
    border-width: 0;
}
.pytis-form.browse-form.mapping table tbody td {
    border-width: 0;
}
.pytis-form.browse-form.mapping table th {
    border-width: 1px 0;
} */

table.diff { border: 1px solid #b0b1b3; 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: #d0e6fc; }
td.diff_header, td.diff_next { background-color: #f0f6fc; }
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; }