/*
 projekt: webOffice
 author: marcin.lisok@fox.com.pl
 data: 2007-mm-dd
*/

* { font-family: Verdana, Arial, Helvetica, Sans-Serif; }

html {
  height: 100%;
  min-height: 100%;
  overflow: -moz-scrollbars-vertical;
}
body {
  color: #444;
  height: 100%;
  min-height: 100%;
  background: #fff;
}

h1, h2, h3, h4, h5, h6 { color: #314c8b; }
h1 { font-size: 135%; }
h2 { font-size: 120%; }
h3 { font-size: 110%; }
h4, h5, h6 { font-size: 100%; }

a { color: #314c8b; text-decoration: underline; }
a:hover { text-decoration: none; }

.red { color: red; }
.darkred { color: #c93a3a; }
.darkgreen { color: #1fa300; }
.darkorange { color: #f19300; }


#container {
  width: 100%;
  height: auto;
  min-height: 100%;
  margin: 0 auto;
  position: relative;
}
#header {
  color: #fff;
  width: 100%;
  height: 80px;
  background: #28407e url('/images/admin/lay-hdr-background-new.png') repeat-x left bottom;
  position: relative;
  overflow: hidden;
}
#header a {
  color: #fff;
}
#logo {
  top: 5px;
  left: 5px;
  width: 180px;
  height: 71px;
  position: absolute;
}
a#whatnews {
  color: yellow;
}
#wrapper {
  margin-bottom: 40px; /* na wysokosc stopki */
}
#sidebar {
  float: left;
  width: 200px;
  min-height: 300px;
  display: none;
}
#content {
  width: auto;
  min-height: 300px;
  padding: 0 0px 10px;
}
#footer {
  clear: both;
  bottom: 0;
  width: 100%;
  height: 40px;
  position: absolute;
  border-top: dashed 1px #aaa;
  font-size: 11px;
}
#footer a {
  color: #444;
}
#copyright {
  float: left;
  margin: 13px 10px 0;
}
#version,
#envinfo,
#design {
  float: right;
  margin: 13px 10px 0;
}

body.admin-mode #header { height: 90px; }
body.agent-mode #header { height: 80px; }
body.armator-mode #header { height: 100px; }
body.admin-mode #logo { top: 10px; }
body.armator-mode #logo { top: 2px; }

#menu {
  width: 100%;
  height: 51px;
  bottom: 0;
  position: absolute;
}
ul.menu,
ul.menu2 {
  width: auto;
  height: auto;
  right: 5px;
  bottom: 0px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: solid 1px #28407f;
  position: absolute;
}
/*
body.admin-mode ul.menu,
body.admin-mode ul.menu2 {
  width: auto;
  right: 5px;
  left: auto;
}
*/
ul.menu li,
ul.menu2 li {
  float: left;
  width: auto;
  margin: 0;
  margin-bottom: -1px;
  padding: 0;
  position: relative;
  display: block;
}
ul.menu li a,
ul.menu2 li a {
  float: left;
  color: #fff;
  margin: 0 1px;
  padding: 4px 10px 5px;
  border: solid 1px #34528c;
  -webkit-border-top-left-radius: 5px;
  -webkit-border-top-right-radius: 5px;
  -moz-border-radius-topleft: 5px;
  -moz-border-radius-topright: 5px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  background: #6183c3;
  display: block;
}
ul.menu2 li a {
  padding-bottom: 30px;
}
#menu ul.menu li a:hover,
#menu ul.menu2 li a:hover {
  color: #fff;
  background: #7898c6;;
}
#menu ul.menu li.active a,
#menu ul.menu2 li.active a,
#menu ul.menu li.active a:hover,
#menu ul.menu2 li.active a:hover {
  color: #444;
  background: #eee;
  border: solid 1px #eee;
}



/* Submenu */
#submenu {
  margin: 0;
  padding: 5px 10px;
  list-style: none;
}
#submenu li {
  background: transparent;
}
#submenu li a {
  color: #fff;
  width: auto;
  font-weight: bold;
  padding: 0 10px;
  display: block;
}
#submenu li.active a {
  color: #395a7d;
}
#submenu li a:hover {
  color: #395a7d;
}
#submenu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
#submenu li li {
  background: transparent;
}
#submenu li li a {
  padding-left: 20px;
}
#submenu li li li a {
  padding-left: 30px;
}

