/*
 * piggydb-shared.css
 *
 * Styles for the components shared within multiple pages.
 */

/*
 * Smart Layout
 */

div.sl-container {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0px;
}

div.sl-container div.sl-pane {
  margin: 0;
  padding: 0;
}

div.sl-horizontal {
	height: 100%;
}

div.sl-horizontal #page-content-inner {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  bottom: 48px;
}

div.sl-horizontal #sidebar {
	height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  padding-top: 0;
  padding-right: 25px;
}

div.sl-horizontal div.sl-container {
	height: 100%;
}

div.sl-horizontal div.sl-pane {
	height: 100%;
	padding-left: 5px;
	padding-right: 5px;
	
	float: left;
	width: 450px;
	
	overflow-x: hidden;
	overflow-y: scroll;
}

div.sl-horizontal #main-fragment {
	margin-top: 24px;
}

div.sl-horizontal #main-user-fragment {
	margin-top: 3px;
}



/*
 * Common Components
 */

/* Click Framework Components */

table.form {
  margin-bottom: 15px;
}

.errors .error {
	white-space: normal;
}

#menuTable img.link {
	margin-top: -1px;
	margin-bottom: -1px;
}


/* jQuery UI */

.ui-draggable {
	cursor: move;
}

.ui-dialog .ui-dialog-titlebar {
	font-size: 12px;
}

.ui-dialog .dialog-confirm {
	font-size: 12px;
}

.ui-dialog .dialog-confirm .detail {
	clear: both;
	margin-top: 10px;
	padding-left: 10px;
}

.ui-dialog .dialog-confirm .detail img.arrow {
	margin: 0px 5px;
}

.ui-dialog .dialog-confirm .detail .two-way-relation {
	margin: 5px 0px;
}

.ui-dialog .dialog-confirm .detail div.from,
.ui-dialog .dialog-confirm .detail div.to {
	padding: 5px;
	background: #eee;
}

.ui-dialog-buttonpane {
	padding: 2px 8px 2px 1em !important;
}

.ui-dialog .ui-dialog-buttonset {
  font-size: 12px;
}

ul.ui-autocomplete {
	font-size: 12px;
}



/* Tool Button */

a.tool-button img {
  padding: 0px;
  border: 1px solid transparent;
}

a.tool-button:hover img {
  border-top: 1px solid #f0f0f0; 
  border-left: 1px solid #f0f0f0; 
  border-bottom: 1px solid #707070; 
  border-right: 1px solid #707070; 
}

a.tool-button-toggled img {
  border-top: solid 1px #777;
  border-left: solid 1px #777;
  border-bottom:solid 1px  #eaeaea;
  border-right: solid 1px #eaeaea;
  background: #bbb;
}


/* Paging */

table.page-link {
  margin: 0px;
  padding: 0px;
  border-collapse:collapse;
}

table.page-link td {
  padding-top: 5px;
  padding-bottom: 5px;
}

table.page-link .page-number {
  font-weight: bold;
  font-size: 8pt;
}


/* Simple List */

.simple-list {
  white-space: nowrap;
}

.simple-list ul {
  list-style-type: none;
  margin: 0px;
  margin-left: 5px;
  padding: 0px;
  padding-left: 0px;
}

.simple-list li {
  margin: 0px;
  margin-bottom: 3px;
  padding: 0;
  padding-left: 10px;
  line-height: 1.5em;
}


/* Info List (extends Simple List) */

.info-list {
  margin-bottom: 20px;
  padding-left: 10px;
}

.info-list ul {
  padding-left: 10px;
}

.info-list li {
  padding-left: 0px;
  margin-top: 2px;
  margin-left: 0px;
}


/* Select Switch */

.select-switch button {
  margin: 0px;
  padding: 0px .5em;
  
  border-top: solid 1px #eaeaea;
  border-left: solid 1px #eaeaea;
  border-bottom: solid 1px #777;
  border-right: solid 1px #777;

  background: #ddd;
  cursor: pointer;
}

