* {
/*     --app-color : #31435E;  */
    --primary-bright-color:#0aa89e;
    --primary-light-color:#caf0ee;
    --default-background-color: #F2F3F3;
    --default-text-color: #313534;
    --header-text-color: white;
    --header-background-color: #242a31;
    --header-height: 64px;
    --left-menubar-width-closed: 65px;
    --left-menubar-width-open: 240px;
    --left-menubar-background-color: #fff;
    --left-menubar-text-color: #535858;
    --colorful-page-wrapper-background-color : #F2F2F3;
}

html {
    font-size: 14px;
}
body {
    font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    background: var(--default-background-color);
}
/*
.dropdown {
    padding-right: 20px;
}
.dropdown-toggle {
    cursor: pointer;
}
.dropdown-menu > li > a:focus, .dropdown-menu > li > a:hover {
    background-color: inherit;
    opacity: .8;
}
#header .dropdown-menu {
    top: 90%;
    right: -20px;
    left:inherit;
}
#header .open .dropdown-menu {
    display: block;
}
*/

/* header */

#header {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1005;
    height: var(--header-height);
    background: var(--header-background-color);
    color: var(--header-text-color);
    -webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.33);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.33);
}

.left-menubar-toggle {
    padding: 0 10px;
}

.headerbar-left, .headerbar-center, .headerbar-right {
    height: var(--header-height);
    display: -webkit-flex;
    display: flex;
    align-items: center;
}

.headerbar-right {
    -webkit-flex-direction: row-reverse;
    flex-direction: row-reverse;
}
.header-fixed #header {
    position: fixed;
}
.headerbar-left .header-nav {
    margin-left: 24px;
}

.header-nav, .header-nav ul {
    margin: 0 12px;
    padding-left: 0;
    list-style: none;
}
.header-nav-profile {
    background-color: #444;
    height: var(--header-height);
    padding: 10px 15px;
}

#left-menubar a, header a {
    color:inherit;
}

/* leftbar menu */

#left-menubar {
    position: absolute;
    left: 0;
    top: var(--header-height);
    padding: 0 10px 0 15px;
    color: var(--left-menubar-text-color);
    background-color: var(--left-menubar-background-color);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.33);
    z-index: 1004;
    width: var(--left-menubar-width-closed);
}

#left-menubar .dropdown-menu {
    border: none;
}
/*
#left-menubar .dropdown-menu > li > a {
    white-space: normal;
    padding: 3px 0;
}
*/
#left-menubar span {
    margin-left: 5px;
    /* white-space: nowrap; */
    padding: 2px 5px 2px 15px;
}

#left-menubar a {
    padding: 0;
}

#left-menubar ul {
    padding:0;
    position: relative;
}
#left-menubar ul > li span {
    display:none;
}

#left-menubar li {
    list-style: none;
    padding: 5px 0;
}

#left-menubar ul ul {
    background-color: var(--primary-light-color);
    padding: 3px;
    margin-left: 2rem;
    width: 85%;
}
#left-menubar li li {
    padding: 0;
}

#base:not(.left-menubar-fixed) #left-menubar li:not(.open) ul ul {
    display: none;
}
#base.left-menubar-fixed #left-menubar {
    width: var(--left-menubar-width-open);
}
#left-menubar:hover {
    width: var(--left-menubar-width-open);
}
#left-menubar:hover ul > li span , #base.left-menubar-fixed #left-menubar ul > li span {
    display: inline-block;
}

#base.left-menubar-fixed #left-menubar li span {
    display: inline-block;
}
#left-menubar i {
    font-size: 1.5rem;
    padding: 1rem 0;
}

#left-menubar li ul > li::before {
    content: "-";
    left: .5em;
    position: absolute;
    display: inline;
    width: 1em;
    /*border-left: 1px dashed rgba(12, 12, 12, 0.3);
    border-bottom: 1px dashed rgba(12, 12, 12, 0.3);*/
    z-index: 1;
    height: 10px;
}

