/*
 * Style for FAB theme
 *
 * webtrees: Web based Family History software
 * Copyright (C) 2012 webtrees development team.
 *
 * Derived from PhpGedView
 * Copyright (C) 2002 to 2010  PGV Development Team.  All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *
 * $Id: style.css 13409 2012-02-07 23:39:46Z rob $
 */

/* Add a permanent scrollbar, to prevent "flickering" when hover effects lengthen page */
html {overflow-y:scroll;}

.submenu {
	background-color:#EEE;
	border:thin solid #AAA;
}

/* Thin grey borders around block-level elements */
input,
textarea,
fieldset,
.border1,
.block,
.descriptionbox,
.facts_label, .facts_label02, .facts_label03, .facts_value,
.lifespan_outer,
.list_label, .list_label_wrap, .list_value, .list_value_wrap,
.messagebox,
.optionbox,
.person_box, .person_boxF, .person_boxNN,
.person0, .person1, .person2, .person3, .person4, .person5
.subbar,
#indi_main_blocks, #tabs,
.topbottombar {
	margin:3px;
	padding:3px;
	border:1px solid DarkGray;
	border-radius:3px;
	font-family:inherit;
}

img.block {
	border:none;
	height:20px;
	vertical-align:middle;
}

.line1, .line2, .line3 {vertical-align:bottom;} 
.line4 {vertical-align:middle;}
.line5 {vertical-align:top;}

legend {
	font-weight:bold;
}

/* Indicate that the parent died shortly after the birth */
.parentdeath {
	border:1px solid Black;
}

/* Hyperlinks: regular and help */
a {
	text-decoration:none;
}
a:link, a:visited {
	color:DarkSlateGray;
}
a:hover, a:active {
	color:White !important;
	background-color:DarkSlateGray;
}
a.help, span.help {
	font-weight:bold;
	text-shadow:Black 1px 1px 1px;
	color:Yellow !important;
	cursor:help;
}

body {
	color:DimGray;
	background-color:White;
	font:12px sans-serif; /* Use the browser's default font - give control to the user */
	margin:0;
}

img {
	border:0;
}

/* Various text styles */
.warning, .error, .largeError {
	color:red;
	font-weight:bold;
}

/* Fact labels */
.label {
	font-weight:bold;
}

/* Main name on INDI/FAM/etc. pages */
.name_head {
	font-size:150%;
}

/* Elements used on every page */
#header {
	color:#888;
	text-align:center;
}
#topMenu {
	clear:both;
	text-align:center;
	padding-top:1em;
}
#content {
	margin-top:1em;
	margin-bottom:1em;
}
#footer {
	clear:both;
	text-align:center;
	width:99%;
}

/* Block level objects, such as header, footer, etc. */
.block {background-color:#EEE; clear:none;}
.blockheader {font-weight:bold;}
.charts_block {overflow:auto;}

/* Pending edits */
.change_new, .nameblue {
	border:solid blue 2px !important;
}
.change_old, .namered {
	color:#888 !important;
	text-decoration:line-through !important;
}

/* Use CSS menus based on nested <ul> */
.makeMenu li {
	background:none !important;
	display:inline;
	position:relative;
	white-space:nowrap;
}

.makeMenu li:before {
	content:" | ";
}
.makeMenu li ul li:before {
	content:"";
}
.makeMenu li:first-child:before {
	content:"";
}

.makeMenu li ul {
	display:none;
	position:absolute;
	left:0;
	top:1.1em;
	background-color:#EEE;
	border:thin solid #AAA;
	z-index:999;
}

html[dir='rtl'] .makeMenu li ul {
	left:auto;
	right:0;
}

/* position sub-sub-menus */
.makeMenu ul ul {
	top:0;
	left:100px;
}
html[dir='rtl'] .makeMenu ul ul {
	top:0;
	left:auto;
	right:100px;
}

.makeMenu li ul li {
	display:block;
	text-align:left;
}

html[dir='rtl'] .makeMenu li ul li {
	text-align:right;
}

.makeMenu, .makeMenu li ul {
	list-style:none;
	margin:0;
	padding:1px;
}

.makeMenu li:hover > ul {
	display:block;
}

.makeMenu ul li a {
	background-color:#EEE;
	padding:0 5px 0 2px;
	display:block;
}

.makeMenu ul li a:hover  {
    background-color:DarkSlateGray;
	color:#000;
}

#menu-language li {text-align:left;} /* The language menu is always LTR, even on RTL pages */
#menu-theme    li {text-align:left;} /* The theme menu is always LTR, even on RTL pages */

/* person boxes are used in various charts */

.person_box img{background-color:#DDF;}
.person_boxF img{background-color:#FDD;}
.person_boxNN img{background-color:#DFD;}

.person_box {
	background-color:#DDF;
	overflow:visible;
	font: 13px  arial;
}

.person_boxF {
	background-color:#FDD;
	font: 13px  arial;
	overflow:visible;
}

.person_boxNN {
	background-color:#DFD;
	overflow:visible;
	font: 13px  arial;
}

.person_box, .person_boxF, .person_boxNN {margin: 0 0 0 3px;}

.person_box_lifespan {display: inline;}

/* families tab person box */
#relatives_content  .person_box > .person_box, #relatives_content .person_boxF  > .person_boxF, #relatives_content .person_boxNN  > .person_boxNN {  border:none;min-height:50px;} 

html[dir='rtl'] .person_box html[dir='rtl'] .person_boxF html[dir='rtl'] .person_boxNN {margin: 0 3px 0 0;}


.action_headerF {background: #FDD;}
.action_header {background: #DDF;}

/* index.php */
#index_main_blocks {
	width:60%;
	float:left;
}
#index_small_blocks {
	width:40%;
	float:right;
}
#index_full_blocks {
}


.facts_table, .facts_table_rtl {
	width:100%;
}

/* pedigree.php */
.pedigree_image_portrait, .pedigree_image_landscape {
	float:left;
	max-height:45px;
	max-width:37px;
	margin-right:3px;
}

.pedigree_image_portrait_rtl, .pedigree_image_landscape_rtl {
	float:right;
	max-height:45px;
	max-width:37px;
	margin-left:3px;
}

/*-- pedigree chart specific stylesheets --*/
#pedigree_chart {
	position:relative;
	top:-230px;
	left:0;
}

.compact_view p {font-size:90%; margin:0;}

.thumbnail {
height:auto;
padding:5px;
}

/*-- pedigree chart rtl specific stylesheets --*/
html[dir='rtl'] #pedigree_chart {
left:auto;
right:10px;
}

/* Printer friendliness */
@media print {
	#header, #footer {
	display:none;
	}
	#CB_All {display:none;}
}

