.label_issue_template {
     margin-right: 11px;
    font-size: 12px;
    line-height: 32px !important;
}

.controller-issue_template_setting.action-create .box.tabular > p ,
.controller-issue_template_setting.action-edit .box.tabular > p ,
.controller-issue_template.action-edit .box.tabular > p ,
.controller-issue_template.action-new .box.tabular > p ,
.controller-issue_template.action-copy .box.tabular > p ,
.controller-issue_template_setting.action-copy .box.tabular > p 
 {
  margin-top: 5px !important;
}

.controller-issue_template_setting.action-create textarea#issue_subject ,
.controller-issue_template_setting.action-copy textarea#issue_subject ,
.controller-issue_template.action-edit textarea#issue_subject ,
.controller-issue_template_setting.action-edit textarea#issue_title ,
.controller-issue_template_setting.action-edit textarea#issue_subject ,
.controller-issue_template.action-new textarea#issue_subject ,
.controller-issue_template.action-copy textarea#issue_subject
 {
  padding: 6px;
  font-family: sans-serif;
  min-height: 50px;
  font-size: 13px;
  resize: none;
  width: calc(100% - 8px);
}


.controller-issue_template_setting.action-create select#tracker_id , .controller-issue_template_setting.action-copy select#tracker_id , .controller-issue_template_setting.action-edit select#tracker_id , 
.controller-issue_template_setting.action-edit input#template_name , .controller-issue_template.action-new select#tracker_id ,.controller-issue_template.action-copy select#tracker_id , .controller-issue_template.action-edit select#tracker_id {
  height: 32px;
  /* font-family: 'Poppins-Regular'; */
  width: 240px;
}
/* .controller-issue_template_setting.action-show div#flash_success{
  background-color: #e0ffe0;
} */

/* #content #flash_notice{
  background-color: #e0ffe0;
  background-image: url("/assets/plugin_assets/flux_issue_template/true-948d5a42.svg") ;
  background-repeat: no-repeat;
  background-position: 5px 5px;
} */


.project_arrow , button[type=reset] {
 cursor: pointer;
}




div.issue_template_button > button > a{
  color: black;
  text-decoration: none;
}


button[type=reset]:hover , #cancel_button:hover , .issue_template_button > button:hover{
 background-color: #ddd;
 color: black ;
 text-decoration: none !important;
}

/* --------------------mobile view------------------- */

@media screen and (max-width :899px) {

.label_issue_template {
    line-height: 24px !important;
}
span > i.fa-sort-desc{
    position: relative !important;
  }
  .project_box{
    width: auto !important;
    margin-left: 1px !important;
  }


.controller-issue_template_setting.action-create .tox.tox-tinymce ,
.controller-issue_template_setting.action-copy .tox.tox-tinymce ,
.controller-issue_template_setting.action-edit .tox.tox-tinymce ,
.controller-issue_template.action-new .tox.tox-tinymce ,
.controller-issue_template.action-copy .tox.tox-tinymce ,
.controller-issue_template.action-edit .tox.tox-tinymce
{
  margin-top: 0px !important;
  margin-left: 0px !important;
  
}

select#tracker_selector {
  width: 120px;
}
.controller-issue_template_setting.action-show .add_issue_template {
  margin: 0px !important;  
}

p#project_list_{
  display: flex;
}



}

/* --------------------------------------------------- */


input#Issue_Template_name {
  height: 32px;
  /* font-family: 'Poppins-Regular'; */
  width: 240px;
}

.project_list {
  margin-right: 10px;
    margin-left: 15px;
}
.project_box{
    margin-left: 185px;
    border-radius: 5px ;
    border: 0.5px solid #bdbdbd;
    background-color: #fff;
    display: none;
}

p.checkbox_project {
    padding-left: 15px;
    padding-right: 15px;
}

/* ---------------------- */
.table_textile {
  padding-left: 30px !important;
  text-align: left !important;
}

  
  .issue_template_table th {
    font-size: 13px;
  }
  
  .issue_template_table td {
    padding: 10px;
    border-bottom: 1px solid rgb(206 211 230 / 50%);
    font-size: 13px;
    font-family: sans-serif;
  }

  #project_show{
    margin-left: 8px;
    margin-top: 11px;
  }



  .controller-issue_template_setting.action-edit span > i.fa-sort-desc {
    margin-top: 3px;
  }

  .controller-issue_template_setting.action-edit span > i.fa-sort-asc{
    margin-top: 10px;
  }

  span > i.fa-sort-asc {
    margin-top: 13px;
}
span > i.fa-sort-desc {
  margin-top: 8px;
}

.issue_template_button {
  margin-top: 15px;
  display: flex;
  gap: 5px;
  align-items: center;
}

.project_box {
    /* width: 415px; */
    width: fit-content;
    height: 250px;
    overflow: auto;
}
span#checked_button{
    border: 0.5px solid #c5c5c5;
    padding: 5px;
    border-radius: 5px;
}

/* --------------------tiny mce style------------------ */

.tox-notifications-container {
    display: none;
}

.controller-issue_template_setting.action-edit .tox.tox-tinymce ,
.controller-issue_template_setting.action-create .tox.tox-tinymce ,
.controller-issue_template_setting.action-copy .tox.tox-tinymce ,
.controller-issue_template.action-new .tox.tox-tinymce ,
.controller-issue_template.action-copy .tox.tox-tinymce ,
.controller-issue_template.action-edit .tox.tox-tinymce
{
    margin-left: 185px;
    margin-top: -40px;
    margin-bottom: 15px;
}
span.tox-statusbar__branding {
    display: none;
}

