/* CALM - Cartes de membres responsables V1.1 */
/* Importe explicitement le style de la carte pour que l'apercu soit visible dans la fenetre. */
@import url("calm-member-card-v37.css?v=202610051430");

#calmStaffCardsBtn[hidden],
#calmStaffCardsDialog[hidden]{
  display:none!important;
}

#calmStaffCardsBtn{
  white-space:nowrap;
}

.calm-staff-card-row-btn{
  margin-left:7px;
  white-space:nowrap;
}

#calmStaffCardsDialog{
  width:min(1120px,calc(100vw - 26px));
  max-width:1120px;
  border:0;
  border-radius:16px;
  padding:0;
  overflow:hidden;
  box-shadow:0 28px 80px rgba(0,0,0,.35);
}

#calmStaffCardsDialog::backdrop{
  background:rgba(7,10,14,.72);
}

.calm-staff-cards-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:15px 18px;
  border-bottom:1px solid #e5e7eb;
  background:#fff;
}

.calm-staff-cards-head strong{
  font-size:16px;
}

.calm-staff-cards-body{
  display:grid;
  grid-template-columns:minmax(250px,320px) 1fr;
  min-height:560px;
  background:#f5f6f8;
}

.calm-staff-cards-sidebar{
  border-right:1px solid #e5e7eb;
  padding:16px;
  background:#fff;
  overflow:auto;
}

.calm-staff-cards-sidebar input{
  width:100%;
  margin-bottom:12px;
}

.calm-staff-cards-list{
  display:flex;
  flex-direction:column;
  gap:6px;
  max-height:470px;
  overflow:auto;
}

.calm-staff-cards-list button{
  width:100%;
  text-align:left;
  padding:9px 10px;
  border-radius:9px;
}

.calm-staff-cards-list button.active{
  border-color:#2563eb;
  background:#eef4ff;
}

.calm-staff-cards-code{
  display:block;
  font-size:11px;
  opacity:.68;
  margin-top:2px;
}

.calm-staff-cards-main{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  padding:22px;
  overflow:auto;
}

.calm-staff-cards-main .calm-member-card{
  width:min(100%,850px);
}

.calm-staff-cards-meta{
  width:min(100%,850px);
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

.calm-staff-cards-status{
  font-size:12px;
  font-weight:800;
  padding:6px 9px;
  border-radius:999px;
}

.calm-staff-cards-status.ok{
  background:#e9f8ef;
  color:#126b35;
}

.calm-staff-cards-status.warn{
  background:#fff6df;
  color:#8a5900;
}

.calm-staff-cards-foot{
  display:flex;
  justify-content:flex-end;
  gap:9px;
  padding:13px 18px;
  border-top:1px solid #e5e7eb;
  background:#fff;
}

@media(max-width:780px){
  .calm-staff-cards-body{
    grid-template-columns:1fr;
  }
  .calm-staff-cards-sidebar{
    border-right:0;
    border-bottom:1px solid #e5e7eb;
  }
  .calm-staff-cards-list{
    max-height:180px;
  }
  .calm-staff-cards-main{
    align-items:flex-start;
  }
  .calm-staff-cards-main .calm-member-card{
    min-width:620px;
  }
}


/* === CALM STAFF CARDS PREVIEW FIX V1.1 START === */
#calmStaffCardsPreview{
  display:block;
  width:min(100%,850px);
  min-width:0;
}

#calmStaffCardsPreview .calm-member-card{
  display:block;
  width:100%!important;
  max-width:850px!important;
  min-width:0!important;
  margin:0 auto!important;
}

.calm-staff-cards-main{
  min-width:0;
}

@media(max-width:780px){
  #calmStaffCardsPreview{
    width:620px;
    min-width:620px;
  }
  #calmStaffCardsPreview .calm-member-card{
    width:620px!important;
    min-width:620px!important;
    max-width:620px!important;
  }
}
/* === CALM STAFF CARDS PREVIEW FIX V1.1 END === */