/* Tabular data */
.list_table {
	padding:3px;
	margin-left:auto;
	margin-right:auto;
}
.topbottombar {
	font-weight:bold;
	font-size:125%;
	background-color:#BBB;
	text-align:center;
}
.descriptionbox {
	font-weight:bold;
	background-color:#CCC;
	vertical-align:top;
	white-space:nowrap;
}
.optionbox {
	background-color:#DDD;
	color:black;
	vertical-align:top;
	white-space:nowrap;
}
.facts_label, .facts_label02, .facts_label03 {
	background-color:#CCC;
	width:20%;
	text-align:center;
}

.list_label, .list_value {
	white-space:nowrap;
}
.list_label_wrap, .list_value_wrap {
	white-space:normal;
}

.list_label, .list_label_wrap {
	background-color:#CCC;
}

.list_value, .list_value_wrap {
	background-color:#DDD;
}

.journal_box {
	padding: 3pt;
	border:thin solid #AAA;
	overflow:visible;
}

.news_title {
	font-size:1.10em;
	font-weight:bold;
}

.news_date {
	margin-bottom:12px;
}

/* Autocomplete styles*/
.ac_input {
	background-color:#EEE8AA;
}
.ac_results {
	padding:0;
	border:thin solid #AAA;
	background-color:white;
	overflow:hidden;
	z-index:99999;
}
.ac_results ul {
	width:100%;
	list-style-position:outside;
	list-style:none;
	padding:0;
	margin:0;
}
.ac_results li {
	margin:0;
	padding:2px 5px;
	cursor:default;
	display:block;
	font:menu;
	line-height:14px; /* absolute setting required for firefox? */
	overflow:hidden;
}
.ac_loading {
	background:white url(images/indicator.gif) right center no-repeat;
}
.ac_odd {
	background-color:#eee;
}
.ac_over {
	background-color:navy;
	color:white;
}

/* Review everything below this line */

.center {
	text-align:center;
	margin-left:auto;
	margin-right:auto;
}
.nowrap {
	white-space:nowrap;
}
.wrap {
	white-space:normal;
}

.tabs_table {
	width:99%;
}

.tab_cell_active {
	background-color:white;
	border-left:outset #9ca3d4 2px;
	border-top:outset #9ca3d4 2px;
	border-right:outset #9ca3d4 2px;
	text-align:center;
	font-weight:bold;
}

.tab_cell_inactive {
	background-color:#d6e0ea;
	border-left:solid #9ca3d4 2px;
	border-top:solid #9ca3d4 2px;
	border-right:outset #9ca3d4 2px;
	text-align:center;
	font-weight:bold;
}

.tab_cell_inactive_empty {
	background-color:#c6d0da;
	border-left:solid #9ca3d4 2px;
	border-top:solid #9ca3d4 2px;
	border-right:outset #9ca3d4 2px;
	text-align:center;
	font-weight:bold;
}

.tab_cell_inactive_empty a {
	color:#999999;
}

.tab_active_bottom {
	border-top:none;
	border-bottom:none;
	border-left:none;
	border-right:none;
	height:5px;
}

.tab_inactive_bottom {
	border-left:none;
	border-right:none;
	border-top:outset #9ca3d4 2px;
	height:5px;
}

.tab_inactive_bottom_right {
	border-left:none;
	border-right:none;
	border-top:outset #9ca3d4 2px;
	width:33%;
	height:5px;
}

.indent {
	padding-left:7px;
}

.indent_rtl {
	padding-right:7px;
}

.image {
	height:150px;
	padding:5px;
	margin:2px;
}

.icon, .adminicon {
	padding-left:0;
	padding-right:5pt;
}

.link {
	font-size:12px;
	text-align:center;
}

.subheaders {
	margin-top:15px;
	vertical-align:bottom;
}

