/* PDC COLORS */
:root {
  --pdc-grey: #dfdfdc;
  --pdc-grey-600: #e2e2df;
  --pdc-grey-700: #93938a;
  --pdc-grey-900: #40403b;
  --pdc-orange: #ee7060;
  --pdc-orange-700: #e83921;
  --pdc-blue-grey: #f4f6f9;
  --pdc-blue: #574b90;
  --pdc-blue-500: #776bb3;
  --pdc-blue-900: #302a51;
  --pdc-cyan-600: rgba(42, 123, 155, 1);
  --pdc-cyan-900: #0d2630;
  --green-success: #3e8e4f;
  --green-success-900: #255530;
}

/* LOGO */
/* Text brand hidden */
span.brand-text,
.brand-text {
  display: none !important;
}

/* Logo's position */
a.brand-link {
  display: flex;
  width: 100%;
  justify-content: center;
}

.brand-link .img-circle {
  border-radius: 0 !important;
}

.brand-link .elevation-3 {
  box-shadow: none !important;
}

.brand-link {
  background: white;
}

.brand-link .brand-image {
  opacity: 1 !important;
  margin-right: 0 !important;
}

.fa-sort-alpha-down {
  color: var(--pdc-grey-600);
}

.fa-sort-alpha-down:hover {
  color: var(--pdc-grey-700);
}

/* PDC COLORS APPLICATION */

/* Aside */
#jazzy-sidebar {
  background: var(--pdc-blue);
}

.nav-item .nav-link li p {
  color: white;
  opacity: 0.8;
}

#jazzy-tabs .nav-link {
  color: var(--pdc-orange) !important;
}

#jazzy-tabs .nav-link.active {
  color: var(--pdc-orange-700) !important;
}

/* .nav-item .nav-link.active{
                        background-color: var(--pdc-orange);
                    }

                    .nav-item .nav-link{
                        opacity: 1 !important;
                    } */

/* Proprerties of all nav-link items */
.sidebar .nav-sidebar .nav-link {
  color: white;
  opacity: 0.7;
  transition:
    opacity 0.2s ease-in-out,
    background-color 0.2s;
}

/* On hover: text opacity to 1 */
.sidebar .nav-sidebar .nav-link:hover {
  opacity: 1;
  color: #ffffff;
}

/* Active: backgroud orange */
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
  background-color: var(--pdc-orange) !important;
  opacity: 1;
}

.card {
  margin-bottom: 0 !important;
}

.btn-success,
.alert-success {
  background: var(--green-success) !important;
  border: var(--green-success) !important;
}

.btn-success:hover {
  background: var(--green-success-900) !important;
}

.field-last_name_display a {
  color: var(--pdc-grey-900) !important;
}

.btn-primary,
.btn-info {
  background-color: var(--pdc-orange) !important;
  color: white;
  border: var(--pdc-orange) !important;
}

.btn-primary:hover,
.btn-info:hover {
  background-color: var(--pdc-orange-700) !important;
}

#jazzy-actions .btn-info,
.login-box .btn-primary {
  background-color: var(--pdc-blue) !important;
  border: var(--pdc-blue) !important;
}

#jazzy-actions .btn-info:hover,
.login-box .btn-primary:hover {
  background-color: var(--pdc-blue-900) !important;
  border: var(--pdc-blue-900) !important;
}

.password-reset-link a,
.readonly a {
  color: var(--pdc-blue) !important;
}

.password-reset-link a:hover,
.readonly a {
  color: var(--pdc-blue-900) !important;
}

p.date {
  margin-bottom: 0px;
}

.datetimeshortcuts a {
  color: var(--pdc-grey-700) !important;
}

/* NEW USER GREEN BANNER */

/* Button close  */
.alert-dismissible .close {
  color: white !important;
  opacity: 0.7 !important;
}

.alert-dismissible .close:hover {
  opacity: 1 !important;
}

.alert-dismissible a.active,
.alert-dismissible a {
  color: white !important;
  font-weight: 600;
  text-decoration: none !important;
}

.alert-dismissible a.active:hover,
.alert-dismissible a:hover {
  text-decoration: underline !important;
}

/* INPUTS ICONS */

.change-related {
  display: none;
}

.delete-related {
  display: none;
}

.impersonation-button {
  display: block;
  width: 100%;
  text-align: center;
}

/* BADGES */

.badge-dark {
  background-color: var(--pdc-grey-700) !important;
}

/* MINOR CORRECTIONS */

/* On "User" section, when "Mes pilotes" is active: gap added between button "Rechercher" and "x Résultats" */
#changelist-search .form-group {
  gap: 10px;
}

/* dnone on "Note : l'heure du serveur précède votre heure de 1 heure." */
.timezonewarning {
  display: none;
}

/* help/error margin top removed to make it more clearly associated to its input */
.help-block {
  color: var(--pdc-orange);
  margin-top: 4px;
  font-size: 0.9em;
}

