body {
    font-family: arial, verdana, sans-serif, helvetica;
    color: #424242;
    background-color: #fafcfe;
    margin: 0;
    min-width: 800px;
}
body, table td, table th {
    font-size: 0.9em;
}
p {
    margin: 0.4em 0;
}
hr {
    height: 1px;
    background-color: #b0b1b3;
    border: 0px;
}

h1, h2 {
    border: solid #707173 0px;
    border-bottom-width: 1px;
    text-align: left;
    background-position: right 2px;
    background-repeat: no-repeat;
}
h1 { /* Shift by 4px to fit a 34px high icon */
    position: relative;
    padding-top: 4px;
    top: -4px;
}
h1 { font-size: 2.1em; }
h2 { font-size: 1.7em; }
h3 { font-size: 1.6em; }
h4 { font-size: 1.4em; }
h5,h6,h7,h8,h9 { font-size: 1.2em; }

a:link    { color: #000000; }
a:visited { color: #000000; }
a:link:hover, a:visited:hover { color: #3a77be; }

#top hr { display: none; }
#top {
    background-image: url(/_resources/images/freebsoft/iris-gray-104.jpg);
    background-position: 0 10px;
    background-repeat: repeat-x;
    border-bottom: solid #b0b1b3 1px;
    margin: 0;
    color: #000;
    background-color: #f8f8f8;
}
#top-layer1 {
    background-position: 10px 10px;
    background-repeat: no-repeat;
}
#top-layer2 {
    background-image: url(/_resources/images/freebsoft/banner-brailcom-1.png);
    background-position: 340px 20px;
    background-repeat: no-repeat;
    height: 110px;
}
#site-title .title, #site-title .separator {
    display: none;
}
#site-title .subtitle {
    position: absolute;
    top: 50px;
    left: 140px;
    width: 200px;
    height: 50px;
}

#page {
    background-position: top;
    background-repeat: repeat-x;
    padding: 0;
    background-color: #fafcfe;
    min-width: 100%;
}

#links {
    display: none;
}

#breadcrumbs {
    display: none;
    /* The rest is a prototype for the case that breadcrumbs are displayed */
    background-color: #f0f6fc;
    border: solid #aaa 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: #8ac7ff; }

/* Horizontal menu */

#page.with-menu #menu {
    padding: 0.3em;
    margin-bottom: 2em;
}
#page.with-menu #main {
}

#menu h3 {
    display: none;
}
#menu ul {
    margin: 0;
    padding: 0;
    width: 100%;
}
#menu li {
    /* Inline block: http://foohack.com/2007/11/cross-browser-support-for-inline-block-styling */
    display: -moz-inline-stack;
    display: inline-block;
    zoom: 1;
    *display: inline;
    white-space: nowrap;
    vertical-align: top;
}
#menu a.navigation-link {
    display: block;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 3px;
    border-bottom: solid #000000 3px;
    text-align: right;
    position: relative;
    top: 0;
}
#menu a.navigation-link.current, #menu a.navigation-link.current:hover {
    color: #3a77be;
    border-color: #3a77be;
}
#menu a.navigation-link:hover {
    color: #000000;
    border-color: #3a77be;
}
/* Hierarchical submenu */

#page.with-submenu #main {
    margin-left: 15em;
}

#submenu {
    position: relative;
    z-index: 1;
    float: left;
    width: 15em;
}
#submenu div.menu-panel  {
    background-image: url(/_resources/images/freebsoft/iris-gray-33.jpg);
    background-position: left 29px;
    background-repeat: repeat-x;
    position: relative;
    border: 1px solid #b0b1b3;
    border-left: none;
    background-color: #eef0ef;
    margin-left: 0.5em;
    padding: 0;
    height: 100%;
}
#submenu h3 {
    background-image: url(/_resources/images/freebsoft/iris-gray-33.jpg);
    background-position: top left;
    background-repeat: repeat-x;
    background-color: #efefef;
    font-size: 17px;
    margin: 0;
    padding: 4px 0.3em;
    border: none;
}
#submenu ul {
    display: block;
    list-style-type: none;
    padding: 0.5em 0.2em 1.5em 0.3em;
    margin: 0;
}
#submenu ul ul {
    padding: 0 0 0 1em;
}
#submenu li { 
    line-height: 1.2em;
    width: 100%;
}
#submenu li a, #submenu li a span {
    display: block;
    clear: both;
}
#submenu li a {
    cursor: default;
    padding-left: 14px;
    text-decoration: none;
}
#submenu li a span {
    cursor: pointer;
    padding: 0.1em 0;
    margin-left: 1px; /* Fix MSIE bullet display */
}
#submenu li a span.bullet {
    display: list-item;
    list-style-type: circle;
}
#submenu li a.current {
    color: #3a77be;
}
#submenu li.foldable {
    background-image: url(/_resources/images/folder-open.png);
    background-position: left 0.35em;
    background-repeat: no-repeat;
}
#submenu li.foldable.folded {
    background-image: url(/_resources/images/folder-closed.png);
}
#submenu li.folded ul {
    display: none;
}
#toggle-menu-expansion-button {
    padding: 0;
    margin: 0;
    border: none;
    width: 9px;
    height: 9px;
    position: absolute;
    top: 0.45em;
    right: 0.3em;
    background-image: url(/_resources/images/folder-closed.png);
    background-position: center;
    background-repeat: no-repeat;
}
* html #toggle-menu-expansion-button { right: 0.8em; } /* MSIE hack */
#toggle-menu-expansion-button.expanded {
    background-image: url(/_resources/images/folder-open.png);
}

