html,
body {
    height: 100%;
    padding: 0px;
    margin: 0px;
    overflow: hidden;
}

body .pma-ui-viewport-container {
    height: calc(100% - 64px);
    width: 100%;
}

button {
    border: 1px solid lightgrey !important;
}

.annotations-button {
    width: 120px;
}

.annotations-button[data-type="tumorArea"] {
    background-color: #000000;
}

.annotations-button[data-type="necrosis"] {
    background-color: #ff0000;
}

.annotations-button[data-type="invasiveMargin"] {
    background-color: #008000;
}

.annotations-button[data-type="bloodVessel"] {
    background-color: #ff5733;
}

.annotations-button[data-type="tmaArea"] {
    background-color: #0000ff;
}


#viewer {
    border: 2px solid rgba(0, 60, 136, .5);
}

.aligned-text {
    display: inline-block;
    text-align: right;
    width: 70px;
}

.annotation-helper-icon i,
.annotation-helper-icon span {
    display: none;
}

.annotation-helper-icon.loading i {
    display: initial;
}

.annotation-helper-icon.loading span {
    display: none;
}

.annotation-helper-icon.saved i,
.annotation-helper-icon.saved span.badge.bg-danger {
    display: none;
}

.annotation-helper-icon.saved span.badge.bg-success {
    display: initial;
}

.annotation-helper-icon.error i,
.annotation-helper-icon.error span.badge.bg-success {
    display: none;
}

.annotation-helper-icon.error span.badge.bg-danger {
    display: block;
}

#annotations {
    padding: 15px 5px;
}

.btn-group {
    padding: 0 5px;
}

.fa.fa-1x.fa-stack {
    width: 1em;
    height: 1em;
    line-height: 1em;
}

.fa.fa-1x.fa-stack .fa:last-child {
    left: 5px;
    top: 5px;
    font-size: 8px;
}