

/*         */
/* CONTENT */
/*         */
.qweri-content-wrapper {
    
    -webkit-flex: 1 1 auto;
        -ms-flex: 1 1 auto;
            flex: 1 1 auto;
    
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
    
    overflow-y: auto;
    
}

.qweri-content {
    
    -webkit-flex: 1 1 auto;
        -ms-flex: 1 1 auto;
            flex: 1 1 auto;
    
    background-color: #fff;
    
    overflow-y: auto;
    position: relative;
    
    padding: 20px 1.8em;
    
    -webkit-overflow-scrolling: touch;
    
}

.qweri-content:focus {
    outline: none;
}

.chunkContent,
.documentHeaderDisplay {
    margin: 0 auto;
    max-width: 1000px;
}

.documentHeaderDisplay.hide {
    display: none;
}

/* #chunkDisplay, */
.chunkContent {
    -webkit-transform-origin: top left;
        -ms-transform-origin: top left;
            transform-origin: top left;

    overflow-wrap: break-word;
    word-wrap: break-word;
}

html.touch .footnotesDisplay {
    /* QWERI-2910 | force repaint */
    -webkit-transform: translate3d(0,0,0);
}

.footnotesDisplay {
    background-color: #fff;
    bottom: 1em;
    box-shadow: 1px 1px 12px 6px rgba(0, 0, 0, .5);
    display: none;

    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;

    left: 1em;
    max-height: 40vh;
    opacity: 0;
    padding: 1em;
    position: fixed;
    right: 1em;
    z-index: 10;
}

.footnotesDisplay.in-use {
    display: block;
    opacity: 1;
}

.footnotesDisplay .footnotesHeading {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;

              -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
            justify-content: space-between;

    margin: 0 0 1em;
}

.footnotesDisplay .footnotesHeading .heading {
    font-size: 1.15em;
    font-weight: bold;
}

.footnotesDisplay .close {
    -ms-flex-item-align: start;
     -webkit-align-self: flex-start;
             align-self: flex-start;

    color: #ef362e;
    opacity: 0.6;
}

.footnotesDisplay .close:hover,
.footnotesDisplay .close:focus {
    color: #ef362e;
    opacity: 1;
}

.footnotesDisplay .footnotesContent {
    max-height: 30vh;
    overflow: auto;
    position: relative;
}

.footnotesDisplay .footnotesContent > div {
    padding: .3em 0;
}

.footnotesDisplay .footnotesContent .active {
    background-color: #ffff98;
}

.chunkDisplay {
    position: relative;
}

.chunkDisplay .chunk.on-hold {
    display: none;
}

.chunkDisplay .show-more {
    line-height: 1.5;
    position: absolute;
    text-align: center;
    width: 100%;
    z-index: 1;
}

.chunkDisplay .show-more.previous {
    top: 0;
}

.chunkDisplay .show-more.next {
    bottom: 0;
}

.chunkDisplay .show-more span,
.chunkDisplay .show-more button {
    background-color: #EA1A10;
    border: none;
    border-radius: 3px;
    -webkit-box-shadow: 2px 2px 2px -1px rgba(0, 0, 0, .5);
       -moz-box-shadow: 2px 2px 2px -1px rgba(0, 0, 0, .5);
            box-shadow: 2px 2px 2px -1px rgba(0, 0, 0, .5);
    color: #fff;
    cursor: pointer;
    display: none;
    font-weight: bolder;
    line-height: inherit;
    min-width: 7em;
    padding: .5em 1em;
    text-shadow: -1px -1px rgba(0, 0, 0, .1);
    transition: opacity .2s linear;
}

.chunkDisplay .show-more.loading span,
.chunkDisplay .show-more.ready button {
    display: inline-block;
}

/*
    Displays a line between chunks, marking the limits where annotations
    cannot cross.
 */
html:not(.touch) .chunkDisplay.annotations-active .chunk:not(.on-hold) + .chunk {
    border-top: 2px dashed red;
    padding-top: 1em;
    margin-top: 1em;
}

