﻿:root {
    --bg-color: #343a40;
    --bg-dark: #2a2a2a;
    --muted-color: #454d55;
    --strong-color: #00b6b6;
    --brand-color: #00b6b6;
    --brand-color-over: #008686;
    --banner-height: 40px;
    --control-color: #dadada;
    --control-color-over: #fafafa;
    --sidebar-width: 250px;
}

html, body {
    overscroll-behavior-x: none;
}

body {
    background-color: var(--bg-color);
    overflow:hidden;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.banner{
    height: var(--banner-height);
    border-bottom: solid 1px var(--muted-color);
    background-color: var(--bg-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
    color: var(--control-color);
    padding: 0px 10px;
}

.banner .banner-left{
    white-space: nowrap;
}

.banner .banner-right{
    position: absolute;
    right: 0px;
    padding-right: 5px;
    background-color: var(--bg-dark);
}


.banner .logoName{
    display: inline-block;
    padding: 0px 0px 0px 5px;
    font-size: 1.2rem;
    font-weight: 200;
    color: var(--brand-color);
}

.banner .user-actions .user-initials {
    border: solid 1px var(--brand-color);
    border-radius: 17px;
    padding: 5px;
    color: var(--brand-color);
    height: 34px;
    display: inline-block;
    min-width:34px;
    text-align: center;
}

.banner .user-actions.dropdown.always-show .dropdown-menu {
    display: block !important;
}

.banner .logoBrand {
    display: inline-block;
    width: 27px;
    height: 27px;
}

.banner .logoBrand #logoDesign{

}

.banner .logoBrand #logoDesign path {
    fill: var(--control-color-over);
}

.dropdown-item .fa{
    width: 16px;
    margin-right: 10px;
}


.banner-controls{
    visibility:hidden;
    display: none;
}

.logged-in{
    display: none;
}

.app-error, .app-gen-error{
    margin-top: 10vh;
    display: none;
}

.app-auth-list{
    display: none;
    margin-top: 10vh;
}

body.auth-required .app-auth-list,
body.auth-requested .app-auth-list{
    display: block;
}

body.auth-requested .anonymous.required{
    display: none;
}

body.auth-required .anonymous.requested{
    display: none;
}

body .content-wrapper{
    display: none;
}

body.gen-preview .content-wrapper{
    display: block;
}

body.auth-requested .content-wrapper,
body.fields-requested .content-wrapper
{
    display: none;
}

body .app-form-fields{
    display: none;
}

body.fields-requested .content-wrapper
{
    display: none;
}

body.fields-requested .app-form-fields
{
    padding: 10px;
    display: block;
}

.app-form-fields .card{
    max-width: 1000px;
    margin: 100px auto;
    
}

.app-form-fields .form-group .text-desc{
    color: #666666;
    font-style: italic;
    font-size: 90%;
}

.app-form-fields .form-group .col-form-label.required{
    font-weight: 600;
}

.app-form-fields .form-group .col-form-label span.required{
    color: red;
}

.app-form-fields .validation-summary {
    color: red;
}


.logoDocTitle{
    display: none;
}

#pageNumberInput.is-invalid {
    padding-right: initial;
    background-image: none;
    background-repeat: no-repeat;
}

@media (max-width: 767.98px) {

    body.gen-preview .logoTitle{
        display: none;
    }
}

@media (max-width: 575.98px) {

    body.gen-preview .logoName,
    body.gen-preview .logoTitle,
    body.gen-preview .logoDocTitleSpacer {
        display: none;
    }

}

body.gen-preview .logoDocTitle {
   display: inline-block;
}

body.gen-error-occurred .preloader,
body.auth-required .preloader,
body.gen-preview .preloader,
body.fields-requested .preloader{
    display: none;
}

body.gen-error-occurred .app-gen-error{
    display: block;
}

body.gen-error-occurred .app-gen-error details.error-msg p.error-details {
    font-style: italic;
}

body.gen-error-occurred .app-gen-error p.error-code {
    font-size: 80%;
    color: red;
}

body .loading-spacer{

}

