html {
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

[x-cloak], .hidden { display: none; }

#placePhotoUploading {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    background-color: #21ba45;
    color: white;
}

a {
    color: #4183c4;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

svg.smallicon {
    width: 0.9rem;
    height: 0.9rem;
    fill: black;    
    padding-right: 10px;
}

svg.icon {
    width: 1.3rem;
    height: 1.3rem;
    fill: black;    
    padding-right: 10px;
    vertical-align: top;
}

svg.personicon {
    width: 1.1rem;
    height: 1.1rem;
    fill: black;    
    vertical-align: top;
}

svg.bigicon {
    width: 1.7rem;
    height: 1.7rem;
    fill: black;    
    vertical-align: top;
}


.select__container {
    position: relative;
    box-sizing: border-box;
}

.select__box {
    position: absolute;
    top: 100%;
    background-color: white;
    border-radius: 4px;
    margin: 8px 0;
    width: 100%;
    z-index: 1;
    box-sizing: border-box;
    box-shadow: rgb(0 0 0 / 10%) 0px 0px 0px 1px, rgb(0 0 0 / 10%) 0px 4px 11px;
}


.select__box_list {
    background-color: white;
    border-radius: 4px;
    margin: 8px 0;
    z-index: 1;
    box-sizing: border-box;
    box-shadow: rgb(0 0 0 / 10%) 0px 0px 0px 1px, rgb(0 0 0 / 10%) 0px 4px 11px;
}

.select__options {
    max-height: 300px;
    overflow-y: auto;
    position: relative;
    padding: 4px 0px;
    box-sizing: border-box;
}

.select__options__list {
    max-height: 600px;
    overflow-y: auto;
    display: block;
    padding: 4px 0px;
    box-sizing: border-box;
}


.select__options > *, .select__options__list > * {
    display: block;
    padding: 8px 12px;
    width: 100%;
    user-select: none;
    box-sizing: border-box;
}


.select__options > *.selected, .select__options__list > *.selected {
    background-color: blue;
    color: white;
}


button.icon {
    background-color: transparent;
    line-height: 1.3rem;
}

button.icon-only {
    background-color: transparent;
    border: none;
    padding: 0;
}

.buttons > * {
    margin: 5px 10px;
}

body {
    margin: 0;
    padding: 0; 
    background-color: rgb(239, 246, 250);
    display: flex;
    flex-direction: column;
}

header {
    display: block;
    background-color: white;
    border: 1px solid rgba(34,36,38,.15);
    box-shadow: 0 1px 2px 0 rgba(34,36,38, 0.15);    
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    z-index: 100;
}

.default__reference {
    z-index: 50;
    width: 600px;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    background-color: #F9F9F9;
    padding: 10px 30px;
    border-radius: 0 0 20px 20px;
    border: 1px solid rgba(34,36,38,.15);
    box-shadow: 0 1px 2px 0 rgba(34,36,38, 0.15);    
    margin-top: -32px;
    margin-bottom: 2rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.default__reference--visible {
    margin-top: -2px;
}

header a {
    color: black;
}

header > *:first-child {
    border-left: 1px solid #EDEDED;
}

header > * {
    display: flex;
    padding: 0 1.5rem;
    border-right: 1px solid #EDEDED;
    height: 100%;
    align-items: center;
}

header > div {
    font-size: 1.3rem;
    font-weight: bold;
}

header img {
    padding-right: 20px;
    height: 32px;
}

.vertical {
    display: flex;
    align-items: center;
}

main {    
    display: block;
    width: 1600px;
    padding: 10px;
    margin: 0 auto;
}

table {
    width: 100%;
    border: 1px solid #DEDEDE;
    border-radius: 5px;
    border-collapse: collapse;
}

table td {
    padding: 10px 10px;
    border-bottom: 1px solid #DEDEDE;
    min-width: 100px;
}


table tr:last-child td {
    border-bottom: 0px none;
}

table th {
    padding: 10px 10px;
    text-align: left;
    background-color: rgba(0,0,50,.02);
    border-bottom: 1px solid #DEDEDE;
}

table tbody tr:nth-child(2n) {
    background-color: rgba(0,0,50,.02);
}

table.review td {
    vertical-align: top;
}

table.review input, table.review select {
    font-size: 1.1rem;
    padding: 2px 2px;
}


.list, table {
    box-sizing: border-box;
    width: 100%;
    border-collapse: collapse; 
    background: white;
}

.item-details {
    width: 100%;
    border-collapse: collapse;     
}

.item-details > tbody > tr > td, .item-details > thead > tr > th {
    padding: 4px 8px;
    text-align: left; 
    border-bottom: 1px dashed #DEDEDE;
    vertical-align: top;
    white-space: nowrap;
}


/*
.list tr:nth-of-type(odd) { 
    background: var(--app-accent-color); 
}
*/

.list > tbody > tr > td, .list > thead > tr > th, td, th {
    padding: 8px 15px;
    text-align: left; 
    border-bottom: 1px solid #AAAAAA;
    vertical-align: top;
}

.list > tbody > tr > td.priority, td.priority {
    white-space:normal;
    width: 100%;
}

.list > tbody > tr.has-detail-row > td, tr.has-detail-row > td {
    border-bottom: 0px none;
}

.list > tbody > tr.group > td, tr.group > td {
    background-color: #EEEEEE;
    font-weight: 500;
}

.list > tbody > tr.detail > td, tr.detail > td {
    font-size: 0.9rem;
    font-style: italic;
    background-color: rgba(0,0,0,0.015);
    padding: 2px 25px;
    white-space: normal;
}

.list > tbody > tr.subcontent > td, tr.subcontent > td {
    padding: 2px 25px;
    white-space: normal;
    background-color: #EDEDED;
}

.list > tbody > tr.summary > td, tr.summary > td {
    border-top: 1px dashed #CCCCCC;
    border-bottom: 1px solid black;
    font-weight: 500;
    background-color: #EDEDED;
}

td.align-center, th.align-center {
    text-align: center !important;
}

td.align-right, th.align-right {
    text-align: right !important;
}

.list > caption, table > caption {
    caption-side: bottom;
    text-align: right;
    padding: 0.3rem 2rem;
    font-weight: 500;
    background-color: hsl(200, 2%, 85%);/* var */
	background-color: var(--app-accent-color); 
}

table td.nomin {
    min-width:auto;
    padding: 10px 5px !important;
}



input[type=text], textarea, select {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

input.search {
    border-radius: 0;
    border-width: 1px 1px 1px 0;
    border-style: solid;
    border-color: #e0e1e2;
}


button{
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background-color: #e0e1e2;
    border: 1px solid #e0e1e2;
    cursor: pointer;
}

a.button {
    font-size: 1rem;
    padding: 0.1rem 0.5rem;
    border: 1px solid #CCCCCC;
    border-radius: 3px;
    text-decoration: none;
    color: #333333;
}

a.button:hover {
    cursor: pointer;
    border: 1px solid #333333;
}



button.positive {
    background-color: #21ba45;
    color: white;
}

button.search {
    border-radius: 0 5px 5px 0;
}

.tabs {
    display: flex;
    flex-direction: row;
    height: 2rem;
    margin: 0 0 -1px 0;
    padding: 0;
    list-style: none;
}

.tabs__item {
    display: inline-block;
    justify-content: center;
    height: 100%;
    min-width: 120px;
    padding: 0 10px;
    margin-right: 2rem;
    vertical-align: middle;
    line-height: 1.8rem;
}

.tabs__item--selected {
    background-color: white;
    border-width: 1px 1px 0 1px;
    border-style: solid;
    border-color: #666666;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
}

.content {
    background-color: white;
    border: 1px solid #666666;
    border-radius: 0 8px 8px 8px;
    padding: 2rem;
}

.content > h1 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-top: 0.1rem;
    letter-spacing: 0.11rem;
}


.metrics, .cards {
    display: flex; /* IE Fix */
}

.metrics__item {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    color: #333333;
    text-align: center;
}

.metrics__item h1 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 500;
    color: #000000;
}

.cards > * {
    padding: .5rem 1rem;
    display: block;
    border: 1px solid #999999;
    border-radius: 5px;
    box-shadow: 1px 1px 4px 0 rgba(0,0,0,0.15);
}


svg.search {
    border-width: 1px 0 1px 1px;
    border-color: #e0e1e2;
    border-style: solid;
    background-color: white;
    border-radius: 5px 0 0 5px;
    padding: 0.51rem 0.2rem 0.65rem .7rem;
    width: 1.05rem;
    height: 1.05rem;

}

hr {
    border-top: 1px solid rgba(34,36,38,.15);
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.content_section, .two_columns > * {
    padding: 1rem 1rem;
    border-radius: .28571429rem;
    box-shadow: 0 1px 2px 0 rgb(34 36 38 / 15%);
    border: 1px solid rgba(34,36,38,.15);
    margin-top: 1.5rem;
}

.steps {
    width: 100%;
    box-sizing: border-box;
    display: flex; 
    counter-reset: ordered;
    border-radius: .3rem;
    border: 1px solid rgba(34,36,38,.15);
}

.steps > * {
    flex: 1 1 0px;
    position: relative;
    display: flex;
    flex-direction: row;
    vertical-align: middle;
    justify-content: center;
    margin: 0;
    border-width: 0 1px 0 0;
    border-color: rgba(34,36,38,.15);
    border-style: solid;
}

.steps > *:last-child {
    border-width: 0px;
    border-color: rgba(34,36,38,.15);
    border-style: none;
}

.steps > * > * {
    width: 100%;
}

.steps > *::before {
    display: block;
    position: static;
    text-align: center;
    content: counters(ordered, '.');
    margin-right: 1rem;
    margin-left: 2rem;
    font-size: 1.7rem;
    counter-increment: ordered;
    font-weight: 700;
}

.steps > *::after {
    display: block;
    position: absolute;
    z-index: 2;
    content: '';
    top: 50%;
    right: 0;
    width: 1.14285714em;
    height: 1.14285714em;
    background-color: #fff;
    border: medium none;
    border-style: solid;
    border-color: rgba(34,36,38,.15);
    border-width: 0 1px 1px 0;
    border-color: rgba(34,36,38,.15);
    border-width: 0 1px 1px 0;
    transform: translateY(-50%) translateX(50%) rotate(-45deg);
}

.steps > *.active, .steps > *.active::after {
    background-color: #f3f4f5;
}

.steps > *:last-child::after {
    display: none;

}

.two_columns {
    display: flex; 
    justify-content: space-between;
}

.two_columns > * {
    flex: 0 50%;
}

.two_columns > *:nth-child(2n) {
    margin-left: 1rem;
}

.two_columns > *:nth-child(2n + 1) {
    margin-right: 1rem;
}

.two_columns--first-bigger >  *:nth-child(2n + 1){
    flex: 0 60%;
}

.two_columns--first-bigger >  *:nth-child(2n){
    flex: 0 40%;
}

div > h1, div > h2, div > h3, div > h4, div > h5 {
    margin-top: 0.1rem;
    margin-bottom: 0.3rem;

}

h2 {
    margin-top: 1rem;
    font-size: 1.4rem;
    font-weight: 500;
}

.place {
    display: flex;
}

.place__info {
    box-sizing: border-box;
    border-radius: 0 0 20px 20px;
    border: 1px solid rgba(0,0,0,0.3);
    background: white;
    width: 100%;
}

.place__info > div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1;
    border-top: 1px solid rgba(0,0,0,0.3);
    margin: 0;
}

.place__photos_list {
    display: flex;
    flex-wrap: wrap;
    flex-basis: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.3);
    padding: 1px 3px;
    background-color: rgba(0,0,0,0.05);
}