#chunkDisplay img {
    height: auto;
    max-width: 100%;
}

div#chunkDisplay .not-displayed-in-qweri-html {
    display: none;
}

div#chunkDisplay a[name^='_ftnref'],
div#chunkDisplay a[name^='_ednref'] { /* All the links to footnotes and endnotes*/
    color: #008aca !important;
    margin-left: 2px;
    text-decoration: none;
}

div#chunkDisplay .MsoFootnoteReference,
div#chunkDisplay .EndnoteCharacters,
div#chunkDisplay .MsoEndnoteReference,
div#chunkDisplay sup {
    font-size: .75em;
    font-style: normal;
    font-weight: normal;
    line-height: 0;
    position: relative;
    top: -.6em;
    vertical-align: baseline !important;
}

div#chunkDisplay .MsoFootnoteReference .MsoFootnoteReference,
div#chunkDisplay .EndnoteCharacters .EndnoteCharacters,
div#chunkDisplay .MsoEndnoteReference .MsoEndnoteReference,
div#chunkDisplay .MsoFootnoteReference sup,
div#chunkDisplay .EndnoteCharacters sup,
div#chunkDisplay .MsoEndnoteReference sup,
div#chunkDisplay sup sup {
    font-size: 1em;
    top: 0;
}

div#chunkDisplay .MsoFootnoteReference .MsoFootnoteReference span,
div#chunkDisplay .EndnoteCharacters .EndnoteCharacters span,
div#chunkDisplay .MsoEndnoteReference .MsoEndnoteReference span,
div#chunkDisplay sup sup span {
    font-size: 12px !important;
}

div#footnotesDisplay .MsoFootnoteText .MsoFootnoteReference,
div#footnotesDisplay .MsoNormal .MsoFootnoteReference,
div#footnotesDisplay .Normal2 .MsoFootnoteReference,
div#footnotesDisplay .MsoEndnoteText .EndnoteCharacters,
div#footnotesDisplay .MsoNormal .EndnoteCharacters,
div#footnotesDisplay .Normal2 .EndnoteCharacters,
div#footnotesDisplay .MsoEndnoteText .MsoEndnoteReference,
div#footnotesDisplay .MsoNormal .MsoEndnoteReference,
div#footnotesDisplay .Normal2 .MsoEndnoteReference {
    font-size: 1em;
    vertical-align: baseline !important;
    position: static;
}

div#footnotesDisplay .MsoFootnoteText .MsoFootnoteReference sup,
div#footnotesDisplay .MsoNormal .MsoFootnoteReference sup,
div#footnotesDisplay .Normal2 .MsoFootnoteReference sup,
div#footnotesDisplay .MsoEndnoteText .EndnoteCharacters sup,
div#footnotesDisplay .MsoNormal .EndnoteCharacters sup,
div#footnotesDisplay .Normal2 .EndnoteCharacters sup,
div#footnotesDisplay .MsoEndnoteText .MsoEndnoteReference sup,
div#footnotesDisplay .MsoNormal .MsoEndnoteReference sup,
div#footnotesDisplay .Normal2 .MsoEndnoteReference sup {
    top: auto;
    vertical-align: baseline !important;
}

div#chunkDisplay .pdf-viewer-page {
    word-wrap: normal;
    box-sizing: content-box; /* Fix for IE11 */
    z-index: auto;
    page-break-inside: avoid;
    margin-left: auto;
    margin-right: auto;
    white-space: normal;
}

div#chunkDisplay .pdf-viewer-page:last-child {
    page-break-after: auto;
}

div#chunkDisplay .pdf-viewer-page a:hover {
    background-color: rgba(0, 0, 0, 0);
}

div#chunkDisplay .pdf-viewer-line {
    white-space: pre;
}

.documentFragment.active {
    background-color: #fcf8e3;
    border-left: 6px solid #a9d401;
    border-right: 6px solid #a9d401;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    border-radius: 3px;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 6px;
    padding-right: 6px;
}

