/*
  barvy:
    červená (linky)...........#942c2d
    modrá (hover, border).....#1a3f80
    světle modrá (background).#e6edf2
*/
/* elementy */
* {
  margin: 0;
  padding: 0;
}

html{
  height: 100%;
  background: #3794e5 url("../images/system/back-body.gif") 0 0 repeat-x;
}
body {
  height: 100%;
  font: .8em/1.4em Arial, Tahoma, Verdana, sans-serif;
}

h1 {
  position: relative;
  width: 735px;
  height: 303px;
  overflow: hidden;
  text-align: center;
  line-height: 300px;
  color: #942c2d;
  background: #3794e5 url("../images/system/back-body.gif") 0 0 repeat-x;
}
h1 span {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 39px;
  left: 0;
  background: url("../images/system/back-header.jpg") no-repeat;
}
h2 {
  width: 380px;
  height: 50px;
  position: absolute;
  top: -80px;
  left: -60px;
  text-align: center;
  font: normal normal 1.5em/50px Arial, Tahoma, Verdana, sans-serif;
  color: white;
}
h3 {
  margin: .66em 65px 0 0;
  font: bold /*italic*/ 1.3em/1.3em Arial, Tahoma, Verdana, sans-serif;
  color: #1a3f80;
}
h3 span {
  display: block;
  width: 33%;
  float: left;
}

address {
  font-weight: bold;
  font-style: normal;
}

#header address {
  text-align: right;
  position: absolute;
  top: 68px;
  left: 200px;
  font: normal bold 11px/15px Arial, Tahoma, Verdana, sans-serif;
}

.branch-info img { margin-bottom: .5em; }
.branch-info a {
  font-weight: normal;
  font-style: normal;
  display: block;
  margin-top: .5em;
}

img { border: 0; }

p, ul, dl, table, hr, #MessageQueue, .branch { margin: 0 65px .5em 0; } /* definice odsazení od pravého okraje (kvůli šrafování na pozadí) */

p { text-indent: 1.5em; }
.branch p { margin-right: 0; }

ul       { list-style-type: disc; }
ul ul    { list-style-type: circle; margin: 0; }
ul ul ul { list-style-type: square; }
li { clear: both; margin-left: 20px; }
ul.li-offset    { margin-bottom: 0; }
ul.li-offset li { margin-bottom: .5em; }

form dl { margin-right: 0; }
dt {
  position: relative;
  font-weight: bold;
  color: #1a3f80;
  clear: both;
}
dt span {
  position: absolute;
  top: 0;
  right: 0;
}
* html dt span { right: 65px; }
dd {
  text-indent: 1.5em;
  margin: 0 0 .5em;
  clear: both;
}

em {
  font-weight: bold;
  font-style: normal;
  color: #1a3f80;
}

hr {
  clear: both;
  height: 1px;
  color: #1a3f80;
  background-color: #1a3f80;
  border: 0px solid #1a3f80;
  margin-top: .5em;
}

/* formuláře */
#content form {
  margin: 0 65px 0 0;
  overflow: hidden;
}
fieldset {
  border: 1px solid #1a3f80;
  padding: 0 0 1em;
  margin: -1em 0 .5em;                 /* -1em horní odsazení zajistí odsazení od předcházejícího elementu dle jeho margin-bottom */
}
fieldset p {
  margin: .5em 25px 0;
}
legend {
  margin-left: 10px;
  padding: 1em 2px;                    /* 1em vertikální mezera oběma směry pro vnitřní odsazení vnitřku filedset */
  color: #1a3f80;
  font-weight: bold;
}

label {
  display: block;
  width: 150px;
  text-align: right;
  float: left;
  clear: left;
}
* html label { margin-right: -3px; }
input, textarea, select {
  margin: 0 0 2px 10px;
  font: 1em/1.3em Courier, "Courier New", monospace;
  border: 1px solid #1a3f80;
  background: #e6edf2;
  width: 200px;
  height: 1.3em;
}
textarea { width: 300px; height: auto; }
select { font-family: Arial, Tahoma, Verdana, sans-serif; }