.age {
	font-size:9px;
}

.source_citations {
	display:none;
}

.favorites_form {
	margin-top:2px;
	margin-bottom:2px;
}

.selected-option {
	background-color:#d6e0ea;
}

.user_links {
	white-space:nowrap;
}

.hit-counter {
	background:black;
	color:white;
	font-weight:bold;
}

.current_day {
	font-weight:bold;
	font-size:16px;
}

.cal_day {
	float:left;
	font-weight:bold;
}

.rtl_cal_day {
	direction:rtl;
	float:right;
	color:blue;
	font-weight:bold;
}
.helpcontent {
	margin-left:10px;
	margin-right:10px;
}
.helpcontent dt {clear:both;}

.helpfooter {
	margin:10px;
}

.helpheader {
	margin:10px;
	font-size:18px;
	font-weight:bold;
	color:black;
}

.helpstart {
	margin:10px;
	color:blue;
	text-decoration:none;
}

.helptext {
	color:black;
}

/*-- descendancy chart specific stylesheets --*/
#descendancy_chart ul {
	background-image:url(images/vline.png);
	background-repeat:repeat-y;
	background-position:left top;
	list-style:none;
	margin:0 0 5px 15px; /* top right bottom left */
	padding-top:0;
	padding-right:15px;
	padding-bottom:0;
	padding-left:15px;
}

#descendancy_chart li {
	list-style:none;
	margin:0 0 0 -13px; /* top right bottom left */
	padding-top:0;
	padding-right:0;
	padding-bottom:0;
}
li .person_box, li .person_boxF {margin: 3px 0 3px 0;}

/*-- descendancy chart rtl specific stylesheets --*/
html[dir='rtl'] #descendancy_chart ul {
background-position:right top;
left:auto;
margin:0 15px 0 0;

}

html[dir='rtl'] #descendancy_chart li {
margin:0 -13px 0 0;
padding:0 2px 0 0;
left:auto;
}

/*-- ancestry chart specific stylesheets --*/
#ancestry_chart ul {
	background-image:url(images/vline.png);
	background-repeat:repeat-y;
	background-position:left top;
	list-style:none;
	display:block;
	margin:0 0 0 15px; /* top right bottom left */
	padding-top:0;
	padding-right:15px;
	padding-bottom:0;
	padding-left:15px;
}

#ancestry_chart li {
	list-style:none;
	margin:0 0 2px -13px; /* top right bottom left */
	padding-top:0;
	padding-right:0;
	padding-bottom:0;
}
#ancestry_chart li table {margin: 5px 0;}

/*-- ancestry chart rtl specific stylesheets --*/
html[dir='rtl'] #ancestry_chart ul {
background-position:right top;
margin:0 15px 0 0;
left:auto;
}

html[dir='rtl'] #ancestry_chart li {
margin:0 -13px 0 0;
padding:0 2px 0 0;
left:auto;
}

/*-- timeline chart specific styles --*/
#timeline_chart {
	position:relative;
	top:0;
	left:0;
}

.person0 {
	background-color:#aaaaff;
	vertical-align:top;
}

.person1 {
	background-color:#aaffaa;
	vertical-align:top;
}

.person2 {
	background-color:#ffaaaa;
	vertical-align:top;
}

.person3 {
	background-color:#5555ff;
	vertical-align:top;
}

.person4 {
	background-color:#ff5555;
	vertical-align:top;
}

.person5 {
	background-color:#55ff55;
	vertical-align:top;
}

.listlog {
	line-height:20pt;
	color:#555555;
}

.starredname {
	text-decoration:underline;
}

.search_hit {
	background-color:yellow;
}
.search_item{font-weight:600;}

.title {
	font-size:150%;
}

/* Style for the subbar in  */
/* facts_value */
.subbar {
	background-color:#d1d9ef;
	color:black;
	vertical-align:top;
	white-space:nowrap;
	padding:3px;
}

.vmiddle {
	vertical-align:middle
}

/* Colors */
.red {
	color:red;
}

.rela, .histo {
	opacity:0.67;
}

/* Width settings */
.width10 {
	width:10%;
}

.width20 {
	width:20%;
}

.width25 {
	width:25%;
}

.width30 {
	width:30%;
}

.width33 {
	width:33%;
}

.width40 {
	width:40%;
}

.width50 {
	width:50%;
}

.width60 {
	width:60%;
}

.width66 {
	width:66%;
}

.width70 {
	width:70%;
}

.width75 {
	width:75%;
}

.width80 {
	width:80%;
}

.width90 {
	width:90%;
}

.width100 {
	width:100%;
}

/* Font sizes */
.font11 {
	font-size:11px;
}

.font9 {
	font-size:9px;
}

/* Message box */
.messagebox {
	background-color:#c2ceef;
}

.note_details {
	display:none;
}

a.showit {
	position:relative;
	z-index:24;
	color:black;
	text-decoration:none;
}

a.showit:hover {
	z-index:25;
	background-color:#ffff9b;
	cursor:crosshair;
}

a.showit > span {
	display:none;
}

a.showit:hover > span {
	display:block;
	position:absolute;
	top:22px;
	left:0;
	width:225px;
	border-style:outset;
	border-left:15px outset #1f1f1f;
	border-top:2px solid #1f1f1f;
	border-bottom:2px solid black;
	border-right:2px solid black;
	padding:3px;
	background:#4f4f4f;
	color:white;
	text-align:left;
	opacity:.85;
	z-index:5;
}

