body {
    font-family: arial, verdana, sans-serif, helvetica;
    color: #000;
    background-color: #efebe7;
    font-size: 0.8em;
    margin: 2pt 6pt;
}
table td, table th { 
    font-size: 0.8em;
}
p {
    margin: 0.4em 0;
}
hr {
    height: 1px;
    background: #bcd;
    border: 0px;
}
h1, h2, h3 {
    color: #000;
    font-weight: bold;
    text-align: left;
}
h1 { 
    background-color: #d8e0f0;
    padding: 1pt; 
    border: solid #bcd;
    border-width: 1px 0px;
}
h2, h3 { 
    border: solid #ccc 0px;
    border-bottom-width: 1px;
}
h1 { font-size: 1.5em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.3em; }
h4 { font-size: 1.2em; }
h5,h6,h7,h8,h9 { font-size: 1.1em; }

a:link    { color: #03b; }
a:visited { color: #03b; }
a:link:hover, a:visited:hover { color: #d60; }

a.backref, a:link.backref { 
    color: #000 !important; /* important needed for MSIE */
    text-decoration: none;
}

.hidden { display: none; }

img { position: relative; } /* MSIE float workaround */

/* Page layout */

#top {}

#top hr { display: none; }

#site-title { 
    font-size: 1.1em;
    max-width: 70%;
}

#page {
    padding-top: 0.3em;
    min-width: 100%;
}

#links {
    display: none;
}

#breadcrumbs {
    display: none;
    /* The rest is a prototype for the case that breadcrumbs are displayed */
    background: #eee;
    border: solid #ddd 1px;
    border-width: 1px 0;
    padding: 1px 0;
    margin-bottom: 0.3em;
}

#language-selection { 
    position: absolute;
    top: .5em;
    right: 8em;
    max-width: 55%;
    font-size: 0.9em;
    /*white-space: nowrap;*/
}
#language-selection a.current { background-color: #fc8; }

/* Horizontal menu with folders */

#page.with-menu #menu {
    border-bottom: 1px solid #9ab;
    padding-left: 0.2em;
    /* leave some space for language selection and panel controls */
    padding-right: 6em; 
}
#page.with-menu #main {
    border-top-width: 0; /* The top border must be part of the navigation bar because MSIE... */
}
#page.with-menu #panels {
    top: -1px;
}
#page.with-menu #language-selection {
    top: 2pt;
    right: 6pt;
}

#menu h3 {
    display: none;
}
#menu ul { 
    margin: 0;
    padding: 0;
}
#menu li {
    display: inline;
    white-space: nowrap;
}
#menu a.navigation-link {
    border: solid #9ab 1px;
    padding: 0 0.6em; /* 0.1em 0.6em; */
    background-color: #d2d8e0;
    text-decoration: none; /* ??? */
}
#menu a.navigation-link.current {
    background-color: #fff;
    border-bottom: solid #fff 1px;
}

/* Hierarchical submenu */

#page.with-submenu #main { 
    padding-left: 12em;
}
#submenu { 
    position: relative;
    z-index: 1;
    float: left;
    width: 12em;
}
#submenu div.menu-panel  { 
    position: relative;
    border: 1px solid #9ab;
    margin: 0.8em 0.5em 0.5em 0.8em;
    padding: 0;
}
#submenu h3 {
    margin: 0;
    font-size: 1.1em;
    padding: 0.1em 0.2em;
    background-color: #d8e0f0;
    border-bottom: 1px solid #9ab;
}
#submenu ul { 
    display: block;
    padding: 0.3em;
    padding-left: 1.5em;
    margin: 0;
}
#submenu ul ul { 
    padding-left: 1em;
}
#submenu li { 
    display: inline; /* MSIE has problems with block element inside a list item... */
}
#submenu li a { 
    display: list-item;
    list-style-type: circle;
}
#submenu li a.current { 
    background-color: #d8e0f0;
    list-style-type: disc;
}
/* This makes panels to skip in Firefox when page content is too wide...
#submenu li a:hover { 
    outline: solid 1px #ccc;
}*/

/* Panels */