.controller-issue_template_setting.action-edit textarea#issue_template_note_text ,
 .controller-issue_template_setting.action-edit textarea#issue_description_text ,
 .controller-issue_template_setting.action-update textarea#issue_template_note_text ,
 .controller-issue_template_setting.action-update textarea#issue_description_text ,
 .controller-issue_template.action-edit textarea#issue_description_text
 {
  display: none;
}


.controller-issue_template_setting.action-show .add_issue_template 
{
    margin: -32px 0px 0px 0px;  
}

.controller-issue_template #content .containerBlock{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0px 0px 10px 0px;
}

td.table_textile > table {
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #9b9b9b !important;
}

.controller-issues.action-new p#issue_template_field  {
  display: none;
}

/* .controller-issue_template_setting.action-edit #cancel_edit ,
.controller-issue_template.action-edit #cancel_edit
{
  position: absolute; */
  /* width: 80px;
  height: 40px;
  letter-spacing: 0.6px; */
  /* margin: -42px 0px 17px 74px;
} */

.controller-issue_template_setting.action-edit #cancel_template ,
.controller-issue_template.action-edit #cancel_template
{
height: 30px;
}

.controller-issue_template_setting.action-edit #cancel_template:hover ,
.controller-issue_template.action-edit #cancel_template:hover {
  background-color: #ddd;
  color: black;
  text-decoration: none !important;
}



.controller-issue_template_setting.action-edit #cancel_edit:hover ,
.controller-issue_template.action-edit #cancel_edit:hover {
  background-color: #ddd;
  color: black;
  text-decoration: none !important;
}

.controller-issue_template_setting.action-edit #cancel_edit > a ,
.controller-issue_template.action-edit #cancel_edit > a
{
  /* padding: 12px 17px 16px 8px ; */
  text-decoration: none;
  color: black !important;
}

.controller-issue_template_setting.action-create label#project_label ,
.controller-issue_template_setting.action-copy label#project_label ,
 .controller-issue_template_setting.action-edit label#project_label ,
 .controller-issue_template.action-new label#project_label ,
 .controller-issue_template.action-copy label#project_label,
 .controller-issue_template.action-edit label#project_label
 {
  float: inherit;
  margin-left: 3px;
}

.controller-issue_template_setting.action-create input#submited ,
.controller-issue_template_setting.action-copy input#submited ,
.controller-issue_template.action-new input#submited ,
.controller-issue_template.action-copy input#submited 
{
font-size: 13px;
}

.controller-issue_template.action-new div.issue_template_button > a#cancel_button ,
.controller-issue_template.action-copy div.issue_template_button > a#cancel_button ,
.controller-issue_template_setting.action-create div.issue_template_button > a#cancel_button ,
.controller-issue_template_setting.action-copy div.issue_template_button > a#cancel_button
{
  height: 30px;
}
.controller-issue_template.action-new div.issue_template_button > a#cancel_button:hover ,
.controller-issue_template.action-copy div.issue_template_button > a#cancel_button:hover ,
.controller-issue_template_setting.action-create div.issue_template_button > a#cancel_button:hover ,
.controller-issue_template_setting.action-copy div.issue_template_button > a#cancel_button:hover,
.issue_template_button > button#clearButton:hover ,
.issue_template_button > button#submited:hover
{
background-color: #ddd ;
}

.issue_template_button > button.disabled:hover {
  background-color: white !important;
}

.issue_template_button > button.disabled {
  cursor: default !important;
}

/* --------------------------- */
.controller-issue_template_setting.action-create #issue_note_label ,.controller-issue_template_setting.action-copy #issue_note_label , .controller-issue_template_setting.action-edit #issue_note_label  {
  display: none;
}

.controller-issue_template_setting.action-edit textarea#issue_template_note {
  display: none;
}

a.icon.issue-template-controller {
  background-image: url("/assets/plugin_assets/flux_issue_template/issue_template-67423dac.svg");
  background-size: 18px; 
   padding-left: 22px;
   background-repeat: no-repeat;
}

.controller-issue_template_setting #admin-menu > ul > li > a.icon.issue-template-controller {
  padding-left: 24px !important;
}

span.required {
  color: #bb0000;
}

div#flash_success {
  border-color: #9fcf9f;
  background-color: #dfffdf;
  color: #005f00;
}

/* table.list.issue_template_table > tbody > tr > td {
  font-size: 15px;
  font-family: 'Gilroy-Regular', sans-serif !important;
  font-weight: bold !important;
} */

table.issue_template_table {
  display: none ;
}
.controller-settings.action-plugin table.issue_template_table {
  display: table ;
}

@media screen and (max-width: 899px) {
.controller-issue_template_setting.action-create input#submited ,
.controller-issue_template_setting.action-copy input#submited ,
.controller-issue_template.action-new input#submited ,
.controller-issue_template.action-copy input#submited
{
 width: auto;
}
}



#tracker_id > option {
  font-weight: normal !important;
  /* font-family: 'Poppins-Regular'; */
}

span.label_issue_template {
  font-weight: normal !important;
  /* font-family: 'Poppins-Regular'; */
  font-size: 13px;
}

.tox-notification.tox-notification--in.tox-notification--warning , .tox-statusbar__help-text ,  button.tox-statusbar__wordcount , .tox-statusbar__path-item {
  display: none !important;
}

.controller-issue_template .disabled , .controller-issue_template_setting .disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

label#project_label {
  font-weight: normal !important;
  /* font-family: 'Poppins-Regular'; */
  color: black;
  font-size: 13px;
}

.controller-issue_template_setting .ql-toolbar.ql-snow , .controller-issue_template .ql-toolbar.ql-snow , .controller-issue_template_setting textarea#issue_description  , .controller-issue_template_setting div#issue_description 
 , .controller-issue_template div#issue_description , .controller-issue_template textarea#issue_description 
{
  width: -webkit-fill-available ;
  margin-left: 185px;
  padding: 5px;
}


