/* ------------------------------------
    CSS Rules for Diff View elements
   ------------------------------------ */
   #fragmentDiv {
    width: calc(100% - 185px);
}

#diff-dock {
    width: 168px;
    height: auto;
    padding: 4px;
    position: sticky;
    float: right;
    top: 0;
}

#diff-dock.minimised {
    height: 32px;
}

#diff-dock #diff-toolbar .btn-default,
#diff-dock #diff-navigation-toolbar .btn-default,
#diff-dock #diff-shading-toolbar .btn-default {
    width: 40px;
}

#diff-dock #diff-toolbar, 
#diff-dock #diff-navigation-toolbar, 
#diff-dock #diff-shading-toolbar {
    margin-bottom: 4px;
}

#toggle-diff-dock,
#toggle-diff-details {
    width: 100%;
    margin-bottom: 4px;
}

#show-source-version {
    background-color: #ffaaaa;
}

#show-source-version.btn.active,
#show-source-version.btn:hover {
    color: #FFF;
    background-color: #c00;
    border-color: #800;
}

#show-target-version {
    background-color: #afa;
}

#show-target-version.btn.active,
#show-target-version.btn:hover {
    color: #FFF;
    background-color: #007d45;
    border-color: #006336;
}

#diff-dock-differences {
    width: 100%;
    box-sizing: border-box;
    overflow-y: scroll;
}

.btn.diff-dock-difference {
    margin-bottom: 2px;
    text-align: left;
    width: 100%;
    white-space: normal;
}

.diff-dock-difference-description {
    font-weight: bold;
}

/* ------------------------------------
    CSS Rules for Frag elements
   ------------------------------------ */

.frag-historicalnotes .frag-entry {
    /*width : auto;*/
    min-width : 50px;
    padding-right : 5px;
}
.frag-historicalnotes > .children > *,
.heading.joined
{ margin-bottom : 10px; }

.frag-formula .frag-graphic + *:before
{ content : initial; }

.frag-namehistory > .frag-name,
.frag-note .frag-table div.heading {
    display : block;
}

.heading.joined > *,
.frag-legref    > .frag-name,
.frag-note        div.heading,
.frag-clause    > .heading   > .frag-compare {
    display : inline;
}




.frag-tableabbrev > table {
    border-width : 0;
    width : 100%;
    border-spacing : 0;
}
.frag-tableabbrev > table > tbody > tr > th,
.frag-tableabbrev > table > tbody > tr > td,
.frag-tableabbrev > table > tr > th,
.frag-tableabbrev > table > tr > td {
    padding : 5px;
}

.frag-tableabbrev > table > tbody > tr,
.frag-tableabbrev > table > tr {
    vertical-align : top;
}

.frag-table > table {
    width : 95%;
    border-spacing : 0;
}
.frag-table > table > tbody > tr > th,
.frag-table > table > tbody > tr > td,
.frag-table > table > tr > th,
.frag-table > table > tr > td {
    padding : 2px;
}

blockquote {
    padding: 0;
    margin: 0 0 10px 17px;
    border-left: none;
}

#fragview blockquote {
    border-left: 0px;
    padding: 0px;
}

#fragview a:hover {
    text-decoration: underline;
}

#side-by-side-table {
    margin-top: 6pt;
    margin-bottom: 6pt;
    table-layout: fixed;
}


#fragview.special,
.historical-title,
.regulations-title,
.historical-list,
.regulations-list,
#fragview               .title,
.fragViewHeading        .heading,
.frag-sourceref,
.frag-subheading,
.frag-caption,
.frag-namehistory     > .heading,
.frag-outline         > .heading,
.frag-objectiveblock  > .heading,
.frag-clausegroup     > .heading,
.frag-subclausegroup  > .heading,
.frag-uncommenced     > .heading,
.frag-slpoperation    > .heading,
.frag-head            > .heading,
.frag-note .frag-li   > .children,
.frag-li              > .heading,
.frag-li              > .children    > .heading,
.frag-chapter         > .heading,
.frag-subdivision     > .heading,
.frag-division        > .heading,
.frag-part            > .heading,
.frag-schedule        > .heading,
.frag-subschedule     > .heading,
.frag-dictionary      > .heading,
.frag-dictionarypart  > .heading,
.frag-oldamendgroup   > .heading,
.frag-erratumnote,
.frag-fragment        > .heading,
.frag-headingfloat    > .heading,
.frag-historicalnotes > .heading,
.frag-preamble        > .heading,
.frag-statusrecord    > .heading,
.frag-subclause       > .heading,
.frag-clause          > .heading,
.frag-clause          > .heading     > .heading,
.frag-note            > .frag-clause > .children
{ page-break-after:avoid; }



