body > .AffiliationLayer {
    position: fixed;
    left:0px;
    top:0px;
    width:100%;
    height:100%;
    z-index: 20000;
    opacity: 0.7;
    background-color: #000000;
}

body > .AffiliationContainerWindow {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 20010;
}
body > .AffiliationContainerWindow > .AffiliationContainer {
    position: relative;
    top: 50%;
    margin-left: auto;
    margin-right: auto;
    margin-top: -200px;
    width: 98%;
    max-width:600px;
    height: 400px;
    background-color: white;
    border: solid #cacaca 1px;
    border-radius: 3px;
    z-index: 20020;
    padding: 10px;
    box-sizing: border-box;
    padding-top: 40px;
}

body > .AffiliationContainerWindow > .AffiliationContainer * {
    font-size: 13px;
}

.AffiliationContainer select,
.AffiliationContainer input[type="text"] {
    box-sizing: border-box;
    width: 100%;
}

.AffiliationContainer select {
    height: 28px;
}

.AffiliationContainer .affiliationToolbar {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 30px;
    background-color: #999;
    padding: 7px;
    box-sizing: border-box;
    color: #fff;
    font-weight: bold;
}

.affiliationGraphical {
    background-color: #fff;
}

#stepAddBox div.affiliationGraphical,
.affiliationGraphical {
    box-sizing: border-box;
    padding: 5px !important;
}

#stepAddBox div div.affiliationGraphical {
    border-bottom: 2px solid #dedede;
}

#stepAddBox div.affiliationGraphical div.item,
.affiliationGraphical .item {
    padding-left: 10px !important;
    background-image: url(../images/arrow.png);
    background-repeat: no-repeat;
    background-position: 0px center;
    margin-bottom: 10px;
}

.AffiliationContainer .generalToolbar {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: calc(100% - 30px);
}

.AffiliationContainer .generalToolbar button {
    margin-right: 10px;
}

.AffiliationContainer input[type="checkbox"] {
    display: inline;
    width: auto;
}

.AffiliationContainer .country {
    color: inherit;
    font-size: inherit;
}

.affiliationLine {
    overflow: hidden;
}

.affiliationLine label {
    display: block;
    float: left;
    width: 80%;
}

.affiliationLine label input {
    position: relative;
    top: 2px;
}

.affiliationLine .affiliationFunction {
    display: block;
    float: right;
    cursor: pointer;
}

.affiliationAutofillFrame {
    position: absolute;
    z-index: 20020;
    background-color: #f5f5f5;
    height: 110px;
    border: solid black 1px;
    overflow: auto;
}


.autoFillItemTitle, .autoFillItemData {
    padding: 3px;
}

.autoFillItemTitle {
    padding-bottom: 0px;
}

.autoFillItemData {
    padding-top: 0px;
}

.autoFillItemTitle {
    font-size: 12px;
}

.autoFillItemData {
    font-size: 11px;
    color: #999;
}

.autoFillItemContainer {
    cursor: pointer;
    position: relative;
}

.autoFillItemContainer:hover {
    background-color: #ededed;
}

.autoFillItemContainer.active,
.autoFillItemContainer.active:hover {
    background-color: #dedede;
}

.AffiliationContainer .rawAffiliation {
    font-size: 0.8em;
    color: #999;
    padding: 5px;
    border: solid #cacaca 1px;
    background-color: #f5f5f5;
    border-radius: 3px;
    margin-bottom: 15px;
    margin-left: 7px;
    margin-right: 13px;
    padding-left: 40px;
    background-image: url('/images/warning.png');
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: 10px center;
}

.AffiliationContainer .rawAffiliation .warningMessage {
    color: #444;
    font-weight: bold;
}

.affiliationFunction.disabled {
    cursor: not-allowed;
    color: #cacaca;
}

.Background_Box .affiliationGraphical.invalid,
.affiliationGraphical.invalid,
#content .affiliationArea textarea.invalid {
    background-image: url('/images/warning.png');
    background-size: 15px 15px;
    background-repeat: no-repeat;
    background-position: right bottom;
    border-color: #900;
}

.affiliationGraphical {
    cursor: pointer;
    position: relative;
    z-index: 100;
    min-height: 100px;
    border: solid #dedede 2px;
}

.Background_Box .affiliationGraphical {
    width: 100%;
    padding: 1%;
    border: 1px solid #647ba0;
    height: 150px;
}

.affiliationGraphical > .item {
    position: relative;
    z-index: 50;
}

.affiliationGraphical > .item:last-child {
    border-bottom: none;
}

.AffiliationContainer .availableAffiliations {
    height: 300px;
    overflow: auto;
    padding: 5px;
    background-color: #f5f5f5;
    border: solid #e0e0e0 1px;
}

.affiliationLine > label {
    cursor: pointer;
}

.generalToolbar .localeFlags {
    float: right;
}

.generalToolbar .flag {
    cursor: pointer;
    margin-left: 5px;
}

.generalToolbar .flag img {
    opacity: 0.3;    
}

.generalToolbar .flag.active {
    cursor: default;
}

.generalToolbar .flag.invalid {
    border: solid red 2px;
}

.generalToolbar .flag.invalid {
    position: relative;
    top: -4px;
}

.generalToolbar .flag.invalid img {
    position: relative;
    top: 3px;
}

.generalToolbar .flag.active img {
    opacity: 1;
}

.generalToolbar .localeFlags img {
    width: 30px;
    height: auto;
}

.affiliationFields[locale] input[type="text"] {
    padding-right: 25px;
    background-repeat: no-repeat;
    background-size: 15px auto;
    background-position-y: 5px;
    background-position-x: 99%;
    border-width: 1px;
    border-color: inherit;
}

.affiliationFields[locale="pl_PL"] input[type="text"] {
    background-image:url('/locale/pl_PL/flag-small.png');
}

.affiliationFields[locale="en_US"] input[type="text"] {
    background-image:url('/locale/en_US/flag-small.png');
}

.metadataEdit .affiliationGraphical .item {
    text-align: left;
}

table.firstColLabeled td,
table.firstColLabeled th,
table.firstColLabeled tr {
    background-color: #fff !important;
}

table.firstColLabeled td.label {
    background-color: #8fa7cc !important;
    color: #fff;
    border-bottom-color: #fff;
}

table.firstColLabeled tr:last-child td.label {
    border-bottom-color: inherit;
}

table.firstColLabeled td.data {
    color: initial;
    font-weight: normal;
}

.affiliationGraphical[locale] {
    background-repeat: no-repeat;
    background-position: right 5px bottom 5px;
    background-size: 15px auto;
    padding-right: 25px;
}

.affiliationGraphical[locale="pl_PL"] {
    background-image: url("/locale/pl_PL/flag-small.png");
}

.affiliationGraphical[locale="en_US"] {
    background-image: url("/locale/en_US/flag-small.png");
}

.affiliationToolbar .closer {
    float: right;
    cursor: pointer;
}