/*!
 * This file is part of the Semantic MediaWiki Extension
 * @see https://semantic-mediawiki.org/
 *
 * @section LICENSE
 * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
 *
 * @since 1.8
 *
 * @file
 * @ingroup SMW
 *
 * @licence GNU GPL v2+
 * @author Jeroen De Dauw <jeroendedauw at gmail dot com>
 * @author mwjames
 */

/* highlighting for builtin elements */
span.smwbuiltin, span.smwttactiveinline span.smwbuiltin {
	font-style: italic;
}

/* make divs look like <pre> */
div.smwpre {
	font-family: monospace;
	padding: 1em;
	border: 1px dashed #2f6fab;
	color: black;
	background-color: #f9f9f9;
	line-height: 1.1em;
	margin-bottom: 0.5em;
	margin-top: 0.5em;
	white-space: pre-wrap;
	white-space: -moz-pre-wrap;
	white-space: -pre-wrap;
	white-space: -o-pre-wrap;
	word-wrap: break-word;
	word-break: break-word;
	margin-right: 5px;
}

/* terminate page contents when inserting stuff below a page, typically used in <br> */
#smwfootbr {
	clear: both;
}

/* hide keys for sorting table entries */
span.smwsortkey {
	display: none;
}

/* buttons for sort-arrows */
a.sortheader:hover {
	text-decoration: none;
}

/* "semantic" span classes for Timeline */
div.smwtimeline {
	border: 1px solid #AAAAAA;
	background-color: #F9F9F9;
	/*text-align: center;*/
	/* After hours of debugging and frustration I now can safely say: IE sucks. (mak)
	   You can support Semantic MediaWiki development by not using Internet Explorer. Thanks.
	   (IE centers the Timeline *elements*, which messes up the whole layout) */
}

span.smwtlevent, span.smwtlband, span.smwtlsize, span.smwtlposition {
	display: none;
	speak: none;
}

span.smwtlcomment {
	font-style: italic;
	padding: 5px;
}

/* Factbox */
div.smwfact {
	clear: both;
	background-color: #F9F9F9;
	padding: 5px;
	margin-top: 1em;
	border: 1px solid #AAAAAA;
	font-size: 95%;
	min-height: 23px; /* required by SMW_FACTBOX_SHOWN */
}

div.smwfact td, div.smwfact tr, div.smwfact table {
	background-color: #F9F9F9;
}

.smwfactboxhead {
	font-size: 110%;
	font-weight: bold;
	float: left;
	margin-bottom: 2px;
	max-width: 90%;
}

table.smwfacttable {
	border-top: 1px dotted #AAAAAA;
	width: 100%;
	clear: both;
}

td.smwpropname, th.smwpropname, td.smwspecname {
	text-align: right;
	vertical-align: top;
	padding-right: 1em;
}

.smwfact tbody > tr.row-even > td {
	background-color: #fff;
}

/* Property page */
.property-page-results td.smwpropname {
	width: 50%;
}

.property-page-results td.smwprops, td.smwspecs {
	vertical-align: top;
	width: 50%;
}

@media (min-width: 600px) {
	.smwfact td.smwpropname, .property-page-results td.smwpropname {
		width: 33%;
	}

	.smwfact td.smwprops, .property-page-results td.smwprops, td.smwspecs {
		width: 75%;
	}
}

.property-page-results {
	margin-top: 0.9em;
}

.property-page-results table {
	border: none;
}

.property-page-results .header-row {
	/* background-color: #f5f5f5; */
}

.property-page-results .value-row:hover {
	background-color: #f5f5f5;
}

.property-page-results .header-row > th {
	border-bottom: 0px solid #ddd;
}

.property-page-results tr.value-row > td {
	padding-bottom: 0.2em;
	padding-top: 0.2em;
}

.property-page-results .header-row + tr.value-row td {
	padding-top: 0.3em;
}

.property-page-results .header-title {
	font-weight: bold;
	font-size: 1.17em;
	line-height: 1.6;
	margin-top: 0.0em;
	color: #333;
	overflow: hidden;
	padding: 2px 3px;
}

.property-page-results tr.value-row:nth-child(even) {
  /*  background-color: #f5f5f5; */
}

.smwtable-striped tbody > tr:nth-child(even) {
   background-color: #f5f5f5;
}

.smwtable-striped tbody > tr:nth-child(odd) {
   background-color: #fff;
}

.smwtable-striped tbody > tr:hover {
	background-color: #eee;
}

div.smwhr hr {
	background-color: #DDDDDD;
	color: #DDDDDD;
}