/*font families*/
#fragview               .title,
.fragViewHeading        .heading,
#fragview.special,
.linktext,
.navigation,
.historical-title,
.regulations-title,
.historical-list,
.regulations-list,
.navigation-results,
.message-text,
.linktrail,
#fragview               .pagination,
.frag-sourceref,
.frag-subheading,
.frag-caption,
.frag-namehistory     > .heading,
.frag-outline         > .heading,
.frag-objectiveblock  > .heading,
.frag-clausegroup,
.frag-subclausegroup  > .heading,
.frag-uncommenced     > .heading,
.frag-slpoperation,
.frag-head            > .heading,
.frag-note              .frag-li  > .children,
.frag-li              > .children > p,
.frag-li              > .heading,
.frag-li              > .children > .numHeading > .frag-heading,
.frag-note            > div       > .frag-txt,
.frag-chapter         > .heading,
.frag-subdivision     > .heading,
.frag-division        > .heading,
.frag-part            > .heading,
.frag-schedule        > .heading,
.frag-subschedule     > .heading,
.frag-dictionary      > .heading,
.frag-dictionarypart  > .heading,
.frag-oldamendgroup   > .heading,
.frag-erratumnote,
.frag-entry.heading, 
span.frag-heading,
p.frag-heading,
.frag-fragment        > p,
.frag-fragment        > .heading,
.frag-headingfloat,
.frag-headingfloat    > .heading,
.frag-historicalnotes > .heading,
.frag-note            > *,
.frag-preamble        > .heading,
.frag-repealed,
.frag-statusrecord    > .title,
.frag-subclause       > p,
.frag-subclause       > .heading,
.frag-table           > .frag-heading,
.frag-clause          > .heading,
.frag-note            > .frag-clause > .children,
.frag-clause          > .children    > p,
.frag-note              .frag-clause > .heading   > .children,
.frag-note              .frag-block,
.frag-slpoperation      .frag-block  + .frag-block,
.frag-tableleg       > .frag-heading
{ font-family: Arial, Helvetica, sans-serif; }
.frag-entry.heading
{ font-family: Arial, Helvetica, sans-serif !important; }

.frag-clause > .heading > .children {
    display: inline;
}

#fragview,
.frag-miscbody,
.frag-overview,
.frag-renuminfo,
.frag-seal,
.frag-blockgroup,
.frag-plantable      > .children,
.frag-outline        > .children,
.frag-objectiveblock > .children,
.frag-exnote         > .children,
.frag-subclausegroup > .children,
.frag-uncommenced    > .children,
.frag-entry            .frag-li > .children,
.frag-form             .frag-li > .children,
.frag-historicalnotes  .frag-li > .children,
.frag-li             > .children,
.frag-txt,
.frag-formulablock   > :first-child,
.frag-fragment,
.frag-graphicblock   > .children,
.frag-preamble       > .children,
.frag-reprint,
.frag-signatureline,
.frag-subclause,
.frag-tableabbrev    > :first-child,
.frag-tableabbrev    > table,
.frag-entry            .frag-clause > .children,
.frag-form             .frag-clause > .children,
.frag-historicalnotes  .frag-clause > .children,
.frag-plantable        .frag-clause > .children,
.frag-clause         > .children,
.frag-clause         > .heading     > .children,
.frag-block,
.frag-reprints
{ font-family: 'Times New Roman'; }

.frag-table > table * { font-family : inherit !important; }
.frag-table > table .fa { font-family : 'FontAwesome' !important; }



/*font styling*/
#fragview               .title,
.fragViewHeading        .heading,
#fragview               .error,
.message-text           a,
#fragview               div.title,
.historical-title,
.regulations-title,
.hitText,
.frag-subheading,
.frag-caption,
.frag-namehistory     > .heading,
.frag-slpoperation    > .heading,
.frag-bi,
.frag-defterm,
.frag-head            > .heading,
.frag-li              > .heading,
.frag-li              > .children   > .numHeading > .frag-heading,
.frag-chapter         > .heading,
.frag-subdivision     > .heading,
.frag-division        > .heading,
.frag-part            > .heading,
.frag-schedule        > .heading,
.frag-subschedule     > .heading,
.frag-dictionary      > .heading,
.frag-dictionarypart  > .heading,
.frag-oldamendgroup   > .heading,
.frag-entry.heading,
.frag-graphicblock     .frag-heading,
.frag-fragment         .frag-heading,
.frag-historicalnotes > .heading,
.frag-note            > div         > .heading,
.frag-note            > div         > .frag-heading,
.frag-repealed,
.frag-statusrecord    > .heading,
.frag-subclause       > .heading,
.frag-table           > .frag-heading,
.frag-clausegroup     > .frag-no,
.frag-clausegroup     > .frag-heading,
.frag-clause          > .heading    > .heading,
.frag-clause          > .heading    > .frag-heading
{ font-weight: bold; }