/* contenu */
#base {
    overflow: hidden;
    padding-top: var(--header-height);
    padding-left: var(--left-menubar-width-closed);
    width: 100%;
    min-height: 100%;
}
#base.left-menubar-fixed {
    padding-left: var(--left-menubar-width-open);
}

#content {
    padding: 2rem;
    margin: auto;
    position: relative;
    width: 90%;
    left: 0;
}

/* panel */
.panel {
    padding: 1rem;
}
.panel-body {
    padding: 0px;
}

/*  card */
.card {
    margin: 1em;
    padding: 1em;
    position: relative;
    background-color: white;
    color: var(--default-text-color);
    border-radius: 2px;
    -webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.33);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.33);
}

.card-head {
    font-size: 1.5rem;
    position: relative;
    padding: 4px 1em;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    border-radius: 2px 2px 0 0;
    background-color: var(--primary-bright-color);
    border-color:  var(--primary-bright-color);
    color: white;
}

.card-head-right {
    float: right !important;
    display: flex;
    flex-direction: row-reverse;
}

.card-body {
    padding: 0 2rem 1rem; /* padding top 0 pour pdf */
    position: relative;
}

.card-head a:not(.btn) {
    color: inherit;
}

/* nav tab */
.nav-tabs > li > a {
    margin-right: 2px;
    line-height: 1.846153846;
    border: none;
    color: inherit;
    opacity: 0.90;
    font-weight: 500;
    text-transform: uppercase;
}
.nav-tabs > li.active > a {
    background-color: transparent;
}
.nav-tabs .active, .tab-content .active {
    background-color: #F2F2F3;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
}
.tab-content .tab-pane {
    padding: 1.5rem;
}

.tab-content table tbody {
    background-color: white;
}

table.dataTable.no-footer {
    border-bottom: inherit;
}

dl, ol, ul {
    margin-bottom: 0;
}
label {
    font-weight: 400;
/*    vertical-align: top; */
    margin-bottom: 0;
    margin-left: 5px;
    display: inline-block; /* _reboot.css pour generation pdf */
}

.col-1 > label, .col-2 > label, .col-3 > label, .col-4 > label, .col-5 > label, .col-6 > label, .col-7 > label, .col-8 > label, .col-9 > label, .col-10 > label, .col-11 > label, .col-12 > label {
    width:100%;
}
input[type="radio"] {
    margin-top: 0; /* annule règle bootstrap */
}
label input[type=checkbox] {
    margin-right: 5px;
}
label.col-1, label.col-2, label.col-3, label.col-4, label.col-5, label.col-6, label.col-7, label.col-8, label.col-9, label.col-10, label.col-11, label.col-12 {
    margin-left: 0;
    display: block;
}
.label-block label {
    display: block;
}
.align-with-radio {
    position: relative;
    top: 4px;
}
.btn {
    font-size: 14px;
    text-transform: uppercase;
}

.btn-default {
    background-color: #ededed;
    border-color: #ededed;
    color: #222;
}
.btn-white {
    background-color: white;
    border-color: white;
    color: #222;
}
.btn-primary a {
    color: #fff;
}
.btn-primary-bright {
    background-color: var(--primary-bright-color);
    border-color:  var(--primary-bright-color);
    color: #000;
}
.btn-primary-light {
    background-color: var(--primary-light-color);
    border-color:  var(--primary-light-color);
    color: #000;
}
.btn-primary-bright a {
    color: #313235;
}

.border-radius-2 {
    border-radius: 2px;
}
.nowrap {
    white-space: nowrap;
}

.align-right {
    text-align: right;
}
.text-hightlight {
    color: var(--primary-bright-color);
    background-color:  var(--primary-light-color) ;
    padding: 2px;
}
.text-lg {
    font-size: 125%;
}
.text-muted {
    color: inherit;
    opacity: 0.4;
}
.text-white {
    color: white;
}
.text-red {
    color: red;
}
.text-grey {
    color: #ccc;
}
.text-green {
    color: green;
}
.text-primary-bright {
    color:var(--primary-bright-color);
}
.text-primary-light {
    color:var(--primary-light-color);
}
.text-default-color {
    color:var(--default-text-color);
}
/*
.left-menubar-visible #left-menubar {
    width: var(--left-menubar-width);
}*/