.lifespan_people span:first-letter {
	font-variant:small-caps;
	padding:1px;
}

.lifespan_outer {
	position:relative;
	width:99.5%;
	height:600px;
	overflow:hidden;
}

.lifespan_outer a {
	color:black;
}

.lifespan_outer a:hover {
	color:red;
	text-decoration:none;
}

.lifespan_timeline {
	position:absolute;
	width:100%;
	left:-10px;
	top:-65px;
	z-index:2;
	background-color:white
}

.lifespan_people {
	position:absolute;
	width:500px;
	left:-10px;
	top:-60px;
	z-index:1;
}
.iwstyle {
	width:360px;
	/*background-color:#FFFFFF;*/
}
.iwstyle a {
}
.iwstyle a:hover {
}

#map_nav {
	position:relative;
	top:-484px;
	left:101%;
}

#tree_nav {
	position:relative;
	top:-584px;
	left:90%;
	z-index:100;
}

#map_type
{
	margin:0;
	padding:0;
	font-size:10px;
	list-style:none;
}
#map_type li
{
	display:block;
	width:70px;
	text-align:center;
	padding:2px;
	border:thin solid #AAA;
	cursor:pointer;
	float:left;
	margin-left:2px;
}
#map_type li.non_active
{
	background:white;
	color:black;
	font-weight:normal;
}
#map_type li.active
{
	background:gray;
	color:white;
	font-weight:bold;
}
#map_type li:hover
{
	background:#ddd;
}

.tag_cloud {
}
.tag_cloud a {
	white-space:nowrap;
}

.clearfloat {
	clear:both;
}

dl {
	margin:0;
}

dt {
	float:left;
	font-weight:bold;
	margin-right:10px;
	clear:both;
}
html[dir="rtl"] dt {
	float:right;
	margin-right:auto;
	margin-left:10px;
}

dd {
	display:inline;
	margin:0;
}

#pending h2 {text-align:center; margin-bottom:20px;}
#pending h3 {text-align:center; margin-top:20px;}

.charts_block .person_box, .charts_block .person_boxF, .charts_block .person_boxNN,
.gedcom_favorites_block,.user_favorites_block, 
#ancestry_chart .person_box, #ancestry_chart .person_boxF, #ancestry_chart .person_boxNN,
#descendancy_chart .person_box, #descendancy_chart .person_boxF, #descendancy_chart .person_boxNN,
#family-table .person_box, #family-table .person_boxF, #family-table .person_boxNN,
#familybook_chart .person_box, #familybook_chart .person_boxF, #familybook_chart .person_boxNN,
#hourglass_chart .person_box, #hourglass_chart .person_boxF, #hourglass_chart .person_boxNN,
#pedigree_chart .person_box, #pedigree_chart .person_boxF, #pedigree_chart .person_boxNN,
#relatives_content .person_box, #relatives_content .person_boxF, #relatives_content .person_boxNN,
#relationship_chart .person_box, #relationship_chart .person_boxF, #relationship_chart .person_boxNN {
overflow: visible !important;
}

#branches-page table, #medialist-page .list_table  {margin:auto;}

/* ============== login.php ======================= */
#login-register-page h2 {text-align:center;}
#login-register-page .warning  {margin:20px auto; text-align:center;}
#login-register-page .back  {font-weight:bold; font-size:14px; text-align:center;}
#login-register-page .confirm {margin: 20px auto; text-align: justify; width: 500px;}
#login-register-page .confirm p  {font-size:14px;font-weight:bold;}
#login-register-page .confirm p+p  {font-size:12px;font-weight:normal;}
#login-text, #register-text, #user-verify {margin:20px auto; width: 610px; text-align: justify;}
#login-box, #register-box { text-align:center;}
#login-form, #new_passwd_form, #register-form  {background-color:#ccc; border: 1px solid darkGray; border-radius: 3px; display: inline-block; margin:10px auto 0 auto; padding:5px;}
#login-form div, #login-form div a, #new_passwd_form div, #register-form div, #verify-form div  {font-weight: bold; margin:auto; padding:5px; text-align: center;}
#login-form label, #new_passwd_form label, #verify-form  label  {display: block; text-align:right;}
#login-form label input, #new_passwd_form label input, #verify-form  input {width:140px; margin: 0 10px;}
#new_passwd_form h4, #register-form h4 {font-weight:normal; text-align:center;}
#register-form div, #verify-form  div {text-align:right;}
#register-form label input, #register-form label select, #register-form textarea {width:220px; margin: 0 10px;}
#register-form label select {margin:0 10px; width:228px;}
#register-form textarea {vertical-align: top;}
#register-form div#registration-submit {text-align:center;}
.login_block_block #login-form, .login_block_block #new_passwd_form{border:0; background:none;}
html[dir='rtl'] #login-form label, html[dir='rtl'] #new_passwd_form label, html[dir='rtl'] #register-form label, html[dir='rtl'] #verify-form  label {text-align:left;}