/* warning messages */
span.smwwarning {
	color: #888888;
	font-style: italic;
	font-size: 90%;
}

.smw-edit-protection {
	/* @embed */ background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAADOCAYAAAC5MQkHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3JJREFUeNrs3dFuEkEYgNHOQBbWC8Nzqo+jL8QTNV64sAmMbdM1xEBrIt2ZnTknUSu2lp39+g9FgbDf7x+47nA4/BiGYXs8HrtxHLvz+bya/uzp8v7yffu+H6a3Y4ynruvGzWYzPl1+2G63X63mdWtL8Ef6+4KncF5+3MGXK5cFS952gKmwzx8EKLpSrlsQoOjEKMDmwnvrOIIAhSdEATYXXtUhRvE5ZhNQeM1Owyg+09AEFF6z0zCKzzQUoPiaXau1xbQlm4Dia3YNo4UToQDF1+yaRgslQgGKr9k1jhZGhAIUX7NrvrYQ7woVH196yHw/oUfFfUx0t/4uk76wAFOl0S0pxqxTMIrvZfFDQ5+3qHMRG46vlABKuR6ppQBb2G5ruE5VBpgyn+RQ+BdGzuuXag8wd3wmdGHnqIW7YcLCr3fVd93EWr+yKrpdleMYUo0Bis+xZAswOWGLO6ZUS4DiE2EzW3AL96VVdYyt3hFNIwHOuf229C8Jcx5rWnKA4nPM2QJMTkQ1x56WGCBkC9D0MwWrn4Diq2AtbMFUF2DyFV/tFExLCBCqDtD0q2ht7h2gx73WL5UcIFQdoO23sjUyAakmQLf/3A6segLafitcK1swAkSAthTbsAAxAWGRAboLpj2ppABBgAjQd8DWzgTEBAQBIkAQIAIEASJAECACBAEiQAQIAkSAIEAECAJEgCBABAgCRIBwf+vXX0t+ag1P+1HvuQnRCSZnwLZg3AZEgCBABAgCRIAgQAQIAkSAIEAECAJEgCBABAgCRIAgQAQIAkSAIEAECAJEgHAzwGAZyCRMz441ReiJipglPEsAAAAAAAAAAABwV2G/309v+7+AzNre809RfGSSpgDFR7YIPSiJrASIABEgCBABggARIAgQAYIAESAIEAGCABEgCBABggARIAgQAYIAESAIEAHCuwF64Thy0R4AAAAAAAAAAMB9XL5Y4cRLd/GhzV3+Zi06ZnbZWvBihWSN0WNCyEqACBABggARIAgQAYIAESAIEAGCABEgCBABggARIPx3gJ4omlyCCUgRW7ApyOzTz21AivomxBRk1ul3bQKKkNnie7Z+4x08YJ0PC+/WBDQNmS2+WxPw6gcej8fvj4+Pn4dh+HQ6nVbjOHbWlUnXdeNqtTr1ff9rt9v93Gw23/7l434LMAB5UpLsaS0+0gAAAABJRU5ErkJggg==');
	background-size: 16px 20px;
	background-repeat: no-repeat;
	height: 20px;
	width: 16px;
}

/* Search, browse, RDF icons/ FIXME: this was only used for Factbox docu, should be removed from code */
span.smwsearchicon {
	padding-right: 16px;
	margin-right: 2px;
	color: #888888;
	/* @embed */ background: url(../images/searchgray_iconsmall.png) center right no-repeat;
}

#bodyContent span.smwsearch a {
	padding-right: 14px;
	margin-right: 2px;
	color: #888888;
	/* @embed */ background: url(../images/searchgray_iconsmall.png) center right no-repeat;
	background-size: 10px 10px;
}

#bodyContent span.smwsearch a:hover {
	text-decoration: none;
	color: #0000FF;
	padding-right: 16px;
	margin-right: 0px;
	/* @embed */ background: url(../images/search_icon.png) center right no-repeat;
	background-size: 13px 13px;
}

#bodyContent span.swmfactboxheadbrowse a {
	padding-right: 16px;
	margin-right: 2px;
	color: #000000;
	/* @embed */ background: url(../images/browse_iconsmall.png) center right no-repeat;
	background-size: 13px 13px;
}

#bodyContent span.swmfactboxheadbrowse a:hover {
	text-decoration: none;
	color: #0000FF;
	padding-right: 18px;
	margin-right: 0px;
	/* @embed */ background: url(../images/browse_icon.png) center right no-repeat;
	background-size: 15px 15px;
}