@media screen and (max-width: 899px) {
  .controller-issue_template_setting .ql-toolbar.ql-snow , .controller-issue_template .ql-toolbar.ql-snow ,  .controller-issue_template_setting textarea#issue_description , .controller-issue_template_setting div#issue_description ,
.controller-issue_template div#issue_description , .controller-issue_template textarea#issue_description  {
  margin-left: 0px !important;
}
}

.controller-issue_template div#issue_description , .controller-issue_template_setting div#issue_description {
  height: 150px;
  background-color: white;
}

.controller-issue_template .ql-editor , .controller-issue_template_setting .ql-editor   {
  min-height: 100% !important;
  max-height: 100% !important;
}

.controller-issue_template_setting div#main-menu  {
  display: none;
}

.controller-issue_template .ql-editor , .controller-issue_template_setting .ql-editor {
  padding: 12px 10px !important;
}



.controller-issue_template.action-copy .jstBlock ,.controller-issue_template.action-new .jstBlock , .controller-issue_template.action-edit .jstBlock , .controller-issue_template_setting.action-create .jstBlock ,.controller-issue_template_setting.action-copy .jstBlock , .controller-issue_template_setting.action-edit .jstBlock {
  margin-top: -32px;
  margin-left: 181px;
}

@media screen and (max-width: 899px) {
.controller-issue_template p.template_issue_description , .controller-issue_template_setting p.template_issue_description {
  margin-bottom: 2px !important;
}

.controller-issue_template div.project_box > div.project_list , .controller-issue_template div.project_box p.checkbox_project ,
.controller-issue_template_setting div.project_box > div.project_list , .controller-issue_template_setting div.project_box p.checkbox_project
{
  display: flex;
}


}

.controller-issue_template_setting.action-create .ql-tooltip,.controller-issue_template_setting.action-edit .ql-tooltip ,.controller-issue_template_setting.action-copy .ql-tooltip {
  left: 0 !important;
}
.controller-issue_template_setting.action-show .table_textile pre,.controller-issue_template.action-index .table_textile pre{
    margin-top: 1em ;
    margin-right: 1em;
    margin-bottom: 1em;
    padding: 8px;
    background-color: #fafafa;
    border: 1px solid #e2e2e2;
    border-radius: 3px;
    width: 540px;
    overflow-x: auto;
    overflow-y: hidden;
}

@media screen and (max-width: 899px) {
.controller-issue_template.action-new .jstBlock, .controller-issue_template.action-edit .jstBlock, .controller-issue_template_setting.action-create .jstBlock, .controller-issue_template_setting.action-copy .jstBlock, .controller-issue_template_setting.action-edit .jstBlock , .controller-issue_template.action-copy .jstBlock {
  margin-top: 0px !important;
  margin-left: 0px !important;
}
}

input#active_status {
  margin-top: 3px;
}

@media screen and (max-width: 899px) {
  input#active_status {
    margin-top: 0px;
  } 
  p.template_active_status {
    display :flex ;
    width: 85px;
  }
  input#Issue_Template_name {
   width: 100%;
  }

.controller-issue_template_setting.action-create textarea#issue_subject ,
.controller-issue_template_setting.action-copy textarea#issue_subject ,
.controller-issue_template.action-edit textarea#issue_subject ,
.controller-issue_template_setting.action-edit textarea#issue_title ,
.controller-issue_template_setting.action-edit textarea#issue_subject ,
.controller-issue_template.action-new textarea#issue_subject ,
.controller-issue_template.action-copy textarea#issue_subject{
  width: 100% !important;
}

}
td.template_action > a {
  color: black;
  text-decoration: none;
  margin: 3px;
}

td.template_action > a:hover {
  color: black;
  text-decoration: none;
}

button.copy_button {
  float: inline-end;
  margin: 5px;
  cursor: pointer;
  width: 80px;
  height: 30px;
}

button.copy_button:hover {
  background-color: #ddd;
}

button.copy_button > a {
  color: black !important;
  text-decoration: none;
  cursor: pointer;
}

button.copy_button span {
  font-family: sans-serif;
}

.issue_template_button > input, .issue_template_button > button#clearButton, .issue_template_button > a#cancel_button ,
.issue_template_button > button#submited , .issue_template_button > a#cancel_template
{
  font-size: 13px;
  height: 32px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: white;
  color: black;
  padding: 0px 10px !important;
}

.controller-issue_template.action-index div#content , .controller-issue_template_setting.action-index div#content {
overflow-x: hidden !important;
}

/* ==================================== */


