.requirement_name{
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px !important;
    white-space: nowrap;
}
#requirement_dropdown .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #d8ebff !important;
    border: 1px solid #d8ebff !important;
    border-radius: 4px;
    box-sizing: border-box;
    display: inline-block !important;
    margin-left: 9px !important;
    margin-top: 5px !important;
    padding: 2px;
    padding-left: 20px;
    position: relative;
    max-width: 285px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}
#requirement_dropdown .select2-container--default .select2-selection--multiple .select2-selection__choice {
    max-width: 80% !important;
    white-space: unset !important;
}
.select2-container .select2-results__option {
    white-space: nowrap;       
    overflow: hidden;          
    text-overflow: ellipsis;  
    max-width: 100%;         
}
#requirement_dropdown .select2-selection--multiple{
    max-height: 150px;
    overflow-y: auto;
    white-space: normal;
    overflow-x: hidden;
    scrollbar-width: thin !important;
    border-radius: 1px !important;
}

.controller-issues.action-show .select2-container{
    width: 100% !important;
}
#report_graph, #report_line_graph{
    display: flex;
    justify-content: center;
  }

.report_parent_div{
    text-align: center;
    width: 50%;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
    background-color:#fff;
  }
  #report_graphs{
    display: flex;
    gap: 20px !important;
    margin-top: 15px;
    margin-bottom: 35px;
  }

#report_graph_label,#report_line_graph_label{
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 100px;
}
     
.delete-step-heading{
    font-size: 18px;
    color:black;
    font-weight: 600;
  }
  .modal-transition{
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  transition: all 0.3s ease-in; 
  }
  .delete-step-para-content{
    font-size: 17px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
    padding-left: 0px !important;
    text-align: justify;
    line-height: 1.5;
    max-width: 600px;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
  }
  .delete-step-main-content{
    padding: 10px 0px;
  }
  .delete-step-image-folder{
    width: 15px;
    height: 25px;
  }
  .delete-step-cross-folder:hover{
    background-color: #eee;
    border-radius: 2px;
  }
  .delete-step-suite-header-content{
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e0e1e2;
  }
  .delete-step-template{
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  }
  button.delete-step_button{
    background: #0094FF;
    border: 1px solid #0094FF;
    color: #fff;
    padding: 0 7px;
    width: 110px;
    height: 40px;
    border-radius: 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-style: normal;
    font-weight: 400 !important;
    font-size: 15px !important;
    line-height: 21px;
    cursor: pointer;
  }
  input.delete-step_button {
    background: #0094FF;
    border: 1px solid #0094FF;
    color: #fff;
    padding: 0 7px;
    width: 110px !important;
    height: 40px;
    border-radius: 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-style: normal;
    font-weight: 400 !important;
    font-size: 15px !important;
    line-height: 21px;
    cursor: pointer;
  }
  button.delete-step_button:hover {
    background-color: #0094ffc7 !important;
    border: 1px solid #0094ffc7 !important;
  }
  
  input.delete-step_button:hover {
    background-color: #0094ffc7 !important;
    border: 1px solid #0094ffc7 !important;
  }
  button.delete-step_cancel-btn {
    width: 120px;
    height: 40px;
    border-radius: 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 21px;
    cursor: pointer;
    transition: all 0.3s ease-in;
  }
  
  button.delete-step_cancel-btn:hover {
    background-color: #ced3e6a8;
  }
  .overlay-delete-step-template{
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  .delete-step-footer-folder {
    margin-top: 5px;
  }
  .delete-step-overlay{
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.1s ease-in;
    display: none;
  }
  /* Positioning only — look comes from the shared .rf_testcase_management_modal shell. */
  .delete-step-template{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1060;
    visibility: hidden;
    opacity: 0.4;
    transition: all 0.1s ease-in;
    display: none;
  }
  .overlay-delete-email-template{
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  .delete-step-cross-folder:hover{
    background: none;
  }
#requirement_dropdown .select2.select2-container.select2-container--default.select2-container--focus{
  width: 100% !important;
}
#requirement_dropdown .select2-container[style*="width: 91.5px"] {
  width: 100% !important; /* Override the inline width */
}
#requirement_dropdown .select2.select2-container.select2-container--default.select2-container--below{
  width: 100% !important;
}
/* ==========================================================================
   Legacy icon compatibility (Redmine 5 / 6 / 7)
   --------------------------------------------------------------------------
   Redmine 7.0 removed the raster icon sprite together with the `.icon` /
   `.icon-only` geometry rules, and ships no legacy PNGs at all. Markup still
   written as `class="icon icon-del"` therefore renders as bare text, and an
   empty `<a class="icon-only icon-del">` collapses to a 0x0 box that can be
   neither seen nor clicked.

   These rules restore the glyph and the geometry from the plugin's own SVG
   assets, so they behave the same on Redmine 5.x, 6.x and 7.x without
   depending on core's (deprecated) legacy-icons-compat.css.

   Two deliberate constraints:
     * `:not(:has(svg))` limits every rule to legacy markup -- anything already
       rendered through `sprite_icon` contains an inline <svg> and is skipped.
     * Only the icon names this plugin actually renders are listed. There is no
       blanket `.icon` / `.icon-only` rule, because this stylesheet loads on
       every page and such a rule would also re-box unrelated `.icon-only`
       elements belonging to Redmine core and to the other RedmineFlux plugins.
   ========================================================================== */

