@import "css/jquery.autocompleter.css";
body {
    padding-top: 47px;
    font-family: Arial, Sans-Serif;
    font-size: 100%;
}

p {
    margin-bottom: 0.2em;
}

@media(max-width: 992px) {
    .sidebar {
        display: none;
    }
}

.nav-link {
    padding: 0.1em 0 0.1em 0.5em;
    font-size: 0.8em;
}

.navbar {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}

.navbar.fixed-top{
    height: 40px;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}
 h1.niv1 , .niv1.h1{
    font-size: 1.5em;
    padding-left: 0em;
}

 h2.niv2, .niv2.h2{
    font-size: 1.3em;
    padding-left: 8px;
}
 h3.niv3, .h3.niv3  {
    font-size: 1.1em;
    padding-left: 16px;
}
 h4.niv4, .h4.niv4 {
    font-size: 1em;
    padding-left: 24px;
}
 h5.niv5 , .h5.niv5 {
    font-size: 0.9em;
    padding-left: 32px;
}
 h6.niv6, .h6.niv6 {
    font-size: 0.85em;
    padding-left: 40px;
}

.niv7>*{
    padding-left: 48px;
}

.table-of-contents {
    font-size: 10pt;
}


.table-of-contents, .variables_list {
    overflow-y: auto;
}

.all-copy{
    user-select: all;          /* Likely future */
}


.table-of-contents a {
    font-size:0.9em;
    font-weight: normal;
    padding-top: 0em;
    padding-bottom: 0em;
}
.table-of-contents .niv1,  .table-of-contents .niv3 {
    font-size:0.92em;
    font-weight: normal;
    padding-top: 0em;
    padding-bottom: 0em;
}
.table-of-contents .niv2 {
    font-size:0.9em;
    font-weight: normal;
    padding-left: 1em;
    padding-top: 0em;
    padding-bottom: 0em;
}
.table-of-contents .niv3 {
    font-size:0.9em;
    font-weight: normal;
    padding-left: 1.5em;
    padding-top: 0em;
    padding-bottom: 0em;
}
.table-of-contents .niv4 {
    font-size:0.9em;
    font-weight: normal;
    padding-left: 2em;
    padding-top: 0em;
    padding-bottom: 0em;
}
.table-of-contents .niv5 {
    font-size:0.85em;
    font-weight: normal;
    padding-left: 2.5em;
    padding-top: 0em;
    padding-bottom: 0em;
}

.table-of-contents .niv1 + nav.nav.nav-pills.flex-column{
    display: none;
}

.table-of-contents .niv1.active + nav.nav.nav-pills.flex-column {
    display: block;
}

.table-of-contents .niv2 + nav.nav.nav-pills.flex-column{
    display: none;
}

.table-of-contents .niv2.active + nav.nav.nav-pills.flex-column {
    display: block;
}

.table-of-contents .niv3 + nav.nav.nav-pills.flex-column{
    display: none;
}

.table-of-contents .niv3.active + nav.nav.nav-pills.flex-column {
    display: block;
}


.table-of-contents .niv4 + nav.nav.nav-pills.flex-column{
    display: none;
}

.table-of-contents .niv4.active + nav.nav.nav-pills.flex-column {
    display: block;
}




#ressource_form p {
    width: 100%;
    display: flex;
}
#ressource_form p label{
    flex: 0.2;
}
#ressource_form p input{
    flex: 0.8;
}


.modal .modal-dialog.modal-lg .modal-content{
    width: 871px !important;
}

#form_recherche {
    position: relative;
}

.masquer_numero {
    font-weight: lighter;
    font-style: italic;
}

.django-ckeditor-widget, div#cke_id_ckhtml {
    width: 100% !important;
}

.pointer {
    cursor: pointer;
}


.line-through {
    text-decoration: line-through !important;
}


#form_hypotheses form .row>div , #form_lots form .row>div , #form_references form .row>div {
    padding: 0;
}

