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 */

#page { 
    padding-top: 0.3em;
}
#top { 
}
#top hr { display: none; }

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

/* Menu with folders */
#main-menu {
    border-bottom: 1px solid #9ab;
    padding-left: 0.2em;
    /* padding-bottom: 0.1em; */
    /* leave some space for language selection and panel controls */
    padding-right: 6em; 
}
#main-menu h3 {
    display: none;
}
#main-menu ul { 
    margin: 0;
    padding: 0;
}
#main-menu li {
    display: inline;
    white-space: nowrap;
}
#main-menu a.navigation-link {
    border: solid #9ab 1px;
    padding: 0 0.6em; /* 0.1em 0.6em; */
    background-color: #d2d8e0;
    text-decoration: none; /* ??? */
}
#main-menu a.navigation-link.current {
    background-color: #fff;
    border-bottom: solid #fff 1px;
}

/* Hierarchical submenu */
#page.with-submenu #content { 
    padding-left: 12em;
}
#submenu { 
    position: relative;
    z-index: 1;
    float: left;
    width: 12em;
}
#submenu-frame { 
    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: disc;
}
#submenu li a.current { 
    background-color: #d8e0f0;
    list-style-type: circle;
    marker-offset: 0.3em;
}
#submenu li a:hover { 
    outline: solid 1px #ccc;
}

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

/* Panels */

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

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-login a.login-ctrl { 
    padding: 0 0.5em;
    margin: 0 0.3em;
    background-color: #d8e0f0;
    text-decoration: none;
    background: #d8e0f0;
    border: 1px solid #9af;
}

/* The actual page content */

#content {
    position: relative; /* fix MSIE background painting */
    color: #000;
    background-color: #fff;
    border: 1px solid #9ab;
    border-top-width: 0; /* The top border must be part of the navigation bar because MSIE... */
    padding: 0.8em;
    margin-bottom: 0.5em;
}
#content h1 { 
    margin-top: 0;
}
#content-clearing { 
    height: 0;
    font-size: 0;
    clear: left;
}
#clearing { 
    height: 0;
    font-size: 0;
}

/* Wiking bar in page footer */

#bottom { 
    clear: both;
    margin: 1em 0;
}
#wiking-bar { 
    text-align: left; /* needed by MSIE - why? */
    font-size: 0.9em;
    border: solid #9ab;
    border-width: 1px 0px;
    background: #d8e0f0;
}
#wiking-bar .controls { float: right; }
#wiking-bar a { text-decoration: none; }
#wiking-bar hr { display: none; }

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

/* Page footer */

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

sup.not-null { 
    color: #f00;
}
form.login-form input {
    margin-bottom: 0.5em;
}

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

/* Specific styles for Wiking modules */

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

/* Pytis forms styles */

table.browse-form {
    border-collapse: collapse;
    border: 1px solid #bcd;
    margin-top: .3em;
}
table.browse-form td, table.browse-form th {
    padding: 2pt;
    vertical-align: top;
    white-space: nowrap;
    border: 1px solid #bcd;
}
table.browse-form td {  background: #f8fafb; }
table.browse-form th {  background: #d8e0f0; }
table.browse-form td pre {
    background-color: transparent;
    border: none;
}
table.browse-form span.tree-indent {
    padding-left: 0.3em;
}

form.show-form, form.edit-form { 
    margin: 0.4em 0;
    padding: 0;
}

fieldset.body, fieldset.submit { 
    background: #eee;
    border: 1px solid #ddd;
    border-width: 1px 0;
    margin: 0.4em 0;
}
fieldset.submit { 
    margin-top: 0.5em;
    padding: 0.5em;
    text-align: center;
}
form.show-form label, form.edit-form label { 
    white-space: nowrap;
    font-weight: bold;
}
form.show-form td.label, form.edit-form td.label { 
    padding-right: 0.3em;
    line-height: 1.4em;
}
fieldset.body div.field { 
    margin: 0.2em 0;
}
form.edit-form div.help { 
    color: #444;
    margin-bottom: 0.4em;
}
form.show-form fieldset.body input, form.show-form textarea { 
    background: #eee;
    border: 0px;
    font-size: 1em;
}
form.edit-form fieldset.body input, form.edit-form textarea,
form.edit-form select, #login, #password { 
    border: 1px solid #bcd;
}
form.edit-form table { 
    border-collapse: collapse;
}

form.edit-form fieldset.submit input { 
    padding: 0.1em 0.5em;
    margin: 0 1em;
}
/* Modification of button controls is arguable...
    background: #d8e0f0;
    border: 1px solid #9af;
}
form.edit-form fieldset.submit input:hover { 
    background: #fc8;
}
*/

p.actions { 
    margin: 1em 0;
}
p.actions a { 
    padding: 0 0.5em;
    margin-right: 0.8em;
    text-decoration: none;
    color: #000;
    background: #d8e0f0;
    border: 1px solid #9af;
}
p.actions a:hover { 
    background: #fc8;
}
p.actions a.inactive, p.actions a.inactive:hover { 
    color: #555;
    background: #ccc;
    border-color: #999;
}

div.list-view div.view-item {
    margin: 1em 0;
}
div.view-item h3 {
    margin-bottom: 0.2em;
    font-size: 1.2em;
}
div.view-item div.meta {
    font-style: italic;
    margin: 0.2em 0;
    color: #840;
    padding: 0.1em 0;
    background: #fff;
}
div.view-item div.content {
}

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

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