.app-auth-list .auth-providers .list-group-item{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.app-auth-list .auth-providers .list-group-item img {
    max-width: 40px;
    margin-right: 10px;
}

.app-auth-list .auth-providers .list-group-item .auth-action {
    float: right;
}


.app-wrapper{
    height: calc(100% - var(--banner-height));
    overflow: hidden;
}

.app-wrapper .content-wrapper{
    height: 100%;
}

.app-wrapper .content-viewer-sidebar{
    display: none;
}

.content-viewer-toolbar .btn-dark.disabled{
    color: #777;
    cursor: auto;
}

body.sideThumbs .content-viewer-toolbar button.sideThumbs,
body.sideOutline .content-viewer-toolbar button.sideOutline,
body.sideAttachment .content-viewer-toolbar button.sideAttachment,
body.sideProperties .content-viewer-toolbar button.sideProperties {
    background-color: var(--brand-color);
}

.content-viewer-toolbar .btn-toolbar{
    flex-wrap: nowrap;
}

body.sidebar-visible .app-wrapper .content-viewer-sidebar {
    display: block;
    width: var(--sidebar-width);
    height: calc(100% - var(--banner-height));
    float: left;
    background-color: var(--bg-dark);
    border-right: solid 1px var(--muted-color);
    overflow-y: auto;
    box-shadow: 0px 10px 8px #111;
    transition: width ease 0.5s;
}

body.sidebar-visible.sidebar-full .content-viewer-sidebar {
    width: 100%;
    transition: width ease 0.5s;
}

@media (max-width: 575.98px) {

    body.sidebar-visible .app-wrapper .content-viewer-sidebar {
        width: 100%;
    }

    body.sidebar-visible .sidebar-title .fa{
        display: none;
    }

    body.sidebar-visible .content-viewer-toolbar .toolbar-mid,
    body.sidebar-visible .content-viewer-toolbar .toolbar-right{
        display: none;
    }
}

body.sidebar-visible .sidebar-title .fa {
    border-radius: 2px;
    border: solid 1px transparent;
    padding: 2px;
}

body.sidebar-visible .sidebar-title .fa:hover {
    color: white;
    background-color: var(--bg-color);
}

body.sidebar-visible .sidebar-title .fa:active {
    color: white;
    border: solid 1px white;
    background-color: var(--bg-color);
    padding: 3px 1px 1px 3px;
}

body.sidebar-visible .sidebar-title .fa-compress {
    display: none;
}

.content-viewer-sidebar .sidebar-thumbs-wrapper,
.content-viewer-sidebar .sidebar-outline-wrapper,
.content-viewer-sidebar .sidebar-properties-wrapper {
    display: none;
}

body.sidebar-visible.sideThumbs .content-viewer-sidebar .sidebar-thumbs-wrapper{
    display: block;
}

body.sidebar-visible.sideOutline .content-viewer-sidebar .sidebar-outline-wrapper {
    display: block;
}

body.sidebar-visible.sideProperties .content-viewer-sidebar .sidebar-properties-wrapper {
    display: block;
}

body.sidebar-visible.sidebar-full .sidebar-title .fa-compress {
    display: inline-block;
}

body.sidebar-visible.sidebar-full .sidebar-title .fa-expand{
    display: none;
}

body.sidebar-visible.sidebar-full .toolbar-mid,
body.sidebar-visible.sidebar-full .toolbar-right{
    display: none;
}

.content-viewer-sidebar .sidebar-title .sidebar-title-actions{
    float: right;
}

.content-viewer-sidebar .sidebar-thumbs{
    display: flex;
    flex-wrap: wrap;
}

.content-viewer-sidebar .sidebar-thumb {
    padding: 5px;
    width: 170px;
    margin: 10px;
}

body:not(.sidebar-full) .content-viewer-sidebar .sidebar-thumb {
    margin: 10px auto;
}

.content-viewer-sidebar .sidebar-thumb:hover {
    outline: 4px solid var(--muted-color);
    outline-offset: 2px;
}

.content-viewer-sidebar .sidebar-thumb.active,
.content-viewer-sidebar .sidebar-thumb.active:hover {
    outline: 4px solid var(--brand-color);
    outline-offset: 2px;
}

.content-viewer-sidebar .sidebar-title{
    position: sticky;
    top:0px;
    left: 0px;
    padding: 4px 10px;
    font-size: 1.2rem;
    border-bottom: solid 1px var(--muted-color);
    background-color: var(--bg-dark);
    color: var(--control-color);
}

.content-viewer-sidebar .sidebar-thumb-img{
    margin: 0px auto;
    border: solid 1px silver;
    background-color: var(--muted-color);
}

.content-viewer-sidebar .sidebar-thumb-page{
    text-align: center;
    color: var(--control-color);
}

.sidebar-outline{
    color: white;
    padding: 5px;
    white-space: nowrap;
    max-width: 600px;
    margin: auto;
}

.sidebar-outline ul {
    list-style-type: none;
}

.sidebar-outline ul.outline-list-1 {
    padding: 0px;
}

.sidebar-outline ul li a {
    line-height: 30px;
    color: var(--control-color);
    cursor: pointer;
    user-select: none;
}
.sidebar-outline ul li a:hover,
.sidebar-outline ul li a:active{
    color: var(--control-color-over);
}
.sidebar-outline li.outline-item .outline-item-item {
    display: flex;
    width: 100%;
}

.sidebar-outline li.outline-item .outline-item-item .fa{
    width: 20px;
}

.sidebar-outline li.outline-item .outline-item-leader,
.sidebar-outline li.outline-item .outline-item-page {
    display: none;
}

body.sidebar-full .sidebar-outline li.outline-item .outline-item-leader {
    display: inline;
    width: 100%;
    background: radial-gradient(circle at 50% 1.3em, #999 8%, transparent 8%);
    background-size: 0.5em;
    background-repeat: repeat-x;
}

body.sidebar-full .sidebar-outline li.outline-item .outline-item-page{
    display: inline;
    margin-inline-start: 0.5em;
}

.sidebar-outline li.outline-item i.fa {
    color: var(--control-color);
    padding-inline-end: 10px;
    cursor: pointer;
}
.sidebar-outline li.outline-item i.fa:hover,
.sidebar-outline li.outline-item i.fa:active {
    color: var(--control-color-over)
}
.sidebar-outline li.outline-item i.fa-empty {
    padding-inline-end: 19px;
}

.sidebar-outline li.outline-item > ul.nested {
    display: none;
}


.sidebar-outline li.outline-item.active > ul.nested{
    display: block;
}


.sidebar-properties-wrapper .sidebar-props{
    color: var(--control-color);
    margin: 20px;
    max-width: 600px;
}

body.sidebar-full .sidebar-properties-wrapper .sidebar-props{
    margin: 20px auto;
}

.sidebar-props .doc-prop{
    margin-bottom: 2em;
}

.sidebar-props .doc-prop {
    margin-bottom: 2em;
}

.sidebar-props .doc-prop-label {
    font-size: 0.8em;
}

.sidebar-props .doc-prop-val {
    display: block;
    border-bottom: solid 1px var(--muted-color);
}

.app-wrapper .content-viewer-doc {
    height: 100%;
    overflow: auto;
}

.app-wrapper .content-viewer-doc .pdf-wrapper{
    margin: 0px auto 40px auto;
/*    z-index: -1;*/
    position: relative;
    overflow: hidden;
}

.app-wrapper .content-viewer-doc .pdf-wrapper canvas{
    margin: 15px 15px;
    box-shadow: 10px 10px 8px #111;
}

.app-wrapper .content-viewer-doc .pdf-wrapper section.linkAnnotation{
    position: absolute;
    cursor: pointer;
}

.app-wrapper .content-viewer-doc .pdf-wrapper section.linkAnnotation a{
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.app-wrapper .content-viewer-doc .pdf-wrapper section.linkAnnotation:hover{
    background-color: rgba(0, 255, 255, 0.4);
}

.content-viewer-toolbar {
    height: var(--banner-height);
    border-bottom: solid 1px var(--muted-color);
    background-color: var(--bg-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
    color: var(--control-color);
    padding: 0px 10px;
    box-shadow: 10px 0px 8px #111;
}

.content-viewer-toolbar .input-group-append,
.content-viewer-toolbar .input-group-prepend{
    user-select:none;
}

.footer {
    position: absolute;
    height: var(--control-height);
    bottom: 0px;
    border-top: solid 1px var(--muted-color);
    width: 100%;
    background-color: var(--bg-dark);
    color: var(--control-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
    padding: 0px 10px;
}

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

.card-body details > summary {
    margin-bottom: 1rem;
}

.loading-percent{
    margin: 10vh auto 1vh auto;
    width: 114px;
    height: 114px;
}

.loading-percent svg{
    width: 114px;
    height: 114px;
}

.loading-percent svg .loading-percent-bg {
    fill: none;
    stroke-width: 10px;
    stroke: #454d55;
}

.loading-percent svg circle.loading-percent-bg {
    fill: none;
    stroke-width: 10px;
    stroke: var(--muted-color);
}

.loading-percent svg circle.loading-percent-meter {
    fill: none;
    stroke-width: 10px;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke-dasharray: 360;
    stroke-dashoffset: 350;
    stroke: var(--strong-color);
    transition: stroke-dashoffset 0.3s;
}

.loading-percent svg text.loading-percent-text {
    fill: var(--strong-color);
    font-weight: 700;
}

.loading-msg{
    margin : 0 auto;
    text-align: center;
    color: var(--strong-color);
    font-weight: 300;
    font-size: 1.2rem;
}


/* Overrides to height etc so the doc content scrolls with the body
    (for mobile devices and minimal ui), but the nav is constant */

html, body{
    height: initial !important;
    overflow: auto;
}

.wrapper, .app-wrapper {
    height: auto !important;
    overflow: initial !important;
}

.banner{
    position: fixed;
    width: 100%;
    top: 0px;
    z-index:10;
}

.app-wrapper .content-wrapper,
.content-switch {
    height: initial !important ;
}

.app-wrapper .content-viewer-toolbar{
    position: fixed;
    top: var(--banner-height);
    width: 100%;
    z-index:5;
}

body.sidebar-visible .app-wrapper .content-viewer-sidebar {
    position: fixed;
    top: calc(var(--banner-height) * 2);
    height: calc(100% - (var(--banner-height) * 2));
    z-index: 3;
}

.app-wrapper .content-viewer-doc{
    height: initial;
    margin-top: calc(var(--banner-height) * 2);
}

body.sidebar-visible .app-wrapper .content-viewer-doc{
    margin-left: var(--sidebar-width);
    overflow-x: auto;
}