/* Footer fix */
html,
body {
 height: 100%;
}

body > footer {
 top: 100vh;
 position: sticky; 
}

.overlay {
  position: fixed;
  top:0;
  width: 100vw;
  height: 100vh;
  background-color: #00000060;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.wrapper-body {
  min-height: 100px; /* need to set a value to override the theme.css's calc value */
 }
/* End Footer fix */


.siteTitle {
  font-family: Open Sans;
  font-weight: 700;
  font-size: 20px;
  color: #000000;
}

h1:focus,
h2:focus {
  outline: 0;
}

span:has(div[id$='ProgressIndicator']) {
  display: flex;
}

ol.progress {
  background-color: transparent;
  padding-right: 20px;
}

ol.progress li.active {
  border: none;
  background-color: transparent;
  color:#097D6C;
  background-color: #EEFAF8;
  border-right: 2px solid #097D6C
}

ol.progress li.incomplete {
  color:#ADB2BD;
}

ol.progress li.list-group-item-success {
  border: none;
  margin: auto;
  font-size: medium;
}

ol.progress li.list-group-item-success span {
  padding-left: 10px;
}

ol.progress li.list-group-item-success span.fa-check {
  display: none;
}

ol.progress li.list-group-item {
  display: flex;
  align-items: center;
  justify-content: left;
  width: 100%;
  height: 56px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}


ol.progress li.list-group-item > .number {
  margin-right: 10px;
  width: 25px !important;
  height: 24px;
  padding: 0px 8px 8px 8px;
  gap: 4px;
  border-radius: 32px;
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.1);
}

ol.progress li.list-group-item.active > .number {
  color: #637381;
}

ol.progress li.list-group-item.incomplete > .number {
  color: #ADB2BD;
}

.btn-group .btn {
  font-size: 14px;
  line-height: 20px;
  padding: 10px 16px;
  border-radius: 4px;
}

.btn-for-file-input {
  min-width: 200px;
  padding: 8px !important;
}

.btn-default:hover {
  background-color: #EEFAF8 !important;
}

.btn-default:focus{
  background-color: #EEFAF8 !important;
  border-color: #097D6C;
  outline: #0079C4 solid 3px;
}

.btn-primary:focus {
  outline: #0079C4 solid 3px;
}

.form-control.force-disabled {
  background-color: #e8e8e8 !important;
}

.form-select-cell {
  border: none;
}

.field-label {
  font-size: 16px;
  font-weight: 700;
  color: #212529 !important;
}

.description {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #637381;
}

.error-message {
  font-size: 14px !important;
  font-weight: 700;
  line-height: 20px;
  color: #851A00;
}

.validator-text {
  font-family: system-ui;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: #851A00 !important;
}

.alert-vdm {
  display: flex;
  gap: 16px;
  position: relative;
  padding: 1rem 1rem;
  margin-bottom: 1rem;
  border: 0 solid transparent;
  border-radius: 0;
  font-size: 1rem;
  line-height: 1.5rem;
  border-left-width: 2px;
  max-width: 640px;
}

.alert-danger {
  color: #851a00;
  background-color: #ffebe6;
  border-color: #d3310a;
}

.alert-info {
  color: #004b7b;
  background-color: #e6f5f9;
  border-color: #0079c4;
}

.alert-warning {
  color: #6C4600;
  background-color: #fefae6;
  border-color: #ffb833;
}

.alert-success {
  color: #025D29;
  background-color: #E7F6F0;
  border-color: #0DA566;
}

.alert-content {
  padding-top: 8px;
}


.alert-title {
  font-weight: 700;
}

.alert-icon-container {
  font-size: 1.5rem;
  padding-top: 8px;
}

.crmEntityFormView .validation-summary {
  border: none;
  border-radius: 0;
  border-left: 2px solid #d3310a;
}

.crmEntityFormView .validation-summary h2 {
  margin: 0 0 1em 0;
  padding: 0;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: #851A00;
}

.crmEntityFormView .validation-summary h2 span {
  margin-right: 8px;
  font-size: 1.5em;
}

.modal-title {
  color: #2e2c2c;
  width: 100%;
}

.modal-header .btn-close {
  font-size: 1.5em;
  margin-right: 15px;
}

.crmEntityFormView {
  border: none !important;
}

.crmEntityFormView .cell {
  padding: 0 20px 20px 0px;
}

.form-control:not(.aspNetDisabled):disabled {
  background-color: #e9ecef !important;
  opacity: 1;
}

input[type="email"] {
  text-decoration: none !important;
}

input::placeholder {
  color: #8b8b8b !important;
  opacity: 1; /* Firefox */
}

::-ms-input-placeholder { /* Edge 12 -18 */
  color: #8b8b8b !important;
}

.sideNote {
  padding: 32px;
  border-radius: 4px;
  background-color: #F8F9FA;
}

.sideNote > p {
  line-height: 28px;
  font-size: 16px;
  font-weight: 400;
  color: #637381;
}

.sideNote > a {
  line-height: 20px;
  font-size: 14px;
  font-weight: 700;
  color: #097D6C;
}

/* Change actions button display side (right instead of left) */
.actions {
  display: flex;
  justify-content: flex-end;
}

.actions > div {
  width: unset;
}

/* Fix subgrid action menu hidden in overflow */
.entity-grid .view-grid {
  overflow: visible;
}

@media screen and (max-width: 767px) {
  .boolean-radio {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top:12px;
  }

  .boolean-radio input[type="radio"] {
    display: none; /* Masque le bouton natif */
    margin-top: 12px;
  }

  .boolean-radio input[type="radio"] + label {
    display: block;
    border: 1px solid #CED4DA;
    border-radius: 6px;
    padding: 12px;
    background-color: #fff;
    position: relative;
    padding-left: 40px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.4;
  }

  .boolean-radio input[type="radio"] + label::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ced4da;
    border-radius: 50%;
    background-color: #fff;
  }

  .boolean-radio input[type="radio"]:checked + label::after {
    content: "";
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #097d6c;
    border-radius: 50%;
  }

  .boolean-radio label .visually-hidden {
    display: none;
  }

  #UploadButton {
    margin-top:12px;
  }
}

