/* Thème personnalisé UdL 2024 09 10
   https://puq-wiki.ad.universite-lyon.fr/wiki/support_n2/infrastructure/cas/theme
*/


/* import de la feuille de style par défaut */
@import url(/cas/css/cas-a90aca7e2afb259734284377211db332.css);

@import url(https://fonts.googleapis.com/css?family=Lato:700,400,300,100|Signika:400,700|Courgette);

/* interligne pour conserver l'aspect de CAS v5 UdL */
html {
  /* line-height: 1.5;*/
  -webkit-text-size-adjust: 100%;
}

body {
/*  display: flex;
  flex-direction: column;
  justify-content: space-between;
*/
/*  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
*/
  background: #ffffff;
/*  background-size: cover;
*/
  overflow: unset;

}

header {
  margin: 0px;
  margin-bottom: 0px;
  padding: 30px;
/*  background-color: #1d2d42;*/
/*   background-color: #ff0000;*/
  border-radius: 0px 0px 10px 10px;
  overflow: hidden;
}

#main-content {
  margin-right: 10px;
  margin-left: 10px;
  margin-top: 17px;
  background-color: transparent;
}

/* Suppression shadow-box sur div id=content" */
div#content {
  box-shadow: unset;
}

.containerslogos {
  overflow: auto; /* Pour contenir les floats */
  width: 100%;
}

/* Logo Udl v5 like - ATtention sur le site en v5, l'image est croppée sur la droite */
.image-gauche {
  float: left;
  margin-right: 10px; /* Espace entre les images */
  width: 203px;
}

.image-droite {
  float: right;
  margin-left: 10px; /* Espace entre les images */
}

.mdc-elevation--z4 {
  box-shadow: unset;
}

/* personnalisation v5 like de l'entête Authentification */

.bkv5 {
  text-align: center;
  padding-top: 20px;
  background-color: #d5d5d5;
  margin-bottom: -30px;
  margin-bottom: 30px;
  font-weight: 500;
  padding-bottom: 28px;
}

/* Champs username et password */

.my-3 {
  margin-bottom: -6.5px !important;
  padding-left: 29px;
  padding-right: 29px;
}



/*
.cas-logo {
  float: right;
  width: 119px;
  height: 60px;
  background: url(/cas/themes/udl/images/cas-logo-da0f65648a95f6a278fca5afd64ef0c6.png) no-repeat;
  text-indent: -999em;
  color: white;
}
*/

/* Modifications typos texte pour conserver l'aspect de CAS v5 UdL */
/*
p {
  text-align: justify;
  padding-left: 23px;
  font-family: Verdana;
  font-size: 14px;
  padding-right: 30px;
  margin: 7px;
}
*/
p {
  text-align: justify;
  padding-left: 30px;
  font-family: Verdana;
  font-size: 14px;
  padding-right: 30px;
  margin-top: 12px;
  line-height: 20px;
  text-align: justify;
}

a {
    color: #337ab7;
    text-decoration: none;
}

/* box authentification v5 like */
.text-center {
  text-align: center;
  border-radius: 4px 4px 0px 0px;
}

/*
# Suppression ombre sur div id=content
div#content {
    box-shadow: 1px 1px 3px #888;
}
*/

/*
.banner {
  padding-top: unset;
  padding-bottom: 0em;
}
*/

/*
.banner-info {
  background-color: #ff0000;
}
*/

.mdi-login::before {
    /*content: "\F0342";*/
    /*On enlève le petit îcône de la porte entre la description du service et le formulaire de login*/
    content: unset;
}

.mdc-typography {
  font-family: Verdana, Roboto, sans-serif;
  font-size: 11px;
}

/* Espace v5-like entre top-app-bar et main-content */
.py-4 {
  padding-top: 0.2rem !important;
  padding-bottom: 0.2rem !important;
  margin-top: unset;
}

/*
.mb-4 {
  margin-bottom: 0rem !important;
}
*/

/* Couleur de fond pour conserver l'aspect de CAS v5 UdL
   Position unset
*/
/*
.mdc-top-app-bar--fixed-adjust {
  padding-top: 0px;
}
*/

/* Couleur et tuning de la top-app-bar */
.mdc-top-app-bar {
  background-color: #1d2d42;
  color: white;
  display: flex;
  flex-direction: column;
  position: unset;
  justify-content: space-between;
  box-sizing: border-box;
  z-index: 4;
  margin: auto;
  max-width: 930px;
  /*height: 160px;*/
}


/* On fixe une hauteur raisonnable du bandeau pour conserver l'aspect de CAS v5 UdL */

.mdc-top-app-bar__row {
  display: unset;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: unset;
}


/* Divers tuning */

.mdc-drawer-app-content {
  flex: auto;
  overflow: unset;
  position: relative;
/*  margin-left: 2%;
  margin-right: 2%;
*/
}


/* on garde un padding-top raisonnable pour conserver l'aspect de CAS v5 UdL */
/*
.mdc-top-app-bar--fixed-adjust {
  padding-top: 0px;
}
*/

