/* Police CMC7 d'ID Automation - Version professionnelle */
@font-face {
  font-family: 'IDAutomationCMC7';
  src: url('./IDAutomationCMC7.otf') format('opentype'),
       url('./IDAutomationCMC7.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* IDAutomation CMC7 - variante n10 */
@font-face {
  font-family: 'IDAutomationCMC7n10';
  src: url('./IDAutomationCMC7n10.otf') format('opentype'),
       url('./IDAutomationCMC7n10.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* IDAutomation CMC7 - variante n25 */
@font-face {
  font-family: 'IDAutomationCMC7n25';
  src: url('./IDAutomationCMC7n25.otf') format('opentype'),
       url('./IDAutomationCMC7n25.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* IDAutomation CMC7 - variante n40 */
@font-face {
  font-family: 'IDAutomationCMC7n40';
  src: url('./IDAutomationCMC7n40.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Styles pour les caractères CMC7 avec la police ID Automation */
.cmc7-font {
  font-family: 'IDAutomationCMC7', 'IDAutomationCMC7n10', 'IDAutomationCMC7n25', 'IDAutomationCMC7n40', 'MICR Encoding', 'Courier Prime', 'Courier New', monospace;
  font-weight: normal;
  letter-spacing: 1px;
  font-size: 18px;
  line-height: 1.2;
}

/* Styles pour la ligne CMC7 */
.cmc7-line {
  font-family: 'IDAutomationCMC7', 'IDAutomationCMC7n10', 'IDAutomationCMC7n25', 'IDAutomationCMC7n40', 'MICR Encoding', 'Courier Prime', 'Courier New', monospace;
  font-weight: normal;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: #000;
  background: #fff;
  border: 2px solid #000;
  padding: 4px 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

/* Caractères CMC7 spéciaux avec ID Automation */
.cmc7-symbol {
  font-family: 'IDAutomationCMC7', 'IDAutomationCMC7n10', 'IDAutomationCMC7n25', 'IDAutomationCMC7n40', 'MICR Encoding', 'Noto Sans Symbols', 'Courier Prime', monospace;
  font-size: 14px;
  font-weight: normal;
  color: #000;
  margin: 0 0.5px;
  display: inline-block;
  vertical-align: baseline;
  line-height: 1;
}

/* Style pour les chiffres CMC7 */
.cmc7-digit {
  font-family: 'IDAutomationCMC7', 'IDAutomationCMC7n10', 'IDAutomationCMC7n25', 'IDAutomationCMC7n40', 'MICR Encoding', 'Courier Prime', 'Courier New', monospace;
  font-weight: normal;
  letter-spacing: 0.3px;
  font-size: 14px;
}

/* Caractères CMC7 avec la vraie police ID Automation */
.cmc7-real {
  font-family: 'IDAutomationCMC7', 'IDAutomationCMC7n10', 'IDAutomationCMC7n25', 'IDAutomationCMC7n40', 'MICR Encoding', monospace;
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 0.5px;
  line-height: 1;
  color: #000;
}

/* Styles spécifiques pour l'impression */
@media print {
  [style*="font-weight: bold"] {
    font-weight: bold !important;
  }

  [style*="font-weight:bold"] {
    font-weight: bold !important;
  }

  [style*="font-style: italic"] {
    font-style: italic !important;
  }

  [style*="font-style:italic"] {
    font-style: italic !important;
  }

  b, strong {
    font-weight: bold !important;
  }

  i, em {
    font-style: italic !important;
  }

  .cmc7-line,
  .cmc7-symbol,
  .cmc7-digit,
  .cmc7-real {
    font-family: 'IDAutomationCMC7', 'IDAutomationCMC7n10', 'IDAutomationCMC7n25', 'IDAutomationCMC7n40', 'MICR Encoding', monospace !important;
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
    print-color-adjust: exact !important;
    color: #000 !important;
  }

  .cmc7-line {
    border: 1px solid #000 !important;
    background: #fff !important;
  }
}