.document-sidebar {
    position: fixed;
    top: 150px;
    left: 0;
    bottom: 0;
    z-index: 100;
    background: #fff;
    display: none;
}

.document-sidebar-controls {
    height: 100%;
    border-right: #ccc solid 1px;
}

.show-sidebar-content .document-sidebar-content {
    display: block;
    overflow: auto;
}

.document-sidebar-content {
    display: none;
    position: absolute;
    left: 40px;
    top: 0;
    background: #F7F7F7;
    bottom: 0;
    width: 400px;
    border-right: #ccc 1px solid;
}

.toolbar-drawer .document-sidebar {
    top: 64px;
}

body .document-sidebar-controls .btn {
    border-right: 0px;
    border-radius: 0 !important;
}

#block-system-main {
    position: relative;
}

.document-header {
    background: white;
}

.document-header .table-info {
    margin-bottom: 0;
}

.document-header-mini {
    display: none;
    font-size: 11px;
    border: 1px solid #ddd;
    background: white;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, .3);
    z-index: 100;
    margin-top: -1px;
    position: fixed;
    top: 0;
    width: 940px;
}

.document-header-mini.visible {
    display: flex;
}

.document-header-mini div {
    padding: 5px;
    text-align: center;
    flex: auto;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.document-header-mini div:not(:last-child) {
    border-right: 1px solid #ddd;
}

.document-bar {
    text-align: right;
    border-bottom: #ccc solid 1px;
    border-left: #ccc solid 1px;
    margin-bottom: 20px;
}

.document-bar .btn {
    border-bottom: 0;
    border-top: 0;
    border-radius: 0;
}

.table-info td:first-child:not(:last-child) {
    width: 33%;
}

.main-container.container-fluid {
    padding-left: 60px;
    padding-right: 15px;
}

.sidebar-content-header {
    border-bottom: 1px solid #FFF;
    line-height: 2.5;
    padding-left: 0.25em;
    background: #F0F0F0;
    margin: 0;
    padding-right: 2em;
}

.sidebar-content-target {
    display: none;
}

.document-sidebar-content .sidebar-content-target .list-group-item {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
}

body .no-margin-bottom {
    margin-bottom: 0;

}

.document-sidebar-close {
    position: absolute;
    top: 0.4em;
    right: 0.4em;
}

.page-header {
    display: none;
}

#document-structure .document-structure-tree,
.panel-heading-compact .toolbar-heading,
#document-references .list-group-item,
#document-explanations .list-group-item {
    font-size: 0.75em;
}

#document-references .panel {
    margin: 0.5em;
}

.document .document-anchor-panel {
    position: relative;
    float: right;
    text-indent: 0;
}

.document .mimgebixml,
.document .sataurixml,
.document .karixml,
.document .karisataurixml,
.document .tavixml,
.document .abzacixml,
.document .tavisataurixml,
.document .muxlixml {
    clear: both;
}

.comment-group-item .list-group-item-text {
    font-size: 0.8em;
}

.comment-group-item .list-group-item-heading {
    font-size: 0.85em;
    font-weight: bold;
}

.comment-inside-group-item .comment {
    max-width: 320px;
    word-wrap: break-word;
}

.comment-inside-group-item .image {
    width: 45px;
    padding: 5px 0 0 5px;
}

.comment-inside-group-item .img-responsive {
    width: 100%;
}

.comment-inside-group-item .no-image {
    width: 40px;
    text-align: center;
    line-height: 15px;
    font-size: 10px;
    background: rgb(224, 224, 224);
    height: 40px;
    padding: 5px 0;
}

.comment-inside-group-item button.btn {
    font-size: 0.7em;
}

.page-document-view .popover-content,
.comment-inside-group-item .comment-author-name,
.comment-inside-group-item textarea,
#document-comment-new textarea,
.comment-inside-group-item p {
    font-size: 0.8em;
}