.controller-issue_template.action-view .template-heading ,
.controller-issue_template_setting.action-view .template-heading
{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.controller-issue_template.action-view .template-buttons ,
.controller-issue_template_setting.action-view .template-buttons
{
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.controller-issue_template.action-view .template_buttons > a ,
.controller-issue_template_setting.action-view .template_buttons > a {
  cursor: pointer;
  text-decoration: none !important;
  color: black !important;
  border: 1px solid #ccc;
  padding: 7px 10px;
  border-radius: 4px;
  background-color: white;
}

.controller-issue_template.action-view .template_buttons > a:hover ,
.controller-issue_template_setting.action-view .template_buttons > a:hover {
  background-color: #ddd !important;
  text-decoration: none !important;
  color: black !important;
}


.controller-issue_template.action-view .template-details > p  ,
.controller-issue_template_setting.action-view .template-details > p  
{
  margin-top: 10px;
}


.controller-issue_template.action-view .template-content,
.controller-issue_template_setting.action-view .template-content {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid #ccc;
  margin-top: 5px;
}

.controller-issue_template.action-view .template-description ,
.controller-issue_template_setting.action-view .template-description {
  margin-bottom: 20px;
}


.controller-issue_template.action-view .description-content ,
.controller-issue_template_setting.action-view .description-content {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  overflow: auto;
}


.controller-issue_template.action-view label.template_view_label ,
.controller-issue_template_setting.action-view label.template_view_label {
  padding-right: 5px;
}

.controller-issue_template.action-view .template-header ,
.controller-issue_template_setting.action-view .template-header {
  display: flex;
  align-items: center;
}

.controller-issue_template.action-view span.status_span ,
.controller-issue_template_setting.action-view span.status_span {
  padding: 2px;
}

.controller-issue_template.action-view .template-header > h2 ,
.controller-issue_template_setting.action-view .template-header > h2 {
  margin: 0px 0px 5px 0px !important;
}

table.list.issue_template_table td {
  text-transform: capitalize;
}

td.template_name_td > a {
  text-decoration: none;
  color: black !important;
}

td.template_name_td > a:hover {
  color: #0094ff ;
}


.controller-issue_template_setting #content .tabs ul li a.tab-button.active {
  background-color: white;
  color: black ;
}

.controller-issue_template_setting td.template_name_td , .controller-issue_template_setting td.template_title ,
.controller-issue_template td.template_name_td , .controller-issue_template td.template_title
{
  text-align: left !important;
  padding: 5px;
}

#issue_template_field > a.clear {
  text-decoration: none;
  color: black;
  cursor: pointer;
}

/* UI fixes  */
.controller-issue_template_setting.action-show #content .tabs{
  width: 100%;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/plugin_assets/flux_issue_template/Poppins-Regular-9a9b6e54.otf");
}
.issue-template-para-content{
  font-size: 17px;
  font-family: 'Poppins-Regular', sans-serif  !important;
  padding-left: 0px !important;
  text-align: justify;
  line-height: 1.5;
  /* margin: 0 auto; */
  max-width: 600px;
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

.delete-issue-template{
  font-size: 18px;
  font-family: 'Poppins-Regular', sans-serif;
  color:black;
  font-weight: 600;
}

button.issue-template_button{
  background: #0094FF;
  border: 1px solid #0094FF;
  color: #fff;
  padding: 0 7px;
  width: 110px;
  height: 40px;
  border-radius: 4px;
  font-family: 'Poppins-Regular', sans-serif;
  font-style: normal;
  font-weight: 400 !important;
  font-size: 15px !important;
  line-height: 21px;
  cursor: pointer;
}
input.issue-template_button {
  background: #0094FF;
  border: 1px solid #0094FF;
  color: #fff;
  padding: 0 7px;
  width: 110px !important;
  height: 40px;
  border-radius: 4px;
  /* font-family: "Poppins"; */
  font-style: normal;
  font-weight: 400 !important;
  font-size: 15px !important;
  line-height: 21px;
  cursor: pointer;
}
button.issue-template_button:hover {
  background-color: #0094ffc7 !important;
  border: 1px solid #0094ffc7 !important;
}

input.issue-template_button:hover {
  background-color: #0094ffc7 !important;
  border: 1px solid #0094ffc7 !important;
}
button.issue-template_cancel-btn {
  width: 120px;
  height: 40px;
  border-radius: 4px;
  font-family: 'Poppins-Regular', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 21px;
  cursor: pointer;
  transition: all 0.3s ease-in;
}

button.issue-template_cancel-btn:hover {
  background-color: #ced3e6a8;
}
.overlay-delete-issue-template{
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}
.issue-template-footer-folder {
  margin-top: 5px;
}
.issue-template-overlay{
  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;
}
.delete-issue-template{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background-color: #fff;
  border-radius: 5px;
  z-index: 1060;
  min-width: 386px;
  padding: 20px;
  visibility: hidden;
  opacity: 0.4;
  transition: all 0.1s ease-in;
  display: none;
  width: 430px;
  font-weight: 100 !important;
}
.modal-transition{
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  transition: all 0.3s ease-in;
}
.issue-template-suite-header-content {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e0e1e2;
  align-items: center;
  padding-bottom: 11px;
}
table.list.issue_template_table td.template_action {
  min-width: 30px;
}

.delete-issue-template {
  font-size: 18px;
  /* font-family: "Poppins"; */
  color: black;
  font-weight: 600;
}
.delete-heading{
  font-size: 18px;
  color:black;
  font-weight: 600;
}
.dark .issue-template-image-folder{
  content: url("/assets/plugin_assets/flux_issue_template/cross_dark-0b09daeb.svg");
  width: 16px;
  height: 16px;
}
.issue-template-suite-header-content .issue-template-image-folder {
  width: 16px;
  height: 16px;
}

html[lang="ar"], [lang="fa"],[lang="he"] {

  .controller-issue_template.action-copy .jstBlock, .controller-issue_template.action-new .jstBlock, .controller-issue_template.action-edit .jstBlock, .controller-issue_template_setting.action-create .jstBlock, .controller-issue_template_setting.action-copy .jstBlock, .controller-issue_template_setting.action-edit .jstBlock {
    margin-top: 0px;
    /* margin-left: 0px; */
    margin-right: 179px;
}

.project_box {
  margin-right: 181px !important;
  margin-right: 0px;
}

.controller-issue_template_setting.action-create label#project_label, .controller-issue_template_setting.action-copy label#project_label, .controller-issue_template_setting.action-edit label#project_label, .controller-issue_template.action-new label#project_label, .controller-issue_template.action-copy label#project_label, .controller-issue_template.action-edit label#project_label{
  margin-right: 10px;
}

}

.controller-issue_template_setting textarea#issue_description_textarea ,
.controller-issue_template textarea#issue_description_textarea
{
  min-height: 125px;
}

