.input-required-left {
  border-left: 4px solid #3967A3 !important;
  background: #f6f8fc !important;
  box-shadow: none !important;
}
.btn-modern-validate[disabled], .btn-modern-validate:disabled {
  background: #e0e4ec !important;
  color: #b0b5c3 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  border: none !important;
  opacity: 0.7 !important;
  animation: none !important;
  filter: grayscale(0.2);
  transition: none;
}
/* Modern file upload */
.custom-file-upload {
  display: inline-block;
  position: relative;
  cursor: pointer;
}
.custom-file-upload .btn {
  padding: 0.35rem 1.1rem;
  font-size: 0.97rem;
  border-radius: 0.3rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.custom-file-upload .btn:hover {
  background: #224abe;
  color: #fff;
}
.file-upload-filename {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* --- Bulletpoint style for details --- */
.details-bullet-list {
  list-style: none;
  margin: 0;
  padding: 22px 0 22px 0;
  margin-left: 18px;
}
.details-bullet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 0.99rem;
  background: none;
  border: none;
  padding: 0 0 0 0;
}
.details-bullet-icon {
  margin-top: 3px;
  min-width: 18px;
  text-align: center;
  opacity: 0.7;
}
.details-bullet-label {
  color: #224abe;
  font-weight: 500;
  margin-right: 4px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  height: 100%;
}


.details-bullet-value {
}
.details-bullet-value {
  color: #222;
  font-weight: 400;
  word-break: break-word;
}
/* --- Modern details card --- */
.details-block {
  background: #f8fafd;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(78,115,223,0.10);
  margin-bottom: 32px;
  border: 2.5px solid #b6c6f5;
  padding-bottom: 0;
  overflow: hidden;
  transition: box-shadow 0.2s;
  position: relative;
}
.details-block:hover {
  box-shadow: 0 8px 32px rgba(78,115,223,0.16);
  border-color: #b6c6f5;
}
.details-block-title {
  font-weight: 700;
  color: #224abe;
  font-size: 1.12rem;
  background: linear-gradient(90deg, #f4f7fa 60%, #e3e6f0 100%);
  border-radius: 18px 18px 0 0;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  padding: 14px 24px 12px 22px;
  border-bottom: 1.5px solid #e3e6f0;
  margin-bottom: 0;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.details-block-title i {
  font-size: 1.15em;
  margin-right: 7px;
  opacity: 0.85;
}
.details-list {
  padding: 0 0 8px 0;
  margin: 0;
}
.details-list-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-bottom: 1px solid #f0f2f7;
  background: #fff;
  margin-bottom: 0;
  padding: 0;
  transition: background 0.2s;
  min-height: 32px;
  font-size: 0.98rem;
}
.details-list-row:last-child {
  border-bottom: none;
}
.details-list-row:hover {
  background: #f4f7fa;
}
.details-list-label {
  min-width: 120px;
  background: #f4f7fa;
  color: #3a4a7c;
  font-weight: 500;
  padding: 7px 12px 7px 16px;
  border-right: 1px solid #e3e6f0;
  display: flex;
  align-items: center;
  border-radius: 0;
  font-size: 0.98rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.details-list-value {
  background: #fff;
  color: #2d2d2d;
  padding: 7px 12px;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  border-radius: 0;
  word-break: break-word;
  flex: 1 1 0%;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .details-block {
    border-radius: 10px;
    margin-bottom: 18px;
  }
  .details-block-title {
    font-size: 1rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    border-radius: 10px 10px 0 0;
  }
  .details-list-label {
    min-width: 80px;
    font-size: 0.93rem;
    padding: 6px 6px 6px 8px;
  }
  .details-list-value {
    font-size: 0.93rem;
    padding: 6px 6px;
  }
  .details-list-row {
    min-height: 26px;
    font-size: 0.93rem;
  }
}
.details-list {
  padding: 0 0 8px 0;
  margin: 0;
}
.details-list-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-bottom: 1px solid #f0f2f7;
  background: transparent;
  margin-bottom: 0;
  padding: 0;
  transition: background 0.2s;
}
.details-list-row:last-child {
  border-bottom: none;
}
/* Compact, modern details rows */
.details-list-label {
  min-width: 120px;
  background: #f4f7fa;
  color: #224abe;
  font-weight: 500;
  padding: 7px 12px 7px 16px;
  border-right: 1px solid #e3e6f0;
  display: flex;
  align-items: center;
  border-radius: 0;
  font-size: 0.98rem;
  line-height: 1.2;
}
.details-list-value {
  background: #f9fbfd;
  color: #444;
  padding: 7px 12px;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  border-radius: 0;
  word-break: break-word;
  flex: 1 1 0%;
  line-height: 1.2;
}
.details-list-row {
  min-height: 32px;
  font-size: 0.98rem;
}
@media (max-width: 768px) {
  .details-list-label {
    min-width: 80px;
    font-size: 0.93rem;
    padding: 6px 6px 6px 8px;
  }
  .details-list-value {
    font-size: 0.93rem;
    padding: 6px 6px;
  }
  .details-list-row {
    min-height: 26px;
    font-size: 0.93rem;
  }
}
@media (max-width: 768px) {
  .details-block-title {
    font-size: 1rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
  .details-list-label {
    min-width: 110px;
    font-size: 0.97rem;
    padding: 10px 8px 10px 10px;
  }
  .details-list-value {
    font-size: 0.97rem;
    padding: 10px 8px;
  }
}
/* ========== Blocs de détails MCO ========== */
.details-block {
  background: #f8f9fc;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(78,115,223,0.04);
  margin-bottom: 18px;
  border: 1px solid #e3e6f0;
}
.details-block-title {
  font-weight: 600;
  color: #224abe;
  font-size: 1.08rem;
  background: #e9ecef;
  border-radius: 12px 12px 0 0;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
}
@media (max-width: 768px) {
  .details-block-title {
    font-size: 1rem;
    padding-left: 0.5rem;
  }
}
/* ========== Liste de détails MCO ========== */
.details-list {
  padding: 0;
  margin: 0;
}
.details-list-row {
  border-bottom: 1px solid #e3e6f0;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(78,115,223,0.04);
  transition: background 0.2s;
}
.details-list-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.details-list-label {
  font-weight: 600;
  color: #224abe;
  min-width: 180px;
  margin-right: 18px;
  margin-bottom: 4px;
  font-size: 1.04rem;
}
.details-list-value {
  color: #444;
  font-size: 1.04rem;
  word-break: break-word;
}
@media (max-width: 768px) {
  .details-list-label {
    min-width: 120px;
    font-size: 0.98rem;
  }
  .details-list-value {
    font-size: 0.98rem;
  }
  .details-list-row {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}
/* ========== Détails MCO (tableau moderne) ========== */
.details-card {
  background: linear-gradient(135deg, #f8f9fc 0%, #e3e6f0 100%);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border: 1px solid #e3e6f0;
  margin-bottom: 24px;
  overflow: hidden;
}
.details-card-header {
  background: linear-gradient(90deg, #4e73df 0%, #224abe 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px solid #e3e6f0;
  border-radius: 16px 16px 0 0;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}
.details-table {
  background: transparent;
  border-radius: 0 0 16px 16px;
  margin-bottom: 0;
}
.details-table th.details-label {
  width: 220px;
  background: #f4f7fa;
  color: #224abe;
  font-weight: 600;
  border-top: none;
  border-bottom: 1px solid #e3e6f0;
  vertical-align: middle;
  padding: 10px 16px;
}
.details-table td.details-value {
  background: #fff;
  color: #444;
  border-top: none;
  border-bottom: 1px solid #e3e6f0;
  vertical-align: middle;
  padding: 10px 16px;
  word-break: break-word;
}
.details-table tr:last-child th,
.details-table tr:last-child td {
  border-bottom: none;
}
@media (max-width: 768px) {
  .details-table th.details-label, .details-table td.details-value {
    padding: 8px 8px;
    font-size: 0.97rem;
  }
  .details-card-header {
    font-size: 1rem;
    padding: 10px 8px;
  }
}
input:required:invalid, select:required:invalid, textarea:required:invalid {

    border: #3967A3 1px solid;

    background: #3967a313;

}


.char-counter {
    position: absolute;
    top: 50%;
    right: 0%;
    font-size: 12px;
    color: #6c757d;
    pointer-events: none;
    user-select: none;
}
  
/* Simple setup for this demo */

.mdl-card {
    width: 550px;
    min-height: 0;
    margin: 10px auto;
  }
  
  .mdl-card__supporting-text {
    width: 100%;
    padding: 0;
  }
  
  /* Style des cards harmonisé avec le stepper */
  .modern-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
  }

  .modern-card-header {
    background: linear-gradient(135deg, #007bc3 0%, #0056b3 100%);
    border-bottom: none;
    color: white;
    padding: 20px;
    position: relative;
  }

  .modern-card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #28a745 0%, #20c997 50%, #007bc3 100%);
  }

  .modern-card-header h6,
  .modern-card-header h4 {
    margin: 0;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }

  .modern-card-body {
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
  }

  /* Référence card spéciale */
  .reference-card {
    background: linear-gradient(135deg, #007bc3 0%, #0056b3 100%);
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 123, 195, 0.3), 0 2px 8px rgba(0, 123, 195, 0.2);
    color: white;
    margin-bottom: 30px;
  }

  .reference-card .card-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
  }

  .reference-card h4 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
  }


    .form-switch {
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
  }
  
  .form-switch input[type="checkbox"] {
    height: 0;
    width: 0;
    visibility: hidden;
  }
  
  .form-switch input[type="checkbox"] + .label-hidden {
    cursor: pointer;
    width: 60px;
    height: 30px;
    background-color: #d3d3d3; /* Remplacez $grey-light par sa valeur hexadécimale */
    border: 0;
    display: inline-block;
    border-radius: 100px;
    position: relative;
    margin: 0px;
    transition: all 0.3s;
  }
  
  .form-switch input[type="checkbox"] + .label-hidden:after {
    content: "";
    font-size: 12px;
    color: #ffffff; /* Remplacez $white par sa valeur hexadécimale */
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    padding: 0px;
    background-color: #ffffff; /* Remplacez $white par sa valeur hexadécimale */
    border-radius: 90px;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
  }
  
  .form-switch input[type="checkbox"]:checked + .label-hidden {
    background-color: #28a745; /* Remplacez $green par sa valeur hexadécimale */
  }
  
  .form-switch input[type="checkbox"]:checked + .label-hidden:after {
    left: calc(100% - 2px);
    transform: translateX(-100%);
  }
  
  .form-switch .label-displayed {
    color: #696969; /* Remplacez $grey-dark par sa valeur hexadécimale */
  }

/* ============= STYLES MODERNES POUR LES BOUTONS ============= */

/* Zone des boutons d'action modernisée */
.action-buttons-container {
    background: linear-gradient(135deg, #f8f9fc 0%, #e3e6f0 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    margin-top: 20px;
}

/* Bouton moderne de sauvegarde */
.btn-modern-save {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    transition: background 0.15s;
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.btn-modern-save:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
    color: white;
}

/* Bouton moderne de validation */
.btn-modern-validate {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    box-shadow: 0 4px 15px rgba(78, 115, 223, 0.3);
    transition: background 0.15s;
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.btn-modern-validate:hover {
    background: linear-gradient(135deg, #2e59d9 0%, #224abe 100%);
    color: white;
}

/* Icons pour les boutons */
.btn-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* Responsive pour les boutons */
@media (max-width: 768px) {
    .action-buttons-container {
        padding: 20px;
    }
    
    .btn-modern-save, .btn-modern-validate {
        min-width: 150px;
        margin-bottom: 10px;
    }
    
    .buttons-flex {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }
}

/* ============= STYLES POUR LES PAGES NO ACTION ============= */

/* Amélioration du stepper MDL dans les pages no action */
#ticketForm .mdl-stepper-horizontal-alternative {
    background: transparent;
    padding: 20px;
    border-radius: 10px;
}

#ticketForm.modern-card {
    background: linear-gradient(135deg, #f8f9fc 0%, #e3e6f0 100%);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 0;
}

/* Styles pour les éléments du stepper MDL */
.mdl-stepper-horizontal-alternative .mdl-step {
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    padding: 15px;
    margin: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mdl-stepper-horizontal-alternative .mdl-step.is-active {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 115, 223, 0.3);
}

.mdl-stepper-horizontal-alternative .mdl-step.is-completed {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
    color: white;
}

/* Cartes d'information pour admin */
.info-card {
    background: linear-gradient(135deg, #f8f9fc 0%, #e3e6f0 100%);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.info-card h5 {
    color: #5a5c69;
    font-weight: 600;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 0.9rem;
    margin: 0;
}

/* Alert personnalisées */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

/* Responsive pour les pages no action */
@media (max-width: 768px) {
    .status-icon i {
        font-size: 3rem !important;
    }
    
    .info-card {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .modern-card-header h4 {
        font-size: 1.1rem;
    }
}