.comment-inside-group-item .comment-footer {
    clear: both;
    padding-top: 4px;
}

.comment-inside-group-item .comment-rate-btn {
    position: relative;
    top: 4px;
}

.comment-inside-group-item .comment-author-name {
    margin-right: 0.3em;
    float: left;
}

.comment-inside-group-item:hover .btn-group {
    opacity: 1;
}

.comment-inside-group-item .btn-group {
    opacity: 0;
}
.comment-inside-group-item.editing-comment .btn-group {
    display: none;
}

.comment blockquote {
    font-size: 12px;
}

.page-document-view .popover-content {
    padding: 5px 7px;
}

.highlight-item {
    margin: 5px;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.highlight-item .comment {
    padding: 10px;
}

.main-buttons {
    display: none !important;
}

.highlight-item:hover .main-buttons {
    display: block !important;
}

.highlight-item.editing-highlight .main-buttons {
    display: none !important;
}

.highlight-buttons {
    position: absolute !important;
    top: 0;
    right: 0;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-top: none;
    border-right: none;
    background: #f7f7f7;
    border-bottom-left-radius: 3px;
}

.fb-share-btn {
    border: none;
    font-size: 11px;
    vertical-align: middle;
    background: #4267b2;
    color: white;
    border-radius: 3px;
    padding: 2px 5px;
}

.fb-share-btn i {
    font-size: 15px;
    margin-right: 2px;
}

.fb-share-btn i, .fb-share-btn span {
    vertical-align: middle;
}

.fb-share-btn:hover {
    background: #365899;
}

.fb-share-btn:focus {
    outline: none;
}

.highlight-quote {
    font-weight: bolder;
    padding: 10px;
}

.highlight-quote a {
    color: black !important;
    text-underline: none;
}

.highlight-quote:hover {
    text-decoration: underline;
}

.highlighticon{
    width: 14px;
    height: 16px;
}

.highlight-item.editing-highlight .comment {
    display: none;
}
.highlight-item.editing-highlight .hide {
    display: block !important;
}

.highlight-text {
    resize: none;
    height: auto;
    padding: 9px 3px;
    width: calc(100% - 12px);
    margin-left: 6px;
    border: 1px solid #ccc;
    background: white;
    transition: .1s border-color, .1s box-shadow;
}

.highlight-text:focus {
    outline: none;
    border-color: #66afe9;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

.no-highlights-block {
    text-align: center;
    margin-top: 20px;
}

.highlights-loading {
    margin: 20px auto;
    width: 20px;
    height: 20px;
    background: url(img/loading.gif) no-repeat center;
    background-size: contain;
}

.annotator-controls.hidden {
    display: none !important;
}

.sidebar-content-target-highlights:focus{
    outline: 0;
}

body.no-highlights .annotator-adder{
    display: none !important;
}

#annotator-field-0 {
    max-height: 200px !important;
    max-width: 350px !important;
}

.document-text-search-wrapper #document-text-search {
    display: block;
    width: 321px;
    margin: 0;
    border-radius: 4px 0 0 4px;
    border: 1px solid rgb(199, 199, 199);
    height: 25px;
    padding: 4px 70px 4px 10px;
}

.document-text-search-wrapper #document-text-search:focus,
.document-text-search-wrapper .close:focus {
    outline: none;
}

.document-text-search-wrapper #search-result-stats {
    top: 4px;
    bottom: 5px;
    right: 78px;
    position: absolute;
    line-height: 21px;
    padding: 0 3px 0;
}

.document-text-search-wrapper #search-result-stats.not-found {
    background: #FF8B8B;
}

.document-text-search-wrapper .search-up {
    border-radius: 0;
}

.document-text-search-wrapper .search-down {
}

.document-text-search-wrapper .btn-group {
    position: absolute;
    top: 2px;
    bottom: 0;
    right: 26px;
}

.document-text-search-wrapper .btn-group .btn {
    padding: 6px 8px;
    font-size: 8px;
}