label.issue_template_attachments {
  float: none;
  margin-left: auto;
}

.controller-issue_template span.attachments_fields input ,
.controller-issue_template_setting span.attachments_fields input
{
  height: 20px !important;
  margin-right: 5px;
}


#content #template_form > div > fieldset p#attachments_form .attachments_form span.attachments_fields span > a.icon-only.icon-del.remove-upload{
  background-image: url("/assets/plugin_assets/flux_issue_template/delete_ico-7abab9a9.svg") !important;
  background-size: 19px !important;
  width: 20px !important;
  height: 20px !important;
}

.description-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 14px;
}

.description-content table th,
.description-content table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.description-content table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

/* Style for code blocks inside the description content */
.description-content pre {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 10px;
  overflow-x: auto;
  font-size: 14px;
  font-family: 'Courier New', Courier, monospace;
  margin: 10px 0;
}

.description-content code {
  background-color: #f4f4f4;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  color: #000000;
}
/* ---------------------------------------------------------------------------
   Template list table + delete popup — same look as the Helpdesk plugin
   --------------------------------------------------------------------------- */
.fit_table_section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 16px;
}
table.fit_table {
  display: table;
  width: 100%;
  border-collapse: collapse;
  border: none;
  margin: 0;
  font-size: 14px;
  background: #ffffff;
  color: #111827;
}
table.fit_table thead,
table.fit_table thead th {
  background: #f9fafb;
}
table.fit_table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border: none;
  border-bottom: 1px solid #e5e7eb;
}
table.fit_table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.15s;
}
table.fit_table tbody tr:last-child {
  border-bottom: none;
}
table.fit_table tbody tr:hover {
  background: #f9fafb;
}
table.fit_table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  text-align: left;
  border: none;
  font-size: 14px;
  font-family: inherit;
}
table.fit_table thead th.fit_sno_header {
  width: 50px;
  min-width: 50px;
  max-width: 50px;
  text-align: center;
}
table.fit_table tbody td.fit_sno_cell {
  text-align: center;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
}
table.fit_table thead th.fit_center,
table.fit_table tbody td.fit_center {
  text-align: center;
}
table.fit_table td.fit_name_cell a {
  color: #111827 !important;
  font-weight: 500;
  text-decoration: none;
}
table.fit_table td.fit_name_cell a:hover {
  color: #0094FF !important;
  text-decoration: underline;
}
table.fit_table td.fit_text_cell {
  max-width: 320px;
  overflow-wrap: break-word;
  word-break: break-word;
}
table.fit_table td.fit_center svg {
  vertical-align: middle;
}
.fit_actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
a.fit_btn_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #374151 !important;
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
a.fit_btn_icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}
a.fit_btn_icon:hover {
  background: #eff6ff;
  border-color: #0094FF;
  color: #0094FF !important;
}
a.fit_btn_icon_edit:hover {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #15803d !important;
}
a.fit_btn_icon_trash:hover {
  background: #fef2f2;
  border-color: #dc2626;
  color: #dc2626 !important;
}

/* Delete popup */
.fit_modal_overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 9999;
}
.fit_modal_overlay.active {
  opacity: 1;
  visibility: visible;
}
.fit_modal {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  width: 400px;
  max-width: calc(100vw - 32px);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.2s;
}
.fit_modal_overlay.active .fit_modal {
  transform: scale(1);
}
.fit_modal_close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
}
.fit_modal_icon_wrap {
  text-align: center;
  margin-bottom: 15px;
}
.fit_modal_icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
}
.fit_modal_icon svg {
  width: 32px;
  height: 32px;
  color: #dc2626;
}
.fit_modal .fit_modal_title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #111827;
  margin: 0;
}
.fit_modal_overlay .fit_modal p.fit_modal_text {
  text-align: center;
  color: #555;
  margin: 8px 0 0;
  padding: 0;
  min-height: 0;
  clear: none;
  overflow: visible;
  font-size: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.fit_modal_actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.fit_modal .fit_btn {
  flex: 1;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  height: 46px;
  width: auto;
}
.fit_modal .fit_btn_cancel {
  background: #ffffff;
  color: #374151;
  border: 2px solid #d1d5db;
}
.fit_modal .fit_btn_cancel:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}
.fit_modal .fit_btn_delete {
  background: #dc2626;
  color: #ffffff;
}
.fit_modal .fit_btn_delete:hover {
  background: #b91c1c;
}
.fit_modal .fit_btn_delete:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Inline form validation errors (rit-014) */
.fit_form_errors {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #fee2e2;
  border: 1px solid #ef4444;
  border-radius: 6px;
  color: #991b1b;
  font-size: 13px;
  line-height: 1.5;
}


.fit_form_errors ul {
  margin: 0;
  padding-left: 20px;
}

/* ---------------------------------------------------------------------------
   rit-014 — page header, search, status pill, empty state and form polish.
   Same look as the Timesheet / Workload plugins (primary colour #0094FF).
   --------------------------------------------------------------------------- */
.controller-issue_template #content,
.controller-issue_template_setting #content {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.fit_page_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 16px 20px;
  margin: 0 0 16px;
}
.fit_page_header_left { display: flex; align-items: center; gap: 12px; min-width: 0; }
svg.fit_page_header_icon { width: 36px; height: 36px; flex: none; color: #0094FF; }
#content .fit_page_title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: none;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
}
.fit_count_pill {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
}
/* The per-tab count. Smaller and quieter than the page pill above it, because
   it is a detail on a tab rather than a heading of its own. */