.select-switch button.selected {
  border-top: solid 1px #777;
  border-left: solid 1px #777;
  border-bottom:solid 1px  #eaeaea;
  border-right: solid 1px #eaeaea;
  
  background: #bbb;
  cursor: default;
}


/* Pulldown */

button.pulldown {
  margin: 0px;
  padding: 0px;

  border-top: solid 1px #eaeaea;
  border-left: solid 1px #eaeaea;
  border-bottom: solid 1px #777;
  border-right: solid 1px #777;
  background: #ddd;
}

button.pulldown span.label {
  margin: 0px;
  padding: 5px;
  background-image: url(images/bullet-arrow-down.png);
  background-repeat: no-repeat;
  background-position: center center;
}

button.pulled span.label {
  background-image: url(images/bullet-arrow-up.png);
}

.pulldown-box {
  display: none;
  position: absolute;
  z-index: 90;
  
  margin: 0px;
  
  max-height: 300px;

  overflow: auto;
  overflow-x: hidden;
  overflow-y: auto;
  
  border-top: solid 1px silver;
  border-left: solid 1px silver;
  border-bottom: solid 1px gray;
  border-right: solid 1px gray;
  background: #fff;
}


/* Facebox Image Viewer */

#facebox-image-viewer {
  z-index: 1200;
}

#facebox-image-viewer .header {
  padding-bottom:  5px;
}


/* Facebox Selected Fragments */

#facebox-selected-fragments {
  z-index: 80;
}

#facebox-selected-fragments .header {
  padding-bottom:  5px;
}

#facebox-selected-fragments .header td.title {
  padding-bottom: 2px;
}

#facebox-selected-fragments .header span.title {
  font-size: 9pt;
  font-weight: bold;
  border-bottom: 2px solid #ccc; 
}

#facebox-selected-fragments div.content {
  margin: 0px;
  padding: 0px;
  padding-top: 5px;
  padding-bottom: 10px;
  width: 215px;
  height: auto;
  max-height: 400px;
  border: 1px solid #ccc;
}

#facebox-selected-fragments .content td {
  font-size: 8pt;
}

#facebox-selected-fragments ul,
#facebox-selected-fragments li {
   margin-left: 0px;
   padding-left: 2px;
   line-height: 1em;
}



/*
 * Fragment Form
 */

input.fragment-title {
  width: 100%;
}

td.fragment-as-tag {
	width: 30px;
}

span.fragment-as-tag .ui-button {
	font-size: 0.8em; !important;
}

.ui-icon-piggydb-tag {
	background-image: url(images/mini-tag-fragment-disabled.png) !important;
	background-position: center center;
}

.ui-state-active .ui-icon-piggydb-tag {
	background-image: url(images/mini-tag-fragment.png) !important;
}

#facebox-wiki-help {
	z-index: 1200;
}

#facebox-fragment-preview {
	z-index: 1200;
}

#facebox-fragment-preview div.content,
#facebox-fragment-quick-view div.content {
	padding-top: 5px;
	padding-right: 5px;
	height: auto;
	width: 600px;
}



/*
 * Fragment Editor Dialog
 */

.ui-dialog div.fragment-editor {
	background: #eee;
	padding: 5px;
	padding-right: 10px;
	font-family: Arial, Helvetica, sans-serif;
}

.ui-dialog div.fragment-editor form {
	height: 100%;
}

.ui-dialog div.fragment-editor input,
.ui-dialog div.fragment-editor textarea {
	font-family: Arial, Helvetica, sans-serif;
}

.ui-dialog div.fragment-editor div.tags {
	padding-top: 6px;
	padding-bottom: 4px;
}

.ui-dialog div.fragment-editor div.tags input.fragment-tags {
	width: 100%;
}

.ui-dialog div.fragment-editor div.tags td.tags-input {
	padding-right: 3px;
}