.no-padding, table.no-padding td, tr.no-padding td {
    padding: 0 !important;
}
.no-padding-left {
    padding-left: 0px !important;
}
.padding-top-5 {
    padding-top: 5px !important;
}
.padding-bottom-5 {
    padding-bottom: 5px !important;
}
.padding-sides-25 {
    padding: 0 25px;
}
.padding-small {
    padding: 1rem !important;
}
.padding-tiny {
    padding: 5px !important;
}
.padding-left-15 {
    padding-left: 15px !important;
}
strong, .text-bold {
    font-weight: bold;
}
.text-normal {
    font-weight: normal;
}

textarea.form-control {
    background: #FAFAFA;
}

.border {
    border: solid 1px var(--default-text-color);
}
.row {
    margin: 0;
    width:100%;
}

.full-width {
    width: 100%;
}
.width-90 {
    width: 90%;
}
.width-10 {
    width: 10%;
}
.width-50 {
    width: 50%;
}
.tooltip {
    z-index: 0;
    font-size: inherit;
}
h1,h2,h3,h4,p {
    margin:.8em 0 0 0;
}

.margin-left {
    margin-left: 40px !important;
}

.margin-left-25 {
    margin-left: 25px !important;
}
.margin-left-20 {
    margin-left: 20px !important;
}
.margin-left-15 {
    margin-left: 15px !important;
}

.margin-right {
    margin-right: 40px !important;
}
.margin-right-20 {
    margin-right: 20px !important;
}
.margin-right-10 {
    margin-right: 10px !important;
}

.margin-top {
    margin-top: 20px !important;
}
.margin-top-5 {
    margin-top: 5px !important;
}
.margin-top-10 {
    margin-top: 10px !important;
}
.margin-top-25 {
    margin-top: 25px !important;
}
.margin-top-40 {
    margin-top: 40px !important;
}
.margin-bottom {
    margin-bottom: 20px !important;
}
.margin-bottom-10 {
    margin-bottom: 10px !important;
}
.no-margin-top {
    margin-top: 0px !important;
}
.no-margin-bottom {
    margin-bottom: 0px !important;
}
.no-margin {
    margin: 0 !important;
}

.margin-10 {
    margin: 10px !important;
}
.margin-15 {
    margin: 15px !important;
}
.background-white, .bg-white, tr.bg-white td, tr.bg-white th {
    background-color: white;
}
.background-transparent, .bg-transparent, tr.bg-transparent td, tr.bg-transparent th {
    background-color: transparent !important;
}
.background-grey, .bg-grey , tr.bg-grey td, tr.bg-grey th {
    background-color: #ddd;
}
.background-primary-light , .bg-primary-light  {
    background-color: var(--primary-light-color);
}
.background-primary-bright , .bg-primary-bright  {
    background-color: var(--primary-bright-color);
}

.style-danger, .style-info, .style-warning  {
    padding: 1em;
    border-radius: 5px;
}
.style-danger {
    background-color: #f2dede  !important;
    color: #D9534F  !important;
}
.style-info {
    background-color: #d9edf7  !important;
}
.style-warning {
    background-color: #faebcc !important;
}
.style-success {
    background-color: #dff0d8 !important;
}
.text-success {
    color: #5cb85c;
}
.text-warning {
    color: #f0ad4e;
}
.text-info {
    color: #5BC0DE;
}
.text-danger {
    color: #D9534F;
}
.text-italic {
    font-style: italic;
}
.text-accent-light {
    color: #ffe494;
}
.small, small {
    font-size: 75%;
}
.fa-male {
    color: #5bc0de;
}

.fa-female {
    color: hotpink;
}

.fa-1x5 {
    font-size: 1.5em;
}
.fa-1x2 {
    font-size: 1.2em;
}