.button {
  width: auto;
  margin: 1em 0 0 160px;
  height: 1.8em;
  padding: 0 .2em;
  font: bold 1em/1em Arial, Tahoma, Verdana, sans-serif;
  color: #1a3f80;
}
.inline-button { margin-left: 10px; }
form.centered-button {text-align: center; }
form.centered-button .button { margin: 1em 0 0; }
.zaskrtavatko { width: auto; }
.form-img-thumb { margin: .5em 0 .5em 160px; }

form dd span {
  display: block;
  float: right;
}
form dd span .zaskrtavatko { float: left; margin: 0 5px 0; }

form#SearchPanel {
  position: absolute;
  right: 55px;
  top: 236px;
  width: auto;
  text-align: right;
}
form#SearchPanel input {
  float: left;
  width: 125px;
  height: 1.65em;
  line-height: 1.65em;
  margin: 0 5px 0 0;
  padding-left: 25px;
  background: #e6edf2 url("../images/system/search.gif") 2px 50% no-repeat;
}
form#SearchPanel .button {
  float: none;
  width: 4em;
  height: 1.8em;
  margin: 0;
  padding: 0;
  background: #e6edf2;
}

form table td { vertical-align: bottom; }

form#filter { margin-bottom: .5em; }
form#filter table { margin: 0; width: 99%; }
form#filter table td { padding: 1px 0; vertical-align: middle; }
form#filter select { width: 130px; margin: 0; }
form#filter label {
  width: 90px;
  text-align: right;
}
form#filter .button {
  width: 60px;
  margin: 0;
}

#UserPanel .button {
  width: 73px;
  height: 20px;
  margin: 0;
  font-size: 13px;
}
* html #UserPanel .button { padding: 0; }

/* tabulky */
table {
  font-size: 1em;
  border-collapse: collapse;
}
td, th {
  padding: 0 .75em;
  vertical-align: top;
}
th {
  font-weight: bold;
  color: #1a3f80;
  text-align: center;
  vertical-align: middle;
}
table.table-vertical th {
  vertical-align: top;
  text-align: right;
  width: 110px;
}

/* id # */
#page {
  position: relative;
  width: 780px;
  min-height: 100%;
  height: 100%;
  float: right;
  background: url("../images/system/back-page.gif") 100% 30px repeat-y;
}
body>#page { height: auto; }

#header {
  position: relative;
  width: 780px;
  height: 303px;
}

#UserPanel {
  position: absolute;
  top: 67px;
  right: 63px;
  width: 100px;
  height: 40px;
  font-size: 13px;
  line-height: 17px;
  text-align: center;
}
#branches {
  position: absolute;
  top: 135px;
  right: 60px;
  font-size: 11px;
  line-height: 13px;
  text-align: right;
}
#branches strong { font-size: 13px; }

#menu {
  width: 188px;
  overflow: hidden;
  float: left;
  margin: 0 0 255px;
  line-height: 1.4em;
  list-style-type: none;
  background: white url("../images/system/back-menu.gif") left bottom no-repeat;
  padding-bottom: 24px;
}
#menu li {
  float: left;
  clear: left;                         /* tento a předchozí řádek kvůli IE 5.5; jinak 10px mezera vlevo před každou li */
  width: 178px;
  overflow: hidden;
  margin: 0;
  background: url("../images/system/back-menu-li.gif") repeat-y;
}

#content {
  position: relative;
  z-index: 1;
  width: 592px;
  margin: 0 0 130px;
  float: right;
}

#footer {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 898px;
  height: 273px;
  background: url("../images/system/back-footer.gif") 0 0 no-repeat;
}
#footer p {
  width: 432px;
  float: right;
  border-top: 1px solid #942c2d;
  margin: 148px 160px 0 0;
  padding-top: .33em;
  text-indent: 0;
  text-align: left;
  font-size: 11px;
}
* html #footer p { margin-right: 80px; }

#siderBackground {                     /* text na okraji stránky (pozadí) */
  position: absolute;
  top: 0;
  right: 0;
  width: 45px;
  height: 472px;
  background: url("../images/system/back-extraSiderBack.png") 0 0 no-repeat;
}
#sunIsShining {                        /* slunko vlevo nahoře */
  position: absolute;
  top: 8px;
  left: -190px;
  z-index: 10000;
  width: 386px;
  height: 250px;
  background: url("../images/system/back-extraSunBack.gif") 0 0 no-repeat;
}