.ui-dialog div.fragment-editor div.tags td.tags-pulldown {
	width: 26px;
	padding-left: 3px;
}

.ui-dialog div.fragment-editor div.tags div.tag-palette {
	min-width: 250px;
	width: auto;
}

.ui-draggable-dragging div.fragment-editor span.tag {
  border-style: none;
  padding: 0px;
}

.ui-dialog div.fragment-editor div.content {
	padding: 3px;
}

.ui-dialog div.fragment-editor textarea.fragment-content {
	width: 100%;
  padding: 2px;
  font-size: 10pt;
}

.ui-dialog div.fragment-editor div.buttons {
	height: 30px;
	padding-left: 3px;
}

.ui-dialog div.fragment-editor span.indicator {
	line-height: 30px;
	vertical-align: middle;
}

.ui-dialog div.fragment-editor div.buttons button {
	font-size: 13px;
	padding: 2px 12px;
}

.ui-dialog div.fragment-editor div.buttons button.cancel {
	margin-left: 1em;
}

.ui-dialog div.fragment-editor div.buttons span.minor-edit {
	padding: 0px;
	margin-right: 5px;
	font-size: 11px;
}

.ui-dialog div.fragment-editor div.buttons span.minor-edit input {
	line-height: 30px;
	vertical-align: middle;
}

div.dialog-file-form,
.ui-dialog div.file-form {
	overflow: visible !important;
}

.ui-dialog div.file-form input.file {
	width: 100%;
	font-size: 12px;
}

.ui-dialog div.file-form div.preview div.file {
	margin: 5px;
}

.ui-dialog div.file-form div.preview div.file img {
	max-width: 560px;
}

.ui-dialog div.file-form div.preview div.file .file-name {
	font-size: 12px;
}

.ui-dialog div.file-form div.buttons {
	padding-top: 5px;
  height: 40px;
}


/*
 * Tag
 */

div.tag-title {
  background:#fff;
  color: black;
  font-size: 12pt;
  font-weight: bolder;
}

div.tag-title p {
  position: relative;
}

span.tagIcon {
  background: url(images/tag.png) 0 50% no-repeat;
  padding-left: 10px;
  padding-right: 2px;
}

span.tagIcon-plain {
	background: url(images/tag-plain.png) 0 50% no-repeat;
}

span.tagIcon-fragment {
  background: url(images/tag-fragment.png) 0 50% no-repeat;
}

span.tagIcon-system {
  background: url(images/tag-system.png) 0 50% no-repeat;
}

span.tagIcon-selected {
  background: url(images/tag-selected.png) 0 50% no-repeat;
}

span.miniTagIcon {
  background: url(images/mini-tag.png?1) 0 50% no-repeat;
  padding-left: 7px;
  padding-right: 2px;
}

span.miniTagIcon-plain {
  background: url(images/mini-tag-plain.png) 0 50% no-repeat;
}

span.miniTagIcon-fragment {
  background: url(images/mini-tag-fragment.png) 0 50% no-repeat;
}

span.miniTagIcon-system {
  background: url(images/mini-tag-system.png) 0 50% no-repeat;
}

span.tagIcon-trash {
  background: url(images/tag-trash.png) 0 50% no-repeat;
}

span.miniTagIcon-trash {
  background: url(images/mini-tag-trash.png?1) 0 50% no-repeat;
}

span.tagIcon-bookmark {
  background: url(images/tag-bookmark.png) 0 50% no-repeat;
}

span.miniTagIcon-bookmark {
  background: url(images/mini-tag-bookmark.png) 0 50% no-repeat;
}

span.tagIcon-public {
  background: url(images/tag-public.png) 0 50% no-repeat;
}

span.miniTagIcon-public {
  background: url(images/mini-tag-public.png) 0 50% no-repeat;
}

span.tagIcon-user {
  background: url(images/tag-user.png) 0 50% no-repeat;
}

