body {
  font-family: 'Roboto', sans-serif;
}

.btn-primary {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #204e85;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #315c8f;
  --bs-btn-active-color: #f9fbfc;
  --bs-btn-active-bg: #98aec7;
  --bs-btn-border-color: #ffffff00;
  --bs-btn-hover-border-color: #ffffff00;
  --bs-btn-active-border-color: #ffffff00;
}

/* LOGIN PAGE STYLING */

.login-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-image: url('images/login_backgroundd.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

.logo-container {
  margin-bottom: 20px;
}

.login-header {
  padding-bottom: 5px;
  color: #0e58a4;
  font-size: 40px;
  font-weight: 600;
  text-align: center;
}

.login-form-container {
  width: 100%;
  max-width: 400px;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.form-control {
  border-radius: 8px;
  border: 1px solid #ced4da;
  padding: 12px;
}

.no-link-format {
  text-decoration: none !important;
  color: inherit !important;
  background-color: inherit !important;
}

.no-link-format:hover {
  color: inherit;
  background-color: inherit;
}

.link-bar {
  color: white;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
}

.btn-login-primary {
  background-color: #204e85;
  color: white;
  border-radius: 8px;
  padding: 12px;
  font-weight: 500;
}

.btn-login-primary:hover {
  background-color: #236bc4;
  color: white;
}

@media (max-height: 768px) {
  .logo-container img {
    max-height: 5rem;
  }

  .login-form-container {
    padding: 0.75rem;
  }

  .login-header {
    font-size: 2rem;
  }

  .link-bar {
    font-size: 0.75rem;
  }

  .login-page {
    padding: 1rem;
  }
}

/* END */

.nav-item {
  margin: 4px 10px !important;
}

.icon-holder {
  padding-right: 15px;
}

.sidebar-link-active {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  display: block;
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.sidebar-link.account {
  padding: 15px 30px;
  transition: background-color 0.3s ease;
  border-radius: 6px;
}

.sidebar-link.account:active {
  background-color: rgba(255, 255, 255, 1);
}


.bgc-blue-grey {
  background-color: #dde4eb;
}

.bgc-gradient-blue {
  background: linear-gradient(to bottom, #204e85, #3d94fd);
}

.tile-container-styling {
  border-radius: 8px !important;
  box-shadow: 0 0px 4px rgba(0, 0, 0, 0.2),
    0 0px 12px rgba(0, 0, 0, 0.1) !important;
  padding: 2rem;
}

@media (max-width: 1439px) {
  .tile-container-styling {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 991px) {
  .tile-container-styling {
    padding: 1rem 0.5rem;
  }
}

.searchbar {
  width: 400px;
  height: 32px;
  padding-left: 7px;
  border: 1px solid #ddd;
  border-radius: 6px;  
  transition: width 0.3s ease;
  color: #444;
}

.searchbar-wrapper {
  margin-right: 10px;
  transition: margin-right 0.3s ease;
}

table.page-number-table {
  border: none;
  border-collapse: separate;
  transition: width 0.3s ease;
  min-height: 50px;
}

table.page-number-table td {
  background-color: lightgrey;
}

table.page-number-table thead tr:first-child th:first-child {
  border-top-left-radius: 6px;
}

table.page-number-table thead tr:first-child th:last-child {
  border-top-right-radius: 6px;
}

table.page-number-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 6px;
}

table.page-number-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 6px;
}

table.page-number-table tr {
  background-color: transparent;
}

table.page-number-table th {
  background-color: #6c757d;
  color: #ffffff;
  padding: 4px 10px;
}

@media (max-width: 780px) {
  .page-number-table {
    width: 100%;
  }
  .searchbar {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .searchbar-wrapper {
    margin-right: 0px;
  }
}

table.page-number-table a {
  position: relative;       /* so the pseudo-element is positioned relative to this */
  display: inline-block;    /* so it has a box for absolute positioning to work */
  color: #72777a;
}

table.page-number-table a:hover {
  background-color: transparent;
  color: #204e85;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  padding-left: 6px;
  padding-right: 6px;
}

table.page-number-table a::before {
  content: '';
  position: absolute;
  top: -10px; bottom: -10px;
  left: -10px; right: -10px;
}

/* DataTable Styling */
.dataTables_wrapper .dataTables_scroll {
  overflow-x: auto;
}

.dataTables_scrollHeadInner {
  width: 100% !important;
}

.dataTables_scrollBody {
  overflow-x: auto;
}

.fc-more-link {
  color: #000000 !important;
  font-weight: bold;
  text-decoration: underline;
}

/* DataTable Styling */
table.dataTable {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
  font-size: 0.8rem;
  background-color: transparent; /* let wrapper handle bg */
  margin-bottom: 0px !important;
  color: #444;
}


/* Optional: Round specific corners of table header */
table.dataTable thead th:first-child {
  border-top-left-radius: 8px;
}

table.dataTable thead th:last-child {
  border-top-right-radius: 8px;
}

/* Round bottom corners of the last row */
table.dataTable tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

table.dataTable tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}


/* Change color of the "Show X entries" label */
.dataTables_length label {
  color: #72777a;
  font-weight: 500 !important;
}

/* Change color of the "Search" label */
.dataTables_filter label {
  color: #72777a;
  font-weight: 500 !important;
}


@media (max-width: 768px) {
  table.dataTable {
    border: 0.5px solid #ced4da;
    /* Slightly thinner, helps rendering */
    transform: scale(1.001);
    /* Forces re-render for better pixel snapping */
  }
}

/* Header */
table.dataTable thead {
  color: #686868;
}

table.dataTable thead th {
  font-size: 0.85rem;
  border-bottom: 2px solid #d2d2d2 !important;
  text-align: left;
  font-weight: 500;
  background-color: #e8eff7;
}

table.dataTable th {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
  color: darkgray; /* Default sort icon color */
  opacity: 1 !important; /* override the faded opacity */
}


table.dataTable thead .sorting_asc::after {
  color: gray;
}

/* Descending sort */
table.dataTable thead .sorting_desc::before {
  color: rgb(95, 95, 95);
}

/* Rows */
table.dataTable tbody tr {
  background-color: #fff;
  border-bottom: 1px solid #f1f1f1;
  transition: background-color 0.2s ease;
}

/* Cells */
table.dataTable tbody td {
  padding: 6px 16px;
  color: #343a40;
}

.clickable-row:hover td {
  background-color: rgb(206, 223, 255);
  cursor: pointer;
}

.clickable-row-nopointer:hover td {
  background-color: rgb(228, 238, 255);
}

/* Pagination and Search */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #ced4da;
  background-color: #fff;
  margin-left: 8px;
}

/* Pagination Buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  background: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 6px 12px;
  margin: 0 2px;
  color: #495057;
  transition: background-color 0.2s;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #dee2e6;
  color: #212529;
}

/* Current Page Highlight */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #204e85;
  color: #fff !important;
  border-color: #204e85;
}

/* Info Text */
.dataTables_wrapper .dataTables_info {
  padding-top: 10px;
  color: #6c757d;
}

/* Give space between search and other elements*/
.dataTables_wrapper .dataTables_filter input {
  margin-bottom: 14px;
  width: 250px;
  /* or any desired width */
}

/* Remove inner vertical borders */
table.dataTable td {
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
}

/* Keep only horizontal row borders */
table.dataTable tbody tr {
  border-bottom: 1px solid #f1f1f1;
}

/* Calendar Colours */

.cd-winning-green {
  color: #008800;
}

.cd-pastel-green {
  color: #66bb6a;
}

.cd-pastel-lightgreen {
  color: #8ed788;
}

.cd-brave-blue {
  color: #2b3a67;
}

.cd-blue {
  color: #204e85;
}

.cd-chatte-blue {
  color: #0c54c0;
}

.cd-arrow-blue {
  color: #2196f3;
}

.cd-pastel-blue {
  color: #a6bcf3;
}

.cd-iconic-orange {
  color: #ff9b21;
}

.cd-iconic-yellow {
  color: #efc148;
}

.cd-iconic-gray {
  color: #515565;
}

.cd-iconic-lime {
  color: #c6d48e
}

.cd-iconic-blue {
  color: #8dcffd;
}

.cd-iconic-red {
  color: #ff6d6d;
}

.container-fluid {
  padding-left: 0px;
  padding-right: 0px;
}

.map-container {
  position: relative;
  padding-bottom: 75%;
  /* 4:3 aspect ratio */
  height: 0;
  overflow: hidden;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .contact-row {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .contact-row .col-md-6 {
    padding-left: 0px;
    padding-right: 0px;
  }
}

.custom-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.custom-modal-content {
  background-color: #fff;
  position: relative;
  margin: 15% auto;
  padding: 50px 20px 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.close-button {
  background: none;
  border: none;
  font-size: 20px;
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-button:hover {
  color: red;
}

/* Success / Error Color Variants */
.custom-modal-content.success {
  border-left: 6px solid #28a745;
  background-color: #e6f4ea;
}

.custom-modal-content.error {
  border-left: 6px solid #dc3545;
  background-color: #fceaea;
}

/* Index mobile container adjustments to adapt to the overflow issue which hasn't truly been fixed yet */

@media (max-width: 768px) {
  .overflow-fix {

    margin-left: 0px !important;
    margin-right: 0px !important;
  }

  .overflow-fix-2 {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
}

.btn-backup {
  background-color: #eceff1;
}

.btn-backup:hover {
  background-color: #a2b1c9;
}

.btn-primary-raw {
  color: #ffffff;
  background-color: #204e85;
  border: 1px solid #204e85;
}

.btn-primary-raw:hover {
  color: #ffffff;
  background-color: #315c8f;
}

.btn-primary-raw:active {
  color: #f9fbfc;
  background-color: #98aec7;
}

.btn-secondary-raw {
  color: white;
  background-color: gray;
  border: 1px solid gray;
}

.btn-secondary-raw {
  color: white;
  background-color: rgb(145, 145, 145);
}

/* Styling for the allowlist/blocklist add to list form */

.addtolist-form-wrapper {
  width: 100%;
  padding: 0.5em 0;
}

.addtolist-form-container {
  background-color: #e8eff7;
  display: inline-block;
  border-radius: 5px;
  min-width: 320px;
  justify-content: center;
  width: 100%;
}

.addtolist-form-heading {
  font-weight: 500;
  font-size: 1.2em;
  text-align: left;
}

.addtolist-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1em;
  margin: 0 0 0.5em 0;
}

.addtolist-form-field {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.addtolist-form-field-inline {
  display: flex;
  align-items: center;
  gap: 0.3em;
  flex-wrap: wrap;
  min-width: 0;
}

.addtolist-form-field-inline input[type="text"],
.addtolist-form-field-inline select,
.addtolist-form-wrapper input[type="text"],
.addtolist-form-wrapper select {
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 2px 6px;
  font-size: 0.9em;
  border-radius: 4px;
  border: 1px solid lightgray;
}

.addtolist-form-field label {
  font-weight: 500;
  margin-bottom: 0.2em;
  font-size: 0.9em;
}

.addtolist-form-actions {
  display: flex;
  gap: 0.5em;
  align-items: center;
}

.addtolist-form-wrapper button {
  font-size: 0.9em;
  padding: 3px 10px;
}

@media (max-width: 600px) {
  .addtolist-form-row {
    flex-direction: column;
    align-items: stretch;
  }
  .addtolist-form-field {
    width: 100%;
  }
  .addtolist-form-field-inline input[type="text"],
  .addtolist-form-field-inline select {
    flex-basis: 100%;
    max-width: 100%;
  }
}

.addtolist-form-wrapper .btn-secondary {
  background-color: gray;
  border: 1px solid gray;
  transition: all 0.3s ease;
}

.addtolist-form-wrapper .btn-secondary:hover {
  background-color: rgb(145, 145, 145);
}

#listTable .clickable-row:hover td {
  background-color: rgb(206, 223, 255);
  cursor: pointer;
}

#listTable tbody tr:hover td {
  background-color: rgb(206, 223, 255);
}


/* Colorised table CSS for functions.php */

table.colorised-table {
  width: 100%;
  min-width: 1150px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  color: #444;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

table.colorised-table th,
table.colorised-table td {
  border: none;
  white-space: nowrap;
  transition: padding 0.3s ease;
}

table.colorised-table thead {
  background-color: #f9fafb;
}

table.colorised-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  font-size: 0.855rem;
  color: #444;
  background-color: #eceff1;
  border-bottom: 2px solid #e5e7eb;
}

table.colorised-table tbody tr:nth-child(odd) {
  background-color: #f8f8f8;
}

table.colorised-table tbody tr:nth-child(even) {
  background-color: #fff;
}

table.colorised-table tbody tr:hover {
  background-color: rgb(199, 223, 255);
}

table.colorised-table tbody td {
  padding: 8px 16px;
  vertical-align: middle;
  font-size: 0.8rem;
}

@media (max-width: 1200px) {
  table.colorised-table tbody td {
    padding: 6px 2px;
  }
  table.colorised-table thead th {
    padding: 6px 2px;
  }
  table.colorised-table td:first-child,
  table.colorised-table th:first-child {
    padding-left: 8px;
  }
}

.colorised-table .sort-button {
  color: #737373;
  transition: color 0.1s ease;
}

.colorised-table .sort-button:hover {
  color: #0d3ecc;
}

.truncate-to-column {
  white-space: nowrap;       /* Prevent line breaks */
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px; 
}


.truncate-subject-column {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

.truncate-from-column {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* */

/* D E T A I L . P H P */

.country-flag {
  border-radius:3px; 
  font-size:20px; 
  vertical-align: middle; 
  margin-bottom: 0.5px;
}

.country-flag--small {
  font-size: 15px; 
  margin-bottom: 2.8px;
  border-radius: 20px;
}

/* CSS for detailtable on detail.php */

.detailtable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #555;
  max-width: 100%;
  box-sizing: border-box;
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.detailtable th,
.detailtable td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.detailtable tr:last-child td {
  border-bottom: none;
}

.detailtable thead {
  background-color: #f8f8f8;
  font-weight: bold;
}

.detailtable tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.details-row {
  display: none;
}
.clickable-row {
  cursor: pointer;
}

.detailtable .close-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detailtable .title {
  font-weight: 500;
}

.detailtable .title-container {
  flex: 1;
}




@media (max-width: 768px) {
  /* Main table elements only */
  .detailtable {
    display: block;
  }

  .detailtable > thead,
  .detailtable > tbody,
  .detailtable > tbody > tr,
  .detailtable > tbody > tr > td,
  .detailtable > tbody > tr > th {
    display: block;
  }

  .detailtable > thead {
    display: none;
  }

  .detailtable > tbody > tr {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.5rem;
  }

  .detailtable > tbody > tr > td {
    display:block;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
  }

  .detailtable > tbody > tr > td::before {
    content: attr(data-label);
    font-weight: bold;
    flex: 1;
    margin-right: 1rem;
    color: #555;
  }

  .detailtable > tbody > tr.details-row {
    display: none;
  }

  .detailtable > tbody > tr > td.heading-w175,
  .detailtable > tbody > tr > td.heading {
    background-color: #d4e5f8;
  }
}



/* Detail subtable CSS on detailtable on detail.php */

.detail-subtable {
  margin: 0.5rem auto;
  border-collapse: separate;
  border-spacing: 0;
  background-color: #fafafa;
  font-size: 0.9rem;
  box-shadow: 0 0 0 1px #ddd inset;
  border-radius: 6px;
  border: 1px solid #ddd;
  overflow: hidden;
}

.detail-subtable tr {
  font-size: 0.8rem;
  background-color: #EBEBEB;
}

.detail-subtable th {
  background-color: aliceblue;
  text-align: left;
  font-weight: 500;
}

.detail-subtable th,
.detail-subtable td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid #e2e2e2;
}

.detail-subtable td {
  background-color: #f9f9f9;
}

.detail-subtable thead {
  background-color: #f0f0f0;
}

.detail-subtable tbody tr:last-child td {
  border-bottom: none;
}

.detail-subtable.spam-report td:first-child {
  padding-left: 0.8rem;
}

@media (max-width: 768px) {
  .detail-subtable,
  .detail-subtable thead,
  .detail-subtable tbody,
  .detail-subtable tr,
  .detail-subtable th,
  .detail-subtable td {
    display: block;
    width: 100%;
  }

  .detail-subtable thead {
    display: none;
  }

  .detail-subtable tr {
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.5rem;
    background-color: #fdfdfd;
    box-shadow: 0 0 2px rgba(0,0,0,0.05);
  }

  .detail-subtable td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    position: relative;
    background-color: #fff;
  }

  .detail-subtable td::before {
    content: attr(data-label);
    font-weight: 600;
    flex: 1;
    color: #333;
    margin-right: 1rem;
    text-align: left;
  }

  .detail-subtable tbody tr:last-child td {
    border-bottom: none;
  }
}


table.detail-quarantine-table {
  border: 1px solid #ccc;
  border-radius: 5px;
  border-collapse: separate;
  font-size: 10pt;
  text-align: center;
  color: #555;
}

table.detail-quarantine-table td,
table.detail-quarantine-table th {
  padding: 5px;
}

table.detail-quarantine-table th {
  background-color: #eceff1;
  font-weight: 500;
}

table.detail-quarantine-table td {
  background-color: #f9f9f9;
}

table.detail-quarantine-table tr:nth-child(2) th {
  border-bottom: 1px solid #ccc;
}

table.detail-quarantine-table select {
  margin-left: 5px;
}

table.detail-quarantine-table button {
  font-size: 9pt;
}

.input-alt-recpt {
  width: 50%;
  border: 1px solid #8f8f9d;
}

@media (max-width: 768px) {
  .detail-quarantine-table,
  .detail-quarantine-table thead,
  .detail-quarantine-table tbody,
  .detail-quarantine-table tr,
  .detail-quarantine-table th,
  .detail-quarantine-table td {
    display: block;
    width: 100%;
  }

  .detail-quarantine-table thead {
    display: none;
  }

  .detail-quarantine-table tr {
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.5rem;
    background-color: #fdfdfd;
    box-shadow: 0 0 2px rgba(0,0,0,0.05);
  }

  .detail-quarantine-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    position: relative;
    background-color: #fff;
  }

  .detail-quarantine-table td::before {
    content: attr(data-label);
    font-weight: 600;
    flex: 1;
    color: #333;
    margin-right: 1rem;
    text-align: left;
  }

  .detail-quarantine-table tbody tr:last-child td {
    border-bottom: none;
  }

  .input-alt-recpt {
    width: 40%;
  }

  .alt-recpt-text {
    display: none;
  }
}


/* D A S H B O A R D  T A B L E S */

/* Status Table */

  table.status-table {
    border-collapse: separate;
    border-spacing: 0; /* allows border-radius to be visible */
    transition: background-color 0.5s ease;
  }

  .rounded-row td {
    margin-top: 10px;
    background-color: #e8eff7;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .rounded-row td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    padding-left: 10px;
  }

  .rounded-row td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    padding-right: 10px;
  }

  .rounded-row:hover td {
    background-color: #eff2fb;
  }

  .rounded-row-spacer {
    font-size: 5px;
  }

  .coloured-cell-blue {
    background-color: #4884E8;
    color: white;
    border-radius: 12px;
    padding: 2px 10px;
    display: inline-block;
  }

  .coloured-cell-gray {
    background-color: darkgray;
    color: white;
    border-radius: 12px;
    padding: 2px 10px;
    display: inline-block;
  }

  .coloured-cell-red {
    background-color: #b22222; 
    color: white;
    border-radius: 12px;
    padding: 2px 10px;
    display: inline-block;
  }
  
  .coloured-cell-pink {
    background-color: #ee6262; 
    color:white;
    border-radius: 12px;
    padding: 2px 10px;
    display: inline-block;
  }

  /* AI dash widget */

  .ai-widget-outerbox {
    width: 100%; 
    background-color:#e8eff7; 
    border-radius: 8px; 
    text-align:center;
  }

  .ai-widget-outerbox:hover {
    background-color: #eff2fb;
  }

  .ai-widget-innerbox {
    width: 100%; 
    background-color:white; 
    border-radius: 8px; 
    text-align:center;
  }
  
/* S E A R C H  P A G E */

table.boxtable-upgraded {
  color: #444;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.8rem;
  font-family: 'Roboto', sans-serif;
  background-color: #d4e5f8;
  width: 100%;
  table-layout: fixed;
  max-width: 768px;
  margin-bottom: 100px;
  min-height: 542.8px;
}

table.boxtable-upgraded td.textdata {
  padding-left: 10px;
}

table.boxtable-upgraded td {
  padding: 8px 10px;
  word-wrap: break-word;
}

table.boxtable-upgraded tr {
  border: none;
}

table.boxtable-upgraded TH {
  background-color: #e8eff7;
  border-bottom: 3px solid #d2d2d2;
  padding: 10px 12px;
  font-weight: 500;
  text-align: center;
  height: 40.7px; /* Locking the height so it doesn't change when */
  max-height: 40.7px; /* we set min-height on the table itself */
}

table.boxtable-upgraded tbody tr:nth-child(odd) td {
  background-color: #f8f8f8;
}

table.boxtable-upgraded tbody tr:nth-child(even) td {
  background-color: #fff;
}

table.boxtable-upgraded select {
  border: 1px solid gray;
  border-radius: 5px;
  color: #444;
  padding-left: 5px;
}
table.boxtable-upgraded button {
  border-radius: 5px;
  min-width: 50px;
}
table.boxtable-upgraded input {
  border: 1px solid gray;
  border-radius: 5px;
  padding-left: 5px;
}

td.report-cell {
  line-height: 1.8;
}

  table.boxtable-upgraded input[type="text"],
  table.boxtable-upgraded select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: 23.2px;
  }

@media (max-width: 1199.98px) {
  .boxtable-upgraded.ms-auto {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: none;
  }
  .boxtable-upgraded.me-auto {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: none;
  }
}

/* V I E W  M A I L  P A G E */

table.view-mail  {
  background-color: #EBEBEB;
  font-size: 8pt;
  word-break: break-all;
  border: 1px solid #ddd;
  padding: 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
}

table.view-mail TH {
  font-size: 0.85rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  text-align: center;
  background-color: #e8eff7;
  padding: 16px 12px;
  border-bottom: 3px solid #d2d2d2;
}

table.view-mail TD {
  padding: 10px;
}

.view-mail td.heading {
  background-color: #e8eff7;
  font-weight: 500;
  font-size: 10pt;
  border-bottom: 3px solid #d2d2d2;
}

.view-mail td.heading-gray {
  background-color: #f8f8f8;
  font-weight: 500;
  font-size: 10pt;
}

.view-mail td.detail.detail-gray {
  background-color: #f8f8f8;
}

.bgc-f8f8f8 {
  background-color: #f8f8f8;
}
/* Adjustment for when printing */
@media print {
  table.view-mail {
      border: none;
  }
}