/* ============== reportengine.php ======================= */
#reportengine-page table {margin:20px auto;}
#reportengine-page .report-type {overflow:hidden; margin:auto; width:180px;}
#reportengine-page .report-type div {float:left;margin: 0 20px;}
#reportengine-page .report-type p {margin: 0; text-align:center;}

.gedcom_favorites_block  .person_box, .gedcom_favorites_block  .person_boxF, .gedcom_favorites_block  .person_boxNN {height:auto;}
.user_favorites_block  .person_box, .user_favorites_block  .person_boxF, .user_favorites_block  .person_boxNN {height:auto;}
.gedcom_favorites_block  .person_box .details2, .gedcom_favorites_block  .person_boxF.details2, .gedcom_favorites_block  .person_boxNN.details2 {min-height:40px;}
.user_favorites_block  .person_box .details2, .user_favorites_block  .person_boxF.details2, .user_favorites_block  .person_boxNN.details2 {min-height:40px;}

.itr {
	position: absolute;
	line-height: 1.5;
}

.block .itr, #family-table .itr, #ancestry_chart .itr, #descendancy_chart .itr, #familybook_chart .itr, #hourglass_chart .itr, #relatives_content .itr {
	position: relative;
	top: 0;
}

.popup {
	display:none;
}

.popup dl {
	font-size:9px;
	height:auto;
	padding:5px;
	min-height:100px;
}

.popup dt {
	float:none;
}

.popup dd {
	display: block;
	margin-left:10px;
}

.itr:hover .popup {
	display: block;
	position: absolute;
	width: 12em;
	right: 0;
	z-index: 9999;
}

html[dir='rtl'] .popup dt {float:none;}
html[dir='rtl'] .popup dd {margin-right:10px;}
html[dir='rtl'] .itr:hover .popup {left:0; right:auto;}

/* styles for FindFacts pop-up */
#layDefinedTags,#tabDefinedTagsShow {
	width:450px;
}
#tabDefinedTags {
	width:430px;
}
#layDefinedTags {
	margin-left:auto;
	margin-right:auto;
	height:285px;
	overflow:auto;
	border:inset 2px buttonface;
}
#tabDefinedTags {
	border-collapse:collapse;
}
#tabDefinedTags th,#tabDefinedTags td {
	border:solid 1px #000;
	margin:0;
	padding:3px;
}
#tabDefinedTags tbody th {
	text-align:left;
	font-weight:bold;
}
#tabDefinedTags tr.sel {
	background-color:#D1D9EF;
	color:#888;
}
#tabDefinedTags tr.unsel {
	background-color:#FFFFFF;
	color:#888;
}
#tabDefinedTagsShow {
	margin-left:auto;
	margin-right:auto;
}
#tabDefinedTagsShow td {
	width:50%;
	text-align:center;
}
#tabFilterAndCustom {
	margin-left:auto;
	margin-right:auto;
}
#tabAction {
	margin-left:auto;
	margin-right:auto;
}
#tabAction td {
	width:50%;
	text-align:center;
}
/* FAQ table styles */
table.faq   {
	background-color:#E0E0E0;
	margin:5px 0 50px 5px;
	width:98%;
}
table.faq  tr.odd td {
	background-color:#E7EEF3;
}
div.faq_title {
	background-color:#E0E0E0;
	margin:1em 0 0 1em;
	padding:.25em;
	font-weight:bold;
	width:98%;
}
div.faq_body {
	clear:both;
	margin:1em 0;
	padding:1em;
}
.faq_italic {
	font-style:italic;
	font-weight:bold;
	font-size:90%;
	padding:0 10px;
}
.faq_top {float:right;}
.faq_edit {float:right;}
html[dir='rtl'] .faq_top {float:left;}
html[dir='rtl'] .faq_edit {float:left;}

td.descriptionbox  a {
}

ul.clist {
	list-style-image:none;
	text-decoration:none;
	color:#000000;
	margin:0;
	margin-left:-23px;
}

/* Find special characters */
.largechars {
	font-family: monospace;
	font-size: 200%;
}
/* ========= Positioning edit, copy, delete links ============= */
/* General use */
.editfacts {clear:left; padding-top:15px;} /* a container for the following three links */
.editfacts  a:hover, .field a:hover {background-color:transparent !important;}
.editlink, .copylink, .deletelink {float:left;}
html[dir='rtl'] .editlink, html[dir='rtl'] .copylink, html[dir='rtl'] .deletelink {float:right;}
span.link_text  {display:none;}
/* Indi header */
.field  .editlink, .field  .deletelink, .field .copylink {float:right;}
html[dir='rtl'].field  .editlink, html[dir='rtl'].field  .deletelink  {float:left;}
/* =========== end edit, copy, delete links ==================== */

/* =========== Indi header ================== */

#indi_header {float:left; width:98%; border-radius:3px; margin:5px 0; padding:0 10px;}
#indi_header h3 {color:#000666; font-size:90%; font-weight:bold; margin:0; padding:0 10px 0 30px; text-align:left;}
#indi_header h3.name_one {overflow:hidden; position:relative; font-size:1.5em;}
#indi_header h3.person_box, #indi_header h3.person_boxF , #indi_header h3.person_boxNN  {border:1px solid darkGray;}
#indi_header h3 .header_age {padding:5px 0 5px 5px; float:right; font-weight:normal; font-size:65%;}
#indi_header h3 a {display:inline;}
#indi_header a {color:#333377; font-size:0.75em; font-weight:normal;}
#indi_header a:hover {color:red;}