.login-block {
    position: relative;
    padding: 20px 20px 0 20px;
    margin: 40px auto;
    background: white;
    border-radius: 11px;
    width: 450px;
}

.login-block header {
    padding: 20px 10px 10px;
    text-align: center;
    border-bottom: 0;
    font-size: 1.9em;
    font-weight: 300;
    margin: 0 -20px 10px -20px;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    color: #555;
}

.login-block label input {
    background-color: var(--default-background-color);
}

.login-block label {
    opacity: 0.5;
    display: block;
}

.login-block footer {
    margin: 0 -20px;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
    padding: 20px;
}

.align-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.align-middle {
    vertical-align: middle !important;
}

.btn-success[disabled]:hover {
    background-color: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.15);
}

.btn.disabled, .btn[disabled] {
    opacity: .3;
}

.colorful-page-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0;
    background-color: var(--colorful-page-wrapper-background-color);
}

.border {
    border: solid 1px var(--default-text-color);
}

.border-radius-2 {
    border-radius: 2px;
}
.no-border , .no-border td {
    border: none;
}

.table {
    margin: 2em 0;
}

table a {
    color: inherit;
}

.table-bordered .no-border-left {
    border-left-width: 0px !important;
}
.table-bordered .no-border-right {
    border-right-width: 0px !important;
}

.table > caption + thead > tr:first-child > td, .table > caption + thead > tr:first-child > th, .table > colgroup + thead > tr:first-child > td,
.table > colgroup + thead > tr:first-child > th, .table > thead:first-child > tr:first-child > td, .table > thead:first-child > tr:first-child > th {
    border-top: 1px solid #ddd;
}

.table thead td {
    font-weight: bold;
}
.table td, .table th {
    padding: .4rem;
}
.well {
    min-height: 20px;
    padding: 1.7em;
    margin-top: 10px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
}

.well > p:first-child {
    margin-top: 0 !important;
}
.ui-autocomplete { /* jquery-ui autocomplete menu with vertical scrollbar */
    max-height: 250px;
    overflow-y: auto;
}

.inline-block {
    display: inline-block;
}
.block {
    display: block;
}
.inline {
    display: inline;
}
.fixed {
    position: fixed;
}
.relative {
    position: relative;
}
.line-height-2 {
    line-height: 2em;
}

/* datepicker*/
.datepicker.datepicker-dropdown.dropdown-menu {
    background-color: white;
}
.date input {
    width: 10em;
    display: inline-block;
}
.input-group-addon {
    width: 3em;
    display: inline-block;
    text-align: center;
}

.hidden {
    display:none;
}

/* pour commentaires et zone préciser dans affichage des formulaires */
.cadre {
    border: 1px solid #E1E1E1;
    padding: 10px;
    min-height: 40px;
}

.badge {
    display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    line-height: 1;
    vertical-align: baseline;
    white-space: nowrap;
    text-align: center;
    border-radius: 10px;
    background-color: var(--primary-bright-color);
}
/* summernote */
.note-editor .note-editing-area {
    border: 1px solid grey;
}

#record-btn {
    position: fixed;
    bottom: 30px;
    right: 5rem;
}

.no-page-break {
    page-break-inside: avoid;
}
.no-page-break-after { /*  ne fonctionne pas */
    break-after: avoid-page;
}
.no-page-break-before { /*  ne fonctionne pas */
    break-before: avoid-page;
}

input:invalid {
    box-shadow:0 0 0px transparent;
}
.alert-info, .alert-danger {
    padding: 3px 10px;
    margin-top: 10px;
}

.stemValue {
    /* pour completion phpstorm*/
}

/* formAutoAndControl debug display  */

form label.showStemValueId::before {
    content: attr(data-before);
    font-size: .9em;
    position: absolute;
    top:-15px;
    background-color: white;
    color: red;
}

form label.showNames::before  {
    content: attr(data-before);
    font-size: .9em;
    position: absolute;
    left:-25px;
    background-color: white;
    color: saddlebrown;
}
.force-hide {
    display: none;
}