/*Remove tap highlight on iOS/Android */
* {
  	-webkit-tap-highlight-color: rgba(0,0,0,0);
  	-webkit-touch-callout: none;
	-webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape while allowing user zoom */
}

:root {
	--white: #ffffff;
	--black: #101010;
	--maincolor: #2779aa;
	--maincolor-variant: #225988;
	--lightblue: #E8F0F6;
	--secondary-light-blue: #95c9e5; /* menu */
	--black-variant: #222222;
	--grey: #cccccc;
	--grey-variant: #aaaaaa;
	--lightgrey: #ebeef0;
	--lightgrey-variant: #f8f8f8;
	--darkgrey: #7b7b7b;
	--facebook-color: #2e4da7;
	--brown: #594841;
	--salmon: #ffb69d;
	--salmon-variant: #df8e73;
	--orange: #DD8500;
	--gold: #FED831;
	--silver: var(--grey);

	/* width */
	--primary-page-width: 1144px;
	--min-screen-width: 320px;

	/* header */
	--topcontainer-height: 30px;
	--nav-height: 60px;
	--menu-height: 80px;
	--submenu-height: 36px;
	--menusearch-input-width: 220px;
	--landingpage-menu-height: 128px;
	--landingpage-menusearch-input-width: 200px;

	/* transitions */
	--linear-transition: all 0.2s linear;
	--ease-transition: all 0.3s ease;

	/* landing container */
	--primary-landing-bg: rgb(66, 66, 66);
	--primary-landing-bg-gradient: radial-gradient(circle, rgb(70, 70, 70) 0%, rgb(66, 66, 66) 90%);
	--primary-landing-text-color: var(--white);
	--landing-bg-lightbrown: rgb(222, 217, 212);
	--landing-bg-lightbrown-gradient: radial-gradient(circle, rgb(226, 221, 216) 0%, rgba(222,217,212,1) 90%);
	--landing-bg-lighbrown-text-color: var(--brown);
	--landing-bg-lightblue: rgb(160, 175, 184);
	--landing-bg-lightblue-gradient: radial-gradient(circle, rgba(164,179,188,1) 0%, rgba(160,175,184,1) 90%);
	--landing-bg-darkbrown: rgb(51, 43, 37);
	--landing-bg-darkbrown-gradient: radial-gradient(circle, rgba(55,47,41,1) 0%, rgba(51,43,37,1) 90%);

	/* text */
	--primary-text-color: var(--black-variant);
	--alternate-text-color: var(--white);
	--title-color: var(--orange);
	--primary-font-size: 14px;
	--small-font-size: 13px;
	--verysmall-font-size: 10px;
	--medium-large-font-size: 16px;
	--large-font-size: 18px;
	--primary-font-weight: 400;
	--bold-font-weight: 600;
	--thin-font-weight: 300;
	--alternate-font-family: 'Montserrat', sans-serif;


	/* backgrounds */
	--primary-background-color: var(--white);
	--secondary-background-color: var(--lightgrey); /* submenu, content section backgrounds */
	--box-background: var(--lightgrey-variant); /* item boxes, result profiles */
	--picture-placeholder-background: #404040;

	/* buttons */
	--primary-button-color: var(--maincolor);
	--primary-button-text-color: var(--white);
	--primary-button-hover-color: var(--maincolor-variant);
	--primary-button-disabled-color: var(--lightblue);

	--standardbutton-color: var(--lightblue);
	--standardbutton-text-color: var(--maincolor);
	--standardButton-hover-color: var(--white);
	--standardbutton-text-hover-color: var(--maincolor-variant);
	--standardbutton-disabled-color: var(--lightgrey);
	--standardbutton-disabled-text-color: var(--grey-variant);

	--alternate-button-color: var(--salmon);
	--alternate-button-text-color: #802100;
	--alternate-button-hover-color: var(--salmon-variant);
	--alternate-button-text-hover-color: #5f1800;
	--alternate-button-disabled-color: #ffede6;
	--alternate-button-disabled-text-color: #ddb9ad;

	--icon-button-font-size: 30px;

	/* links */
	--primary-link-color: var(--maincolor);
	--primary-link-hover-color: var(--maincolor-variant);
	--alternate-link-color: var(--salmon);
	--alternate-link-hover-color: var(--salmon-variant);

	/* Images */
	--small-profile-photo-width: 100px;
	--breeder-profile-photo-size: 120px;

	/* input, textarea */
	--label-search: var(--grey-variant);
	--label-disabled: var(--grey);
	--input-searchbox-border-color: var(--grey-variant);
	--input-border-color: var(--maincolor);
	--input-border-focus-color: var(--maincolor-variant);
	--input-disabled-border-color: var(--grey);
	--input-disabled-color: var(--grey-variant);
	--input-height: 30px;
	--search-input-height: 40px;
	--buttonpane-bottom-height: 75px;

	/* footer */
	--footer-height: 320px;
	--footer-background-color: var(--black);

	/* error, confirmation, highlight */
	--highlight-color: #FF3B30;
	--error-color: #FF3B30;
	--error-background-color: #ffbdbd;
	--confirmation-background-color: #daffda;
	--confirmation-color: #3a8121;
	--redribbon-color: #f45e5e;
	--warning-background-color: #FFD7B8;
	--warning-color: #FF7000;

	/* password score colors */
	--score0: #EC0C00;
	--score1: #FF7000;
	--score2: #FFA521;
	--score3: #64AB4B;
	--score4: #4F8A10;
}

