.summernoteRenderWrap img,
.note-editable img {
  height: auto !important;
  max-width: 100% !important;
}
.summernoteOriginalAddOn {
  padding-top: 10px;
  z-index: 7;
}
@media (min-width: 1024.1px) {
  .note-video-clip {
    max-width: 750px !important;
  }
}
@media (max-width: 1024px) and (min-width: 800.1px) {
  .note-video-clip {
    max-width: 517.325px !important;
    max-height: 290.995px !important;
  }
}
@media (max-width: 800px) and (min-width: 768px) {
  .note-video-clip {
    max-width: 368px !important;
    max-height: 207px !important;
  }
}
@media (max-width: 767.98px) and (min-width: 400px) {
  .note-video-clip {
    max-width: 354.4px;
    max-height: 199.35px;
  }
}
@media (max-width: 399.98px) and (min-width: 330px) {
  .note-video-clip {
    max-width: 315.2px;
    max-height: 177.3px;
  }
}
@media (max-width: 329.98px) {
  .note-video-clip {
    max-width: 260px;
    max-height: 146.25px;
  }
}
.note-editable div,
.note-editable span,
.note-editable p,
.note-editable h1,
.note-editable h3,
.note-editable h4,
.note-editable h5,
.note-editable h5,
.note-editable tr,
.note-editable tbody,
.note-editable h2 {
  max-width: 100% !important;
}
.summernoteRenderWrap div,
.summernoteRenderWrap span,
.summernoteRenderWrap tr,
.summernoteRenderWrap tbody,
.summernoteRenderWrap p,
.summernoteRenderWrap h1,
.summernoteRenderWrap h3,
.summernoteRenderWrap h4,
.summernoteRenderWrap h5,
.summernoteRenderWrap h5,
.summernoteRenderWrap h2 {
  max-width: 100% !important;
}
.summernoteRenderWrap > .row {
  max-width: none !important;
}
@media (max-width: 767.98px) {
  .summernoteRenderWrap td,
  .note-editable td {
    max-width: 50px !important;
    overflow: auto;
  }
  .summernoteRenderWrap td span,
  .note-editable td span {
    font-size: 14px !important;
  }
}
.swal2-actions button {
  font-family: Rift !important;
}
.summernoteRenderWrap {
  overflow: hidden;
}
.note-popover > .modal-backdrop {
  display: none !important;
}
.summernoteRenderWrap img.note-float-right {
  margin-left: 10px;
}
.summernoteRenderWrap img.note-float-left {
  margin-right: 10px;
}
@media (max-width: 767.98px) {
  .fr-text-uppercase,
  .fr-text-spaced,
  .fr-text {
    white-space: pre-wrap !important;
    /* CSS3 */
    white-space: -moz-pre-wrap !important;
    /* Firefox */
    white-space: -pre-wrap !important;
    /* Opera <7 */
    white-space: -o-pre-wrap !important;
    /* Opera 7 */
    word-wrap: break-word !important;
    /* IE */
  
  }
}
.note-toolbar {
  z-index: 10 !important;
}
/* ----------------------------------------------------------------
   Fix: Some toolbar buttons in summernote 0.9.x inherit text-transform
   styling from ancestor / Bootstrap styles, rendering custom button
   labels in ALL CAPS (e.g. "UTILISER UN MODÈLE" instead of
   "Utiliser un modèle"). Force the natural casing on every Summernote
   button.
   ---------------------------------------------------------------- */

.note-editor .note-toolbar .note-btn,
.note-editor .note-toolbar .note-btn-group .note-btn,
.note-editor .note-popover .note-btn,
.note-editor .note-popover .note-btn-group .note-btn,
.note-editor .note-toolbar .note-btn *,
.note-editor .note-popover .note-btn * {
  text-transform: none !important;
  font-variant: normal !important;
  letter-spacing: normal !important;
}
/* ----------------------------------------------------------------
   Fix: Summernote toolbar dropdowns (font name / size / style /
   paragraph) collapse to icon-only width on some pages, hiding the
   item labels and leaving only the check-mark icons visible.
   Force a usable minimum width and ensure each item displays its
   label on a single line.
   ---------------------------------------------------------------- */

.note-toolbar .note-btn-group .dropdown-menu,
.note-popover .note-btn-group .dropdown-menu {
  min-width: 180px !important;
}
.note-toolbar .note-btn-group .dropdown-menu li,
.note-popover .note-btn-group .dropdown-menu li,
.note-toolbar .note-btn-group .dropdown-menu li > a,
.note-popover .note-btn-group .dropdown-menu li > a {
  white-space: nowrap;
  min-width: 180px;
  padding-right: 12px;
}
/* The font-name dropdown shows each label rendered with its own
   font-family (e.g. style="font-family:'Serif'"). Make sure the
   span itself is allowed to take the space it needs. */

.note-toolbar .note-btn-group .dropdown-menu li > a > span,
.note-popover .note-btn-group .dropdown-menu li > a > span {
  display: inline-block;
  overflow: visible;
}
/* ----------------------------------------------------------------
   Fix: when summernote is re-initialized on the same field (modal
   re-open, partial re-render, etc.) it wraps the existing dropdown
   item structure inside an additional <i class="note-icon-menu-check">
   each time, producing a Russian-doll nesting:
       <i><i><i><a><i><span>Arial</span></i></a></i></i></i>
   Each wrapper renders its own ::before glyph (\f10c), so we end up
   with 3-4 stacked check-marks before each font name.

   Solution: hide the ::before on any .note-icon-menu-check that
   contains another .note-icon-menu-check or an <a> as descendant
   (the wrapper layers). The innermost <i> only contains <span> so
   it does not match the :has() selectors and keeps its glyph.
   ---------------------------------------------------------------- */

/* Les règles :has() correspondantes sont dans
   ~/Content/Custom/Shared/CustomSummernote.has.css
   (chargé via @Styles.Render dans _Layout.cshtml, hors bundle minifié). */

.dropdown-menu.note-check li a i {
  visibility: visible !important;
  color: black !important;
  cursor: pointer;
}
.dropdown-menu.note-check li a {
  padding: 3px 8px !important;
}
.note-icon-menu-check::before {
  content: none !important;
}
.summernoteOriginal .table-bordered > tbody > tr > td {
  border: 1px solid black;
}