#topmenu {
  top: 5px;
  right: 5px;
  float: left;
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  position: absolute;
}
#topmenu li {
  float: left;
  width: auto;
  margin: 0;
  padding: 2px 8px;
  border-left: solid 1px #999;
  display: block;
}
#topmenu li.first {
  border: 0;
}

#subheader {
  margin: 0;
  background: #eee;
  position: relative;
}
#subheader h1 {
  float: right;
  margin: 0;
  padding: 0.5em;
}
#subheader ul {
  float: left;
  width: auto;
  margin: 0 5px 0 5px;
  padding: 0;
  list-style: none;
}
#subheader ul li {
  float: left;
  margin: 0;
  padding: 0;
}
#subheader ul li a {
  padding: 0.8em;
  display: block;
  font-weight: bold;
}
#subheader ul li span {
  float: left;
  padding: 0.8em;
}
#subheader #search {
  width: auto;
  margin: 0;
  padding: 0.6em;
}
#subheader #search input {
  width: 150px;
}

#subheader li.edit,
#subheader li.show,
#subheader li.list,
#subheader li.new {
  padding-left: 29px;
  background: transparent none no-repeat 5px center;
}

#subheader li.edit { background-image: url('/images/admin/lay-doc-edit.png'); }
#subheader li.show { background-image: url('/images/admin/lay-doc-show.png'); }
#subheader li.list { background-image: url('/images/admin/lay-doc-list.png'); }
#subheader li.new  { background-image: url('/images/admin/lay-doc-new.png'); }


div.flash {
  top: 0;
  left: 50%;
  width: 500px;
  margin-left: -260px;
  padding: 10px;
  text-align: center;
  -moz-box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  -webkit-box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  -webkit-border-bottom-left-radius: 7px;
  -webkit-border-bottom-right-radius: 7px;
  -moz-border-radius-bottomleft: 7px;
  -moz-border-radius-bottomright: 7px;
  border-bottom-left-radius: 7px;
  border-bottom-right-radius: 7px;
  border: solid 0px red;
  border-top: 0;
  background: #fff;
  position: fixed;
  z-index: 200;
  display: none;
}
#error.flash {
  border-color: red;
  background: #f99;
}
#notice.flash {
  border-color: green;
  background: lightgreen;
}
#warning.flash {
  border-color: orange;
  background: #eed790;
}
#message.flash {
  border-color: blue;
  background: #90beee;
}