.help-block ul {
  margin-top: 0 !important;
}

/* TABLE ELEMENTS */
.card tr[role="row"] th a,
.card tr[role="row"] i,
.timeline a {
  color: var(--pdc-grey-900) !important;
}

.card tr[role="row"] th a:hover,
.card tr[role="row"] i:hover,
.timeline a:hover {
  color: black !important;
}

.breadcrumb-item a,
thead a,
thead span,
#result_list thead th .text span,
#changelist-form thead th a {
  color: white !important;
}

/* suppression de la x dans le tableau */
.fa.fa-times.float-right::before {
  display: none !important;
}

/* First line of tabs */
.table-responsive thead {
  background-color: var(--pdc-blue) !important;
}

/* Checkboxs */
input[type="checkbox"] {
  accent-color: #ee7060;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Input "checkbox" checked borders */
input[type="checkbox"] {
  border: 2px solid #574b90;
  background-color: #dfdfdc;
}

/* Ariane */
.container-fluid .breadcrumb-item a {
  color: var(--pdc-orange) !important;
}

/* Elements count at the bottom of the users list */
.dataTables_info {
  margin-top: 5px;
}

.select2-results__option--highlighted {
  background-color: var(--pdc-blue) !important;
}

.select2-results__option--highlighted:hover {
  background-color: var(--pdc-blue-900) !important;
}

.accent-primary .dropdown-item.active,
.accent-primary .dropdown-item:active {
  background-color: var(--pdc-blue) !important;
}

/* Tableau de bord links */
.table
  a:not(.dropdown-item):not(.btn-app):not(.nav-link):not(.brand-link):not(
    .page-link
  ):not(.btn) {
  color: var(--pdc-grey-900);
}

.table
  a:not(.dropdown-item):not(.btn-app):not(.nav-link):not(.brand-link):not(
    .page-link
  ):not(.btn):hover {
  color: black;
}

/* TINY MCE */
.tox-promotion,
.tox-statusbar__path-item,
.tox-statusbar__help-text,
.tox-statusbar__branding {
  display: none !important;
}

.tox-statusbar__right-container {
  display: flex;
  justify-content: center !important;
}

/* IMPERSONATION */
.impersonation-card {
  position: fixed;
  z-index: 10000;
  background-color: #8a1d60;
  border-radius: 5px;
}

#impersonation-card {
  bottom: 10px;
  left: 10px;
  padding: 20px;
}

#impersonation-debug {
  bottom: 2px;
  right: 10px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 5px;
}

.impersonation-card p {
  color: white;
  font-size: 16px;
  margin: 0;
}

.impersonation-card button {
  background-color: white;
  color: #0e4d0c;
  font-weight: bold;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  margin-top: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#impersonation-debug button {
  padding: 2px 5px;
  margin-top: 0px;
  font-size: 14px;
}

.impersonation-card a {
  color: var(--pdc-blue-900) !important;
}

.impersonation-card a:hover {
  text-decoration: underline;
}

/* External link */
#etoile_justice_external_link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--pdc-orange) !important;
}

#etoile_justice_external_link:hover {
  color: var(--pdc-orange-700) !important;
}

#etoile_justice_external_link i {
  font-size: 0.7em;
}

#leap-popup-trigger {
  cursor: pointer;
  margin-left: 5px;
}

#leap-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

#leap-popup img {
  width: 80vw;
  height: auto;
}

#leap-popup-close {
  position: absolute;
  right: 30px;
  top: 30px;
  height: auto;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

/* Calendrier des formulaires */

.calendarbox a {
  z-index: 3;
}

.calendarbox,
.clockbox {
  z-index: 3;
  color: #212529;
}

.calendarbox caption {
  caption-side: unset;
}

.calendarbox .calendarnav-previous,
.calendarbox .calendarnav-next {
  top: 12px;
}

.calendar caption,
p.calendar-cancel {
  background: linear-gradient(
    90deg,
    var(--pdc-cyan-600) 0%,
    rgba(87, 199, 133, 1) 50%,
    rgba(237, 221, 83, 1) 100%
  );
}

.calendarbox .calendar caption,
p.calendar-cancel a {
  color: var(--pdc-cyan-900) !important;
}

.calendar td a,
.timelist a,
.calendar-shortcuts a {
  color: var(--pdc-blue-900) !important;
}

.calendar td a:hover,
.timelist a:hover {
  color: white !important;
  background-color: var(--pdc-blue-900) !important;
}

a.inline-deletelink,
a.inline-deletelink:hover {
  border: 0;
  color: red !important;
  /* Set back to 1 after init by js */
  opacity: 0;
  background: white;
}

input.inline-deletelink-neighbour {
  float: right;
  margin: 10px;
}

a.inline-deletelink .fas {
  margin-right: 4px;
}

a.inline-deletelink:hover {
  text-decoration: underline;
}