.fit_tabs .fit_tab_count {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 0 7px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
}
.fit_tabs .tab-button.active .fit_tab_count { background: #e5e7eb; color: #374151; }

.fit_page_subtitle { display: block; margin-top: 2px; font-size: 12px; color: #6b7280; }
.fit_page_header_right { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
#content .fit_page_header .containerBlock { margin: 0; }
a.fit_add_btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #0094FF;
  border: 1px solid #0094FF;
  border-radius: 6px;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
a.fit_add_btn:hover { background: #0094ffc7; border-color: #0094ffc7; transform: translateY(-1px); }
a.fit_add_btn svg { width: 14px; height: 14px; }
.fit_search_form { margin: 0; }
.fit_search_wrapper { position: relative; display: flex; align-items: center; }
.fit_search_wrapper svg.fit_search_icon {
  position: absolute; left: 10px; width: 14px; height: 14px; color: #9ca3af; pointer-events: none;
}
input.fit_search_input {
  width: 240px;
  max-width: 100%;
  height: 34px;
  box-sizing: border-box;
  padding: 0 30px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f9fafb;
  font-size: 13px;
}
input.fit_search_input:focus {
  outline: none;
  border-color: #0094FF;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 148, 255, 0.12);
}
a.fit_search_clear {
  position: absolute; right: 8px; display: inline-flex; color: #9ca3af !important; text-decoration: none !important;
}
a.fit_search_clear:hover { color: #dc2626 !important; }
a.fit_search_clear svg { width: 14px; height: 14px; }
table.fit_table thead th a { color: inherit; text-decoration: none; }
table.fit_table thead th a:hover { color: #0094FF; }
.fit_status_pill {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.fit_status_pill_active { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.fit_status_pill_inactive { background: #f9fafb; border-color: #e5e7eb; color: #6b7280; }
.fit_empty_state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-align: center;
}
svg.fit_empty_icon { width: 56px; height: 56px; margin-bottom: 12px; color: #d1d5db; }
.fit_empty_state p.nodata { margin: 0; padding: 0; background: none; border: none; font-size: 14px; color: #6b7280; }
.fit_empty_state p.nodata a { color: #0094FF; font-weight: 600; }
.controller-issue_template.action-new .box.tabular,
.controller-issue_template.action-edit .box.tabular,
.controller-issue_template.action-copy .box.tabular,
.controller-issue_template_setting.action-create .box.tabular,
.controller-issue_template_setting.action-edit .box.tabular,
.controller-issue_template_setting.action-copy .box.tabular {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
}
#template_form input[type=text]:focus,
#template_form textarea:focus,
#template_form select:focus {
  outline: none;
  border-color: #0094FF;
  box-shadow: 0 0 0 3px rgba(0, 148, 255, 0.12);
}
p.fit_field_hint { margin: 2px 0 8px; font-size: 12px; color: #6b7280; }
.fit_modal .fit_btn:focus-visible { outline: 2px solid #0094FF; outline-offset: 2px; }

/* ---------------------------------------------------------------------------
   rit-014 form polish: keeps the original label-left / field-right layout and
   only adjusts colour, button size and alignment. Scoped to #template_form.
   --------------------------------------------------------------------------- */
#template_form label.label_issue_template span.required { color: #dc2626; }

/* fields: same look and a consistent left edge */
#template_form select#tracker_id,
#template_form input#Issue_Template_name {
  box-sizing: border-box;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: #ffffff;
  font-size: 13px;
}

#template_form textarea#issue_subject,
#template_form textarea#issue_description_textarea {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: #ffffff;
  font-size: 13px;
}

#template_form textarea#issue_description_textarea {
  box-sizing: border-box;
  width: 100% !important;
  padding: 8px 10px;
}

/* helper texts line up with the fields */
#template_form p.fit_field_hint { padding-left: 186px !important; }

/* project list box */
#template_form .project_box {
  margin-left: 186px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

#template_form .project_box input[type=checkbox],
#template_form input#active_status { accent-color: #0094FF; }

@media screen and (min-width: 900px) {
  /* description editor starts where the other fields start and ends where the subject ends */
  #template_form .jstBlock {
    margin-left: 186px !important;
    width: calc(100% - 194px);
  }
}

/* action buttons: one size, one shape, aligned with the fields */
#template_form .issue_template_button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 16px;
}

/* attachments box lines up with the other fields */
#template_form fieldset {
  box-sizing: border-box;
  margin: 14px 8px 0 0;
  padding: 10px 14px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

#template_form fieldset legend { padding: 0 6px; font-size: 13px; font-weight: 600; color: #374151; }
#template_form fieldset #attachments_form > label { display: none; }
#template_form fieldset p#attachments_form { padding-left: 0 !important; margin: 0 !important; }

@media screen and (min-width: 900px) {
  #template_form fieldset { margin-left: 186px; }
}

#template_form .issue_template_button > input,
#template_form .issue_template_button > button,
#template_form .issue_template_button > a {
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 36px !important;
  margin: 0;
  padding: 0 18px !important;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: #ffffff;
  color: #374151 !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
}

#template_form .issue_template_button > input:hover,
#template_form .issue_template_button > button:hover,
#template_form .issue_template_button > a:hover {
  background-color: #f3f4f6 !important;
  border-color: #9ca3af !important;
  color: #374151 !important;
}

#template_form .issue_template_button > #submited {
  background-color: #0094FF !important;
  border-color: #0094FF !important;
  color: #ffffff !important;
}

#template_form .issue_template_button > #submited:hover {
  background-color: #0094ffc7 !important;
  border-color: #0094ffc7 !important;
}

#template_form .issue_template_button > button.disabled,
#template_form .issue_template_button > button:disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
}

#template_form .issue_template_button > button.disabled:hover,
#template_form .issue_template_button > button:disabled:hover {
  background-color: #ffffff !important;
  border-color: #d1d5db;
}

/* copy button on the edit pages */
.controller-issue_template.action-edit button.copy_button,
.controller-issue_template_setting.action-edit button.copy_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}