#canvas {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: fixed;
  background: #000;
  z-index: 500;
  -moz-opacity: 0.5;
  -khtml-opacity: 0.5;
  opacity: 0.5;
}
div.exception { margin: 20px; }
div.exception h1.error { color: #960000; }
div.exception p.error { color: red; }

p.pages {
  text-align: center;
}
p.pages a {
  line-height: 2em;
  padding: 3px 8px;
  margin: 0 2px;
  border: solid 1px #bbb;
  background: #eee;
}
p.pages a:hover {
  color: #fff;
  border: solid 1px #34528c;
  background: #7898c6;
  text-decoration: none;
}
p.pages a.current {
  color: #fff;
  border: solid 1px #34528c;
  background: #6183c3;
}

table { clear: both; font-size: 100%;  background: transparent; }
th { padding: 3px 3px; text-align: left; }
td { padding: 3px 3px; }

table.result { margin: 20px auto; border: 0; border-collapse: collapse; }
table.result th { border: 0; border-bottom: solid 3px #bbf; text-align: left; vertical-align: bottom; }
table.result td { border: 0; border-bottom: solid 1px #ddf; text-align: left; vertical-align: top; }
table.result thead th { background: transparent; cursor: pointer;}
table.result th.left, table.result td.left { text-align: left; }
table.result th.right, table.result td.right { text-align: right; }
table.result th.center, table.result td.center { text-align: center; }
table.result tr:hover td { background: #e8e8ff; }
table.result th.actions { padding-right: 10px; }
table.result td.actions a { margin: 0 7px; }
table caption { color: #314c8b; text-align: left; margin: 10px 0 0px; padding: 0; font-weight: bold; }

table.sortable thead th,
table.sortable thead th.header { border: 0; padding-bottom: 11px; background: transparent url('/images/admin/tab-sort.png') repeat-x center bottom; -moz-user-select: none; -webkit-user-select: none; -khtml-user-select: none; user-select: none; }
table.sortable thead th.sorting_asc,
table.sortable thead th.headerSortUp { background: transparent url('/images/admin/tab-sort-up.png') no-repeat center bottom; }
table.sortable thead th.sorting_desc,
table.sortable thead th.headerSortDown { background: transparent url('/images/admin/tab-sort-down.png') no-repeat center bottom; }

table.result table { width: 100%; margin: 0 auto -1px; }
table.result td.part { padding: 0; text-align: left; }
table.result td.past { color: red; }
table th.nowrap,
table td.nowrap { white-space: nowrap; }

table.tree td.arrow { padding: 0; vertical-align: top; }
table.tree td.arrow a { width: 16px; height: 16px; display: block; outline: none; padding: 4px 0 0; }
table.tree td.arrow a.collapsed { background: transparent url('/images/admin/lay-arrow-collapsed.png') no-repeat center; }
table.tree td.arrow a.expanded { background: transparent url('/images/admin/lay-arrow-expanded.png') no-repeat center; }
table.tree td.arrow a.loading { background: transparent url('/images/admin/ajax-loader.gif') no-repeat center; }

table.tree tbody:hover td { background: #e8e8ff; }
table.tree tbody:hover table,
table.tree tbody:hover table td { background: #fff; }
table.tree table.tree tbody:hover td { background: #e8e8ff; }
table.tree table.tree tbody:hover table,
table.tree table.tree tbody:hover table td { background: #fff; }
table.tree table.tree table.tree tbody:hover td,
table.tree table.tree table tr:hover td { background: #e8e8ff; }
table.tree table.tree table.tree tbody:hover table,
table.tree table.tree table.tree tbody:hover table td { background: #fff; }

div.part-loading {
  color: #444;
  padding: 4px 0 4px 24px;
  margin: 0;
  background: transparent url('/images/admin/ajax-loader.gif') no-repeat left center;
}
div.part-data {
  color: #444;
  padding: 0;
  margin: 0 0 0 24px;
  background: #fff;
  border-bottom: solid 2px #ddf;
  text-align: right;
}
div.part-error {
  color: red;
  padding: 4px 0 4px 24px;
  margin: 0;
  background: transparent;
}


.level-1 { padding-left: 4px; }
.level-2 { padding-left: 20px; }
.level-3 { padding-left: 40px; }
.level-4 { padding-left: 60px; }
.level-5 { padding-left: 80px; }
.level-6 { padding-left: 100px; }
.level-7 { padding-left: 120px; }
.level-8 { padding-left: 140px; }
.level-9 { padding-left: 160px; }
.level-10 { padding-left: 180px; }

/* default tablekit */
.resize-handle-active { cursor: e-resize; }
.roweven { background: #f0f0ff; }
.sortasc { background: transparent url('/images/admin/lay-sort-asc.png') no-repeat 95% center; }
.sortdesc { background: transparent url('/images/admin/lay-sort-desc.png') no-repeat 95% center; }
.sortcol { background: #f8f8f8; }

#frm-search {
  top: 3px;
  right: 7px;
  width: 300px;
  margin: 0;
  padding: 0;
  position: absolute;
}
#frm-search p {
  text-align: right;
  vertical-align: middle;
}
#frm-search label {
  width: 90px;
  display: none;
}
#frm-search #query {
  width: 140px;
  margin: 0 -4px 0 0;
  vertical-align: middle;
}
#frm-search #search_submit {
  color: #fff;
  height: 20px;
  border: 0;
  margin: 0;
  font-size: 11px;
  background: #527eac url('/images/admin/btn-background.png') repeat-x top left;
  padding: 0 8px;
  vertical-align: middle;
}

#news {
  width: 800px;
  margin: 20px auto 10px;
}
#news span.date {
  color: green;
  font-size: 1.15em;
  font-weight: bold;
  display: block;
}
#news h2 {
  color: #444;
}
#news .red {
  color: red;
}


#tabs {
  width: 80%;
  margin: 10px auto 0;
  padding: 5px 0 5px;
  list-style: none;
  text-align: center;
  border-bottom: solid 1px #999;
  display: block;
}
#tabs li {
  margin: 0 3px 0;
  padding: 4px 0 5px;
  border: solid 1px #999;
  background: #eee;
  display: inline;
  -webkit-border-top-left-radius: 5px;
  -webkit-border-top-right-radius: 5px;
  -moz-border-radius-topleft: 5px;
  -moz-border-radius-topright: 5px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}
#tabs li.active {
  border-bottom: solid 1px #fff;
  background: #fff;
}
#tabs li a {
  padding: 4px 15px 5px;
}


