/* this is for disable/enable nav_panels:
css snippet that makes it look like we are/n't able click the tab (with outchanging functionality) */
  .nav li a.disabled {
    background-color: #ADD8E6 !important;
    color: #333 !important;
    cursor: not-allowed !important;
    border-color: #ADD8E6 !important;
  }


/* 1. For the resizable textarea */
.resize-vertical {
  resize: vertical;
}

/* 2. Styling DT buttons - same blue as the app's other (btn-info) buttons */
.dt-buttons .btn {
  background-color: var(--bs-info);
  color: #fff;
  border-radius: 5px;          /* Rounded corners */
  padding: 6px 8px;            /* Button padding */
  font-size: 14px;             /* Font size */
  border: 1px solid transparent; /* Added a border style */
}

.dt-buttons .btn:hover,
.dt-buttons .btn:active {
  background-color: var(--bs-info);
  color: #fff;
  filter: brightness(0.92);
}

/* Explore Datasets: the same grey "add" icon in the marker column, the sidebar note and the
   Add Selected to Script button */
i.add-marker-icon {
  color: #888 !important;
}

/* Explore Datasets toolbar: buttons, the + hint and the search field in one aligned row
   (search pushed to the right), with breathing room above the table */
div.dataTables_wrapper div.dt-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
div.dataTables_wrapper div.dt-toolbar div.dt-buttons {
  float: none;
  margin: 0;
  gap: 6px;
}
/* DT puts its buttons in a Bootstrap btn-group, which glues them into one block; give each
   button its own rounded corners and a gap, and set the Add button a bit further apart */
div.dataTables_wrapper div.dt-buttons > .btn {
  border-radius: 5px !important;
  margin-left: 0 !important;
}
div.dataTables_wrapper div.dt-buttons > .btn:last-child {
  margin-left: 8px !important;
}
div.dataTables_wrapper div.dt-toolbar div.dataTables_filter {
  float: none;
  margin: 0 0 0 auto;
}
div.dataTables_wrapper div.dt-toolbar div.dataTables_filter label {
  margin: 0;
}

/* the lone + right of the buttons; its explanation shows on hover */
div.dt-add-hint {
  font-size: 1.1rem;
  line-height: 1;
}
div.dt-add-hint span {
  cursor: help;
  white-space: nowrap;
}
/* the small ? next to the +, signalling "hover here for an explanation" */
div.dt-add-hint i.add-hint-question {
  color: #aaa;
  font-size: 0.7rem;
  margin-left: 3px;
  vertical-align: super;
}

/* Make the table's search field easy to spot: a small tinted card behind label + input */
div.dataTables_wrapper div.dataTables_filter label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background-color: #e6f6fa;
  border: 1px solid var(--bs-info);
  border-radius: 8px;
  font-weight: 600;
}



/* "show more/less" feature css*/
.morecontent span {
    display: none;
}
.morelink {
    display: block;
}

/* css snippet that puts all quickfilters in one column with consistent alignment */
 .switch-group {
      display: flex;
      flex-direction: column;
      gap: 2px; /* Space between switches */
    }

    .switch-label-sidebar {
      width: 150px;  /* Fixed width for consistent alignment */
      display: inline-block;
    }

    .switch-label-graphs {
      width: 200px;  /* Fixed width for consistent alignment */
      display: inline-block;
    }

    .hover-title {
      display: block; /* Ensures titles are displayed as block elements */
      margin-bottom: 2px; /* Adjust the space below the title */
    }

/* comments in the script preview (code element with highlight.js classes) */
pre code .hljs-comment,
code.hljs .hljs-comment {
  color: #2a9d8f !important;
  font-style: italic !important;
}

.bslib-sidebar-layout { position: relative; }

.sidebar-resizer {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--_sidebar-width) - 3px);   /* tracks the sidebar edge */
  width: 6px; cursor: col-resize; z-index: 20;
  background: transparent; transition: background-color .15s ease;
}
.sidebar-resizer:hover { background-color: rgba(0,0,0,.15); }
body.sidebar-resizing, body.sidebar-resizing * {
  user-select: none !important; cursor: col-resize !important;
}
/* Footer with legal links (legal notice / data protection), shown on every page */
.legal-footer {
  text-align: center;
  font-size: 0.8rem;
  padding: 0.3rem 0;
  color: #888;
  background-color: #fff;
  border-top: 1px solid #e5e5e5;
  /* pinned to the viewport bottom so it never overlaps or scrolls with page content */
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1020;
}
/* keep the last lines of content clear of the fixed footer: the sidebar layout's
   .main is the element that scrolls. It is a flex container, where padding-bottom
   doesn't extend the scroll area, so a spacer pseudo-element is used instead */
.bslib-sidebar-layout > .main::after {
  content: "";
  display: block;
  flex: 0 0 2rem;
}
.legal-footer a {
  color: #888;
}