#page.with-panels { 
    float: left; /* Force the main div to fit its content. */
}
#page.with-panels #main { 
    margin-right: 17em;
}
#page.with-panels #menu { 
    margin-right: 17em;
    padding-right: 0; 
}
#panels {
    position: relative;
    right: 0.1em; /* Needed for MSIE when page is too wide */
    z-index: 1;
    float: right;
    width: 17em;
}
#panels a.panel-control {
    position: absolute;
    top: -1.4em;
    font-size: 0.8em;
    right: 0;
}
div#panels-menu-item { 
    margin-left: 0.5em;
}

div.panel { 
    margin: 0 0em 0.5em 0.5em;
    color: #000;
    border: 1px solid #9ab;
    background-color: #fff;
}
div.panel h3 { 
    padding: 0.1em 0.2em; 
    margin: 0; 
    font-size: 1.1em;
    position: relative;
    background-color: #d8e0f0;
    border-bottom: 1px solid #9ab; 
}
div.panel div.panel-content { 
    padding: 0.05em 0.2em; 
}
div.panel ul, div.panel ol { 
    padding-left: 1.5em;
    margin: 0;
}
div.panel hr { display: none; }
div.panel form { margin: 0.3em 0; }

#panel-login a.login-ctrl {
    color: #000;
    border: 1px solid #9ab;
    background-color: #d8e0f0;
    padding: 0 0.5em;
    text-decoration: none;
    white-space: nowrap;
    margin: 0 0.3em;
}
#panel-login a.login-ctrl:hover { 
    background: #fc8;
}

#panel-login div.panel-content {
    padding: 0.3em;
    line-height: 1.3em;
}

/* The actual page content */

#main {
    position: relative;
    color: #000;
    background-color: #fff;
    border: 1px solid #9ab;
    padding: 0.8em;
    margin-bottom: 0.5em;
}
#main h1 { 
    margin-top: 0;
    margin-bottom: 0.8em;
}
#content { 
    position: relative; /* fix MSIE background painting */
    width: 100%;
}
#clearing {
    height: 0;
    font-size: 0;
    clear: left;
}
#page-clearing { 
    height: 0;
    font-size: 0;
}

/* Bottom part of the page */

#bottom { 
    clear: both;
    margin: 1em 0;
}
#bottom-bar { 
    text-align: right;
    font-size: 0.9em;
    border: solid #9ab;
    border-width: 1px 0px;
    background: #d8e0f0;
}
#bottom-bar { text-align: right; }
#bottom-bar span.left { float: left; }
#bottom-bar div.left { text-align: left; }
#bottom-bar a { text-decoration: none; }
#bottom-bar hr { display: none; }

#last-change { 
    text-align: right;
    font-size: 0.75em;
}

#shared-audio-player { 
    position: fixed;
    bottom: 0;
    right: 0;
}
div#shared-audio-player { 
    color: inherit;
    background: #fdb;
    border: solid 1px #fba;
    padding: .1em;
}

#footer { font-size: 0.9em; text-align: center; margin: 0pt; }
#footer p { margin: 1pt 0pt; }
#footer img { margin: 5pt; }
#footer hr { display: none; }

/* Special controls */

#login-controls { 
    position: absolute;
    top: 0.7em;
    right: 0.9em;
    padding: 0.2em 0 0.3em 0;
}

/* Generic Wiking styles */

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

.not-null { 
    color: #f00;
}
form.login-form {
    background: #eee;
    border: 1px solid #ddd;
    border-width: 1px 0;
    padding: .8em 2em;
    margin: 0 2.5em 1em 0;
}
form.login-form input {
    margin-bottom: 0.5em;
}
form.login-form ul {
    margin-top: 1em;
}
form.login-form label {
    font-weight: bold;
}

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

/* Specific styles for Wiking modules */

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

/* Pytis forms styles */

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

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

