
:root {
  --menu-left: -300px;
  --menu-width: 300px;
}

a:hover, a:focus, .link-black:hover, .link-grey:hover, .googlemaps-link:hover, .hover-link:hover, .link:hover {
  cursor: pointer;
}

.alerts-box {
  z-index: 90000;
}

body {
  display: none;
  padding-top: 50px;
}

.body-ready{display: block}

.cursor-arrow{cursor: default !important}
.cursor-disabled{cursor: not-allowed !important}
.cursor-help{cursor: help  !important}
.cursor-link{cursor: pointer !important}
.cursor-loading{cursor: wait !important}
.cursor-move{cursor: move  !important}
.cursor-pointer{cursor: pointer !important}

body.loading .loading-overlay{display:block}

.btn.disabled, .btn:disabled {
  cursor: not-allowed;
}

.d-hide{
  display:none;
}

.form-label {
  font-weight: var(--fontweight-medium) !important;
}

h1, .h1 {font-size: 2.0rem}
h2, .h2 {font-size: 1.8rem}
h3, .h3 {font-size: 1.5rem}
h4, .h4 {font-size: 1.3rem}
h5, .h5 {font-size: 1.2rem}
h6, .h6 {font-size: 1.1rem}

.fs-7 {font-size: 0.9rem !important}
.fs-8 {font-size: 0.8rem !important}
.fs-9 {font-size: 0.7rem !important}
.fs-10 {font-size: 0.6rem !important}

.input-icon{
  position: relative
}

.input-icon-label {
  position: absolute;
  right: 8px;
  top: 4px;
  cursor:pointer
}

.loading-overlay {
  display:none;
  position:fixed;
  top:0;
  left:0;
  height:100%;
  width:100%;
  margin:0;
  padding:0;
  overflow:hidden;
  z-index:9999999 !important
}

#nav-control-always-open {
  display: inline-block;
}

@media (min-width: 1600px) {
  #nav-control-always-open {
    display: none;
  }

  .menu-always-open {
    padding-left: calc(var(--menu-width) + (var(--bs-gutter-x)*0.5)); !important;
  }

  #nav-menu.always-open {
    left: 0;
  }
}

.nav .nav-item button.active {
  background-color: transparent;
  color: var(--eda-orange) !important;
}

.nav .nav-item button.active::after {
  content: "";
  border-right: 3px solid var(--eda-orange);
  height: 100%;
  position: absolute;
  right: -3px;
  top: 0;
}

.navbar {
  height: 50px;
  padding: 0 15px;
  z-index: 2000;
}

.navbar a {
  text-decoration: none;
}

.nav-home {
  display: inline-block;
  font-size: 1.25rem;
  text-decoration: none;
  white-space: nowrap;
}

#nav-menu {
  height: 100%;
  position: fixed;
  top: 0;
  left: var(--menu-left);
  width: var(--menu-width);
  overflow-x: hidden;
  padding: 50px 0 0 0;
  -webkit-transition: .3s ease-in-out;
  -moz-transition: .3s ease-in-out;
  -o-transition: .3s ease-in-out;
  transition: .3s ease-in-out;
  z-index: 1000;
}

#nav-menu.open {
  left: 0;
}

#nav-menu-items {
  width: 100%;
  /* height: 100%; */
  height: calc(100% - 60px); /* Account for bottom bar height */
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 10px;
}

/* Style the scrollbar for the menu */
#nav-menu-items::-webkit-scrollbar {
  width: 6px;
}

#nav-menu-items::-webkit-scrollbar-track {
  background: transparent;
}

#nav-menu-items::-webkit-scrollbar-thumb {
  background: var(--colour-grey);
  border-radius: 3px;
}

#nav-menu-items::-webkit-scrollbar-thumb:hover {
  background: var(--eda-orange);
}

#nav-menu-bottom {
  border-top: 1px solid var(--colour-grey);
  background: var(--bg-dark-background);
  position: fixed;
  bottom: 0px;
  z-index: 1050;
}

.nav-menu-item-active {
  color: var(--eda-orange) !important;
}

.nav-menu-item-active:hover {
  color: var(--colour-white) !important;
}

.nav-menu-item {
  color: var(--colour-white) !important;
  line-height: 35px;
  overflow: hidden;
  white-space: nowrap;
  padding: 0 12px 0 20px !important;
  width: var(--menu-width);
}

.nav-menu-item:hover {
  background: var(--eda-orange);
  cursor: pointer;
}

.nav-menu-dba {
  color: var(--colour-grey) !important;
  line-height: 35px;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  width: var(--menu-width);
}