#bodyContent span.smwbrowse a {
	padding-right: 14px;
	margin-right: 2px;
	color: #888888;
	/* @embed */ background: url(../images/browse_iconsmall.png) center right no-repeat;
	background-size: 10px 10px;
}

#bodyContent span.smwbrowse a:hover {
	text-decoration: none;
	color: #0000FF;
	padding-right: 16px;
	margin-right: 0px;
	/* @embed */ background: url(../images/browse_icon.png) center right no-repeat;
	background-size: 13px 13px;
}

#bodyContent span.smwmap a {
	padding-right: 20px;
	color: #888888;
	/* @embed */ background: url(../images/world.png) center right no-repeat;
}

#bodyContent span.smwmap a:hover {
	padding-right: 20px;
	color: #0000FF;
	/* @embed */ background: url(../images/world.png) center right no-repeat;
}

.smwrdflink {
	float: right;
	font-size: small;
	padding: 2px 0 0 0;
}

.concept-documenation {
	border-top: 1px dotted #AAAAAA;
}

#bodyContent span.rdflink {
	float: right;
}

#bodyContent span.rdflink a {
	padding-right: 15px;
	color: #888888;
	/* @embed */ background: url(../images/rdf_flyer.10.png) center right no-repeat;
}

#bodyContent span.rdflink a:hover {
	text-decoration: none;
	color: #0000FF;
	padding-right: 15px;
	margin-right: 0px;
	/* @embed */ background: url(../images/rdf_flyer.12.png) center right no-repeat;
}

/* @since 1.9; Spinner */
.smw-spinner .text {
	padding-left: 2.1em;
	font-size: 12px;
	vertical-align: middle;
}

/* @since 1.9; Spinner for left side in-text */
.smw-spinner.left.mw-small-spinner {
	background-position:left;
	vertical-align: middle;
	display:inline-block;
	padding: 0px !important;
}

/* @since 1.9; Sppinner for image center */
.smw-spinner.center.mw-small-spinner {
	vertical-align: middle;
	display:inline-block;
	padding: 0px !important;
}

/* @since 1.9.1 */
table.smw-ask-query .smw-ask-query-condition {
	width: 100%;
}

table.smw-ask-query .smw-ask-query-printout {
	width: 100%;
}

.smw-form-horizontalrule {
	margin-bottom: 10px;
}

.smw-form-select, .smw-form-input {
	padding: 1px 1px;
}

.smw-form-checkbox {
	vertical-align: middle;
	cursor: pointer;
}

label.smw-form-checkbox {
	vertical-align: middle;
	cursor: pointer;
}

.smw-editpage-help {
	background-color: #F0F0F0;
	border: 1px solid silver;
	/* border-top: none; */
	padding: 0.5em 1em 0.5em 1em;
	margin-bottom: 1em;
}

.smw-column-header {
	font-weight: bold;
	font-size: 1.17em;
	line-height: 1.6;
	margin-top: 0.3em;
	margin-bottom: 0;
	padding-bottom: 0;
	color: black;
	overflow: hidden;
	padding-top: .5em;
}

.smw-column {
	float: left;
	word-wrap: break-word;
}

.smw-column-responsive {
  -webkit-columns: 3 20em;
	 -moz-columns: 3 20em;
		  columns: 3 20em;
  -webkit-column-gap: 1em;
	 -moz-column-gap: 1em;
		  column-gap: 1em;
}

.smw-column-twofold-responsive {
  -webkit-columns: 2 20em;
	 -moz-columns: 2 20em;
		  columns: 2 20em;
  -webkit-column-gap: 1em;
	 -moz-column-gap: 1em;
		  column-gap: 1em;
}

.smw-column[dir="rtl"] {
	float: right;
}

.smw-column-responsive[dir="rtl"] {
	float: right;
}

.smw-columnlist-container .smw-column-responsive {
	margin-bottom: -2em;
}

/* Thanks to the bootstrap css*/
.smw-callout {
	padding: 10px;
	margin: 0.5em 0;
	border: 1px solid #eee;
	border-left-width: 5px;
	border-radius: 3px;
}

.smw-callout-info {
	border: 1px solid #d9edf7;
	background-color: #d9edf7;
	border-left-width: 5px;
	border-left-color: #1b809e;
}

.smw-callout-info .title {
	color: #1b809e;
}

.smw-callout-warning {
	border: 1px solid #fcf8e3;
	background-color: #fcf8e3;
	border-left-width: 5px;
	border-left-color: #aa6708;
}

.smw-callout-warning .title {
	color: #aa6708;
}

.smw-callout-success {
	border: 1px solid #dff0d8;
	background-color: #dff0d8;
	border-left-width: 5px;
	border-left-color: #3c763d;
}