.document-text-search-wrapper .close {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 8px;
}

.document-text-search-wrapper {
    position: fixed;
    top: 0;
    left: 50px;
    z-index: 10000000;
    width: 400px;
    background: #E3E3E2;
    padding: 2px 3px 3px 3px;
    height: 30px;
    border-radius: 0 0 2px 2px;
    border: 1px solid #bbbbbb;
    border-top: 0;
}

.document .highlight {
    background: #ffc84f;
}

.document .highlight.active {
    background: #ff5800;
}

#document-comment-new .comment-wrapper {
    padding-bottom: 5px;
}

#document-comment-new.with-alert .alert {
    margin: 0;
}

#document-comment-new.with-alert {
    padding: 0;
}

#document-comment-new {
    padding: 5px 5px 5px 50px;
    position: relative;
    background: white;
    border: 1px solid rgb(209, 209, 209);
    border-top: 0;
    border-radius: 0 0 4px 4px;
    margin-bottom: 10em;
}

#document-comments-inside .panel > .table:last-child > tbody:last-child > tr:last-child td:first-child {
    border-bottom-left-radius: 0px;
}

#document-comments-inside .panel > .table:last-child > tbody:last-child > tr:last-child td:last-child {
    border-bottom-left-radius: 0px;
}

#document-comments-inside .panel {
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;

}

#document-comment-new textarea {
    overflow: hidden;
    width: 100%;
    min-height: 40px;
    border-radius: 0;
}

#document-comment-new .profile-image {
    width: 40px;
    position: absolute;
    left: 5px;
    height: 40px;
}

#document-comment-new .emotions-list {
    margin: 2px 0 5px 1px;
}

#document-comment-new .emotions-list .btn {
    padding: 3px;
}

#document-comment-new .quotation-icon {
    line-height: 4px;
    width: 13px;
    text-align: center;
    font-size: 2.5em;
    position: relative;
    top: 13px;
}

#document-comment-new .alert {
    border-radius: 0;
}

.scroller {
    overflow: auto;
    position: absolute;
    top: 40px;
    bottom: 0;
    left: 0;
    right: 0;
}

.parallel-view-block {
    overflow: auto;
}

.document-diff-selection #document-diff-publication,
.document-diff-selection #document-diff-publication2 {
    width: 341px;
    margin: 0;
    border-radius: 4px 0 0 4px;
    border: 1px solid rgb(199, 199, 199);
    height: 27px;
    /*padding: 4px -2px 4px 0px;*/
}


.document-diff-selection #document-diff-publication:focus,
.document-diff-selection #document-diff-publication2:focus,
.document-diff-selection .close:focus {
    outline: none;
}

.document-diff-selection .close {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 8px;
}

.document-diff-selection {
    position: fixed;
    top: 0;
    left: 50px;
    z-index: 10000000;
    width: 730px;
    background: #E3E3E2;
    padding: 2px 3px 3px 3px;
    height: 30px;
    border-radius: 0 0 2px 2px;
    border: 1px solid #bbbbbb;
    border-top: 0;
}

#document-parallelDiff-button span,
#document-diffService-button span {
  margin-right: 5px;
}
#document-parallelDiff-button,
#document-diffService-button {
  font-family: "BPG Nino Mtavruli", sans-serif;
  padding-top: 5px;
}
.document-diff-selection .btn-group {
    position: absolute;
}

.document-diff-selection .btn-group .btn {
    padding: 3px 6px 0px 6px;
    font-size: 14px;
    border-radius: 0px 4px 4px 0px;
}

.document-diff-selection .btn-group #document-partial-diff-button {
    padding: 2px 6px 1px 6px;
}

.document-diff-selection--parallel {
    height: 65px;
}

.document-diff-selection--parallel select{
    margin: 2px 0 !important;
}

.document-diff-selection--parallel .btn-group,
.document-diff-selection--parallel .close {
    top: 4px;
    bottom: auto;
}