.historical-list,
.regulations-list,
.frag-chapter        > .heading   > a,
.frag-subdivision    > .heading   > a,
.frag-division       > .heading   > a,
.frag-part           > .heading   > a,
.frag-schedule       > .heading   > a,
.frag-subschedule    > .heading   > a,
.frag-dictionary     > .heading   > a,
.frag-dictionarypart > .heading   > a,
.frag-oldamendgroup  > .heading   > a,
.frag-namehistory    > .name,
.frag-historicalnotes  .heading   > .children,
.frag-tableamends    > .heading
{ font-weight: normal; }

.mobileMode #fragview .noBtn,
.frag-bi,
.frag-defterm,
span.frag-extref,
.frag-repealedtxt,
.frag-legref > .frag-name
{ font-style: italic; }

.frag-citation,
.frag-exdoc           .frag-extref,
.frag-coverdata       .frag-extref,
.frag-historicalnotes .frag-extref,
.frag-heading         .frag-extref,
.frag-exdoc           .frag-legref,
.frag-coverdata       .frag-legref,
.frag-historicalnotes .frag-legref,
.frag-heading         .frag-legref,
.frag-headingfloat    .frag-legref,
.frag-heading         .frag-name
{ font-style: normal; }



/*.frag-block
{ text-align : justify; }*/

.frag-head         > .heading,
.frag-graphicblock > .children,
.frag-headingfloat > p
{ text-align : left; }

.frag-formulablock > :first-child
{ text-align : center; }

.frag-entry .frag-block
{ text-align : inherit; }



/*font sizes*/
.frag-sourceref,
.frag-form            .frag-headingfloat > .heading,
.frag-historicalnotes .frag-headingfloat > .heading
{ font-size:0.73em; }

.frag-slpoperation  > p,
.frag-li            > .children    > p,
.frag-erratumnote,
.frag-fragment      > p,
/*.frag-note          > div          > .frag-txt,
.frag-note            .frag-clause > .heading,
.frag-note          > .frag-clause > .children,*/
.frag-subclause     > p,
.frag-clause        > .children    > p,
.frag-slpoperation    .frag-block  + .frag-block
{ font-size:0.75em; }

.historical-list,
.regulations-list,
#fragview          .pagination,
.resultsPart,
.message-text,
.navigation,
.linktrail,
.frag-note       > *
{ font-size: 0.8em; }

.frag-subheading,
.frag-caption,
.fragMaps         table,
.frag-li        > .heading,
.frag-li        > .children > .frag-numHeading > .heading,
.frag-subclause > .heading
{ font-size:0.85em; }

.frag-caption {
    padding: 2px;
}

#fragview img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#fragview .frag-formula img {
    display: block;
    margin-left: 0;
    margin-right: auto;
}

.navigation-results,
.fragMaps,
.frag-entry             .frag-li       > .children,
.frag-form              .frag-li       > .children,
.frag-historicalnotes   .frag-li       > .children,
.frag-txt,
.frag-form            > .frag-subclause,
.frag-historicalnotes > .frag-subclause,
.frag-tableabbrev     > :first-child,
.frag-tableabbrev     > table,
.frag-entry             .frag-clause   > .heading,
.frag-form              .frag-clause   > .heading,
.frag-historicalnotes   .frag-clause   > .heading,
.frag-entry             .frag-clause   > .children,
.frag-form              .frag-clause   > .children,
.frag-historicalnotes   .frag-clause   > .children,
.frag-plantable         .frag-clause   > .children,
.frag-form              .frag-block,
.frag-historicalnotes   .frag-block,
.frag-entry             .frag-block
{ font-size:0.9em; }