.nav-submenu-item {
  color: var(--colour-white);
  line-height: 35px;
  overflow: hidden;
  white-space: nowrap;
  padding: 0 12px 0 50px !important;
  width: var(--menu-width);
}

.nav-submenu-item:hover {
  background: var(--eda-orange);
  cursor: pointer;
}

.nav-menu-icons {
  border-bottom: 1px solid var(--colour-grey);
  color: var(--colour-grey-light);
  line-height: 40px;
  overflow: hidden;
  white-space: nowrap;
  padding: 0  !important;
  font-size: 1.1rem;
  text-align: center;
  width: var(--menu-width);
}

.nav-menu-submenu {
}

.overlflow-hidden {
  overflow: hidden;
}

.textsize-larger {font-size: 1.1rem}
.textsize-large {font-size: 1.25rem}
.textsize-largest {font-size: 1.5rem}
.textsize-smaller {font-size: 0.9rem}
.textsize-small {font-size: 0.8rem}
.textsize-smallest {font-size: 0.7rem}

.table thead th {
  box-shadow: inset 0 -2px 0 var(--eda-orange);
}

.table tfoot tr td {
  box-shadow: inset 0 2px 0 var(--colour-grey-light);
  border-top: none;
  border-bottom: none;
}

.table-sort {
  line-height: 30px;
}

.table-sort:hover {
  cursor: pointer;
}

.table-sort-title {
  vertical-align: middle;
}

.table-sort-title:hover {
  color: var(--eda-orange);
}
.table-sort-icon {
  color: var(--colour-black);
  vertical-align: middle;
}

/* Wrapper that fills available vertical space */
.table-scroll-wrapper {
  display: flex;
  flex-direction: column;
  max-height: 100%; /* or a specific height like calc(100vh - 200px) */
  overflow: hidden;
}

.table-scroll-wrapper .table-responsive {
  flex: 1 1 auto;
  overflow-y: auto;
}

.table-scroll-wrapper thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bs-table-bg, var(--bs-body-bg));
}

.table-scroll-wrapper tfoot td,
.table-scroll-wrapper tfoot th {
  position: sticky;
  bottom: 0;
  z-index: 1;
  background: var(--bs-table-bg, var(--bs-body-bg));
}

.table-scroll-wrapper table {
  margin-bottom: 0;
}

#toaster {
  z-index: 100000;
  position: fixed;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
}

.toast-slice {
  text-align: center;
  margin-bottom: 8px;
}

.toast-butter {
  display: inline-block;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.0em !important;
  padding: 6px 18px;
}

.copy-action {
  cursor: pointer;
}

.nswws-label {
  font-weight: bold;
}

.nswws-type {
  background: black;
  border: 1px solid black;
  color: white;
  padding: 2px 6px 2px 3px;
}
.nswws-yellow {
  background-color: var(--colour-alert-yellow);
  border: 1px solid black;
  color: #000;
  padding: 2px 6px 2px 6px;
}
.nswws-amber  {
  background-color: var(--colour-alert-amber);
  border: 1px solid black;
  color: #000;
  padding: 2px 6px 2px 6px;
}
.nswws-red    {
  background-color: var(--colour-alert-red);
  border: 1px solid black;
  color: #fff;
  padding: 2px 6px 2px 6px;
}
.nswws-weather {
  background-color: black;
  border: 1px solid black;
  color: white;
  padding: 2px 6px 2px 6px;
}


.flood-label {
  font-weight: bold;
}
.flood-type {
  background-color: #0077B0;
  border: 1px solid black;
  color: white;
  padding: 2px 6px 2px 3px;
}
.flood-severity {
  background-color: black;
  border: 1px solid black;
  color: white;
  padding: 2px 6px 2px 6px;
}

/* Core form-select look */
.choices {
  width: 100%;
}