span.miniTagIcon-user {
  background: url(images/mini-tag-user.png) 0 50% no-repeat;
}

a.tag:hover, 
a.filter:hover {
  color: #fff;
  background-color: #656f71;
  border: none;
}



/*
 * Tag palette
 */
 
button.tags-pulldown {
	width: 24px;
	height: 24px;
}

.tag-palette {
  width: 250px;
}

.tag-palette table {
  border-collapse: collapse;
  width: auto;
}

.tag-palette table td {
  padding-bottom: 3px;
}

.tag-palette td.control {
  width: 16px;
}

.tag-palette td.tag {
  text-align: left;
  font-size: 13px;
  line-height: 17px;
}

.tag-palette td.tag div.tag-container {
  width: 200px;
  overflow: hidden;
  white-space: nowrap;
}

.tag-palette li.liquid-block div.tag-container {
	overflow: hidden;
  white-space: nowrap;
  padding: 2px;
  padding-left: 3px;
  font-size: 9pt;
  line-height: 120%;
}

.tag-palette .tag-cloud {
	padding-left: 5px;
	white-space: normal;
}

.tag-palette .tag-cloud span.tag-cloud-entry {
	white-space: nowrap;
	margin-right: 3px;
	vertical-align: middle;
}

.tag-palette .tag-cloud span.tag-cloud-entry span.miniTagIcon {
	display: none;
}

.tag-palette-draggable .miniTagIcon {
	padding-right: 5px;
}

.tag-palette-draggable a.tag {
  color: #000;
  text-decoration: none;
}

.ui-draggable a.tag {
  cursor: move;
}

.ui-draggable-dragging span.tag {
  border: solid 1px #ccc;
  
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  
  padding: 2px;
  padding-left: 5px;
  padding-right: 5px;
  
  color: #000;
  background-color: #fff;
}

.ui-draggable-dragging span.tag a:hover {
  background-color: #fff;
}

.tag-palette td.control a:hover {
  background-color: #656f71;
  border: none;
}

#subFragmentFormPanel-table .tag-palette td {
  background-color: #fff;
}

.auto_complete {
  z-index: 100;
}

.empty-tag-palette {
  font-size: 10pt;
  color: gray;
}

 

/*
 * Contents of Sidebar
 */

.sidebar #superTagForm_tag,
.sidebar #tagForm_tag {
  width: 150px;
}

.sidebar #parentForm_title {
	width: 170px;
}

.sidebar-fragment-list ul {
	margin-top: 3px; 
	margin-left: 0px;
}

.sidebar-fragment-list li {
  font-size: 9pt;
  line-height: 1.2em;
  padding-bottom: 2px;
}

.sidebar-fragment-list .delete-button {
  padding-right: 5px;
}

.recently-viewed td {
  font-size: 9pt;
}

.recently-viewed li {
  line-height: 1em;
  padding-bottom: 2px;
}

.related-tags td {
  font-size: 9pt;
}

.related-tags li {
  line-height: 1em;
  padding-bottom: 2px;
}

#sidebar-tag-palette .tag-palette-container {
	position: relative;
}

#sidebar-tag-palette .tag-palette-resizable-div {
	position: static;
	
	padding-left: 3px;
	padding-top: 3px;
	
  max-height: 500px;
  overflow: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

#sidebar-tag-palette .tag-palette-resizable-div .ui-resizable-s {
	height: 10px;
}

#sidebar-tag-palette .tag-palette {
	width: 240px;
}

#sidebar-tag-palette table {
	width: auto;
}

#sidebar-tag-palette .tag-palette td.tag div.tag-container {
  width: 190px;
}

.tag-palette-footer {
  width: 100%;
}

.tag-palette-resize-handle {
  overflow: hidden;
  width: 22px; 
  height: 5px;
  margin-left: auto;
  margin-right: auto;
  background-image: url(images/resize-handle-bottom.png);
}