/* class . */
.list-activity-long, .list-activity {
  padding-right: 155px;
  position: relative;
}
.list-activity-long { padding-right: 235px; }
.list-branch-long, .list-branch {
  display: block;
  width: 150px;
  height: 1.3em;
  overflow: hidden;
  position: absolute;
  top: 0;
  right: 0;
  /* font-style: italic; */
}
.list-branch-long { width: 230px; }
.list-date {
  display: block;
  width: 140px;
  overflow: hidden;
  float: left;
}
* html .list-branch { right: 65px; }
* html .list-branch-long { right: 65px; }

.no-indent { text-indent: 0; }
.no-show   { display: none; }

img.right { float: right; margin: .5em 0; }
img.left { float: right; margin: .5em 0; }

.center  { text-align: center; }
.justify { text-align: justify; }

.top-indent { padding-top: 1em; }
.right-padding { padding-right: 170px; }

.cleaner { clear: both; visibility: hidden; }

.admin-panel {
  margin: 0 65px 0 0;
  text-align: right;
}

.branch-info {
  width: 250px;
  float: right;
  margin: 0 0 25px 25px;
}

.gallery {
  width: 150px;
  float: left;
  margin: .5em 10px;
  text-align: center;
  background: #e6edf2;
  border: 1px solid #1a3f80;
}
.gallery img { margin-top: 10px; }
.gallery p.description {
  text-indent: .75em;
  margin: 0.5em 15px;
  height: 4.2em;
  overflow: auto;
}

.attachments {
  padding: .5em 0;
  margin: 0;
}
.attachment-pdf, .attachment-zip, .attachment-xls, .attachment-doc {
  padding: 0 5px 0 60px;
  margin: 0 5px;
  background: left top no-repeat;
  height: 55px;
}
.attachment-pdf { background-image: url("../images/icons/pdf.gif"); }
.attachment-zip { background-image: url("../images/icons/zip.gif"); }
.attachment-doc { background-image: url("../images/icons/doc.gif"); }
.attachment-xls { background-image: url("../images/icons/xls.gif"); }

/* zprávy */
.message-info, .message-error, .message-warning, .message-success {
  min-height: 22px;
  height: 22px;
  overflow: visible;
  margin: 0 30px .5em;
  padding-left: 30px;
  background: left center no-repeat;
  font-weight: bold;
  text-indent: 0;
  text-align: center;
}
#MessageQueue>p.message-info, #MessageQueue>p.message-error, #MessageQueue>p.message-warning, #MessageQueue>p.message-success {
  height: auto;
}
.message-info    { color: #003194; background-image: url("../images/system/messages/info.gif"); }
.message-error   { color: #901205; background-image: url("../images/system/messages/error.gif"); }
.message-warning { color: #FF7E00; background-image: url("../images/system/messages/warning.gif"); }
.message-success { color: #146900; background-image: url("../images/system/messages/success.gif"); }

/* odkazy */
a:link, a:hover, a:visited {
  color: #942c2d;
  text-decoration: underline;
}
a:hover { color: #1a3f80; }

#menu a:link, #menu a:hover, #menu a:visited {
  display: block;
  width: 100%;
  margin-left: 22px;
  padding: 0 0 .1em 20px;
  background: url("../images/system/back-menu-a.gif") 0 .2em no-repeat;
  font-size: 1.1em;
  text-decoration: none;
  color: #942c2d;
}
#menu a:hover, #menu a.actual:link, #menu a.actual:hover, #menu a.actual:visited {
  background-position: -288px .2em;
  color: red;
}

#UserPanel a:link, #UserPanel a:hover, #UserPanel a:visited {
  color: black;
  line-height: 40px;
}

a.occupied, .occupied {
  color: #888888;
  /* font-style: italic; */
}
a.occupied:link, a.occupied:hover, a.occupied:visited {
  color: #888888;
}

.tooltip {
  border-bottom: 1px dashed black;
  cursor: help; /* to si klidne odstran */
}