.choices__inner {
  display: flex;
  align-items: center;
  min-height: calc(1.5em + .75rem + 2px);
  padding: .375rem 2.25rem .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: .375rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.choices__inner:focus-within {
  border-color: #86b7fe;
  box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

.choices.is-open .choices__inner {
  border-radius: .375rem .375rem 0 0; /* rounded top only */
  border-color: #86b7fe; /* same as focus colour */
  box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

/* Dropdown arrow styling */
.choices[data-type*="select-one"]::after {
  right: .75rem;
  border-color: #212529 transparent transparent transparent;
}

/* Dropdown menu */
.choices__list--dropdown {
  border: 1px solid #ced4da;
  border-radius: .375rem;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
  margin-top: .125rem;
}

.choices__item--selectable.is-highlighted {
  background-color: #e9ecef;
  color: #212529;
}

.choices__placeholder {
  color: #6c757d;
}

.choices__list--dropdown .choices__item {
  padding: .375rem .75rem;
}

/* === SIZE VARIANTS === */

/* Small */
.form-control-sm ~ .choices .choices__inner,
.form-select-sm ~ .choices .choices__inner,
.choices.form-control-sm .choices__inner,
.choices.form-select-sm .choices__inner {
  min-height: calc(1.5em + .5rem + 2px);
  padding: .25rem 2rem .25rem .5rem;
  font-size: .875rem;
  border-radius: .25rem;
}

/* Large */
.form-control-lg ~ .choices .choices__inner,
.form-select-lg ~ .choices .choices__inner,
.choices.form-control-lg .choices__inner,
.choices.form-select-lg .choices__inner {
  min-height: calc(1.5em + 1rem + 2px);
  padding: .5rem 2.5rem .5rem 1rem;
  font-size: 1.25rem;
  border-radius: .5rem;
}

/* Remove Choices default padding quirks when used with Bootstrap */
.choices__list--single {
  padding: 0;
  margin: 0;
}

/* Hide default background color when disabled */
.choices.is-disabled .choices__inner {
  background-color: #e9ecef;
  opacity: 1;
}


.colour-picker-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #dee2e6;
  background-color: #8B3A8B;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s;
}

.colour-picker-btn:hover {
  border-color: #adb5bd;
}

.colour-picker-btn:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Printing */
.print-only {display: none !important}

/* Print settings */
@media print {
 .no-print, .no-print * {display: none !important}
 .print-only {display: block !important}

 pre {border: none !important}
}


/* Tabs horizontal */
#tab-list-horizontal {
  border-bottom: 3px solid #dee2e6;
}

#tab-list-horizontal .nav-link {
  border: none;
  border-radius: 0;
  background-color: transparent;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}

#tab-list-horizontal .nav-link.active {
  background-color: transparent;
  color: var(--eda-orange);
  border-bottom: 3px solid var(--eda-orange);
}

#tab-list-horizontal .nav-link:hover {
  background-color: transparent;
  border-bottom: 3px solid var(--eda-orange);
}

/* Remove the vertical tab ::after border */
#tab-list-horizontal .nav-item button.active::after {
  content: none;
}


/* Pill pulse effect */
.badge-pulse {
  position: relative;
}

.badge-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: pulse-ring 1.5s ease-out infinite;
}

.badge-pulse.text-bg-primary::before {
  background-color: var(--bs-primary);
}

.badge-pulse.text-bg-danger::before {
  background-color: var(--bs-danger);
}

.badge-pulse.text-bg-success::before {
  background-color: var(--bs-success);
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}


/* Photo uploads */
.photo-container {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
}
.photo-video-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
  background-color: #F2F2F2;
}
.photo-video-wrapper.photo-ratio-1-1 {
  aspect-ratio: 1 / 1;
}
.photo-video-wrapper.photo-ratio-3-4 {
  aspect-ratio: 3 / 4;
}
#photoVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  display: block;
}
#photoCanvas {
  display: none;
}
#photoPreview {
  width: 100%;
  border-radius: 0.5rem;
  background-color: #F2F2F2;
}
#photoPlaceholder {
  color: #F2F2F2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}
.photo-face-guide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 0.5rem;
}
.photo-face-guide-text {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  border-radius: 0.5rem;
  color: white;
}
.photo-overlay.photo-overlay-loading {
  background: rgba(0, 0, 0, 0.7);
}
.photo-controls {
  margin: 1rem auto;
}
.photo-status {
  min-height: 24px;
}


.readonly-html-textarea {
  background-color: #e9ecef !important;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  min-height: 150px;
  max-height: 250px;
  overflow-y: auto;
  font-size: 1rem;
  line-height: 1.5;
  color: #212529;
}


/* ===========================
   Lightbox Integration
   =========================== */

/* Clickable image wrapper */
a.glightbox {
  display: block;
  cursor: zoom-in;
  text-decoration: none;
}

a.glightbox .content-image-placeholder,
a.glightbox .screenshot-placeholder {
  position: relative;
}

a.glightbox .content-image-placeholder::after,
a.glightbox .screenshot-placeholder::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(222, 161, 4, 0);
  transition: background 0.3s ease;
  pointer-events: none;
}

a.glightbox:hover .content-image-placeholder::after,
a.glightbox:hover .screenshot-placeholder::after {
  background: rgba(222, 161, 4, 0.08);
}