.frag-slpoperation   > .heading,
.frag-entry            .frag-li           > .heading,
.frag-entry            .frag-li           > .children > .numHeading > .frag-heading,
.frag-form             .frag-li           > .heading,
.frag-form             .frag-li           > .children > .numHeading > .frag-heading,
.frag-historicalnotes  .frag-li           > .heading,
.frag-historicalnotes  .frag-li           > .children > .numHeading > .frag-heading,
.frag-entry            .frag-clause       > .heading  > .heading,
.frag-form             .frag-clause       > .heading  > .heading,
.frag-historicalnotes  .frag-clause       > .heading  > .heading,
.frag-note             .frag-clause       > .heading  > .heading,
.frag-plantable        .frag-clause       > .heading  > .heading,
.frag-table            .frag-headingfloat > .heading
{ font-size:0.95em; }

/*undoing multiple size decreases on nesting
TODO this wouldn't be an issue with `rem` instead of `em`*/
.frag-form             .frag-note       .frag-li       > .children,
.frag-form             .frag-note       .frag-block,
.frag-form             .frag-li         .frag-li       > .children,
.frag-form             .frag-block      .frag-li       > .children,
.frag-form             .frag-li         .frag-block,
.frag-form             .frag-block      .frag-txt,
.frag-historicalnotes  .frag-block      .frag-txt,
.frag-entry            .frag-block      .frag-txt,
.frag-form             .frag-block      .frag-block,
.frag-historicalnotes  .frag-block      .frag-block,
.frag-entry            .frag-block      .frag-block,
.frag-subclause        .frag-subclause,
.frag-clause           .frag-clause   > .children,
.frag-clause         > .children        .frag-subclause,
.frag-preamble         .frag-preamble > .children,
.frag-note             .frag-entry      .frag-li       > .children,
.frag-note             .frag-entry      .frag-block,
.frag-entry            .frag-block      .frag-li       > .children
{ font-size:1em; }

#fragview,
.content       > .frag-miscbody,
.content       > .frag-overview,
.content       > .frag-renuminfo,
.content       > .frag-seal,
.content       > .frag-blockgroup,
.content       > .frag-li           > .children,
.content       > .frag-formulablock > :first-child,
.content       > .frag-fragment,
.content       > .frag-graphicblock > .children,
.content       > .frag-repealed,
.frag-longtitle,
.frag-preamble > .children,
.frag-subclause,
.frag-clausegroup,
.frag-clause   > .children,
.frag-reprints,
.frag-note       .frag-table
{ font-size:1.1em; }

.historical-title,
.regulations-title
{ font-size:1.2em; }

.fragViewHeading      > .heading,
.content              > .frag-outline        > .heading,
.content              > .frag-objectiveblock > .heading,
.content              > .frag-subclausegroup > .heading,
.content              > .frag-uncommenced    > .heading,
.content              > .frag-head           > .heading.split,
.content              > .frag-headingfloat   > .heading,
.frag-historicalnotes > .heading,
.frag-preamble        > .heading,
.frag-chapter         > .heading,
.frag-subdivision     > .heading,
.frag-division        > .heading,
.frag-part            > .heading,
.frag-schedule        > .heading,
.frag-subschedule     > .heading,
.frag-dictionary      > .heading,
.frag-dictionarypart  > .heading,
.frag-oldamendgroup   > .heading
{ font-size:1.3em; }

#fragview .title
{ font-size:1.6em; }







.frag-clause    > .heading   > .frag-compare {
    padding-left : 5px;
}

.frag-namehistory,
.frag-statusrecord {
    margin-bottom : 10px;
}

.frag-repealed,
.frag-reprints
{ margin:0; }

.frag-subclause > .frag-blockgroup .heading,
.frag-compare
{ margin : 10px 0; }

.frag-tableleg
{ margin-bottom : 20px; }

.frag-txt,
.frag-tableabbrev     > :first-child,
.frag-form              .frag-block,
.frag-historicalnotes   .frag-block,
.frag-entry             .frag-block
{ margin:3pt 0pt 3pt 0pt; }

.content           > .frag-miscbody,
.content           > .frag-overview,
.content           > .frag-renuminfo,
.content           > .frag-seal,
.content           > .frag-blockgroup,
.frag-slpoperation > p,
.frag-note         > div             > .frag-txt,
.frag-formulablock > :first-child,
.frag-graphicblock > .children,
.frag-note         > *,
.frag-preamble     > .children,
.frag-note           .frag-clause    > .heading,
.frag-block
{ margin : 8pt 0pt 10pt 0pt; }