.place__photos_list img {
    border-radius: 5px;
    box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.15);
}

.place__info_habitation {
    flex-grow: 1;
    padding: 10px 20px; 
    margin-right: 20px; 
    box-sizing: border-box;     
}

.place__info figure {
    width: 600px;
    height: auto;
    box-sizing: border-box;
    margin: 0;
    padding: 10px 20px;

}
.place__info figure img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 1px 1px 4px 1px rgba(0,0,0,0.15);
    border: solid rgba(0,0,0,0.3);
}

.place__photos {
    display: flex;
    flex-direction: column;
    overflow-x: scroll;
}

.place__text {
    flex-basis: 100%;
    box-sizing: border-box;
    padding: 10px 20px;
}

.place__photos > * {
    width: 120px;
    height: auto;
    margin-bottom: 10px;
}

.place__photos_list {
    display: flex;
    flex-direction: row;
    margin-bottom: 1rem;
}

.place__photos_list > * {
    height: 80px;
    width: auto;
    margin-right: 10px;
}


.place__info > h2 {
    display: flex;
    box-sizing: border-box;
    text-align: center;
    background: rgb(239, 246, 250);;
    margin: -1px -1px 0px -1px;
}

.place__info > h2 > * {
    align-self: flex-end;
    padding: 2px 8px;
    box-sizing: border-box;
}