#topmenu li.language {
  padding-right: 90px;
  position: relative;
}
#topmenu li.language ul {
  top: 0;
  right: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #28407e;
  display: block;
  position: absolute;
  z-index: 100;
}
#topmenu li.language ul li {
  clear: left;
  border: solid 1px #34528c;
  margin: 0;
  padding: 0;
  display: none;
}
#topmenu li.language ul:hover li,
#topmenu li.language ul li.active {
  display: block;
}
#topmenu li.language ul li a {
  width: 60px;
  display: block;
  margin: 0;
  padding: 2px 8px;
}

#boat_image_fields,
#image_fields,
#scheme_fields {
  clear: both;
  margin: 5px 0;
  padding: 0;
  list-style: none;
  border-top: solid 3px #9dbddf;
}
#boat_image_fields li,
#image_fields li,
#scheme_fields li {
  border-bottom: solid 1px #9dbddf;
  position: relative;
}
#boat_image_fields li .title input,
#image_fields li .title input,
#scheme_fields li .title input {
  width: 385px;
}
#boat_image_fields a.remove_fields,
#image_fields a.remove_fields,
#scheme_fields a.remove_fields {
  top: 3px;
  right: 5px;
  color: #fff;
  margin: 0;
  background: #527eac url("/images/admin/btn-background.png") repeat-x top left;
  padding: 3px 8px;
  position: absolute;
}

#boat_images,
#images,
#schemes {
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
#boat_images li,
#images li,
#schemes li {
  float: left;
  width: 150px;
  height: 175px;
  margin: 4px;
  padding: 5px;
  vertical-align: top;
  background: transparent;
  border: solid 1px;
  border-color: #7e9fc1 #9dbddf #9dbddf #7e9fc1;
  cursor: move;
}
#boat_images li:hover,
#images li:hover,
#schemes li:hover {
  background: #d7e5f3;
}
#boat_images a.thumb,
#images a.thumb,
#schemes a.thumb {
  width: 150px;
  height: 120px;
  max-height: 120px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
#boat_images img,
#images img,
#schemes img {
  margin: 0;
  padding: 0px;
  vertical-align: top;
}
#boat_images li.remove img,
#images li.remove img,
#schemes li.remove img {
  opacity: 0.5;
}
#boat_images .title label,
#images .title label,
#schemes .title label {
  display: none;
}
#boat_images .title input,
#images .title input,
#schemes .title input {
  width: 145px;
  font-size: 10px;
  margin: 2px 0px 0;
}
#boat_images div.action,
#images div.action,
#schemes div.action {
  width: 100%;
  padding: 7px 0 3px;
  text-align: center;
}
#boat_images a.remove_fields,
#images a.remove_fields,
#schemes a.remove_fields {
  width: auto;
}
div.images-actions,
div.schemes-actions {
  padding: 5px 0;
  text-align: right;
}

#text_change_log_preview { width: 700px; border: solid 1px gray; margin: 20px auto 20px; }
#text_change_log_header { padding: 5px 20px; background: #f0f0f0; }
#text_change_log_header b.date { float: right; }
#text_change_log_content { padding: 0px 20px; }



#crew_fields .col1:after,
#crew_fields .col2:after,
#crew_fields .col3:after,
#crew_fields .col4:after,
div.wyp_checkbox:after,
#boat_images:after,
#images:after,
#schemes:after,
#boat-info:after,
#boat-info div.images:after,
#boat-info div.schemas:after,
#boat_type-info:after,
#boat_type-info div.images:after,
#boat_type-info div.schemas:after,
#agent-info:after,
#captain-info:after,
#customer-info:after,
#shipowner-info:after,
#text_document_preview div.logo:after,
#text_document_body:after,
#frm-transaction #delete_params:after,
#frm-boat #boat_owner_fields:after,
#logo_thumbs:after,
#logo_thumbs li:after,
#stamp_thumbs:after,
#stamp_thumbs li:after,
#charter-info:after,
#online-customer:after,
#order-info:after,
div.fields:after,
li.fields:after,
div.inline:after,
div.cruise:after,
#subheader:after,
#container:after,
#wrapper:after,
.clearfix:after {
  clear: both;
  height: 0;
  content: ".";
  display: block;
  font-size: 0px;
  visibility: hidden;
}

#header a,
#footer a,
#content a,
#subheader a {
  text-decoration: none;
}
#header a:hover,
#footer a:hover,
#content a:hover,
#subheader a:hover {
  text-decoration: underline;
}