.form_item {
    height: 2.1em;  /* prevent collapsing of line while reloading new form */
}
.border-red {
    border: 1px solid red;
}
.border-yellow {
    border: 1px solid yellow;
}


#message-wrapper {
    position: fixed;
    top: 2em;
    left: 0;
    width: 100%;
    z-index: 10000;
}
#message {
    margin: 0 auto;
}

.versions {
    cursor: pointer;
    width: 92%;
    z-index: 10000;
    background-color: white;
    border: 1px solid grey;
    float: right;
}

.limit-height-40vh {
    height:40vh;
    overflow-y: scroll;
}

[contenteditable]:focus {
    outline: 1px solid red;
}

[contenteditable="true"]:hover {
    cursor: pointer;
    background-color: #eaeaea;
}



html body h1 {
    font-size: 1.5em;
    text-transform: uppercase;
    font-weight: bold;
}
html body h2 {
    font-size: 1.3em;
    font-weight: bold;
    text-transform: uppercase;
}

html body h3 {
    color: #4c4c4c;
    font-weight: bold;
    font-size: 1.2em;
}

html body h4 {
    font-size: 1em;
    font-weight: bolder;
    color: #555555;
}

li > p {
    margin: 0px;
}

p {
    margin: 0.2em;
}

hr {
    border-color: lightgrey white white white;
    margin: 0.1em;
}

.paragraphe-row h1, .paragraphe-row h2, .paragraphe-row h3, .paragraphe-row h4, .paragraphe-row h5, .paragraphe-row h6 {
    display: inline;
}

#rechercher {
    line-height: 1px;
    margin-top: 2px;
}

#doccontent{
    font-size: 10pt;
}

div.masked {
    display: block;
}

#bordereau{
    font-size: 12pt;
}

/*
#cover {
    margin:auto;
    width:21cm;
    height:29.7cm;
}
*/

/* TEST A4 inline */
@media screen {
    .A4 {
        width: 21cm;
        /*height: 29.7cm;*/
        padding: 10px 25px;
        margin-bottom: 0.5cm;
        box-shadow: 0 0 0.5cm rgba(0, 0, 0, 0.5);

        box-sizing: border-box;
    }
    .docsidebar {
        margin: 0 auto;
        margin-bottom: 0.5em;
        box-shadow: 0 0 0.5cm rgba(0, 0, 0, 0.5);
        background-color: white;
        box-sizing: border-box;
        padding: 0;
    }

    #bordereau{
        font-size: 10pt;
    }

    .ressource.masked .row.ressource .A4 {
        background-color: #dddddd;
    }


}

@media print {

    .btn-sidebar-left, .btn-sidebar-right {
        display: none;
    }
}

.ressource_content.MOD {
        background-color: #fcf2f2;
        color: #484d38;
    }

.nbp {
    font-size:xx-small;
}

.accords_parties{
    margin-top: 1em;
    text-align: center;
    page-break-inside: avoid;
}
.bloc_signature {
    width:15cm;
    height: 3cm;
    margin: 0 auto 2em auto;
    border: 1px solid lightgrey;
    font-size: xx-small;
}

/* Tree view vueJS */

.opened:before {
    content: '-';
}
.not-opened:before {
    content: '+';
}
.has_children:hover {
    background-color: lightgrey;
}

table.pvtUi {
    font-size: 0.8em;
}

/* Pivot table */
table.pvtUi  td.pvtVal , table.pvtUi td.pvtTotal , table.pvtUi td.pvtGrandTotal{
    font-size: 1em;
}
th.pvtRowLabel {
    vertical-align:top;
}

th.pvtTotalLabel.pvtColTotalLabel, td.pvtGrandTotal {
    /* TODO Find a better way to hide grand total */
    display: none;
}

td.pvtTotal.rowTotal {
    text-align: left;
}


/* quantitaifs vueJS*/
#quantitatif input {
    border: 0px;
    width: 100%;
    text-align: center;
}
#quantitatif input {
    border: 0px;
    width: 100%;
    text-align: center;
}