.place__info > h2 > *:first-child {
    font-size: 1rem;
}

.place__info > h2 > *:nth-child(2) {
    flex: 1;
    letter-spacing: 1.2px;
    font-size: 2rem;
}


.place__info > h2 > *:last-child {
    color: #666666;
    font-style: italic;
    font-size: 1rem;
}

.place__info textarea {
    border: 0;
}

/* IE Fix */
.cards > *, .metrics__item {
    max-width: 240px;
    width: 240px;
    margin-right: 10px;
}

.cards > * h1 {
    margin: 0.3rem 0 0.2rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #EDEDED;
    font-size: 1.3rem;
}

.horizontal_tree path {
    fill: transparent;
    stroke: rgb(64, 64, 64);
  }
  
.horizontal_tree rect {
    fill: rgba(255, 255, 255, 1);
    stroke: #cccccc;
    stroke-width: 1;
}

.familytree {
    display: flex;
    flex-flow: column;
    width: 100%;
    min-height: 500px;
    overflow-y: show;
    overflow-x: auto;
}

.icon--flipped-vertically {
    -webkit-transform: scale(1, -1);
    transform: scale(1, -1);  
}

.field > label {
    display: block;
    margin: 0 0 .29rem 0;
    color: rgba(0,0,0,.87);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: none;
}