.frag-outline        > .heading,
.frag-objectiveblock > .heading,
.frag-subclausegroup > .heading,
.frag-uncommenced    > .heading,
.content             > .frag-head   > .heading.split,
.frag-note             .frag-li     > .children,
.frag-erratumnote,
.frag-headingfloat   > .heading,
.frag-preamble       > .heading,
.frag-clause         > .heading,
.frag-clause         > .children,
.frag-chapter        > .heading,
.frag-subdivision    > .heading,
.frag-division       > .heading,
.frag-part           > .heading,
.frag-schedule       > .heading,
.frag-subschedule    > .heading,
.frag-dictionary     > .heading,
.frag-dictionarypart > .heading,
.frag-oldamendgroup  > .heading
{ margin : 8pt 0pt 10pt 17pt; }


.frag-entry                       .frag-li           > .children,
.frag-form                        .frag-li           > .children,
.frag-historicalnotes             .frag-li           > .children,
.frag-form                        .frag-headingfloat > .heading,
.frag-historicalnotes             .frag-headingfloat > .heading,
.frag-table                       .frag-headingfloat > .heading,
/*deliberately overspecific*/
#fragview .frag-form            > .frag-subclause,
#fragview .frag-historicalnotes > .frag-subclause,
.frag-entry                       .frag-clause       > .heading,
.frag-form                        .frag-clause       > .heading,
.frag-historicalnotes             .frag-clause       > .heading,
.frag-entry                       .frag-clause       > .children,
.frag-form                        .frag-clause       > .children,
.frag-historicalnotes             .frag-clause       > .children,
.frag-plantable                   .frag-clause       > .children
{ margin : 0pt 0pt 10pt 17pt; }


.frag-li      > .children,
/*deliberately overspecific*/
#fragview .frag-subclause
{
    margin : 8pt 0pt 10pt 20pt;
    text-indent : -20pt;
}
.frag-fragment  > .frag-fragment,
/*deliberately overspecific*/
#fragview .frag-subclause > .frag-subclause
{ text-indent : -19pt; }


.frag-li        > .children > p,
.frag-fragment  > p,
.frag-subclause > p
{ margin-left:20pt; }

.frag-li > .children > .numHeading {
    margin-left : -20px;
}
.frag-li > .children > .numHeading > .frag-heading {
    display : inline;
}

.content           > .frag-miscbody,
.content           > .frag-overview,
.content           > .frag-renuminfo,
.content           > .frag-seal,
.content           > .frag-blockgroup,
.frag-slpoperation > p,
.frag-note         > div             > .frag-txt,
.frag-txt,
.frag-erratumnote,
.frag-formulablock > :first-child,
.frag-graphicblock > .children,
.frag-note         > *,
.frag-preamble     > .children,
.frag-tableabbrev  > :first-child,
.frag-note           .frag-clause    > .heading,
.frag-clause       > .children,
.frag-block
{ text-indent : 0pt !important; }

.frag-outline                   > .heading,
.frag-objectiveblock            > .heading,
.frag-subclausegroup            > .heading,
.frag-uncommenced               > .heading,
.content                        > .frag-head        > .heading.split,
.frag-note                        .frag-li          > .children,
.frag-entry                       .frag-li          > .children,
.frag-form                        .frag-li          > .children,
.frag-historicalnotes             .frag-li          > .children,
.frag-headingfloat              > .heading,
.frag-preamble                  > .heading,
/*deliberately overspecific*/
#fragview .frag-form            > .frag-subclause,
#fragview .frag-historicalnotes > .frag-subclause,
.frag-entry                       .frag-clause      > .heading,
.frag-form                        .frag-clause      > .heading,
.frag-historicalnotes             .frag-clause      > .heading,
.frag-clause                    > .heading,
.frag-entry                       .frag-clause      > .children,
.frag-form                        .frag-clause      > .children,
.frag-historicalnotes             .frag-clause      > .children,
.frag-plantable                   .frag-clause      > .children,
.frag-chapter                   > .heading,
.frag-subdivision               > .heading,
.frag-division                  > .heading,
.frag-part                      > .heading,
.frag-schedule                  > .heading,
.frag-subschedule               > .heading,
.frag-dictionary                > .heading,
.frag-dictionarypart            > .heading,
.frag-oldamendgroup             > .heading
{ text-indent:-17pt; }

.frag-sourceref {
    margin : 8pt 8pt 10pt 0pt;
    text-indent : 0pt;
    text-align : right;
}

.ListNumber {
    padding-right: 6px;
}

.load-more {
    text-align: center;
}

.load-more a {
    padding: 0;
    font-size: 12px;
    width: 100px;
    padding-top: 2px;
}

.leglist {
    margin-left: 40px;
    padding-bottom: 10px;
}

.nextHit, .prevHit {
    text-indent: 0;
}