form.pytis-form table.horizontal-group { width: 100%; }
form.pytis-form .horizontal-group fieldset.group {
    margin: 0 0 0.4em 0;
    /* margin-bottom: 100%; ** this breaks fieldset border. */
}
form.pytis-form .horizontal-group td.spaced {
    padding-left: 0.6em;
}
/* Fix MSIE fieldset background */
* html form.pytis-form table.horizontal-group { position: relative; }
* html form.pytis-form fieldset.group { position: relative; margin: 1em 0; padding-top: 0.7em; }
* html form.pytis-form .horizontal-group fieldset.group { margin: 0 0 1em 0; }
* html form.pytis-form fieldset.group legend { color: #000; position: absolute; top: -0.6em; left: 0.2em; }

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

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

form.browse-form table tr { background: #f8fafb; }
form.browse-form table tr.even { background: #f1f3f2; }
form.browse-form table tr.group-heading th { text-align: left; }
form.browse-form table th { background: #d8e0f0; }
form.browse-form table td pre {
    background-color: transparent;
    border: none;
}
form.browse-form table span.tree-indent {
    padding-left: 0.6em;
}
form.browse-form table tfoot td {
    background-color: #eee;
    border: 1px solid #ddd;
    padding: 0;
    text-align: right;
}

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

form.browse-form #found-record {
    background: #fc8;
}

form.list-view div.list-item {
    margin-bottom: 1.1em;
}
form.list-view #found-record h3 {
    background: #fc8;
}

form.list-view div.list-item h3 {
    margin-bottom: 0.2em;
    font-size: 1.2em;
}
form.list-view div.list-item img.list-layout-image {
    float: right;
    margin-left: .6em;
    margin-bottom: 1.1em;
} 
form.list-view div.list-item div.meta {
    font-style: italic;
    margin: 0.2em 0;
    color: #840;
    padding: 0.1em 0;
    background: #fff;
}
form.list-view table.grid {
    border-collapse: separate;
    border-spacing: 0.6em;
}
form.list-view table.grid td {
}
form.list-view table.grid h3 {
    margin-top: 0;
}
form.pytis-form fieldset.body div.field { 
    margin: 0.2em 0;
}
form.pytis-form label { 
    white-space: nowrap;
    font-weight: bold;
}
form.pytis-form .group table { 
    border-collapse: collapse;
}
form.pytis-form th.label { 
    padding-right: 0.3em;
    line-height: 1.4em;
    white-space: nowrap;
}
form.show-form td.ctrl, form.list-view td.ctrl { 
    line-height: 1.4em;
}

form.pytis-form .group span.color-display { 
    padding: 0 0.5em;
    border: 1px solid #bcd;
}
form.pytis-form .group span.color-value { 
    float: left;
    width: 6em;
}
form.show-form .group textarea, form.list-view .group textarea {
    background: #eee;
    border: 0px;
    font-size: 1em;
}
form.show-form, form.edit-form { 
    margin: 0;
    padding: 0;
}
form.edit-form div.help { 
    color: #444;
    margin-bottom: 0.4em;
}
form.edit-form .group input, form.edit-form textarea,
form.edit-form select, #login, #password { 
    border: 1px solid #bcd;
}
form.pytis-form textarea.fullsize {
    width: 100%;
}
form.pytis-form.list-view div.summary {
    margin-top: 1.2em;
    border-top: 1px solid #ddd;
}
/*form.pytis-form .invalid {
    background: #fdb;
}*/

.actions { 
    margin: 1em 0;
    line-height: 1.5em;
}
.actions.separate { 
    margin: 1em 0 0 0;
    position: relative;
    top: 0.2em;
    padding-top: 0.2em;
    border-top: 1px solid #bcd;
}
.actions form { 
    display: inline;
    margin: 0;
    padding: 0;
}
.actions a { 
    vertical-align: top;
    padding-left: 0.5em;
}

/* LCG Formatter styles */

ul {
    margin-top: 0.1em;
    margin-bottom: 0.1em; 
}
li {
    margin-top: 0; 
    margin-bottom: 0; 
}

.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 #bcd 1px;
}
table.lcg-table td { background: #f8fafb; }
table.lcg-table th { background: #d8e0f0; }
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: #eee;
    border: solid #ddd 1px;
    color: #000;
    padding: 0.3em;
    white-space: pre;
}

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


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