/* Panels */
#page.with-panels {
    float: left; /* Force the main div to fit its content. */
}
#page.with-panels #main {
    margin-right: 16.5em; /* Add 0.5em for the #panels right margin */
}
#panels {
    position: relative;
    right: 0.1em; /* Needed for MSIE when page is too wide */
    z-index: 1;
    margin-right: 0.5em;
}
#page.with-panels #panels {
    border: 1px solid #b0b1b3;
    border-right: none;
    border-top: none;
    float: right;
    width: 16em;
    min-height: 100%;
    background-color: #eef0ef;
}
#panels a.panel-control {
    position: absolute;
    top: -2em;
    font-size: 0.8em;
    right: 0;
}
div#panels-menu-item {
    margin-left: 0.5em;
}

div.panel {
    border-top: 1px solid #b0b1b3;
}
div.panel h3 {
    background-image: url(/_resources/images/freebsoft/iris-gray-33.jpg);
    background-position: top left;
    background-repeat: repeat-x;
    background-color: #efefef;
    font-size: 17px;
    margin: 0;
    border: none;
    padding: 1px;
    position: relative;
}
#panels div.panel h3 a.panel-anchor {
    background-position: top right;
    background-repeat: no-repeat;
    display: block;
    padding: 4px 0.3em;
}
div.panel div.panel-content {
    background-image: url(/_resources/images/freebsoft/iris-gray-33.jpg);
    background-position: top left;
    background-repeat: repeat-x;
    padding: 0.4em;
}
div.panel div.panel-content p:first-child {
    margin-top: 0;
}
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: #000000;
    border: 1px solid #b0b1b3;
    background-color: #f8f8f8;
    padding: 0 0.5em 0 20px;
    text-decoration: none;
    white-space: nowrap;
    margin: 0 0.3em;
    background-image: url(/_resources/images/login.png);
    background-position: 1px center;
    background-repeat: no-repeat;
}
#panel-login a.login-ctrl:hover {
    background-color: #8ac7ff;
}
#panel-login.logged a.login-ctrl {
    background-image: url(/_resources/images/logout.png);
}

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


/* The actual page content */

#main {
    position: relative;
    padding: 0 1em;
}
#main h1 {
    margin-top: 0;
    margin-bottom: 0.8em;
}
#content {
    position: relative; /* fix MSIE background painting */
    width: 100%;
    min-width: 400px;
}
#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;
    width: 100%;
    padding-top: 0.8em;
}
#bottom-bar {
    text-align: right;
    font-size: 0.9em;
    border-top: solid #b0b1b3 1px;
    padding: 0.1em;
}
#bottom-bar span.left { float: left; }
#bottom-bar div.left { text-align: left; }
#bottom-bar hr { display: none; }

#shared-audio-player {
    position: fixed;
    bottom: 0;
    right: 0;
}
div#shared-audio-player {
    color: #000;
    background-color: #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;
}

form.login-form {
    background-color: #f0f6fc;
    border: 1px solid #aaa;
    padding: .8em 2em;
    margin-bottom: 1em;
}
form.login-form input {
    margin-bottom: 0.5em;
}
form.login-form ul {
    margin-top: 1em;
}
form.login-form label {
    font-weight: bold;
}

/* Override some styles from default.css */
div.errors, #messages .error, #messages .info, #messages .warning,
form.pytis-form .group, form.pytis-form div.submit, form.list-form-controls .paging-controls,
div.table-of-contents, div.discussions form.edit-form.discussions { 
    border-width: 1px;
}

form.list-form-controls button.prev-page-button span,
form.list-form-controls button.search-button span,
.cms-page-actions button span { 
    padding-left: 21px;
}
form.list-form-controls button.next-page-button span { 
    padding-left: 0;
    padding-right: 21px;
}
