/*
 * piggydb-base.css
 *
 * Styles for the base HTML and the common layout of Piggydb.
 */
 
 

/*
 * Basic Elements
 */

html, body {
  margin: 0px;
  padding: 0px;
  border: none;
  height: 100%;
}

body {
  color: #000000;
  font-size: 10pt;
  font-family: Arial, Helvetica, sans-serif;
}

td {
  font-size: 10pt;
}

form {
  margin: 0px;
  padding: 0px;
}

textarea {
	border: 1px solid #cccccc;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  transition: border linear 0.2s, box-shadow linear 0.2s;
  border-radius: 3px;
  font-size: 10pt;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  outline: none;
}

input[type=text],
input[type=password] {
  height: 20px;
  border: 1px solid #cccccc;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  transition: border linear 0.2s, box-shadow linear 0.2s;
  border-radius: 3px;
  margin-right: 0;
  padding-left: 3px;
}

input[type=button], 
input[type=submit], 
input[type=reset],
button {
  background: #ddd;
  border: 1px solid #cccccc;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  border-bottom-color: #b3b3b3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 2px 12px;
  cursor: pointer;
  font-size: 13px;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
  
  overflow: visible;    /* for IE */
}

input[type=button]:hover, 
input[type=submit]:hover, 
input[type=reset]:hover,
button:hover {
  background: #ccb;
}

input[type=button][disabled], 
input[type=submit][disabled],
input[type=reset][disabled],
button[disabled] {
  background: #f6f6f6;
  border-style: solid;
  color: #999;
}



/*
 * Color
 */

.bgcolor-base {
	background-color: #eee;
}

table.fragment .header-cell {
	background-color: #ddd;
}

table.fragment td,
.content-box,
.content-box li.leafLastNode {
  background-color: #ffffff;
}

#title-banner table td {
	background-color: gray;
}

table.fragment,
table.fragment th, 
table.fragment td,
.content-box {
  border: 1px solid #ccc;
}

table.fragment td.superfragment-links,
table.fragment td.subfragment-links  {
	color: #666;
}

table.fragment td.subfragments,
table.fragment td.subfragments table.children-control td {
	background-color: #f8f8f8;
}

table.fragment td.subfragments .header-cell {
	background-color: #e9e9e9;
}

table.fragment td.subfragments table.fragment, 
table.fragment td.subfragments table.fragment th,
table.fragment td.subfragments table.fragment td {
	border: 1px solid #ddd;
}

.section-title {
	border-bottom: 2px solid #ccc;
}



/*
 * Template Structure
 */

#page-header {
  position : fixed !important;
  position : absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 30px;
  z-index: 95;
  background: #707070;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

#title-banner {
  position : absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 30px;
  z-index: 95;
  padding-top: 0;
  padding-left: 6px;
  background: #606060;
}

#title-banner img {
	width: 28px;
  height: 28px;
}

#database-title {
	position : absolute;
  top: 0;
  left: 50px;
	height: 30px;
	line-height: 30px;
	vertical-align: middle;
	font-size: 14px;
	z-index: 95;
}
#database-title a {
	color: #f8f8f8;
	text-decoration: none;
}
#database-title a:hover {
  text-decoration: none;
}

div.menustyle li {
  font-size: 10pt;
}

.topitem img {
  margin-right: 3px;
}

div.ui-tooltip .fragment-title {
	color: silver;
	font-style: italic;
	font-size: 90%;
}

#page-content {
	position: relative;
	padding: 10px;
  padding-top: 40px;
}

#main {
	height: 100%;
	margin-right: 255px;
}

#sidebar {
	padding-top: 40px;
  width: 250px;
  
  position: absolute;
  top: 0;
  right: 10px;
}



/*
 * Menu
 */

#menu {
	font: 11px arial, helvetica, lucida-sans, sans-serif;
	line-height: 15px; 
	height: 28px; 
	padding: 0; 
	margin: 0;
}

#user-menu {
	display: inline-block;
	list-style-type: none; 
  margin: 0;
  margin-left: 6px;
  padding: 0;
  vertical-align: 8px;
}

#user-menu .topitem {
	font-weight: normal;
	margin-left: 0px;
}

#user-menu .topitem a, 
#user-menu .topitem a:visited {
	font-weight: normal;
	padding-left: 12px; 
	padding-right: 12px; 
	padding-top: 4px; 
	padding-bottom: 4px; 
	display: block; 
	text-decoration: none; 
	vertical-align: middle;
}

#user-menu a.user-name {
	color: #fff;
}

#user-menu a.user-name img {
	margin-top: -2px;
}

#user-menu .topitem a:hover {
	font-weight: normal;
	text-decoration: none;     
}

#user-menu .selected {
	font-weight: normal; 
	background: #afaea9 repeat-x left; 
}

#user-menu img.link {
	vertical-align: middle;
}

#user-menu ul.submenu {
	position: absolute;
  right: 0;
	list-style-type: none; 
	margin: 0; 
	padding: 0; 
	display: none; 
	width: 140px;  
	z-index: 255;
	border-top: 1px solid #f0f0f0; 
}

#user-menu ul.submenu li {
	padding: 2px; 
	margin: 0; 
	font-size: 12px;
}

#user-menu ul.submenu li a, .menustyle ul.submenu li a:visited {
	vertical-align: middle;
	padding: 3px 3px 0px 16px; 
	color: #000; 
	border: 1px solid #c0c0c0; 
	text-decoration: none; 
	margin: 0;
}

#user-menu ul.submenu li img {
	vertical-align: middle;
}

#user-menu ul.submenu li a:hover {
	vertical-align: middle;
	text-decoration: none; 
	background: #fff; 
	border: 1px solid #3699dd; 
}

#user-menu li:hover ul, .menustyle li.over ul {
	margin: 0; 
	padding: 4px; 
	display: block; 
	background: #c0c0c0;
}

#user-menu li>ul {
	top: auto; left: auto;
}



/*
 * Global Tools Container
 */

#global-tools {
	position: absolute;
  right: 0;
  margin-right: 0px;
  padding: 0px;
  padding-top: 3px;
  padding-left: 10px;
}

#global-tools a.tool-button img {
	padding: 3px;
}

#main-tool-buttons {
	margin-left: 100px;
}


/*
 * Content Structure
 */
 
/* Section */

table.section {
  margin-bottom: 10px;
}

.section-title {
  font-size: 13px;
  font-weight: normal;
  padding-bottom: 2px;
  text-align: left;
  text-shadow: 0 1px 0 #ffffff;
}

.section-title a {
  color: #000;
  text-decoration: none;
}

th.subsection-title {
	color: gray;
  font-size: 10pt;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 2px;
  text-align: left;
}


/* Content Box */

.content-box {
  padding-top: 10px;
  padding-bottom: 12px;
  
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  
  overflow: auto;
  overflow-x: auto;
  overflow-y: hidden;
}

.content-box h2 {
  margin-top: 5px;
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 5px; 
  font-size: 10pt; 
  color: gray; 
  border-bottom: 1px solid #ccc;
}

.content-box h2 a {
  text-decoration: none;
  color: gray;
}


/* Sidebar */

table.sidebar-entry {
  margin-left: 5px;
  margin-bottom: 20px;
  width: 250px;
}

table.sidebar-entry .sidebar-title {
	position: relative;
}

table.sidebar-entry .sidebar-title .sidebar-tools {
	position: absolute;
  top: 0px;
  right: 0px;
}

#sidebar div.treestyle,
#sidebar div.content-box {
  width: 240px;
}



/* Other */

td.fragments {
  padding-right: 10px;
}