#main_name {color:#000666; float:left; font-size:2em; margin:10px; font-weight:bold;}

#indi_mainimage {float:right;}
#indi_mainimage a img {float:right; padding:0;}

#indi_name_details {margin:0; overflow:hidden !important; padding:5px;}
#indi_name_details .warning {color:red; font-size:1em;}
#indi_name_details dt:after {content:":";}
#name1 {}

#indi_note {margin:0 0 5px 0;}
#indi_note .fact_NOTE {float:left; margin:0 10px 0 0;}
#indi_note .note_details {font-size:100%;}
#indi_note .fact_SOUR a {font-size:100%;}

#header_accordion1 {float:left;}

.indi_table {clear:left;}
#sex {float:right;}
#dates {color:#000666; float:right;}
dd .editlink, dd .deletelink  {float:right;}

html[dir='rtl'] #indi_header {float:right;}
html[dir='rtl'] #indi_header h3 {padding:0 30px 0 10px; text-align:right;}
html[dir='rtl']  #indi_header h3 .header_age {padding:5px 5px 5px 0; float:left;}
html[dir='rtl'] #main_name {float:right;}
html[dir='rtl'] #indi_mainimage {float:left;}
html[dir='rtl'] #indi_mainimage a img {float:left;}
html[dir='rtl'] #indi_note .fact_NOTE {float:right; margin:0 0 0 10px;}
html[dir='rtl'] #header_accordion1 {float:right;}
html[dir='rtl'] .indi_table {clear:right;}
html[dir='rtl']  #sex {float:left;}
html[dir='rtl']  #dates {float:left;}
html[dir='rtl']  dd .editlink, html[dir='rtl']  dd .deletelink  {float:left;}

/* INDI IMAGE SPRITE */
.male_gender, .female_gender, .unknown_gender, .editicon, .copyicon, .deleteicon {display:block; background:url('images/indi_sprite.png') no-repeat;}
.female_gender {background-position:-45px 3px; width:24px;}
.male_gender {background-position:-72px 3px; width:24px;}
.unknown_gender {background-position:-100px 4px; width:24px;}
.editicon {background-position:-40px -32px; width:24px; height:16px;}
.copyicon {background-position:-70px -32px; width:24px; height:16px;}
.deleteicon {background-position:-100px -32px; width:24px; height:16px;}

/* =========== Indi tabs ================== */
/* Facts & Events tab */
#personal_facts_content .fact_NOTE, #personal_facts_content .fact_SOUR, #family-table .fact_NOTE, #family-table .fact_SOUR {margin: 5px 3px 5px 0; clear: both;}
#media-display-image {float:left;}
#media-display-title {float:left; font-style:italic; margin:10px;}

