/* FRONT EDITOR */
.popover {
  z-index: 9999;
}
.ed {
  background-color: #fff;
  width: calc(100% - 70px);
}
.mm .li.top-level > a.ed-logout {
  position: relative;
  margin-left: 3rem;
}
.mm .li.top-level > a.ed-logout::before {
  position: absolute;
  content: "|";
  left: -2rem;
}
.static .new-article {
  display: none;
}
.editor.left {
  padding-bottom: 1rem;
}
.editor.left li {
  list-style: none;
}
.ed.mm .menucontent.menu-a {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.ed.mm .li {
  min-height: 30px;
}
.ed.mm .li:first-child,
.ed.mm .li:nth-child(2) {
  display: none;
}
.ed.mm a {
  font-size: 0.8rem;
}
.editor > .ul > .li:first-child,
.editor > .ul > .li:nth-child(2){
  display: none;
}
/* Editor tips */
.editorintro {
  border-bottom: 2px solid var(--theme-medium);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.tips-button {
 color: var(--theme-dark);
 border: none;
 padding: 0;
 background: none;
 font-size: 1.5rem;
 margin-bottom: 1rem;
}
/* Front editor styles */
.category-list {
  width: 100%;
  background: #fff;
}
/* Front editor styles */
.float-end {
  float: right;
}
.float-start {
  float: left;
}
.new-article {
  padding: 0.5rem 0.5rem 0.75rem;
  background-color: var(--theme-medium);
  border-radius: 5px;
  margin-top: 3px;
  width: 8rem;
  text-align: center;
}
.new-article a {
  color: #fff;
}
.new-article:hover a {
  font-weight: bold;
}
.category-list {
  width: 100%;
  background: #fff;
  position: relative;
}
.editor-list {
  position: relative;
  height: 54px;
}
.editor-new,
.editor-list-qty {
  position: absolute;
  top: 0;
}
.editor-new {
  left: 120px;
  top: 0.5rem;
}
#com-content-formTabs.nav.nav-tabs {
  flex-direction: row;
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
}
#com-content-formTabs,
.wf-editor-tabs {
  list-style: none;
}
#com-content-formTabs li,
.wf-editor-tabs li {
  padding: 0 5px;
  border-left: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
  border-top: 1px solid #dee2e6;
  padding-bottom: 2px;
  margin: 0 5px 0 0;
  z-index: 999;
  background: #f1f1f1;
}
.wf-editor-tabs li {
  padding-bottom: 0;
}
/*#com-content-formTabs li:nth-child(3) {
  display: none;
}*/
#com-content-formTabs li a {
  display: inline !important; 
}
#com-content-formTabs .active,
.wf-editor-tabs .active {
  background: #ffffff;
}
#com-content-formTabs .active {
  box-shadow: 0 4px #ffffff;
}
.wf-editor-tabs {
  border-bottom: 2px solid #dee2e6;
}
.wf-editor-tabs .active {
  border-bottom: 2px solid #f1f1f1;
}
.wf-editor-header .wf-editor-tabs {
  margin: 0;
  top: 3px;
  position: relative;
}
.list-title {
  pointer-events: none;
  color: red;
}
.list-title a {
  color: #212529;
}
.chzn-container,
.controls input {
  margin-bottom: 12px;
}
#jform_images_image_intro_alt,
#jform_images_image_intro_caption{
  width: 600px;
}
.control-label {
  margin-bottom: 6px;
}
.control-label #jform_captcha-lbl::after {
  position: relative;
  content: " Please ensure you tick the reCaptcha box before saving your work. Once saved, the editor will close.";
    color: #ff0000;
}
joomla-tab-element#images .control-group:nth-child(3),
joomla-tab-element#images .control-group:nth-child(6),
joomla-tab-element#images .control-group:nth-child(7),
joomla-tab-element#images .control-group:nth-child(8),
joomla-tab-element#images .control-group:nth-child(9),
joomla-tab-element#images .control-group:nth-child(10),
joomla-tab-element#images .control-group:nth-child(n+13){
 display: none;
}
.media-browser-select::after {
  content: "\6f";
  font-family: General;
}
.chzn-container-active.chzn-with-drop {
  background-color: red;
  width: 165px !important;
  border-radius: 5px;
}
.chzn-with-drop
.chzn-container-active .chzn-single,
.chzn-container-single .chzn-single,
.chzn-container-multi .chzn-choices,
div.chzn-drop {
  width: 165px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
.chzn-container .chzn-results {
  margin: 0 0 0 0;
  padding: 0 0 0 0;
  width: 163px;
}
.chzn-container-single .chzn-search,
.chzn-container-single .chzn-search input[type="text"] {
  width: 155px;
}
.chzn-single a {
  background-color: blue;
}
.hasPopover {
  margin-top: 0.75rem;
}
.wf-editor-tabs li {
  padding-left: 1rem;
}
.wf-editor-tabs li a {
  font-size: 1.5rem;
}
.tab-content > .tab-pane {
    display: none;
}
.tab-content > .active {
  display: block;
}
#jform_title.inputbox {
  min-width: 300px;
  max-width: 400px;
}
#jform_profile_region-lbl,
#jform_profile_region {
  display: none;
}
.btn-toolbar .input-group {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
}
.js-stools-container-bar .btn-toolbar {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.js-stools-container-bar .btn-toolbar > * {
  -webkit-margin-end: 8px;
  margin: 4px 0;
  margin-inline-end: 8px;
}
.js-stools-container-bar .btn-group {
  display: inline-flex;
  position: relative;
}
#adminForm .js-stools[role=search] #filter_search {
  border: 1px solid var(--medium-grey);
  border-radius: 2.5px 0 0 2.5px;
  padding: 0 0 0 0.5rem;
  width: 200px;
}
#adminForm button.btn.btn-primary.js-stools-btn-filter {
  background-color: var(--theme-dark);
  border-color: var(--theme-dark);
  color: #fff;
  align-self: center;
  border: 1px solid transparent;
  border-radius: 2.5px 0 0 2.5px;
  display: inline-block;
  line-height: 1.5rem;
  padding: .75rem 1rem;
  text-decoration: none;
  user-select: none;
  margin: 0; 
}
#adminForm .input-group {
  position: relative;
}
.input-group > #filter_search ~ div[id^="filter"][role=tooltip]  {
  display: none;
}
.input-group > #filter_search:focus ~ div[id^="filter"][role=tooltip] ,
.input-group > #filter_search:hover ~ div[id^="filter"][role=tooltip] {
  display: block;
  background-color: #fff;
  position: absolute;
  top: 2.75rem;
  width: 400px;
  padding: 0.5rem;
  border-radius: 5px;
  box-shadow: 5px 5px 10px var(--medium-grey);
}
#adminForm .btn.btn-primary.js-stools-btn-clear {
  border: 1px solid var(--theme-medium);
  border-radius: 0 2.5px 2.5px 0;
  padding: 0 0.75rem;
  background-color: var(--theme-medium);
  color: #fff;
}
#adminForm .form-select {
  background: url(../images/select-bg.svg) no-repeat 100%/116rem;
  background-color: rgba(0, 0, 0, 0);
  background-color: #eaedf0;
  border: 1px solid #ced4da;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.075);
  cursor: pointer;
  max-width: 100%;
  -moz-padding-start: calc(1rem - 3px);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: .25rem;
  color: #22262a;
  display: block;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  padding: .7rem 3rem .7rem 1rem;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;  
}
#adminForm .table > :not(caption) > * > * {
  padding: .25rem;
  border-collapse: collapse;
}
#adminForm .table > :not(caption) th.has-context {
  padding: 0.5rem;
}