.panel-heading.panel-heading-compact {
    padding: 5px 15px;
}

.document-structure-tree .list-group {
    margin-bottom: 0;
}

.oldStyleDocumentPart {
    color: #525149 !Important;
    text-decoration: none !Important;
    cursor: default !Important;
}

/* download buttons new styles */
.save-document {
    position: relative;
}

.save-document:hover ul {
    display: block;
}

.save-document.active {
    pointer-events: none;
}

.save-document.active ul {
    display: block;
}

.audiofile-loading {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background: url(img/loading.gif) no-repeat center;
    background-size: contain;
    vertical-align: middle;
}

.save-document.active .audiofile-loading {
    display: block;
}

.save-document.active .save-audiofile .btn-text {
    display: none;
}



.save-document ul {
    display: none;
    padding: 0;
    list-style: none;
    position: absolute;
    left: 100%;
    background: RGBA(230, 230, 230, 1.00);
    top: -1px;
    border: 1px solid RGBA(173, 173, 173, 1.00);
}

.save-document ul li {
    text-align: left;
    padding: 3px 2px;
}

.save-document ul li + li {
    border-top: 1px solid RGBA(173, 173, 173, 1.00);
}

.save-document--bottom ul {
    top: 100%;
    left: -1px;
}

.savetodropbox a.dropbox-saver, .savetodropbox a.dropbox-dropin-btn, .savefile .btn {
    font-weight: normal;
    /*height: 21px !important;*/
    background-color: #ededed !important;
    background-image: -webkit-linear-gradient(top, #f5f5f5, #e6e6e6) !important;
    background-image: -moz-linear-gradient(top, #f5f5f5, #e6e6e6) !important;
    background-image: -ms-linear-gradient(top, #f5f5f5, #e6e6e6) !important;
    background-image: -o-linear-gradient(top, #f5f5f5, #e6e6e6) !important;
    background-image: linear-gradient(top, #f5f5f5, #e6e6e6) !important;
    border: 1px solid #dcdcdc !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
    width: 100%;
    position: relative;
    display: block;
    box-sizing: border-box !important;
    height: 29px !important;
    text-align: left;
    padding: 1px 3px;
    font-family: arial, sans-serif;
    /*font-family: "Lucida Grande", "Segoe UI", "Tahoma", "Helvetica Neue", "Helvetica", sans-serif;*/
    font-size: 11px !important;
    font-weight: normal !important;
    color: #444;
}

.savetodropbox a {
    -moz-box-sizing: border-box !important;
}

.savetodropbox a.dropbox-saver:hover, .savetodropbox a.dropbox-dropin-btn:hover, .savefile .btn:hover {
    background-color: #e8e8e8;
    background-image: -webkit-linear-gradient(top, #f0f0f0, #e1e1e1) !important;
    background-image: -moz-linear-gradient(top, #f0f0f0, #e1e1e1) !important;
    background-image: -ms-linear-gradient(top, #f0f0f0, #e1e1e1) !important;
    background-image: -o-linear-gradient(top, #f0f0f0, #e1e1e1) !important;
    background-image: linear-gradient(top, #f0f0f0, #e1e1e1) !important;
}

.savetodropbox.sidebar {
    background: transparent !important;
    text-indent: -9999px;
}
.savetodropbox.sidebar a.dropbox-dropin-btn {
    background: none !important;
    border: none !important;
}

.savetodropbox.sidebar:hover {
    background: none !important;
}
.savetodropbox.sidebar:hover a.dropbox-dropin-btn {
    background: none !important;
}

.savetodropbox.sidebar .dropin-btn-status{
    position: absolute;
    left: 0;
    margin: 0;
}

.dropin-btn-status {
    margin-top: 3px !important;
}

.savefile .btn .glyphicon {
    margin: 3px 5px 0 2px;
    font-size: 14px;
}

.savefile .btn .btn-text {
    margin-top: 6px;
    width: calc(100% - 27px);
    display: inline-block;
    text-align: center;
}

.save-audiofile .glyphicon, .save-audiofile .btn-text {
    vertical-align: middle;
    margin: 0;
}

.save-audiofile .glyphicon {
    margin-right: 10px;
}

.savetodrive-wrapper > div, .savetodrive-wrapper > div > iframe {
    width: 100% !important;
}

.glyphicon-file--pdf:before, .glyphicon-file--doc:before {
    content: "" !important;
    background: url('img/pdf-colored.png') no-repeat center center;
    background-size: cover !important;
    width: 14px;
    height: 16px;
    display: block;
}

.glyphicon-file--doc:before {
    background: url('img/doc-colored.png') no-repeat center center;
}

select.changes {
    font-size: 13pt;
    color: #4F81BD;
    outline: none;
}

body.parallel footer.footer.container.copyright {
    margin-top: 2px;
}

.scrollpoint--show {
    background: #ade286;
}

.match-debug ul {
    list-style: none;
    margin: 0;
    display: flex;
    background: #ade286;
    justify-content: center;
}

.match-debug ul li {
    flex: 1 1;
    background: #ade286;
    font-size: 1.6em;
    margin: 10px;
    text-align: center;
}

.court-decisions-explanations,
.annotatedLink {
    background: #081b44 !important;
}

#maindoc .tooltip-inner {
  max-width: 700px!important;
  font-size: 14px;
}

.annotatedLink {
  display: block;
}

.court-gavel-icon {
    width: 16px;
    height: 16px;
    margin: -2px;
    background: url(img/court-gavel.png) no-repeat center;
    background-size: contain;
}

.annotation-globe-icon {
  color: #ecbe60;
}

#publicationchange {
    margin: 10px 0 10px 5px;
    outline: none;
}

.tooltip {
    z-index: 1000000001 !important;
}

@-moz-keyframes spin {
    from { -moz-transform: rotate(0deg); }
    to { -moz-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    from {transform:rotate(0deg);}
    to {transform:rotate(360deg);}
}

.rotate {
    -webkit-animation-name: spin;
    -webkit-animation-duration: 3000ms;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    -moz-animation-name: spin;
    -moz-animation-duration: 3000ms;
    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: linear;
    -ms-animation-name: spin;
    -ms-animation-duration: 3000ms;
    -ms-animation-iteration-count: infinite;
    -ms-animation-timing-function: linear;

    animation-name: spin;
    animation-duration: 3000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.document-navigation {
    display: none;
    position: absolute;
    width: 400px;
    background: #fff;
    border: 1px solid #ccc;
    top: 30px;
    left: 50px;
    padding: 10px;
    cursor: pointer;
    transition: .1s border-color;
    max-height: calc(100vh - 30px);
    overflow-y: auto;
}

.document-navigation.active {
    display:block;
}

.nav-result-block {
    position: relative;
    margin-bottom: 5px;
    border: 1px solid transparent;
    padding: 5px 10px;
    border-radius: 2px;
    transition: .1s border-color;
}

.nav-result-block:last-child {
    margin-bottom: 0;
}

.nav-result-block:hover {
    border-color: #A3BDE3;
}

.nav-result-block.active {
    border-color: #A3BDE3;
}

.nav-result-block.active:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid #A3BDE3;
}

@media screen and (max-width: 1865px){
    .main-container.search {
        margin-right: 100px;
    }
}

@media screen and (max-width: 1540px){
    .main-container.search {
        margin-right: 50px;
    }

    .document-navigation {
        width: 300px;
    }
}

@media screen and (max-width: 1400px){
    .main-container.search {
        margin-right: 0;
    }

    .document-navigation {
        width: 220px;
    }
}

@media screen and (max-width: 1250px){
    .main-container.search {
        margin-right: auto;
    }

    .document-navigation {
        display: none !important;
    }
}