/*
 * Contents of Global Tools
 */

#searchForm_keywords {
  margin: 0px;
  padding: 0px;
  border-top: solid 1px #777;
  border-left: solid 1px #777;
  border-bottom:solid 1px  #eaeaea;
  border-right: solid 1px #eaeaea;
  width: 250px;
  height: 18px;
  font-size: 12px;
  background: url(../images/search.png) no-repeat 3px 50%;
  background-color: white;
  padding-left: 20px;
}

#global-tools span.new-fragment-buttons a.tool-button {
	margin-right: 2px;
}

#global-tools a.pulled img {
  border-top: solid 1px #777;
  border-left: solid 1px #777;
  border-bottom:solid 1px  #eaeaea;
  border-right: solid 1px #eaeaea;
  background: #bbb;
}

#global-tools .tag-palette {
  right: 15px;
}

#global-tools .login-user ul.menubar {
	margin-top: -5px;
}

#global-tools .login-user a.user-name {
	color: #555;
	padding: 3px 6px;
}

#global-tools .login-user ul.submenu {
	right: 0px; 
	width: auto;
}

#global-tools .login-user ul.submenu a {
	padding-left: 10px; 
	padding-right: 10px;
}

#global-tools .to-login {
	padding-right: 5px;
}



/*
 * Recently changed entities
 */

.recent-changes {
  margin-bottom: 10px;
  padding-right: 10px;
}

.recent-changes li {
  margin-left: 10px;
}

span.update-time {
  margin-right: 5px;
  color: gray;
  font-size: 8pt;
}

.recent-changes ul {
  margin-bottom: 15px;
}

.recent-changes table.page-link td {
  padding-left: 10px;
}

span.updater {
  color: silver;
  font-size: 8pt;
}

span.updater a.user-name {
	color: silver;
  text-decoration: none;
}

span.updater a.user-name:hover {
	color: #333;
  text-decoration: underline;
}



/*
 * Liquid blocks
 */

ul.liquid-blocks {
  width: 100%;
  padding: 0px;
  margin: 0px;
  list-style: none;
}

ul.liquid-blocks li.liquid-block {
  float: left;
  /* width: 200px; Set default width */
  padding: 0px;
  margin: 0px;
  display: inline;
}

ul.liquid-blocks div.liquid-block {
  margin: 0px;
  margin-left: 3px;
  margin-right: 3px; 
  margin-bottom: 6px;
  padding: 0px;
  
  overflow: hidden;
}



/*
 * Icons
 */

span.search-icon-mini {
  background: url(../images/search-mini.png) 0 50% no-repeat;
  padding-left: 7px;
  padding-right: 2px;
}

span.filter-icon-mini {
  background: url(../images/mini-filter.png) 0 50% no-repeat;
  padding-left: 7px;
  padding-right: 2px;
}



/*
 * Tag it
 */

ul.tagit {
  height: 24px;
  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: 0;
  margin-bottom: 8px;
  padding-left: 23px;
}

ul.tagit li.tagit-choice {
  margin-top: 2px;
  padding: 1px 18px 1px 5px;
  font-size: 12px;
}

ul.tagit li.tagit-new {
  margin: 0;
  padding: 0;
}

ul.tagit input.ui-widget-content {
  margin: 0;
  font-size: 13px;
  height: 24px;
}



/*
 * Others
 */
 
.fragment-group-control {
  margin: 0px; 
  padding: 0px; 
  padding-left: 3px; 
  padding-bottom: 3px;
}

div.user-fragment table.fragment {
  border: 2px solid #cce;
}

.entity-timestamp {
  font-size: 8pt;
  color: gray;
}

.entity-timestamp a.user-name {
	color: gray;
  text-decoration: none;
}

.entity-timestamp a.user-name:hover {
  text-decoration: underline;
}

span.highlight {
  background-color: #FFCC66;
}



