.logo {
  background-image: url("images/NSWTF_Logo_White.png");
  height: 50px;
  margin: 10px 0;
  min-height: 100px;
}

.CaseStaffIQA
  .rgMasterTable
  tr:is(.rgRow, .rgAltRow):has(span.StaffRole-CaseOfficer) {
  background-color: #ffdcc7 !important;
}

.CaseNotesIQA
  .rgMasterTable
  tr:is(.rgRow, .rgAltRow):has(span.NotePriority-High) {
  background-color: #ffc6b9 !important;
}

/* Organiser Icon (Calendar) */
a.rtIn.OrganiserNavIcon::before {
  content: "\f073" !important;
  font-weight: 900;
  font-family: "Font Awesome 5 Free";
}

.sticky {
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.IQASummary.TwoColumn .PanelField {
  width: 50%;
  display: inline-block;
  float: revert;
}

.redBtn.TextButton {
  background: #d01400;
}

/* hide email on address */
#ctl00_TemplateBody_AddressEdit_DivAddressEntry
  tr.PanelField.Left:nth-last-child(2),
#ctl00_TemplateBody_AddressEdit_DivAddressEntry tr.PanelField.Left:last-child {
  display: none;
}

.fas.fa-times.IQA {
  text-decoration: none;
  font-size: 150%;
}

.IQA.red {
  color: red !important;
}

.IQA.red:hover {
  color: #a90000 !important;
}

.isPastDeadline {
  color: red;
}

.CaseNotesIQA .panel-body-container {
  max-height: calc(100vh - 250px);
  overflow-y: auto;
}

.CaseNotesIQA .rgMasterTable thead tr[role="row"] th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f5f5f5;
}

.task-check {
  width: 24px;
  height: 24px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
  background: #fff;
}

.task-check:hover {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px #dcfce7;
}

tr.actioned-task .task-check {
  border-color: #16a34a;
  background: #16a34a;
}

tr.actioned-task .task-check::after {
  content: "✓";
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.RadGrid.RadGrid_MetroTouch tr.actioned-task {
  background-color: revert !important;
}

.RadGrid.RadGrid_MetroTouch tr.actioned-task td,
.RadGrid.RadGrid_MetroTouch tr.actioned-task td a,
.RadGrid.RadGrid_MetroTouch tr.actioned-task td .isPastDeadline {
  color: gray;
  text-decoration-line: line-through;
}

/* keep the toggle control clean — new decoration context cancels the inherited line */
.RadGrid.RadGrid_MetroTouch tr.actioned-task td .task-check {
  display: inline-flex;
  text-decoration: none;
}

/* hide all export buttons except CSV 
.dropdown-menu > li {
  display: none;
}
*/

.dropdown-menu > li:has(a[id$="btnExportWord"]), 
.dropdown-menu > li:has(a[id$="btnExportPDF"]), 
.dropdown-menu > li:has(a[id$="btnExportExcel"]), 
.dropdown-menu > li:has(a[id$="btnExportXML"]) {
  display: none;
}