/* Zoom icon overlay */
a.glightbox .content-image-placeholder::before,
a.glightbox .screenshot-placeholder::before {
  content: '\f00e';
  font-family: 'Font Awesome 6 Pro';
  font-weight: 400;
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.25rem;
  color: var(--colour-grey-dark);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
}

a.glightbox:hover .content-image-placeholder::before,
a.glightbox:hover .screenshot-placeholder::before {
  opacity: 1;
  color: var(--eda-orange);
}

/* When actual images are used */
a.glightbox img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

a.glightbox:hover img {
  transform: scale(1.02);
}

/* GLightbox theme overrides */
.glightbox-container .gslide-title {
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

.glightbox-container .gslide-desc {
  font-family: inherit;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.glightbox-container .gclose,
.glightbox-container .gnext,
.glightbox-container .gprev {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glightbox-container .gclose:hover,
.glightbox-container .gnext:hover,
.glightbox-container .gprev:hover {
  background: rgba(222, 161, 4, 0.8);
}

.glightbox-container .gclose svg,
.glightbox-container .gnext svg,
.glightbox-container .gprev svg {
  fill: #ffffff;
}

.glightbox-container .gslide-image img {
  border-radius: 4px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

/* Lightbox image sizing */
.glightbox-container .gslide-media {
  max-width: 95vw;
}

.glightbox-container .gslide-image img {
  max-height: 85vh;
  width: auto;
  object-fit: contain;
}

.glightbox-container .goverlay {
  background: rgba(20, 20, 20, 0.95);
}

/* Caption styling */
.glightbox-container .gslide-description {
  background: linear-gradient(135deg, rgba(51, 51, 51, 0.95) 0%, rgba(30, 30, 30, 0.98) 100%);
  border-top: 2px solid #DEA104;
  border-radius: 0;
  padding: 1.25rem 1.5rem;
  max-width: 100%;
}

.glightbox-container .gdesc-inner {
  padding: 0;
}

.glightbox-container .gslide-title {
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  color: #DEA104;
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
  border: none;
  padding: 0;
}

.glightbox-container .gslide-desc {
  font-family: inherit;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

/* Bottom caption positioning */
/*
.glightbox-container .gslide-description.description-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
*/

/* Move description below the image */
.desc-outside .gslide-description {
  position: static !important;
  transform: none !important;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  padding: 1rem;
  margin-top: 1rem;
  width: 100%;
}

/* Make sure the inner container stacks vertically */
.desc-outside .gslide-inner-content {
  display: flex;
  flex-direction: column;
}

.desc-outside .gslide-media {
  margin-bottom: 0;
  flex-shrink: 0;
}

.desc-outside .gslide-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--bs-body-color);
}

.desc-outside .gslide-desc {
  font-size: 0.9rem;
  color: var(--bs-body-color-secondary);
}

.progress-modal .modal-header,
.progress-modal .modal-footer {
  display: none;
}

.progress-spinner {
  margin: 12px 0 18px 0;
}

.progress-modal .modal-body {
  border-radius: var(--bs-modal-border-radius);
}

.progress-modal .modal-content {
  max-width: 300px;
  margin: 0 auto;
}

#map {
  background: #ffffff;
}

/* Ensure Coloris picker appears above Bootbox modals */
.clr-picker {
  z-index: 99999 !important;
}

/* Make picker the right size without extra padding */
.clr-picker {
  width: 260px !important;
  min-width: 260px !important;
  height: auto !important;
  padding-bottom: 0 !important;
}

/* Position swatches inside the picker */
.clr-swatches,
#clr-swatches {
  display: grid !important;
  grid-template-columns: repeat(8, 24px) !important;
  grid-auto-flow: row !important;
  gap: 4px !important;
  padding: 8px !important;
  width: calc(100% - 16px) !important;
  margin: 8px !important;
  height: auto !important;
  box-sizing: border-box !important;
  position: relative !important;
}

/* Collapse the inner wrapper div */
.clr-swatches > div,
#clr-swatches > div {
  display: contents !important;
}

/* Style the swatch buttons */
.clr-swatches button,
#clr-swatches button {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  margin: 0 !important;
  padding: 0 !important;
  background-image: none !important;
  background-size: cover !important;
}

/* Swatch hover effect */
.clr-swatches button:hover {
  transform: scale(1.1);
  border-color: rgba(0, 0, 0, 0.3) !important;
  z-index: 1;
}

/* Dark mode support */
[data-bs-theme="dark"] .clr-swatches button {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

[data-bs-theme="dark"] .clr-swatches button:hover {
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.progress-bar {
  background-color: var(--eda-orange) !important;
}