/* Layout styles */
html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	min-width: var(--min-screen-width);
    background-color: var(--primary-background-color);
}

body.fixedBackground {
	overflow: hidden;
}

.backgroundOverlay {
    background: rgba(255,255,255,0.8);
	position: fixed;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	z-index: 114;
}

html, body, input, textarea, select, label, button {
  	font-family: 'Open Sans', sans-serif;
	font-weight: var(--primary-font-weight);
	font-size: var(--primary-font-size);
	color: var(--primary-text-color);
}

#app {
    min-height: 100%; /* needed to tap close mobile menu in case content has been scrolled */
    position: relative;
    width: 100%;
	box-sizing: border-box;
	/*
    min-width: 320px;
    background-color: var(--primary-background-color);
    transition: transform 0.4s ease 0s;
    box-sizing: border-box;*/
}

#container {
	position: relative;
	transition: transform 0.4s ease 0s;
	min-width: 320px;
	background-color: var(--primary-background-color);
}

#content {
	height: 100%;
}

.scrollToTop {
  position: fixed;
  bottom: 45px;
  right: 5px;
  background-color: rgba(255,255,255,0.8);
  z-index: 100;
  cursor: pointer;
  padding: 10px;
  transition: var(--ease-transition);
  border-radius: 3px;
}

.scrollToTop .icon-arrow-line-up {
  font-size: 25px;
  font-weight: var(--bold-font-weight);
}

/* base elements */
div, span, a {
	-webkit-hyphens: auto;
	hyphens: auto;
}

button, button div, .button, .button div, .standardButton, .printPedigree span  {
	-webkit-hyphens: none;
	hyphens: none;
}

ul {
    margin: 0;
    list-style: outside none;
    padding-left: 25px;
}

li {
	list-style: outside none;
}

img {
	max-width: 100%;
}

img, a img {
	border: 0;
}

a, .link {
	text-decoration: none;
	color: var(--primary-link-color);
	cursor: pointer;
	word-wrap: break-word;
	transition: var(--linear-transition);
}
a:hover, .link:hover {
	color: var(--primary-link-hover-color);
}

a.neutralLink {
	color: var(--primary-text-color);
}

a.textLink {
    color: var(--primary-text-color);
	font-weight: var(--thin-font-weight);
	font-size: var(--medium-large-font-size);
	display: flex;
	align-items: center;
	gap: 5px;
}

.link.alternative {
	color: var(--alternate-button-color);
}

.link.alternative:hover {
	color: var(--alternate-button-hover-color);
}

.buttonLink {
	font-size: var(--icon-button-font-size);
	cursor: pointer;
	color: var(--primary-link-color);
	transition: var(--linear-transition);
}

.buttonLink:hover {
	color: var(--primary-link-hover-color);
}

.buttonLink.alternative {
	color: var(--alternate-link-color);
}

.buttonLink.alternative:hover {
	color: var(--alternate-link-hover-color);
}