/* ========= jquery-ui.custom.css changes ============ */
.ui-widget-content a:hover  {color:red;}
.ui-tabs-nav li.ui-tabs-selected  {background:#f8f8f8;}
.ui-tabs-nav li.ui-tabs-selected a  {font-weight:600; color:black;}
.ui-tabs-nav li.ui-tabs-selected a:hover  {font-weight:600; color:black;}
.ui-tabs .ui-tabs-panel {padding:1em 0;}
.ui-state-active, .ui-widget-content .ui-state-active {border:1px solid darkGray; background:#ccc; font-weight:normal; color:black; outline:none;}
.ui-accordion .ui-accordion-header .ui-icon {position:absolute; left:0.5em; top:50%; margin-top:-8px;}
.ui-accordion .ui-accordion-content {padding:1em .05em; border-top:0; margin-top:-2px; position:relative; top:1px; margin-bottom:2px; overflow:visible; display:none;}
.ui-accordion .ui-accordion-content-active {display:block;}
.ui-accordion .ui-accordion-header a {padding:.5em;}
.ui-helper-reset {line-height:1.6;}
.ui-state-highlight a {color:red;}

html[dir='rtl'] .ui-tabs {direction:rtl;}
html[dir='rtl'] ui-tabs .ui-tabs-nav li.ui-tabs-selected,
html[dir='rtl'] .ui-tabs .ui-tabs-nav li.ui-state-default {float:right;}
html[dir='rtl'] .ui-accordion .ui-accordion-header .ui-icon {right:0.5em;}

/* ========= jQuery.datatable styling over-rides ============ */
.odd {background-color:LightGrey;}
.even {background-color:#fff;}
.css_right {float:left;}
.fg-button {padding:2px 6px;}
.fg-toolbar {background:#EEE; border-color:darkGray;}
.dataTables_paginate   {float:left; margin:5px;}
.dataTables_processing {float:left; margin:5px;}
.dataTables_filter  {float:right; margin:4px;}
.dataTables_info {float:left; margin:5px;}
.recent_changes_block .dataTables_info, .upcoming_events_block .dataTables_info, .todays_events_block .dataTables_info, .todo_block .dataTables_info, .yahrzeit_block .dataTables_info {padding: 0;}
.upcoming_events_block .dataTables_info, .todays_events_block .dataTables_info {padding: 2px 0 0 0;}
.upcoming_events_block  button, .todays_events_block  button {margin: 5px 20px;}
.dataTables_length {float:right; margin:5px;}
.dataTables_length select, .dataTables_filter input {font-size:11px; padding:1px;}
.ui-widget-header {font-weight:normal;}
.dt-clear {clear:both;}
#loading {text-align:center;}
.DataTables_sort_wrapper {position:relative; margin: 0 20px;}
.DataTables_sort_wrapper span {left:0; margin-left:-20px; margin-top:-8px; position:absolute; top:50%;}

html[dir='rtl'] .css_right {float:right;}
html[dir='rtl'] .dataTables_paginate {float:right;}
html[dir='rtl'] .dataTables_processing {float:right;}
html[dir='rtl'] .dataTables_filter  {float:left;}
html[dir='rtl'] .dataTables_info {float:right}
html[dir='rtl'] .dataTables_length {float:left;}
html[dir='rtl'] .DataTables_sort_wrapper {margin-right:20px;}
html[dir='rtl'] .DataTables_sort_wrapper span {left:auto; right:0; margin-right:-20px;}

/* ========= List styles ================= */
.source-list, .note-list, .repo-list, .media-list, .indi-list, .fam-list  {margin:5px auto; visibility:hidden; width:98%;}
.surname-list, .givn-list  {margin:5px auto;}
.source-list table, .note-list table, .repo-list table, .media-list table, .indi-list table, .fam-list table  {width:100%;}
.source-list td, .note-list td, .repo-list td, .media-list td, .indi-list td, .fam-list td, .recent_changes_block td, .upcoming_events_block, .surname-list td, .givn-list td {padding:2px 5px;}
.indi-list td, .fam-list td {color:#555;}
.surname-list  td {vertical-align:top;}
.indi-list .stats, .fam-list .stats {margin:0 auto; width:auto;}
.source-list th, .note-list th, .repo-list th, .media-list th, .indi-list th, .fam-list th, .recent_changes_block th, .upcoming_events_block th, .todays_events_block th, .todo_block th, .yahrzeit_block th, .surname-list th, .givn-list th {cursor:pointer; white-space:nowrap;}
.source-list th:last-child, .note-list th:last-child, .repo-list th:last-child {margin:0 -2px 1px 1px; padding:3px 0 4px; width:24px;}
.givn-list th{cursor:pointer;white-space: nowrap;padding:2px;text-align:center;}
#source-details h2,#sourcelist-page h2, #note-details h2, #notelist-page h2, #repo-details h2, #repolist-page h2, #media-details h2, #medialist-page h2, #stats-details h2 {margin-bottom:20px; text-align:center;}
#source-tabs, #note-tabs, #repo-tabs, #media-tabs {margin:auto; visibility:hidden; width:80%;}
#stats-tabs {margin:auto; visibility:hidden; width:90%;}
#source-edit, #note-edit, #repo-edit, #media-edit {overflow-x:auto;}
.media-list td img {display:block; height:40px; margin:3px auto;}
.filtersH, .filtersF {margin:4px}
.filtersH img {margin-bottom:2px;}
.filtersH .ui-state-default,.filtersF .ui-state-default {margin:0 2px; padding:2px;}
.loading-image{background:transparent url(../../images/loading.gif) 50% 50% no-repeat; height:50px; margin:50px;}
#search-result-tabs, #places-tabs {margin:auto; width:98%; visibility:hidden;}
#search-result-tabs h3 {text-align:center;}
#searchAccordion-indi, #searchAccordion-fam, #searchAccordion-source, #searchAccordion-note {margin:auto; width:99%;}
#place-heirarchy h2, #place-heirarchy h4 {text-align:center;}

html[dir='rtl'] .source-list th:last-child, html[dir='rtl'] .note-list th:last-child, html[dir='rtl'] .repo-list th:last-child {margin:0 1px 1px -2px;}

/* ========= Sidebar ============== */
#main {min-width:600px; width:100%}
#indi_left {float:left; width:98%;}
#tabs {background-color:#FFF; border-color:#DDD; float:left; width:98%; overflow:visible;}
#sidebar {border-color:#DDD; display:none; margin:5px 2px 0 0; height:auto;}
#sidebarAccordion, #sidebarAccordion2 {width:auto;}
#sidebarAccordion h3, #sidebarAccordion2 h3 {height:30px; text-align:center; border-color:darkGray;}
.use-sidebar #indi_left {width:77%;}
.use-sidebar #sidebar {display:block;}
.sidebar-at-right #sidebar {width:20%;}
.use-sidebar.sidebar-at-right #sidebar, .sidebar-at-right #separator {float:right;}
#separator {float:right; display:block; background:#ccc url('images/indi_sprite.png') no-repeat -26px 100px; min-width:6px; max-width:10px; width:0.75%; border:1px solid darkGray; border-radius-topleft:3px; border-radius-topright:3px; margin-top:5px;}
.use-sidebar #separator {background:#ccc url('images/indi_sprite.png') no-repeat -1px 100px;}

html[dir='rtl'] #indi_left {float:right;}
html[dir='rtl'] #tabs {float:right;}
html[dir='rtl'] #sidebar  {margin:5px 0 0 2px;}
html[dir='rtl'] .use-sidebar.sidebar-at-right #sidebar, html[dir='rtl'] .sidebar-at-right #separator  {float:left;}
html[dir='rtl'] #separator {float:left; background:#ccc url('images/indi_sprite.png') no-repeat -1px 100px;}
html[dir='rtl'] .use-sidebar #separator {background:#ccc url('images/indi_sprite.png') no-repeat -26px 100px;}

/* ============== Sidebar content items ============== */
/* Family navigator */
#sb_content_family_nav {padding:0;}
#sb_family_nav_content {margin-top:2px;}
.nam a:hover {color:red;}
.nav_content {width:100%;padding:10px 0;}
.flyout {color:#000000; text-align:left; margin-top:-20px; right:210px; padding:3px;}
.flyout2 {color:#000000; text-align:left;margin-top:-2px; left:40px; padding:3px;}
.flyout2 a:hover {color:#ff0000;}
.flyout4 {color:#000000; text-align:left; margin-top:0;margin-left:0; padding:3px;}
.flyout3, .flyout3 a {background:none; border:none; text-decoration:none; text-align:left; margin-top:0; left:0; padding:0;}
.famnav_link div {font-size:12px; padding:0; width:100%;}

html[dir='rtl'] .flyout {text-align:right; left:210px;}
html[dir='rtl'] .flyout2 {text-align:right; right:40px;}
html[dir='rtl'] .flyout3 {text-align:right;}

/* Descendancy */
#sb_desc_content {margin-left:3px; font-size:0.8em;}
#sb_desc_content ul {padding:0; margin:0;}
.sb_desc_indi_li {list-style-type:none;}
.desc_tree_div {display:none;}
.desc_tree_div ul {padding:0; margin-left:10px; margin-top:0; margin-right:0;}

html[dir='rtl'] #sb_desc_content {margin-right:3px;}
html[dir='rtl'] .desc_tree_div ul {margin-right:10px; margin-left:0;}

/* Individuals, Families */
.sb_indi_surname_li, .sb_fam_surname_li {list-style-image:url('images/plus.png');}
.name_tree_div li, .name_tree_div_visible li {white-space:normal;}
.name_tree_div {display:none;}
.name_tree_div li,  .name_tree_div_visible li {list-style:none; margin:0; padding:0;}
.name_tree_div ul, .name_tree_div_visible ul {padding:0; margin:0;}

/* Clippings */
#sb_clippings_content li {list-style:none; margin:0; padding:0;}
#sb_clippings_content ul {padding:0; margin:0;}

/* Extra info */
#sb_content_extra_info {font-size:80%; font-weight:bold; margin-top:1px; overflow:hidden; padding:5px;}
#sb_content_extra_info .editfacts {float:right; margin-top:-10px;}
#sb_content_extra_info a {display:block;}
#sb_content_extra_info span {font-weight:normal;}
#sb_content_extra_info span a {display:inline;}
#sb_content_extra_info #hitcounter {border-top:1px solid #B2C7D7; font-weight:bold; padding-top:5px;}

html[dir='rtl'] #sb_content_extra_info .editfacts {float:left;}

fieldset {
	text-align:left;
}
html[dir='rtl'] fieldset {text-align:right;}

/* ============== find.php ======================= */
#find-page h3, #find-page h4{margin: 10px; text-align:center;}
#find-header {background-color:#ccc; border:1px solid darkGray; border-radius:3px; margin:10px auto; padding:5px 20px; width:50%;}
#find-header p {margin:5px; text-align:center;}
#find-header span {}
#find-output, #find-output-special {background-color:#ddd; border:1px solid darkGray; border-radius:3px; margin:20px 5px; padding:10px;}
#find-output p {border-top:1px solid darkGray; font-weight: bold; margin:0; padding-top:10px; text-align: center;}
#find-media {background-color:#ccc; border:1px solid darkGray; padding:5px; text-align:center;}
#find-media span {border:0; font-weight: bold; margin:auto; padding:5px;}
.find-media-dirs {border-bottom:1px solid darkGray; padding:3px;}
.find-media-media {border:1px solid darkGray; overflow: hidden; margin:1px; padding:2px;}
.find-media-thumb {clear:left; float:left;}
.find-media-thumb img {width:50px;}
.find-media-details {float:left;}
#find-output .find-media-details p {border:0; padding:0 5px 2px 5px; font-weight:normal; text-align:left;}
#find-output .find-media-details div span {font-weight:normal; padding:0 5px 2px 5px;}
#find-output p.find-media-title {font-weight:bold;}
.find-media-details ul {padding:0; margin:0px 20px 10px 20px; list-style-type:none;}
#find-facts-header .list_label {text-align:inherit;}

/* ============== search.php ======================= */
#search-page h2, #search_submit {margin:20px; text-align:center;}
#search-page-table {background-color:#ccc; border:1px solid darkGray; border-radius:3px; margin:20px auto 0; width:580px;}
#search-page-table .label{float:left; font-weight:bold; margin:1px; padding:5px 10px 0; width:150px;}
#search-page-table .value {background-color:#ddd; border:1px solid #fff; margin:0 0 0 170px; padding:5px; white-space:nowrap;}
#search-page-table p {margin:0;}
html[dir='rtl'] #search-page-table .label{float:right;}
html[dir='rtl'] #search-page-table .value {margin:0 170px 0 0;}
