.subheader:not(:empty) {
    margin-bottom: calc(1rem) !important;
}

.page-header {
    height: auto;
}

.nav-menu li.active:not(.open)>a::before {
    color: #ffc241;
}

.panel-toolbar .btn-panel[data-action="panel-fullscreen"],
.panel-toolbar .btn-panel.js-panel-fullscreen {
    background: #1dc9b7;
}

.panel-toolbar .btn-panel[data-action="panel-collapse"],
.panel-toolbar .btn-panel.js-panel-collapse {
    background: #ffc241;
}

.subheader:not(:empty) {
    margin-bottom: calc(0.5rem) !important;
}

.bootstrap-select .dropdown-menu .dropdown-menu {
    -webkit-transform: scale(1);
    transform: scale(1);
    visibility: visible;
    opacity: 1;
}

a.btn>i.fal:not(:only-child) {
    margin-right: 5px;
}

.configurateur-select-card:hover {
    filter: grayscale(100%);
}

.mod-skin-dark:not(.mod-skin-light) .fc a {
    color: unset !important;
}

.table-hover tbody tr:hover {
    box-shadow: none;
    -webkit-box-shadow: none;
}

.table tr td:last-child {
    width: 15%;
}

#tableDocsChantier td:last-child,
#tableDocsAffaire td:last-child {
    width: 15%;
}

#tableDocsChantier td:last-child a,
#tableDocsAffaire td:last-child a {
    margin-right: 0.5em;
}

#tableDocsChantier td:last-child a:last-child,
#tableDocsAffaire td:last-child a:last-child {
    margin-right: 0;
}

#tableDocsChantier td i,
#tableDocsAffaire td i {
    margin-right: 0;
}

.page-logo img {
    width: auto;
    height: 45px;
}

.bootstrap-select .dropdown-menu .dropdown-menu {
    -webkit-transform: scale(1);
    transform: scale(1);
    visibility: visible;
    opacity: 1;
}

.factu-lines-table textarea {
    height: calc(1.47em + 1rem + 2px);
    min-width: 200px !important;
    resize: both;
}

.factu-lines-table input[type="number"] {
    min-width: 150px !important;
}

.factu-lines-table input[data-col="quantite"] {
    min-width: 70px !important;
}

.factu-lines-table .btn-remove-line-container {
    min-width: 20px !important;
}

@supports (position: sticky) {
    .sticky-top {
        z-index: 200 !important;
    }
}


.was-validated .form-control:valid,
.form-control.is-valid {
    padding-right: calc(1.27em + 0.5rem);
    background-size: calc(0.535em + 0.25rem) calc(0.535em + 0.5rem);
}

/*
*   Fix summernote : masquage de la plupart des elements du bloc colors
*/

.note-dropdown-menu .note-palette-title {
    display: none;
}

.note-dropdown-menu>.note-palette>div:nth-child(2) {
    display: none;
}

.note-dropdown-menu>.note-palette>.note-holder>div:nth-child(1) {
    display: none;
}

.note-dropdown-menu>.note-palette>.note-holder>.note-palette>div:nth-child(2) {
    display: none;
}

.note-dropdown-menu>.note-palette>.note-holder>.note-palette>.note-holder>div:nth-child(1) {
    display: none;
}

.note-dropdown-menu>.note-palette>.note-holder>.note-palette>.note-holder>div:nth-child(2) {
    display: none;
}

.note-dropdown-menu>.note-palette>.note-holder>.note-color-palette {
    display: none;
}

.note-dropdown-menu .note-holder .note-holder-custom {
    display: none;
}

.note-dropdown-menu .note-holder .backColorPalette {
    display: none;
}

.note-dropdown-menu .note-holder .note-palette {
    display: none;
}

.note-dropdown-menu .note-list {
    display: none;
}

.note-dropdown-menu {
    min-width: unset !important;
    text-align: center;
}


/* table.phase .sousetape{ zoom: 0.85; } */
table.phase .sousetape:first-child {
    box-shadow: inset 0 7px 9px -7px rgba(0, 0, 0, 0.4);
}

table.phase .sousetape-other {
    box-shadow: inset 0 -7px 9px -7px rgba(0, 0, 0, 0.4);
}

.bg-grey {
    background-color: #858585!important;
}

.bg-green {
  background-color: #c8ede6 !important; /* vert pâle */
}

/* aligner bouton + titre sur une seule ligne dans la colonne ressource */
.fc .fc-datagrid-cell-cushion .fc-chantier-wrap {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  white-space: nowrap;
}
.fc .fc-datagrid-cell-cushion .fc-chantier-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tooltip-chantier .tooltip-inner {
  max-width: 820px;     /* ajuste */
  white-space: normal;
  text-align: left;
  word-break: break-word;
}

/* colore la case d’entête du jour */
.fc .fc-col-header .fc-timeline-slot.overcap-label,
.fc .fc-col-header .fc-timeline-slot.overcap-label .fc-timeline-slot-cushion {
  background: #fe2501;      /* même rouge pâle que le fond des jours */
}

.required:not(.form-check-label):before {
    content: "\2000* ";
    color: red;
}

/* Désactive la couleur de fond par défaut sur les éléments actifs des dropdowns */
.bootstrap-select .dropdown-menu .dropdown-item.active,
.bootstrap-select .dropdown-menu .dropdown-item:active {
  background-color: transparent !important;
  color: inherit !important;
}
.bootstrap-select .dropdown-menu .dropdown-item.selected {
   background-color: #c8ede6!important; 
  color: #226b5d; 
}
.fc-capacity-badge { font-weight: 600; }
.fc-capacity-badge.is-ok   { color: #226b5d!important;  }   /* vert foncé */
.fc-capacity-badge.is-zero { color: #000!important;  }
.fc-capacity-badge.is-over { color: #b00000!important;  }


/* couleur texte selon le state */
.state-green { color: green !important; }
.state-orange { color: orange !important; }
.state-black { color: black !important; }

/* ligne légèrement rouge si dépassement d'heures */
.row-overlimit {
  background-color: rgba(255, 0, 0, 0.15) !important;
}
.row-inlimit {
  background-color: rgb(34, 107, 93,0.15) !important;
}