label, .textLabel {
	font-weight: var(--bold-font-weight);
    text-align: left;
	word-wrap: break-word;
	width: 100%;
}

label {
	cursor: pointer;
	margin-top: 5px;
}

label.disabled {
	font-weight: var(--primary-font-weight);
	color: var(--label-disabled);
	cursor: text;
}


/* Form elements */
input, textarea {width: 100%; outline: none;}
input, textarea {border: 1px solid var(--input-border-color); border-radius: 2px; box-sizing: border-box; padding: 3px;}
input:focus, textarea:focus {border: 2px solid var(--input-border-focus-color); padding: 2px; }
input[type=date] {width: auto; min-width: 125px; vertical-align: top; font-size: 90%;}
input[type=file] {border: none; height: auto;}
input[type=checkbox] {
	height: auto;
	width: auto !important;
	border: none;
	background-color:transparent;
	display: inline;
}
input[type=radio] {
	height: auto;
	width: auto !important;
	border: none;
	background-color:transparent;
	margin: 0;
}
textarea {resize: none; min-height: 47px; overflow: auto;}
input {height: var(--input-height); box-sizing: border-box;}
input.decimal {width: 50px;}
select {height: var(--input-height); width: 100%; outline: none;}
select option {padding: 5px;}

.fullWidth {
	width: 100%;
}

/* Buttons */
input[type=submit], button, .button {
	background-color: var(--primary-button-color);
	padding: 5px 14px;
	min-height: 30px;
	min-width: 140px;
	width: auto;
	border: 0;
	border-radius: 4px;
	color: var(--primary-button-text-color);
	cursor: pointer;
	display: flex;
	line-height: 1;
	align-items: center;
	justify-content: center;
	gap: 5px;
	transition: background-color 0.4s ease;
	margin: 0;
	font-weight: var(--primary-font-weight);
	outline: none;
	box-sizing: border-box;
}

.iconButton {
	min-width: auto;
}

input[type=submit]:hover, button:hover, .button:hover {
	background-color: var(--primary-button-hover-color);
	color: var(--primary-button-text-color);
}

input[type=submit]:disabled, input[type=submit]:disabled:hover,
button:disabled, button:disabled:hover,
button.disabled, button.disabled:hover {
	background-color: var(--lightblue);
	cursor: not-allowed;
	color: var(--grey-variant);
}

input:disabled, textarea:disabled {border-color: var(--input-disabled-border-color); color: var(--input-disabled-color);}

.largeButton {
    font-size: var(--large-font-size);
    min-width: 175px;
    height: 36px;
}

.standardButton {
    background-color: var(--standardbutton-color);
    color: var(--standardbutton-text-color);
    border: 1px solid var(--standardbutton-text-color);
    text-transform: uppercase;
    display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 5px;
	flex-wrap: nowrap;
	flex-shrink: 0;
    font-weight: var(--primary-font-weight);
    margin: 0;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-size: var(--primary-font-size);
    letter-spacing: 1px;
    border-radius: 3px;
    white-space: normal;
	width: auto;
	text-align: center;
}

.standardButton.fullWidth {
	width: 100%;
}

.standardButton:hover, .standardButton a:hover {
    color: var(--standardbutton-text-hover-color);
    background-color: var(--standardButton-hover-color);
}

.standardButton[disabled], .standardButton[disabled]:hover, .standardButton.disabled {
    background-color: var(--standardbutton-disabled-color);
    opacity: 1;
    color: var(--standardbutton-disabled-text-color);
    border-color: var(--standardbutton-disabled-text-color);
    cursor: not-allowed;
}

.button.alternative, .standardButton.alternative {
	background-color: var(--alternate-button-color);
	color: var(--alternate-button-text-color);
	box-sizing: border-box;
    border: none;
    padding: 7px 12px;
}

.button.alternative:hover, .standardButton.alternative:hover {
	background-color: var(--alternate-button-hover-color);
	color: var(--alternate-button-text-hover-color);
}

.standardButton.alternative[disabled], .button.alternative:disabled,
.standardButton.alternative[disabled]:hover, .button.alternative:disabled:hover, .button.alternative.disabled:hover,
.standardButton.alternative.disabled, .button.alternative:disabled,.button.alternative.disabled
{
    background-color: var(--alternate-button-disabled-color) !important;
    color: var(--alternate-button-disabled-text-color);
    cursor: not-allowed;
}