.controller-issue_template.action-edit button.copy_button:hover,
.controller-issue_template_setting.action-edit button.copy_button:hover { background: #f3f4f6; }

/* ---------------------------------------------------------------------------
   rit-014 template view page (project and admin): header card + detail cards.
   Everything is scoped to .fit_view.
   --------------------------------------------------------------------------- */
#content .fit_view {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#content .fit_view .fit_view_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 16px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

#content .fit_view .template-header { display: flex; align-items: center; gap: 12px; min-width: 0; }
#content .fit_view .template-header > div { min-width: 0; }

#content .fit_view .template-header h2 {
  margin: 0 !important;
  padding: 0;
  border: none;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
}

#content .fit_view .template-header .fit_page_subtitle {
  margin-top: 2px;
  font-size: 13px;
  color: #6b7280;
  overflow-wrap: anywhere;
}

#content .fit_view .template_buttons { display: flex; align-items: center; gap: 10px; }

#content .fit_view .template_buttons > a.fit_view_btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 36px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  color: #374151 !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
}

#content .fit_view .template_buttons > a.fit_view_btn:hover {
  background: #f3f4f6 !important;
  border-color: #9ca3af;
  color: #374151 !important;
}

#content .fit_view .template_buttons > a.fit_view_btn_primary {
  background: #0094FF;
  border-color: #0094FF;
  color: #ffffff !important;
}

#content .fit_view .template_buttons > a.fit_view_btn_primary:hover {
  background: #0094ffc7 !important;
  border-color: #0094ffc7;
  color: #ffffff !important;
}

#content .fit_view .template_buttons > a.fit_view_btn:focus-visible { outline: 2px solid #0094FF; outline-offset: 2px; }

/* cards */
#content .fit_view .fit_view_card {
  margin: 0 0 16px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

#content .fit_view .fit_view_card_title {
  margin: 0 0 14px;
  padding: 0 0 10px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

/* details grid */
#content .fit_view .fit_detail_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0;
}

#content .fit_view .fit_detail { margin: 0; min-width: 0; }
#content .fit_view .fit_detail_wide { grid-column: 1 / -1; }

#content .fit_view .fit_detail dt {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6b7280;
}

#content .fit_view .fit_detail dd {
  margin: 0;
  font-size: 14px;
  color: #111827;
  overflow-wrap: anywhere;
}

#content .fit_view .fit_chip {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 3px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
}

#content .fit_view .fit_chip_tracker {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

/* description */
#content .fit_view .description-content {
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 14px;
  color: #374151;
  overflow: auto;
}

#content .fit_view .description-content h1,
#content .fit_view .description-content h2,
#content .fit_view .description-content h3 {
  margin: 16px 0 6px;
  padding: 0;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

#content .fit_view .description-content > :first-child { margin-top: 0; }
#content .fit_view .description-content p { margin: 0 0 8px; }

#content .fit_view .description-content table { border-collapse: collapse; margin: 8px 0; }

#content .fit_view .description-content th,
#content .fit_view .description-content td {
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
}

#content .fit_view .description-content th { background: #f3f4f6; }

/* attachments */
#content .fit_view .attachments-content { display: flex; flex-wrap: wrap; gap: 8px; }
#content .fit_view .attachment-item { margin: 0; }
#content .fit_view .fit_muted { margin: 0; font-size: 13px; color: #6b7280; }

@media screen and (max-width: 899px) {
  #content .fit_view .fit_detail_grid { grid-template-columns: minmax(0, 1fr); }
  #content .fit_view .template_buttons { width: 100%; }
}

/* ---------------------------------------------------------------------------
   rit-014 Administration > Plugins > Configure: the lists sit directly on the page,
   so drop Redmine's own grey settings box around them.
   --------------------------------------------------------------------------- */
#settings.plugin-flux_issue_template .box.tabular.settings {
  padding: 0;
  border: none;
  background: transparent;
}

/* edit pages: heading and Copy button share one row, outside the form card */
#content .fit_edit_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

#content .fit_edit_head h3 { margin: 0; }

#content .fit_edit_head button.copy_button {
  float: none;
  margin: 0;
}

/* ---------------------------------------------------------------------------
   rit-014 Global / Project tabs: clear selected state (admin list and Configure page)
   --------------------------------------------------------------------------- */
#content div.fit_tabs {
  position: static;
  height: auto;
  overflow: visible;
  margin: 0 0 16px;
  border-bottom: 1px solid #e5e7eb;
}

#content div.fit_tabs ul {
  position: static;
  display: flex;
  gap: 4px;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-bottom: none;
}

#content div.fit_tabs ul li { float: none; margin: 0; }

#content div.fit_tabs ul li a.tab-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  margin: 0 0 -1px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

#content div.fit_tabs ul li a.tab-button:hover {
  background: #f3f4f6;
  color: #111827;
}

#content div.fit_tabs ul li a.tab-button.active,
#content div.fit_tabs ul li a.tab-button.active:hover {
  border-color: #e5e7eb;
  background: #ffffff !important;
  color: #0094FF !important;
  box-shadow: inset 0 3px 0 #0094FF;
}

#content div.fit_tabs ul li a.tab-button:focus-visible { outline: 2px solid #0094FF; outline-offset: -2px; }

/* ---------------------------------------------------------------------------
   rit-015 Issue Template Help page and the Help link in the list headers
   --------------------------------------------------------------------------- */
a.fit_help_link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  text-decoration: none;
}

