.c4erp-wrapper {
  margin: 0 0 1rem;
  width: 100%;
}
#c4erp-iframe {
  width: 100%;
  min-height: 300px;
  border: 0;
  display: block;
  overflow: hidden;
  background: transparent;
}

/* Encart « sur devis » (visiteurs hors mode aperçu) */
.c4erp-quote {
  margin: 0 0 1rem;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
}
.c4erp-quote p { margin: 0 0 8px; }

/* Bloc tarifs sous la photo */
.c4erp-prices {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}
.c4erp-prices-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.c4erp-prices-title { font-weight: bold; font-size: 16px; color: #111; }
.c4erp-prices-title small { font-weight: normal; font-size: 12px; color: #777; }
.c4erp-toggle { display: inline-flex; border: 1px solid #2c9ffd; border-radius: 20px; overflow: hidden; }
.c4erp-toggle button {
  border: 0; background: #fff; color: #2c9ffd; padding: 5px 12px; font-size: 13px; cursor: pointer;
}
.c4erp-toggle button.on { background: #2c9ffd; color: #fff; font-weight: bold; }
.c4erp-placeholder { color: #777; font-style: italic; margin: 10px 0; }

.c4erp-ptable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  font-size: 14px;
  table-layout: fixed;
  margin: 0;
}
.c4erp-ptable th {
  padding: 8px 4px;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  border-radius: 4px;
}
.c4erp-ptable th.q { background: transparent; color: #444; width: 78px; }
.c4erp-ptable th.urg { background: #1565c0; }
.c4erp-ptable th.xps { background: #ef6c00; }
.c4erp-ptable th.std { background: #e5007e; }
.c4erp-ptable td {
  text-align: center;
  padding: 7px 4px;
  background: #f4f4f4;
  border: 2px solid transparent;
  border-radius: 4px;
  line-height: 1.25;
}
.c4erp-ptable td.q { background: transparent; font-weight: bold; color: #333; font-size: 15px; }
.c4erp-ptable td.na { color: #bbb; }
.c4erp-ptable td.pick { cursor: pointer; transition: background .15s; }
.c4erp-ptable td.pick:hover { background: #e6f3ff; }
.c4erp-ptable td.pick b { display: block; font-size: 15px; color: #111; }
.c4erp-ptable td.pick em { display: block; font-style: normal; font-size: 11px; color: #555; }
.c4erp-ptable td.pick small { display: block; font-size: 11px; color: #888; }
.c4erp-ptable td.sel { background: #e8f5e9; border-color: #2e7d32; }
.c4erp-note { margin: 6px 0 0; font-size: 12px; color: #777; }

.c4erp-choice {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: #e8f5e9;
  border-radius: 4px;
  font-size: 14px;
}
.c4erp-choice .u { color: #555; font-size: 13px; }

.c4erp-btn {
  display: inline-block;
  margin: 12px 0 0;
  padding: 11px 24px;
  border: 0;
  border-radius: 4px;
  background: #2e7d32;
  color: #fff !important;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}
.c4erp-btn[disabled] { opacity: .45; cursor: not-allowed; }
.c4erp-btn-cart { background: #2c9ffd; }

.c4erp-msg {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid;
  line-height: 1.5;
  font-size: 14px;
}
.c4erp-msg-info { background: #eef5fb; border-color: #9cc3e5; }
.c4erp-msg-warn { background: #fff7e0; border-color: #f0c36d; }
.c4erp-msg-error { background: #fdecea; border-color: #e5a3a0; color: #8a1f17; }
.c4erp-msg-success { background: #edf7ed; border-color: #9ccc9c; }
.c4erp-recap { margin: 8px 0; font-size: 13px; color: #444; }

/* Gabarit / données techniques */
.c4erp-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.c4erp-tool {
  border: 1px solid #2c9ffd; background: #fff; color: #2c9ffd; border-radius: 4px;
  padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.c4erp-tool:hover, .c4erp-tool.on { background: #2c9ffd; color: #fff; }
.c4erp-tool[disabled] { opacity: .45; cursor: not-allowed; background: #fff; color: #2c9ffd; }
.c4erp-tech { margin: 8px 0 0; padding: 10px 12px; background: #f7fbff; border: 1px solid #d6eafe; border-radius: 4px; font-size: 13px; }
.c4erp-tech table { width: 100%; border-collapse: collapse; }
.c4erp-tech th { text-align: left; font-weight: normal; color: #555; padding: 3px 8px 3px 0; }
.c4erp-tech td { font-weight: bold; color: #111; padding: 3px 0; }
.c4erp-tech p { margin: 8px 0 0; font-size: 12px; color: #666; }

/* Fichier d'impression */
.c4erp-upload { margin: 12px 0 0; padding: 10px 12px; border: 1px dashed #bbb; border-radius: 4px; background: #fafafa; }
.c4erp-upload-label { display: block; font-weight: bold; margin: 0 0 6px; color: #111; }
.c4erp-upload-label small { font-weight: normal; color: #777; }
.c4erp-upload-help { margin: 6px 0 0; font-size: 12px; color: #666; }
.c4erp-progress { position: relative; margin: 10px 0 0; padding: 6px 8px; background: #eef5fb; border-radius: 3px; overflow: hidden; font-size: 13px; }
.c4erp-progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #cfe6fb; transition: width .2s; }
.c4erp-progress em { position: relative; font-style: normal; }
.c4erp-progress.ok { background: #e8f5e9; }
.c4erp-progress.ok span { display: none; }
.c4erp-progress.ko { background: #fdecea; color: #8a1f17; }
.c4erp-progress.ko span { display: none; }

/* Compte client : fichiers de la commande */
.c4erp-order-files .c4erp-file-line { padding: 12px 0; border-top: 1px solid #eee; }
.c4erp-order-files .c4erp-file-line:first-of-type { border-top: 0; }

/* BAT côté client */
.c4erp-bat { margin: 12px 0; padding: 14px; background: #f4f8fb; border: 1px solid #d6eafe; border-radius: 6px; }
.c4erp-bat-todo { border: 2px solid #2c9ffd; background: #f0f8ff; }
.c4erp-bat-head { font-size: 17px; font-weight: bold; color: #111; margin: 4px 0 10px; }
.c4erp-bat-head small { font-size: 13px; font-weight: normal; color: #666; }
.c4erp-step { display: inline-block; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; background: #2c9ffd; color: #fff; font-size: 15px; margin-right: 6px; }
.c4erp-bat-note { margin: 0 0 10px; padding: 10px 12px; background: #fff; border-left: 4px solid #2c9ffd; border-radius: 3px; }
.c4erp-bat-preview { display: block; width: 100%; height: 520px; border: 1px solid #ccc; border-radius: 4px; background: #fff; }
.c4erp-bat-img { display: block; max-width: 100%; max-height: 520px; margin: 0 auto; border: 1px solid #ccc; border-radius: 4px; background: #fff; }
.c4erp-bat-open { margin: 10px 0 16px; text-align: center; }
.c4erp-bat-btn { font-size: 16px !important; padding: 10px 22px !important; }
.c4erp-bat-form { margin-top: 6px; }
.c4erp-check { display: block; margin: 0 0 12px; font-weight: normal; font-size: 15px; }
.c4erp-check input { margin-right: 8px; transform: scale(1.2); }
.c4erp-bat-ok { font-size: 16px !important; padding: 10px 22px !important; }
.c4erp-changes { margin-top: 14px; }
.c4erp-changes summary { cursor: pointer; color: #2c9ffd; font-size: 15px; }
.c4erp-changes textarea { margin: 6px 0; }
.c4erp-ok { color: #2e7d32; font-weight: bold; font-size: 15px; }
.c4erp-upload-form { margin-top: 10px; }