/* On fixe la largeur du container pour conserver l'aspect de CAS v5 UdL */
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    --bs-gutter-x: 0rem;
    --bs-gutter-y: 0;
    width: 930px;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-right: auto;
    margin-left: auto;
}


/* Pour pas que le logo cas se barre à droite en dehors de l'écran */
.container-fluid {
    width: unset;
}


/*
  @media (min-width: 1200px)
*/

/*
.login-section {
  border-right: 1px solid rgba(0, 0, 0, .2);
  border-right: var(--cas-theme-border-light, 1px solid rgba(0, 0, 0, .2));
  padding: 2rem 16rem;
    padding-top: 0.5rem;
    padding-right: 2rem;
    padding-bottom: 1rem;
    padding-left: 2rem;
  flex: 1 1 auto;
}
*/


/* Padding v5-like au dessus de "Authentification" */
.login-form {
/*  border-radius: 10px;*/
/*  width: 930px;*/
  padding: 20px;
}

/* On fixe la largeur du formulaire à 400px */
.m-auto {
  margin: auto !important;
  width: 400px;
  background-color: white;
}

/* Désactivation du padding pour conserver l'aspect de CAS v5 UdL */

.mdc-top-app-bar__section {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  padding: unset;
  z-index: 1;
}

/* Espace entre top-app-bar et formulaire */
.mdc-top-app-bar--fixed-adjust {
  padding-top: 0px;
}


/* On fixe la hauteur du logo UdL pour éviter l'antialiasing */
/*
.cas-brand {
  width: auto;
}
*/

/* Création d'une nouvelle classe via le fragment header.html pour fixer la taille du logo CAS */
/*
.cas-true-logo {
  height: 40px;
}
*/

/* Typo v5-like de "Authentification" */
.mdc-typography {
  font-size: 20px;
  font-family: 'Lato', sans-serif;
}


/* taille police du  bouton Se Connecter */


.mdc-button .mdc-button__label {
/*  position: relative;
*/
  font-size: 1.10rem;
  padding-right: 1px;
}

/* Couleur du bouton "Se connecter" pour conserver l'aspect de CAS v5 UdL */
/*
.mdc-button--raised {
  margin-right: 4px;
  background-color: #70ba61;
  height: 44px;
  padding-top: 3px;
  background-color: #70ba61;
}
*/

/* submitButton */

#submitBtn {
  width: 85%;
  margin-left: 30px;
  margin-right: 30px;
  padding-top: 1px;
  font-family: Verdana;
  letter-spacing: 0.001em;
  box-shadow: unset;
  height: 47px;
}

/* radius et suppression de l'ombre sur les boutons*/
.mdc-button--raised:not(:disabled, .reveal-password) {
  filter: unset;
  background-color: var(--cas-theme-primary, #153E50);
  cursor: default;
  border-radius: 4px 4px 4px 4px;
}

/* Suppression des animations quand on hover le bouton */

.mdc-button--raised:not(:disabled, .reveal-password):hover, .mdc-button--raised:not(:disabled, .reveal-password):focus-visible {
  transform: unset;
  background-color: #56a147;
}

.mdc-button--raised:hover {
  --mdc-elevation-box-shadow-for-gss: unset;
}


.mdc-button--raised {
  --mdc-elevation-box-shadow-for-gss: unset;
}

/* Le bouton par défaut de reveal password est décalé dans thymeleaf, ci-dessous le workaround, voir aussi loginform.html */
.password-wrapper {
    position: relative;
}

.password-wrapper .reveal-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0;
    background: none;
    border: none;
}

/*
.mdc-button--raised:not(:disabled) {
  margin-right: 4px;
  background-color: #70ba61;
  width: 85%;
  margin-left: 30px;
  margin-right: 30px;
}
*/

/* REVOIR CE TRUC CI-DESSOUS A PROPOS BUG CHROME IOS !!! */
/* hauteur des champs de saisie username et mdp */
/*
.mdc-text-field--outlined {
  height: 50px;
  overflow: visible;
}
*/

/* obscur tuning (bouton afficher le mdp) */
/*
form button i.mdi {
  margin-right: unset;
}
*/

/*
.mdc-icon-button {
  font-size: unset;
}
*/

/*
.mdc-input-group .mdc-input-group-prepend, .mdc-input-group .mdc-input-group-append {
  height: 50px;
}
*/

/* AccountManager : mode en colonnes dégueulasse */
/*
.col-lg-2 {
  width: unset;
}
*/

/*
.mw-25 {
  max-width: unset;
}
*/

/* radius, couleur, suppression des ombres etc. de la mdc-card*/