.icon-del:not(:has(svg)),
.icon-edit:not(:has(svg)),
.icon-add:not(:has(svg)),
.icon-copy:not(:has(svg)),
.icon-download:not(:has(svg)),
.icon-sort-handle:not(:has(svg)) {
  background-repeat: no-repeat;
  background-position: 0% 50%;
  background-size: 16px 16px;
}

.icon-del:not(:has(svg))  { background-image: url("/assets/plugin_assets/redmineflux_testcase_management/icons-delete-354e1836.svg"); }
.icon-edit:not(:has(svg)) { background-image: url("/assets/plugin_assets/redmineflux_testcase_management/pencil-icon-35437099.svg"); }
/* plus_circle.svg (#169), not plus-icon.svg -- the latter is fill="white"
   and is only legible on the blue New Report button. This is the same
   asset #add_steps_button uses in testcase_style.css, which is not loaded
   on the issue new/edit pages. */
.icon-add:not(:has(svg))  { background-image: url("/assets/plugin_assets/redmineflux_testcase_management/plus_circle-0a871327.svg"); background-size: 14px 14px; }
.icon-copy:not(:has(svg)) { background-image: url("/assets/plugin_assets/redmineflux_testcase_management/copy-icon-5a1856ac.svg"); }
.icon-download:not(:has(svg))    { background-image: url("/assets/plugin_assets/redmineflux_testcase_management/download-icon-1a246e6f.svg"); }
.icon-sort-handle:not(:has(svg)) { background-image: url("/assets/plugin_assets/redmineflux_testcase_management/reorder-ce7a62b0.svg"); }

/* Labelled actions: leave room for the glyph before the text.
   padding-top/bottom are reset to 0 here rather than left to whatever the
   current Redmine version's own core CSS still contributes for `.icon`:
   Redmine 5's core stylesheet applies its own asymmetric icon padding
   (2px top / 3px bottom), which shifts this box's height enough that the
   `background-position: 0% 50%` centering above lands the glyph visibly
   low relative to the text baseline. Owning the full box model here keeps
   the glyph vertically centered the same way on 5.x, 6.x and 7.x. */
.icon.icon-del:not(:has(svg)),
.icon.icon-edit:not(:has(svg)),
.icon.icon-add:not(:has(svg)),
.icon.icon-copy:not(:has(svg)),
.icon.icon-download:not(:has(svg)) {
  padding-left: 20px;
  padding-top: 0;
  padding-bottom: 0;
}

/* Icon-only actions: show just the glyph, but keep a real clickable box.
   Mirrors what core's own rules did before 7.0. */
.icon-only.icon-del:not(:has(svg)),
.icon-only.icon-edit:not(:has(svg)),
.icon-only.icon-add:not(:has(svg)),
.icon-only.icon-copy:not(:has(svg)),
.icon-only.icon-download:not(:has(svg)),
.icon-only.icon-sort-handle:not(:has(svg)) {
  display: inline-block;
  width: 0;
  height: 16px;
  padding-left: 16px;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  font-size: 0.5rem;
  vertical-align: middle;
}

.icon-only.icon-del:not(:has(svg))::after,
.icon-only.icon-edit:not(:has(svg))::after,
.icon-only.icon-add:not(:has(svg))::after,
.icon-only.icon-copy:not(:has(svg))::after,
.icon-only.icon-download:not(:has(svg))::after {
  content: "0";
}

/* BUG-TCM-058: the Relations panel's "Run" column badge + its click-to-expand
   list of runs, shown when a defect is linked to the same test case across
   more than one run. */
.rftc-run-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 9px;
  border-radius: 11px;
  background: #e8f1f8;
  color: #1b6ca8;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid #cfe3f0;
  cursor: pointer;
  white-space: nowrap;
}
.rftc-run-badge:hover {
  background: #dcebf5;
}
.rftc-run-popover {
  position: relative;
  z-index: 20;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #c9c9c9;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  padding: 6px 0;
  min-width: 200px;
}
.rftc-run-popover-item {
  padding: 4px 12px;
  font-size: 12px;
  white-space: nowrap;
}
.rftc-run-popover-item:hover {
  background: #f3f7fb;
}
.rftc-run-popover-item a {
  color: #1b6ca8;
}
/* BUG-TCM-058 follow-up: clicking the badge to open this popover also fires
   Redmine's own row-selection, whose `.context-menu-selection a { color:
   #f8f8f8 !important }` is meant for that row's blue background -- but the
   popover sits on its own white background, so the run names render as
   near-invisible white-on-white. Win back the readable color with enough
   specificity to beat that !important rule. */
.context-menu-selection .rftc-run-popover-item a {
  color: #1b6ca8 !important;
}
.context-menu-selection .rftc-run-popover-item a:hover {
  color: #992b11 !important;
}