.smw-callout-success .title {
	color: #3c763d;
}

.smw-callout-error {
	border: 1px solid #f2dede;
	background-color: #f2dede;
	border-left-width: 5px;
	border-left-color: #ce4844;
}

.smw-callout .title {
	margin-top: 0;
	margin-bottom: 5px;
	font-size: 16px;
	font-family: inherit;
	font-weight: 500;
}

/* Handling Long Words and URLs (Forcing Breaks, Hyphenation, Ellipsis */
.smwb-value, .smwprops, .smwpropname, .smwb-factbox .smwtype_wpg, .smwtype_uri, .smwb-ivalue, .smwb-title {
	word-break: break-word;
	word-wrap: break-word;
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	hyphens: auto;
}

/* Only apply when less then 350*/
@media (max-width: 400px) {
	.smwb-propvalue, .smwb-ipropvalue {
		word-break: break-word;
		word-wrap: break-word;
		-webkit-hyphens: auto;
		-moz-hyphens: auto;
		hyphens: auto;
	}
}

/* Distinguish subobjects from other titles */

.smw-subobject-entity {
	font-style: italic;
}

/* jquery-autocomplete */
.autocomplete-suggestions { border: 1px solid #999; background: #FFF; overflow: auto;}
.autocomplete-suggestion { padding: 2px 5px; white-space: nowrap; overflow: hidden; font-size: 0.8em; }
.autocomplete-selected { background: #F0F0F0; }
.autocomplete-suggestions strong { font-weight: normal; color: #3399FF; }
.autocomplete-group { padding: 2px 5px; }
.autocomplete-group strong { display: block; border-bottom: 1px solid #000; }

.skin-vector input#smw-property-input.autocomplete-suggestions {
	height: 1.15em;
	padding: 2px 2px;
}

.skin-chameleon input#smw-property-input.autocomplete-suggestions {
	height: 30px;
	padding: 2px 2px;
}

.skin-foreground input#smw-property-input.autocomplete-suggestions {
	height: 32px;
	padding: 2px 0px 0px 8px;
}

.skin-chameleon .autocomplete-suggestion, .skin-foreground .autocomplete-suggestion {
	padding: 2px 5px;
	white-space: nowrap;
	overflow: hidden;
	font-size: 0.9em;
}

.smw-breadcrumb-link {
	color: #7D7D7D;
	font-size: 84%;
	line-height: 1.2em;
	margin: 0 0 0.8em 0;
	width: auto;
}

.smw-breadcrumb-arrow-right {
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 5px solid #AAAAAA;
	display: inline-block;
	position: relative;
	margin-left: 4px;
	margin-right: 4px;
}

.smw-ask-action-btn, .smw-action-btn {
	display: inline-block;
	padding: 3px 6px;
	margin-bottom: 0;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.42857143;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	-ms-touch-action: manipulation;
	touch-action: manipulation;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	background-image: none;
	border: 1px solid transparent;
	border-radius: 4px;
}

.smw-action-btn-min200 {
	min-width:200px;
}

.smw-ask-action-btn-lgrey, a.smw-ask-action-btn-lgrey:visited, .smw-action-btn-lgrey, .smw-action-btn-lgrey:visited {
	color: #222;
	background-color: #eee;
	border-color: #ddd;
	text-decoration:none;
}

a.smw-ask-action-btn-lgrey:hover, .smw-action-btn-lgrey:hover {
	color: #222;
	background-color: #ddd;
	border-color: #ddd;
	text-decoration:none;
}

.smw-ask-action-btn-lblue, a.smw-ask-action-btn-lblue:visited {
	color: #fff;
	background-color: #5bc0de;
	border-color: #46b8da;
	text-decoration:none;
}

a.smw-ask-action-btn-lblue:hover {
	color: #fff;
	background-color: #31b0d5;
	border-color: #269abc;
	text-decoration:none;
}

.smw-ask-action-btn-dblue, a.smw-ask-action-btn-dblue:visited {
	color: #fff;
	background-color: #337ab7;
	border-color: #2e6da4;
	text-decoration:none;
}

.smw-ask-action-btn-dblue:hover, .smw-ask-action-btn-dblue:focus, a.smw-ask-action-btn-dblue:hover, a.smw-ask-action-btn-dblue:focus {
	color: #fff;
	background-image:none;
	background-color: #286090;
	border-color: #204d74;
	text-decoration:none;
}

.smw-concept-page-indicator a.external.text, .smw-page-indicator a.external.text {
	background-image:none;
	padding-right:0;
}

.smw-property-page-indicator {
	display: inline-block;
	font-weight: normal;
	line-height: 1.25;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	border: 1px solid transparent;
	padding: 0.5rem 1rem;
	font-size: 1rem;
	border-radius: 0.25rem;
	-webkit-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
	padding: 0.25rem 0.5rem;
	font-size: 0.875rem;
	border-radius: 0.2rem;
	color: #292b2c;
	/* background-color: #e6e6e6; */
	border-color: #ddd;
}

.smw-protection-indicator {
	display: inline-block;
	/* font-weight: normal; */
	/* line-height: 1.25; */
	/* text-align: center; */
	/* white-space: nowrap; */
	vertical-align: middle;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	border: 1px solid transparent;
	padding: 0.5rem 1rem;
	font-size: 1rem;
	border-radius: 0.25rem;
	-webkit-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
	padding: 0.15rem 0.25rem;
	font-size: 0.875rem;
	border-radius: 0.2rem;
	color: #292b2c;
	border-color: transparent;
}

.smw-protection-indicator.with-border {
	border-color: #ddd;
}

.smw-page-indicator, .smw-page-indicator.usage-count, .smw-page-indicator.property-type {
	width: 45px;
	height: 21px;
	border-radius: 4px;
	font-size: 9px;
	color: #777;
	line-height: 20px;
	text-align: center;
	background: #fff;
	background-color: #eee;
	border: 1px solid #ddd;
	float: right;
	margin-top: 10px;
}

.smw-page-indicator.usage-count {
	margin-right: 10px;
}

.smw-property-page-indicator.usage-count.moderate {
	background-color: #F2D29B;
	border: 1px solid #F2D29B;
	color: #AA4C2C;
}

.smw-property-page-indicator.usage-count.high {
	background-color: #FF887F;
	border: 1px solid #FFB79E;
	color: #800000;
}

.skin-vector .smw-page-indicator.usage-count, .skin-vector .smw-page-indicator.property-type {
	margin-top: 5px;
}

.skin-chameleon .smwfact td {
	padding: 5px;
}

.smw-page-indicator-rdflink {
	line-height: 24px;
	margin-right: 10px;
}

.smw-page-indicator-rdflink a {
	/* @embed */ background: url(../images/rdf_flyer.18.png);
	background-repeat: no-repeat;
	background-position: left center;
	padding-left: 28px;
	display: inline-block;
	height: 24px;
	line-height: 24px;
}

.smw-reference-indicator {
	vertical-align: super;
	margin-left:2px;
	font-size: 10px;
}

.smw-reference-indicator::before {
	content: "";
}

.smw-reference-indicator::after {
	content: "≡";
}

.smw-admin-circle-orange {
	width: 14px;
	height: 14px;
	background: orange;
	position: absolute;
	display: block;
	border-radius: 50%;
	display: inline-block;
	margin-right: 20px;
	margin-top: 3px;
}

.is-disabled {
	opacity: .5;
	position: relative;
	pointer-events: none;
}

.is-disabled::after {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	content: ' ';
}

/* http://stackoverflow.com/questions/6091253/overlay-with-spinner */

.smw-overlay-spinner.small{
	height: 20px;
	width: 20px;
}
.smw-overlay-spinner.medium{
	height: 40px;
	width: 40px;
}
.smw-overlay-spinner.large{
	height: 60px;
	width: 60px;
}

.smw-overlay-spinner {
	position: absolute;
	left: 47%;
	top: 30%;
	height: 60px;
	width: 60px;
	margin:0px auto;
	-webkit-animation: rotation 1.0s infinite linear;
	-moz-animation: rotation 1.0s infinite linear;
	-o-animation: rotation 1.0s infinite linear;
	animation: rotation 1.0s infinite linear;
	border-left:6px solid rgba(0,174,239,.15);
	border-right:6px solid rgba(0,174,239,.15);
	border-bottom:6px solid rgba(0,174,239,.15);
	border-top:6px solid rgba(0,174,239,.8);
	border-radius:100%;
}

.skin-vector .smw-overlay-spinner {
	left: 45%;
	top: 30%;
}

@-webkit-keyframes rotation {
	from {-webkit-transform: rotate(0deg);}
	to {-webkit-transform: rotate(359deg);}
}

@-moz-keyframes rotation {
	from {-moz-transform: rotate(0deg);}
	to {-moz-transform: rotate(359deg);}
}

@-o-keyframes rotation {
	from {-o-transform: rotate(0deg);}
	to {-o-transform: rotate(359deg);}
}

@keyframes rotation {
	from {transform: rotate(0deg);}
	to {transform: rotate(359deg);}
}