#footnotesDisplay hr {
    border-color: #000;
    border-style: solid;
    border-width: 1px 0 0;
    margin: 0 0 1em;
    width: 20%;
}


/* ********************** */
/* ****** Readonly ****** */

.documentReadonly .alert {
    margin-bottom: 0;
}

/* **************************** */
/* ****** Metadatavalues ****** */

.documentMetaValues {
    -webkit-flex: 0 0 auto;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;

    box-sizing: border-box;
    padding: 0 42px 0 29px;
}

.documentMetaValues .meta-values {
    background-color: #e1e1e1;
    border-radius: 0 0 4px 4px;
    border: 1px solid #aaa;
    border-top-width: 0;
    margin: 0 auto;
    max-width: 1000px;
}

.documentMetaValues .meta-heading {
    background-color: transparent;
    color: #666;
    cursor: pointer;
    padding: 8px 15px;
    text-align: center;
}

.documentMetaValues .meta-heading .caret {
    border-color: #000 transparent;
    border-style: solid;
    border-width: 0 4px 4px 4px;

    margin-top: 8px;
    margin-left: 2px;
}

.documentMetaValues .meta-heading.collapsed {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.documentMetaValues .meta-heading.collapsed .caret {
    border-top-width: 4px;
    border-bottom-width: 0;
}

.documentMetaValues .meta-body {
    background-color: rgba(255, 255, 255, .85);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}


.documentMetaValues ul {
    list-style: none;
    margin: 0;
    padding: 8px 15px;
}

.documentMetaValues li:not(:last-child) {
    margin-bottom: .1em;
}

.documentMetaValues .meta-label {
    color: #888;
    font-size: .8em;
    
    text-transform: uppercase;
    letter-spacing: .075em;
}

.documentMetaValues .meta-label,
.documentMetaValues .meta-value {
    vertical-align: middle;
}

.documentMetaValues .meta-value .meta-tag {
    background-color: #e4e4e4;
    border: 1px solid #aaaaaa;
    border-radius: 3px;
    padding: 1px 3px;
}

/* ****** Metadatavalues FIN ****** */
/* ******************************** */


/* ****************************************************** */
/* ****** Noteups we add for legislation documents ****** */

/**
 * Using the #id selector to prevent as much as possible
 * the document's CSS from messing the HTML we inject inside
 * the content.
 */


#content .zoupio-supplement {
/*  text-align: right; */
    margin-bottom: 1.5em;
    
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
            
    display:     -ms-flexbox;
    display: -webkit-flex;
    display:         flex;
    
        -ms-flex-direction: row;
    -webkit-flex-direction: row;
            flex-direction: row;
    
        -ms-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
            flex-wrap: wrap;
    
    -ms-flex-pack: end;
    -webkit-justify-content: flex-end;
            justify-content: flex-end;
}

#content .zoupio-supplement > .supplement.fragment-link,
#content .zoupio-supplement > .supplement.fragment-translation,
#content .zoupio-supplement > .supplement.fragment-citations {
    
    margin: 5px 0 0 10px;
    
         -ms-flex: 0 0 auto;
     -webkit-flex: 0 0 auto;
             flex: 0 0 auto;
}

#content .zoupio-supplement .noteup-box {
    
         -ms-flex: 1 1 100%;
     -webkit-flex: 1 1 100%;
             flex: 1 1 100%;
    
}

#content .supplement:not(.no-content) .label {
    cursor: pointer;
}

#content .supplement .popover textarea {
    margin-bottom: 0;
    overflow-y: scroll;
}

#content .supplement .label-large {
    -webkit-transition: padding-bottom .2s linear;
       -moz-transition: padding-bottom .2s linear;
        -ms-transition: padding-bottom .2s linear;
         -o-transition: padding-bottom .2s linear;
            transition: padding-bottom .2s linear;
}

#content .supplement .label-large.active {
    background-color: #eaeaea;
    color: #333;
}

#content .supplement .label-large.extended {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    padding-bottom: 10px;
}