a.fit_help_link:hover { background: #f3f4f6; color: #374151; text-decoration: none; }
a.fit_help_link:focus-visible { outline: 2px solid #0094FF; outline-offset: 2px; }

#content .fit_help_page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #374151;
}

#content .fit_help_header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  padding: 18px 22px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

#content .fit_help_header h2 { margin: 0; padding: 0; border: none; font-size: 22px; font-weight: 700; color: #111827; }
#content .fit_help_header p { margin: 2px 0 0; padding: 0; }
#content .fit_help_subtitle { font-size: 14px; color: #6b7280; }
#content .fit_help_meta { font-size: 12px; color: #9ca3af; }

#content .fit_help_layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

#content .fit_help_toc {
  position: sticky;
  top: 12px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

#content .fit_help_toc_label { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #6b7280; }
#content .fit_help_toc ul { margin: 0; padding: 0; list-style: none; }
#content .fit_help_toc li { margin: 0; }

#content .fit_help_toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
}

#content .fit_help_toc a:hover { background: #f3f4f6; color: #0094FF; }

#content .fit_help_card {
  margin: 0 0 16px;
  padding: 20px 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  scroll-margin-top: 12px;
}

#content .fit_help_card h3 {
  margin: 0 0 12px;
  padding: 0 0 10px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

#content .fit_help_card p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; }

#content .fit_help_list { margin: 0 0 4px; padding-left: 20px; font-size: 14px; line-height: 1.7; }

#content .fit_help_steps { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: it-help-step; }

#content .fit_help_steps li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 38px;
  font-size: 14px;
  line-height: 1.6;
  counter-increment: it-help-step;
}

#content .fit_help_steps li::before {
  content: counter(it-help-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0094FF;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}

#content .fit_help_table { width: 100%; margin: 0 0 14px; border-collapse: collapse; font-size: 13px; }

#content .fit_help_table th {
  padding: 8px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: left;
  text-transform: uppercase;
  color: #6b7280;
}

#content .fit_help_table td { padding: 10px 12px; border-bottom: 1px solid #f3f4f6; vertical-align: top; line-height: 1.5; }
#content .fit_help_table td.fit_help_strong { font-weight: 600; color: #111827; white-space: nowrap; }
#content .fit_help_table code { padding: 2px 6px; border-radius: 4px; background: #f3f4f6; font-size: 12px; color: #111827; }

#content .fit_help_callout {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}

#content .fit_help_callout_tip { border-color: #bfdbfe; background: #eff6ff; color: #1e40af; }
#content .fit_help_callout_important { border-color: #fde68a; background: #fffbeb; color: #92400e; }

#content .fit_help_faq { margin: 0 0 8px; border: 1px solid #e5e7eb; border-radius: 8px; background: #ffffff; }

#content .fit_help_faq summary {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
}

#content .fit_help_faq summary:hover { color: #0094FF; }
#content .fit_help_faq[open] summary { border-bottom: 1px solid #f3f4f6; }
#content .fit_help_faq p { margin: 0; padding: 12px 14px; }

@media screen and (max-width: 899px) {
  #content .fit_help_layout { grid-template-columns: minmax(0, 1fr); }
  #content .fit_help_toc { position: static; }
  #content .fit_help_table td.fit_help_strong { white-space: normal; }
}

/* Redmine's .tabular.settings gives every <p> a 300px left padding and every <label> a floated 295px column.
   Nothing on this page is a settings row, so reset both. */
#settings.plugin-flux_issue_template .box.tabular.settings p {
  padding-left: 0;
  min-height: 0;
  clear: none;
  overflow: visible;
}

#settings.plugin-flux_issue_template .box.tabular.settings label {
  float: none;
  width: auto;
  margin-left: 0;
  text-align: inherit;
}

/* ---- Project list: search field (matches the other form fields) ---- */
#template_form .project_box { max-height: 320px; overflow-y: auto; }
.fit_project_search {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center;
  padding: 10px 15px; background: #ffffff; border-bottom: 1px solid #e5e7eb;
}
.fit_project_search_icon {
  position: absolute; left: 26px; width: 14px; height: 14px; color: #9ca3af; pointer-events: none;
}
#template_form input.fit_project_search_input {
  box-sizing: border-box; width: 100%; height: 36px; padding: 0 12px 0 34px;
  border: 1px solid #d1d5db; border-radius: 6px; background-color: #ffffff; font-size: 13px;
}
#template_form input.fit_project_search_input::placeholder { color: #9ca3af; }
#template_form input.fit_project_search_input:focus {
  outline: none; border-color: #0094FF; box-shadow: 0 0 0 3px rgba(0, 148, 255, 0.12);
}
p.fit_project_empty { margin: 0; padding: 14px 15px; font-size: 13px; color: #6b7280; text-align: center; }
p.fit_project_empty[hidden] { display: none; }

/* ---- One hover / focus look for every form field (same as the project search field) ----
   The per-field rules above use #id selectors, so the shared :focus rule never reached them. */
#template_form select#tracker_id,
#template_form input#Issue_Template_name,
#template_form textarea#issue_subject,
#template_form textarea#issue_description_textarea,
#template_form input.fit_project_search_input {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#template_form select#tracker_id:hover,
#template_form input#Issue_Template_name:hover,
#template_form textarea#issue_subject:hover,
#template_form textarea#issue_description_textarea:hover,
#template_form input.fit_project_search_input:hover {
  border-color: #0094FF;
}
#template_form select#tracker_id:focus,
#template_form input#Issue_Template_name:focus,
#template_form textarea#issue_subject:focus,
#template_form textarea#issue_description_textarea:focus,
#template_form input.fit_project_search_input:focus {
  outline: none;
  border-color: #0094FF;
  box-shadow: 0 0 0 3px rgba(0, 148, 255, 0.12);
}