.descendantContainer .standardButton {
    padding: 10px 0;
    letter-spacing: 0;
    margin: 5px auto;
    width: 220px;
    text-align: center;
    display: block;
}

.standardButton.addAncestor {padding: 5px 20px; margin-top: 1px;}

.moreButton {
    width: 20px;
    height: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--standardbutton-color);
    color: var(--standardbutton-text-color);
    cursor: pointer;
    font-size: var(--verysmall-font-size);
}

.moreButton:after {
    font-family: 'tba';
    content: "\e90e";
}

.moreButton:hover {
    color: var(--standardbutton-text-hover-color);
}

/* headers */
h1, h2, h3, h5 {
    color: var(--primary-text-color);
	margin: 0;
	font-weight: var(--primary-font-weight);
}

h1 {
	font-size: 30px;
}

h2 {
	font-size: 24px;
}

h3, .customHeader {
	font-size: 20px;
}

h4, .textHighlight {
	font-size: var(--medium-large-font-size);
	font-weight: var(--thin-font-weight);
	color: var(--maincolor);
	margin: 15px 0 5px 0;
}

h5 {
	font-size: 15px;
}

.contentSection h2, .contentSection h3 {
    font-family: var(--alternate-font-family);
    color: var(--maincolor);
    font-weight: var(--thin-font-weight);
    text-transform: uppercase;
	padding: 10px 0;
	font-size: 22px;
}

.contentSection h3 {
	text-align: center;
}

/* Text styles */
.smallText {font-size: 80%;}
.textCenter {text-align: center;}
.textRight {text-align: right;}
.textLeft {text-align: left;}
.verticalTop {vertical-align: top;}

.simpleHeadline {
	font-weight: var(--bold-font-weight);
	border-bottom: 1px solid var(--grey);
	padding: 5px 0;
}

.info {
	font-size: 12px;
	font-weight: var(--primary-font-weight);
}
.upperCase {text-transform: uppercase;}
.bold {font-weight: var(--bold-font-weight);}
.italic {font-style: italic;}

.multilineText { white-space: pre-wrap; word-break: break-word;}

.prefixTitles, .suffixTitles {color: var(--title-color); font-weight: 400; font-size: 12px;}
.titleText {color: var(--title-color);}

.block {display: block;}
.inlineBlock {display: inline-block;}
.inlineBlock:empty, .block:empty {display: none;}

.autoWidth {
	width: auto;
}

.smallHeader {
	font-size: var(--medium-large-font-size);
	margin: 15px 0 5px 0;
}

/* Flex styles */
.flex {
    display: flex;
    gap: 10px;
	align-items: flex-start;
}

.flex.smallGap {
	gap: 5px;
}

.contentCenter {
	align-items: center;
}

.justifyCenter {
  justify-content: center;
}

.justifySpaceBetween {
	justify-content: space-between;
}

.flexColumn {
	flex-direction: column;
}

.justifyEnd {
	justify-content: flex-end;
}

.flexWrap {
	flex-wrap: wrap;
}

.flexBoxContainer {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
    gap: 10px;
}

/* Table styles */
.tableWrapper {
	/* scroll on mobile screens */
	overflow-x: auto;
}


table {
	border-collapse: collapse;
	border-spacing: 0;
	border-radius: 3px;
	width: 100%;
	box-sizing: border-box;
}

table.fixedHeader {
	position: relative;
}

table th, table td {
	padding: 10px;
	text-align: left;
	position: relative;
	box-sizing: border-box;
}

/* omit line breaks */
.tableWrapper.nowrap th, .tableWrapper.nowrap td {
	white-space: nowrap;
}