#content .zoupio-supplement .noteup-box {
    background-color: #eaeaea;
    border-radius: 5px 0 5px 5px;
    padding: 15px;
    text-indent: 0;
    margin: 0;
}

#content .noteup-box h4 {
    text-align: center;
    margin: 10px 0;
    font-family: inherit;
    font-weight: bold;
    line-height: 20px;
    color: inherit;
    text-rendering: optimizelegibility;
    font-size: 17.5px;
}

#content .noteup-box .noteup-print,
#content .noteup-box .noteup-printAll {
    color: #0088cc;
    cursor: pointer;
    text-indent: 0;
    margin: 0;
    font-size: 14px;
    font-weight: normal;
}

#content .noteup-box .noteup-printAll {
    margin-left: 1em;
}

#content .noteup-box .noteup-results {
    text-indent: 0;
    margin: 0;
}

#content .noteup-results h5 {
    font-style: italic;
    margin: 10px 0;
    font-family: inherit;
    font-weight: bold;
    line-height: 20px;
    color: inherit;
    text-rendering: optimizelegibility;
    font-size: 14px;
}

#content .noteup-results .noteup-result {
    text-indent: 0;
    margin: 0 0 0 1em;
}

#content .noteup-result .style-of-cause .external-indicator,
body a .external-indicator {
    font-size: 0.7em;
    margin-left: .5em;
    text-indent: 0;
    text-decoration: none;
    vertical-align: text-bottom;
}

#content .noteup-result .canlii-reference,
#content .noteup-result .decision-date {
    white-space: nowrap;
}

#content .noteup-box .noteup-showMore:not(.hide) {
    display: inline-block;
    margin-top: 2em;
}

#content .noteup-box .noteup-showAll:not(.hide) {
    display: inline-block;
    margin-left: 2em;
}

#content .zoupio-supplement [class^="icon-"],
#content .zoupio-supplement [class*=" icon-"] {
    font-style: normal;
    line-height: normal;
}

#content .zoupio-supplement .label,
#content .zoupio-supplement .badge {
    display: inline-block;
    padding: 2px 4px;
    font-size: 11.844px;
    font-weight: bold;
    line-height: 14px;
    color: #ffffff;
    text-shadow: 0 -1px 0
    rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    vertical-align: baseline;
    background-color: #999999;
}

#content .zoupio-supplement .label.label-large {
    font-size: 14px;
    line-height: 20px;
}

#content .zoupio-supplement .tooltip {
    position: absolute;
    z-index: 1030;
    display: block;
    font-size: 11px;
    line-height: 1.4;
    opacity: 0;
    filter: alpha(opacity=0);
    visibility: visible;

    width: auto;
    background-color: transparent;
}

#content .zoupio-supplement .tooltip.in {
    opacity: 0.8;
    filter: alpha(opacity=80);
}

#content .zoupio-supplement .tooltip.top {
    padding: 5px 0;
    margin-top: -3px;
}

#content .zoupio-supplement .tooltip-inner {
    max-width: 200px;
    padding: 8px;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    background-color: #000000;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

#content .zoupio-supplement .tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
}

#content .zoupio-supplement .tooltip.top .tooltip-arrow {
    bottom: 0;
    left: 50%;
    margin-left: -5px;
    border-top-color: #000000;
    border-width: 5px 5px 0;
}
/* **** Noteups we add for legislation documents FIN **** */
/* ****************************************************** */

/*        */
/* MARKER */
/*        */

.zoupio-marker {
    background-color: transparent;
    color: #050C25;
    display: flex;
    align-items: center;
    margin: 0 auto;
    max-width: 1000px;
}

.zoupio-marker .cursor {
    display: inline-flex;
    opacity: 0;
    position: absolute;
    top: 0;
    transition: opacity .2s;
}

.zoupio-marker .cursor svg {
    height: 15px;
    width: 10px;
}

.zoupio-marker.in-use .cursor {
    opacity: 1;
}