.mdc-card {
  border-radius: 10px;
  background-color: var(--mdc-theme-surface, #fff);
  position: relative;
  box-shadow: unset;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: #efefef;
}

.mt-2 {
  font-family: Verdana;
  font-size: 14px;
  margin-top: 2px;
  padding-left: 22px;
  padding-right: 30px;
  padding-top: 9px;

}

/* largeur de la grande box gris clair du formulaire */
main:has(.d-flex > section:only-of-type) {
  max-width: unset;
}


:root {
  --mdc-text-button-label-text-color: #f7f7f7;
  --mdc-shape-small: 4px;
  --mdc-theme-body: rgb(27, 39, 51);
  --mdc-theme-error: #6a6a6a;
  --cas-theme-primary: #70ba61;
  --cas-theme-button-bg-hover: #56a147;
  --cas-theme-primary-bg: rgba(21, 62, 80, 0.2);
  --cas-theme-button-bg: #26418f;
  --cas-theme-button-bg-lite: #1e78d0;
  --cas-theme-primary-light: #006d85;
  --cas-theme-secondary: #018077;
  --cas-theme-success: #74C163;
  --cas-theme-danger: #58151c;
  --cas-theme-danger-bg: #f8d7da;
  --cas-theme-warning: #664d03;
  --cas-theme-warning-bg: #fff3cd;
  --cas-theme-border-light: 1px solid rgba(0, 0, 0, .2);
  --mdc-theme-primary: var(--cas-theme-primary, #153e50);
  --mdc-typography-font-family: "Ubuntu", "Open Sans", Roboto, Arial, sans-serif;
  --navbar-width: 256px;
  --navbar-width-min: 80px;
  --navbar-dark-primary: #18283b;
  --navbar-dark-secondary: #2c3e50;
  --navbar-light-primary: #f5f6fa;
  --navbar-light-secondary: #8392a5;
}

/*Pour que Palantir passe en plein écran*/
/*
.mdc-card {
position: relative;
margin-left: 0;
width: 100vw;
left: calc(-50vw + 50%);
}
*/

/* footer */

/* Suppression couleur background dans le footer */
.cas-footer {
  background-color: unset;
  color: lightgray;
  font-size: 14px;
  font-family: Verdana, sans-serif;
}

/* Alignement à gauche du powered by comme sur la v5 */
.px-3 {
  padding-right: 0rem !important;
  padding-left: 0rem !important;
}

.cas-footer a {
  color: lightgray;
}

/* Message d'erreur banner-danger */
.banner-danger {
  border-color: #b00020;
  border-color: var(--cas-theme-danger, #b00020);
  color: var(--cas-theme-danger, #58151c);
  background-color: var(--cas-theme-danger-bg, #f8d7da);
  padding-left: unset;
  font-size: 10px;
  margin: 29px;
}

/* Message d'info banner-info */
.banner-info {
  scale: 0.85;
}

/* MFA Trusted Devices */
/*
.me-2 {
  margin-right: unset;
}
*/

/*
table.dataTable > tbody > tr > td {
  padding: unset;
}
*/

/*
.sidebar-navigation {
  border-radius: 5px;
  display: inline-block;
  min-height: 100vh;
  width: 10%;
  background-color: var(--mdc-theme-primary, #6200ee);
  float: left;
}
*/
/* Cible la première colonne du colgroup */

colgroup col:nth-child(1) {
  width: 100px !important;
}

colgroup col:nth-child(2) {
  width: 60px !important;
}

colgroup col:nth-child(3) {
  width: 80px !important;
}

colgroup col:nth-child(4) {
  width: 20px !important;
}


colgroup col:nth-child(5) {
  width: 20px !important;
}

colgroup col:nth-child(6) {
  width: 20px !important;
}

colgroup col:nth-child(7) {
  width: 100px;
}

colgroup col:nth-child(8) {
  width: unset;
}

/*
table.dataTable thead > tr > th div.dt-column-header, table.dataTable thead > tr > th div.dt-column-footer, table.dataTable thead > tr > td div.dt-column-header, table.dataTable thead > tr > td div.dt-column-footer, table.dataTable tfoot > tr > th div.dt-column-header, table.dataTable tfoot > tr > th div.dt-column-footer, table.dataTable tfoot > tr > td div.dt-column-header, table.dataTable tfoot > tr > td div.dt-column-footer {
  font-size: 12px;
}
*/

table.dataTable thead > tr > th div.dt-column-header, table.dataTable thead > tr > th div.dt-column-footer, table.dataTable thead > tr > td div.dt-column-header, table.dataTable thead > tr > td div.dt-column-footer, table.dataTable tfoot > tr > th div.dt-column-header, table.dataTable tfoot > tr > th div.dt-column-footer, table.dataTable tfoot > tr > td div.dt-column-header, table.dataTable tfoot > tr > td div.dt-column-footer {
/*  display: flex;
  justify-content: space-between;
  align-items: var(--dt-header-align-items);
  gap: 4px;
*/
/*  font-size: 12px; */
}

/*
div.dt-container.dt-empty-footer tbody > tr:last-child > * {
  font-size: 10px;
}
*/

div.dt-container.dt-empty-footer tbody > tr > td {
  font-size: 12px;
}


/* MFA Webauthn, texte plus gros que le bouton */
#registerDiscoverableCredentialButton {
  height:40px;
}

#viewTrustedDeviceDetails {
  width:40px;
}

##### GAUTH #####

/* gauth scratch code (and others ...)box */
/*
.w-lg-66 {
  width: unset;
}

.w-lg-50 {
  width: unset;
}
*/