.two_fields > *, .one_field {
    margin-top: 1.5rem;
}

.two_fields {
    display: flex; 
    justify-content: space-between;
}

.two_fields > * {
    flex: 0 50%;
}

.two_fields > *:nth-child(2n) {
    margin-left: 1rem;
}

.two_fields > *:nth-child(2n + 1) {
    margin-right: 1rem;
}

input[type=text], input[type=password], textarea, select {
    width: 100%;
    box-sizing: border-box;
}

textarea {
    min-height: 8rem;
    max-height: 24rem;
    height: 12rem;
}

.person-list {
    margin-top: 1rem;
    margin-bottom: 1rem;
    user-select: none;
    max-height: 600px;
    overflow-y: auto;
}

button[disabled] {
    background-color: #CCCCCC;
}

button.icon-only svg.icon {
    vertical-align: baseline;
}

.controls {
    display: flex;
}

.controls--reverse {
    flex-direction: row-reverse;
}

.controls > * {
    margin-right: 10px;
}

.controls > *:last-child {
    margin-right: 0px;
}

.controls--reverse > *:first-child {
    margin-right: 0px;
}

.controls--reverse > *:last-child {
    margin-right: 10px;
}

.controls__main {
    flex-grow: 1;
}

.controls--reverse > .controls__main {
    text-align: right;
}

.controls__input {
    max-width: 250px;
}

.default__reference > * {
    font-size: 0.9rem;
}

.default__reference > span {
    white-space: nowrap;
    padding-right: 10px;
    font-style: italic;
    color: #333333;
}

.default__reference > input[type=text] {
    min-width: 400px;
    padding: 4px 10px;
    font-size: 0.9rem;
    outline: none;
    border-radius: 5px;
    border: 1px solid #999999;
    background-color: white;
}



@supports (display: grid) {
    .metrics, .cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 240px));
        gap: 10px;
    }

    .cards {
        grid-template-columns: repeat(auto-fit, minmax(120px, 300px));
    }

    .cards > *, .metrics__item {
        max-width: auto;
        width: auto;
        margin-right: 0;
    }
  }