html {
height: 100%;
overflow:auto;
}
body {
height: 100%;
}

html, body {
    background-color: #F9F9F9;
    display: flex;
    flex-direction: column;
    min-width: 1180px;
}

.freeze-scroll {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

.chapter {
    background-color: white;
    border: 2px solid #ccc;
}

.chapter > button {
    border-radius: 0 !important;
    border-bottom: 2px solid #ccc;
}

.chapter > button:hover {
    background-color: #e6880f !important;
}

.section-header {
    padding-left: 32px;
    width: 100%;
    border-radius: 0 !important;
    border-bottom: 2px solid #ccc !important;
}

.section-header-toggle {
    border-radius: 0 !important;
    border-bottom: 2px solid #ccc !important;
}

.section-header:hover {
    background-color: #F7C88A !important;
}

#sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    font-family: Arial, sans-serif;
}

#sidebar li {
    border-radius: 0 !important;
    border-bottom: 1px solid #ccc;
}

#sidebar b {
    white-space: nowrap;
    margin-left: 10px;
}

#sidebar .btn {
    text-align: left;
    width: 100%;
    color: #212529;
    background-color: #00000000;
    white-space: normal;
}

#sidebar .active {
    background-color: #f5d09f;
    font-weight: bold;
}

#sidebar .btn:hover {
    background-color: #F7C88A;
}
#sidebar .btn:focus,
#sidebar .btn:active {
    outline: none !important;
    box-shadow: none !important;
}

#header-container {
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #F9F9F9;
}

#disclaimer-container {
  justify-content: center;
  align-items: center;
  font-size: 0.75em;
}

.table-row {
    width: calc(100% - 25px) !important;
    margin-left: 25px;
    background-color: #ccc;
}

.btn-primary {
    margin-bottom: 5px;
}

.descriptor-container {
    border: 1px solid #ccc;
}

main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: white;
    border-left: 2px solid #ccc;
    border-right: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
}

main figure {
    display: block;
    margin: 0 auto;
    text-align: center;
    max-width: 100%;
}

main figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

footer {
    color: white;
}

footer img {
    max-width: 200px;
}

@media (max-width: 680px) {
    footer img {
        display: none;
    }
}

.btn-toggle {
    width: 100%;
}

.btn-toggle::before {
    width: 1.25em;
    line-height: 0;
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
    transition: transform .35s ease;
    transform-origin: .5em 50%;
}

#sidebar .btn-toggle::before {
    margin-top: 4px;
}

.btn {
    border-radius: 0 !important;
}

.btn-filter {
    background-color: #E6880F;
    border: none;
    color: white;
}

.btn-filter:hover {
    background-color: #F7C88A;
}

.btn-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

.btn-toggle:hover {
    background-color: #F7C88A !important;
}

.btn-help-circle{
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.link-body-emphasis {
    width: 100%;
}

#checks-table td:has(a),
#checks-table td:nth-of-type(3),
#checks-table td:nth-of-type(4) {
    text-align: center;
}

#checks-table a {
    display: block;
    width: 100%;
    height: 100%;
}

.automated {
    background-color: #c6e0b4;
}

.descriptor-container .btn-toggle {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 5px 15px;
    background-color: #f0f0f0;
    border: none;
}

.descriptor-container .btn-toggle:hover {
    background-color: #e0e0e0;
}

#page-content {
    flex-grow: 1;
    font-family: Arial, sans-serif;
    position:relative;
}

#page-content .collapse {
    padding: 5px;
}

#page-content .collapsing {
    padding: 5px;
    padding-left: 30px;
}

#page-content .collapse.show {
    margin-left: 25px;
}

#sidebar .collapse {
    padding: 5px;
}

#sidebar .collapsing {
    padding: 5px;
    padding-left: 10px;
}

#sidebar .collapse.show {
    margin-left: 5px;
}

#sidebar img {
    width: 120px;
    display: block;
    margin: 0 auto;
    margin-bottom: 25px;
}

#sidebar::-webkit-scrollbar {
    width: 6px;
}

#sidebar::-webkit-scrollbar-track {
    border-radius: 4px;
    background-color: #95a5a6;
    border: 1px solid #cacaca;
}

#sidebar::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: #2c3e50;
}

.descriptor-container .collapse + div {
    margin-top: 10px;
    padding-left: 15px;
    border-left: 2px solid #ddd;
    background-color: #f9f9f9;
}

.fs-5 {
    font-size: 1.25rem !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

#filterContent {
    min-width: 820px;
}

#collapseFilter > i {
    font-weight = 900;
    position: relative;
    bottom: 1px;
}

#filter-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
}

#filter-links a {
    font-size: 0.875rem;
    padding: 5px 10px;
    border: 1px solid #007bff;
    border-radius: 5px;
    text-decoration: none;
    color: #007bff;
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

#filter-links a.disabled {
    color: #c0c0c0; /* Light grey to indicate a disabled state */
    background-color: #f1f1f1; /* Light background color */
    border-color: #c0c0c0;
    opacity: 0.6; /* Makes it appear more faded */
    pointer-events: none; /* Disables clicking */
    cursor: not-allowed; /* Shows a not-allowed cursor */
}

#filter-links a.active {
    color: #ffffff;
    background-color: #0056b3; /* Darker blue to indicate active state */
    border-color: #0056b3;
    font-weight: bold; /* Optional: makes the text bold */
}

#filter-links a.locked {
    background-color: #d7f8d8;
    position: relative;
}

#filter-links a.locked::before {
    content: '🔒';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    margin-right: 5px;
}

#filter-links a:hover {
    background-color: #007bff;
    color: #ffffff;
}

#filterContent {
    transition: height 0.75s ease;
}

.rounded-circle {
    transition: transform 0.5s ease;
    cursor: pointer;
}

.rounded-circle.collapsed {
    transform: rotate(180deg);
}

.note {
    background-color: #f8f8f8;
    border-left: 4px solid #f44336;
    padding: 10px;
    margin-top: 20px;
}

#resizableModal {
    margin-left: 16.67%;
    border: 1px solid #ddd;
    padding: 10px;
    width: 66.67%;
    height: 50%;
    overflow: auto;
}

#dropdownResults {
    position: absolute;
    width: auto;
    min-width: 500px;
    max-height: 210px;
    overflow-y: auto;
    z-index: 1000;
    background-color: white;
    border: 1px solid #ccc;
}

.dropdown-item {
    white-space: normal;
    text-overflow: ellipsis;
    overflow: hidden;
    height: auto;
    padding: 2px;
    line-height: 1.4em;
    max-height: 3em;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #80bdff !important;
    cursor: pointer;
}

.dropdown-item:nth-child(odd) {
    background-color: #f8f9fa; /* Light background for odd items */
}

.dropdown-item:nth-child(even) {
    background-color: #e9ecef; /* Slightly darker background for even items */
}

.bootstrap-select .dropdown-menu .selected a {
  background-color: #1E40A5 !important;
  color: #fff !important;
  font-weight: 600;
}

#reviewTable tr:first-child {
  position: sticky;
  top: 86.8px;
  background-color: #1E40A5;
  color: white;
  z-index: 2;
}

.show {
    display: block;
}

.reveal-highlight {
  background: #f1f3f5;   /* light gray */
  transition: background-color 800ms ease;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    border-radius: 20px !important;
    padding: 10px;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
    z-index: 1000;
    visibility: hidden;
}