#adminForm .table > :not(caption) th.has-context .js-module-insert.btn {
  padding: 0.3rem 0.5rem;
}
#adminForm .table tr {
  border-bottom: 1px solid var(--medium-grey);  
  white-space: nowrap;
}
#adminForm thead {
  border-top: 2px solid var(--dark-grey);
  border-bottom: 2px solid var(--dark-grey);
}
#adminForm .table th {
  vertical-align: middle;
  font-weight: normal;
}
th#categorylist_header_title,
th#categorylist_header_date,
th#categorylist_header_author,
th#categorylist_header_edit {
  text-align: left;
}
#adminForm .table th.title {
  text-align: left;
}
#adminForm td.text-center {
    text-align: center !important;
}
#adminForm select#list_fullordering.form-select,
#adminForm select#list_limit.form-select {
  padding: 0.8rem 3.75rem 0.8rem 1rem;
}
#adminForm .form-select option {
  padding: 0.2rem 0;
}
.tbody-icon .icon-check {
  border: 2px solid #448344;
  border-radius: 50%;
  color: #448344;
  font-size: 1.1rem;
  height: 1.5rem;
  line-height: 1.25rem;
  width: 1.5rem;
}
#adminForm th[scope=row] {
  text-align: left;
}
/*.tooltip.show {
  opacity: 0.9;
}*/
.tooltip .tooltip-arrow {
  position: absolute;
  display: block;
  width: 0.8rem;
  height: 0.4rem;
}
.tooltip .tooltip-arrow::before {
  position: absolute;
  content: "";
  border-color: transparent;
  border-style: solid;
}
/*#filter[search]-desc::not(.show),
[role=tooltip]:not(.show) {
  right: 5em;
  z-index: 1070;
  display: none;
  max-width: 100%;
  padding: 0.5em;
  margin: 0.5em;
  color: black;
  text-align: start;
  background: white;
  border: 1px solid #6d757e;
  border-radius: 0.25rem;
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.8);
}
[role=tooltip]:not(.show)[id^=editarticle-] {
  right: auto;
  -webkit-margin-start: -10em;
          margin-inline-start: -10em;
}
[role=tooltip]:not(.show)[id^=editcontact-] {
  right: auto;
  -webkit-margin-start: -10em;
          margin-inline-start: -10em;
}
[role=tooltip]:not(.show)[id^=id-skip-] {
  right: auto;
}

:focus + [role=tooltip],
:hover + [role=tooltip] {
  position: absolute;
  display: block;
}*/
/* this might sort chzn-drop not showing*/
#adminForm .tab-content {
overflow: visible !important;
}
.editor-cat-list tbody tr {
  background-color: var(--lightest-grey);
}
.editor-cat-list .table-bordered thead th,
.editor-cat-list tbody td {
  border: 1px solid var(--light-grey);
  padding: 0.5rem 0.25rem;
}
.editor-cat-list .table-bordered thead th {
  border-bottom-width: 2px;
  text-align: left;
}
.editor-cat-list tbody tr:nth-child(2n) {
  background-color: #fff;
}
.popover {
  background-color: white;
  border: 2px solid var(--theme-dark);
  border-radius: 5px;
  padding: 5px;
  position: absolute;
  max-width: 300px;
  top: 0;
  left: 0;
}
.popover-title {
  font-size: 1.2rem;
}
.btn.btn-secondary {
  border: none;
  background: transparent;
  padding: 0 0.5rem;
}
.icons button.dropdown-toggle {
  display: none;
}
.icons ul.dropdown-menu {
  padding: 0;
}
.icons .dropdown-menu li {
  list-style: none;
}
.icons .dropdown-menu li > a,
#editor-xtd-buttons > a {
  border: 1px solid var(--medium-grey);
  background-color: var(--lightest-grey);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  padding: 4px 12px;
}
.editor-tips.toggle-btn.image-prep[aria-expanded="false"]:after {
  position: relative;
  content: "Read article...";
}
.editor-tips.toggle-btn.image-prep[aria-expanded="true"]:after {
  position: relative;
  content: "Close article";
}
.tips-button ~ .tips {
  display: none;
}
.tips-button.form-opened ~ .tips {
  display: block;
  margin-bottom: 1rem;
}
.editor th {
 text-align: left;
}
.editor tr:nth-child(even),
.editor thead {
  background-color: var(--theme-light);
}
.editor thead > tr > th {
  padding: 0.5rem 0;
}
.editor tr > th:first-child,
.editor tr > td:first-child {
  padding-left: 1rem;
}
[class*=" icon-"], [class^="icon-"] {
  font-family: "General";
  font-weight: 900;
}
/* EDITOR BUTTONS */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}
#adminForm .js-stools[role=search] button[type=submit] {
  border: 1px solid transparent;
  border-radius: 0 5px 5px 0;
  background-color: var(--theme-dark);  
}
#adminForm span.icon-search {
  padding: 0 0.5rem;
}
#adminForm span.icon-search::before {
  font-size: 1.25rem;
  font-weight: bold;
  color: #fff;
}
#imageModal_jform_images_image_intro {
  background-color: rgba(255,255,255,0.8);
}
#adminForm  {
  border-bottom: 2px solid var(--theme-dark);
  padding: 0 0 3.75rem;
  background-color: #fff;
}
#adminForm .btn-toolbar {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}
#adminForm .btn {
  display: inline-block;
  cursor: pointer;
}
#adminForm .editor-xtd-buttons {
  margin-top: 1rem;
}
#adminForm .editor-xtd-buttons .btn {
  margin-bottom: 5px;
}
#adminForm .btn.btn-success,
#adminForm .btn.btn-secondary {
  color: #353b41;
  background-color: #fff;
  border-color: #ced4da;
  line-height: 1.5;
  color: #22262a;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  padding: .6rem 1rem;
  font-size: 1rem;
  border: 1px solid transparent;
  border-color: #ced4da;
  border-radius: .25rem;
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
  margin-right: 0.5em;
}
#adminForm .btn.btn-success,
#adminForm .btn-check:focus + .btn-success, 
#adminForm .btn-success:focus, 
#adminForm .btn-success:hover {
  background-color: #3a6f3a;
  color: #fff;
  margin-right: 1em;
  border: 1px solid transparent;
}
#adminForm .btn-secondary:focus, 
#adminForm .btn-secondary:hover {
  color: #353b41;
  background-color: #f9fafb;
}
#adminForm .icon-vcard::before {
  content: "\f2bb";
}
/*#adminForm button[title='Convert Forms'],
#adminForm button[title='Menu'],
#adminForm button[title='Contact'],
#adminForm button[title='Article'],
#adminForm button[title='Field'],
#adminForm button[title='Media']{
    display: none;
}*/
#adminForm button.choices__button_joomla {
  margin-left: 1rem;
}
#adminForm caption.sr-only {
 display: none;
}
#adminForm .btn-close.novalidate {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: .25em;
  color: #000;
  background: transparent url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3E%3C/svg%3E") 50%/1em auto no-repeat;
  border: 0;
  border-radius: .25rem;
  opacity: .5;
}
.edit.item-page .mb-2 {
  margin-top: 1rem;
}
.edit.item-page .btn {
  color: #fff;
  border: 1px solid transparent;
  border-radius: .25rem;
  font-size: 1rem;
  line-height: 1.5;
  padding: .6rem 1rem;
  text-align: center;
  text-decoration: none;
  user-select: none;
  vertical-align: middle;
}
.edit.item-page .btn.btn-primary {
  background-color: var(--theme-dark);
}
.edit.item-page .btn.btn-danger {
  background-color: var(--theme-danger);
}
/* for Articles Anywhere dialog */
.modal-dialog {
  position: relative;
  width: auto;
  margin: .5rem;
  pointer-events: none;
}
.modal-dialog {
  max-width: 500px;
  margin: 1.75rem auto;
}
.modal-dialog.jviewport-width80 {
  width: 80vw;
  max-width: none;
}
.modal.fade .modal-dialog {
  transition: transform .3s ease-out,-webkit-transform .3s ease-out;
}
.modal.show .modal-dialog {
  transform: none;
  top: 7rem;
}
.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: .3rem;
  outline: 0;
}
.modal-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #dfe3e7;
  border-top-left-radius: calc(.3rem - 1px);
  border-top-right-radius: calc(.3rem - 1px);
}
.modal-header {
  padding: 0 15px;
}
.modal-title {
  font-weight: normal;
  line-height: 3rem;
  margin-bottom: 0;
}
.modal-header .btn-close {
  padding: .5rem;
  margin: -.5rem -.5rem -.5rem auto;
}
.jviewport-height70 {
  height: 70vh;
}
.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
}
.modal iframe {
  width: 100%;
}
[class*="jviewport-height"] iframe {
  height: 100%;
}
iframe {
    border: 0;
}
.modal-footer {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  padding: .75rem;
  border-top: 1px solid #dfe3e7;
  border-bottom-right-radius: calc(.3rem - 1px);
  border-bottom-left-radius: calc(.3rem - 1px);
}
.modal .fade {
    transition: opacity .15s linear;
}
#adminForm fieldset {
  padding: 0;
  border: none;
}
#adminForm .choices[data-type*="select-one"] .choices__button_joomla {
  position: absolute;
  top: 50%;
  right: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  margin-top: -10px;
  margin-right: 50px;
  border-radius: 10em;
  opacity: 1;
}
#adminForm .choices__item--selectable {
  cursor: pointer;
}
#adminForm .choices__list--single .choices__item {
  width: 100%;
}
#adminForm .choices[data-type*="select-one"] .choices__item {
  display: flex;
  justify-content: space-between;
}
#adminForm .choices__button_joomla::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  text-align: center;
  text-indent: 0;
  content: "×";
}
#adminForm .choices__button_joomla {
  text-indent: -9999px;
  background: none;
  border: 0;
  appearance: 0;
}
.modal .btn-primary:not([href]), 
.modal .btn-primary:not([href]):hover, 
.modal .btn-success:not([href]), 
.modal .btn-success:not([href]):hover {
  color: #fff;
}
/* image editor */
.modal-header {
  align-items: center;
  border-bottom: 1px solid #dfe3e7;
  border-top-left-radius: calc(.3rem - 1px);
  border-top-right-radius: calc(.3rem - 1px);
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  padding: 0 15px;
}
.modal-content {
  background-clip: padding-box;
  background-color: #fff;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: .3rem;
  display: flex;
  flex-direction: column;
  outline: 0;
  pointer-events: auto;
  position: relative;
  width: 100%;
}
.modal-title {
  line-height: 3rem;
  margin-bottom: 0;
}
.modal-header .btn-close {
  margin: -.5rem -.5rem -.5rem auto;
  padding: .5rem;
}
.field-media-wrapper .modal div.modal-body {
  max-height: 100% !important;
  width: 100%;
  overflow: hidden;
  padding: 0;
}
.jviewport-height60 {
    height: 60vh;
}
.options-form {
  border: 1px solid var(--theme-light);
  margin-bottom: 1rem;
  padding: 1rem 2rem;
  width: 100%;
  color: var(--theme-dark);
}
.options-form > legend {
  float: none;
  font-weight: 700;
  padding: 0 .5rem;
  width: auto;
  font-size: 1.5rem;
}
joomla-field-subform .table-responsive {
 border-top: 2px solid var(--theme-dark);
}
.modal.show .modal-dialog {
  -webkit-transform: none;
  transform: none;
}
.modal-content {
  background-clip: padding-box;
  background-color: #fff;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: .3rem;
  display: flex;
  flex-direction: column;
  outline: 0;
  pointer-events: auto;
  position: relative;
  width: 100%;
}
.modal-header {
  align-items: center;
  border-bottom: 1px solid #dfe3e7;
  border-top-left-radius: calc(.3rem - 1px);
  border-top-right-radius: calc(.3rem - 1px);
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  padding: 1rem;
}
.modal-title {
  font-weight: var(--theme-dark);
  line-height: 3rem;
  line-height: 1.5;
  margin-bottom: 0;
}
.jviewport-height60 {
  height: 60vh;
}
.modal-body {
  flex: 1 1 auto;
  padding: 1rem;
  position: relative;
}

@media only screen and (min-width: 768px){
  #ed {
    border-top: 1px solid #fff;
  }
  .ed {
    background-color: var(--theme-dark);
    margin-top: 1rem;
  }
}