table th.sortable > div {
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

table.fixedHeader thead th {
	position: sticky;
	position: -webkit-sticky;
	top: 55px;
	background-color: var(--secondary-background-color);
	z-index: 1;
}

table.simpleTable thead th {
	padding: 10px;
	border-bottom: 1px solid var(--black-variant);
}

table.simpleTable tbody th, table.simpleTable tbody td {
	padding: 8px 10px;
	border-top: 1px solid var(--lightgrey);
}

table td.emptyTable {
	text-align: center;
}

table th .sortDesc:after,
table th .sortAsc:after,
table th .sortingIndicator:after {
	font-family: 'tba';
	opacity: 0.25;
}

table th .sortingIndicator:after {
 content: "\e605";
}
table th .sortDesc:after {
 content: "\e619";
 opacity: 0.9;
}
table th .sortAsc:after {
  content: "\e616";
  opacity: 0.9;
}

.pagination {
	padding-top: 5px;
  	display: flex;
  	justify-content: flex-end;
  	align-items: center;
  	gap: 2px;
}

.pagination > span {
	padding: 0.5em 1em;
	min-width: 1.5em;
	border-radius: 2px;
	box-sizing: border-box;
	display: inline-block;
	cursor: pointer;
	transition: all 0.2s linear;
}

.pagination > span:hover:not(.pagination > span.tableDots:hover), .pagination > span.active {
	color: var(--primary-button-text-color);
	background-color: var(--primary-button-color);
}

.pagination > span.tableDots {
	cursor: text;
}

/* Main Content Layout Elements */
.profileMainData {
    margin-top: 10px;
    display: flex;
    gap: 10px;
	flex-wrap: wrap;
}

/* Profile pages */
.profileInfo, .generalInfo {
	width: 100%;
	flex-shrink: 0;
}

.contentRight, .contentLeft {
    width: 100%;
    box-sizing: border-box;
}

.contentSectionWrapper, .formContainer {
    padding: 10px;
    max-width: var(--primary-page-width);
    box-sizing: border-box;
    margin: 0 auto;
    gap: 10px;
}

.formRow, .textRow {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    box-sizing: border-box;
    position: relative;
	gap: 10px;
}
.formRow {min-height: 40px; margin-bottom: 5px;}
.textRow {padding: 5px 0;}
.singleEntryRow { padding: 0 0 5px 0; }
.formRow.noBreak, .textRow.noBreak, .noBreak .formRow, .noBreak .textRow {
    display: flex;
}
.textRow.contentCenter {
	display: flex;
	align-items: center;
}
.textDescription:empty, .formField:empty {display: none;}
.formField, .textDescription {width: 100%; position: relative;}
.noBreak label, .noBreak .textLabel {width: 34%;}
.noBreak .formField, .noBreak .textDescription {width: 64%;}

.horizontalRadios {
	margin-top: 5px;
}

/* highlighting */
.errorContainer, .confirmationContainer, .infoContainer, .adminIndicator {
	background-color: var(--error-background-color);
	padding: 10px;
	border-radius: 3px;
    box-sizing: border-box;
	margin-bottom: 10px;
}

.adminIndicator {
	margin: 0;
}

.valueChanged {background-color: var(--error-background-color);}
.initialName {color: var(--grey-variant);}

input.error, textarea.error, .error .ts-control { border: 2px solid var(--error-color); }
span.error, .redHighlight { color: var(--error-color); }
span.error { display: block; }

.greenHighlight { color: var(--confirmation-color); }

.statusMessages:not(:empty) {
    background-color: var(--confirmation-background-color);
    opacity: 0.98;
    z-index: 120;
    padding: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    text-align: center;
	color: var(--confirmation-color);
	box-sizing: border-box;
}

.statusMessage {
    font-weight: var(--bold-font-weight);
    font-size: var(--medium-large-font-size);
	padding: 20px;
}

.statusRemove {
	position: absolute;
	top: 20px;
	right: 20px;
	cursor: pointer;
}

/* Loading screen */
.loadingIndicator {
	background-color: rgba(255,255,255,0.8);
    background-image: url("../../images/ajaxload.gif");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 40px auto;
    left: 0;
    position: absolute;
    width: 100%;
	z-index: 2;
	transition: var(--ease-transition);
}

.fullPageContent.loadingIndicator {
	top:0;
	height: 100%;
	z-index: 1000;
	position: fixed;
}

.contentSection .loadingIndicator {
	top: 36px;
	height: calc(100% - 37px);
}

.pageContent.loadingIndicator {
	top: 0;
	height: 50px;
	position: relative;
	margin: 5px 0;
}
